[Introduction] Hello folks! happy to have stumbled upon Crystal

Hello folks! I’m Alexander, I’m a very new Crystal user, and if want to know more you can always find all about me on my website/blog (see profile).

A little backround on how I got here: a few months ago I decided I was fed up by Bash for good and picked Deno as a runtime for all my non trivial (more than one line?) plumbing scripts. It actually worked great (I don’t love Typescript but it does the job for me and, most importantly, I wanted strong typing and TS does at least provide that). I was pretty happy with Deno and especially its runtime BUT as you might know the team has been recently acquired by CloudFlare and decided to essentially sunset the Deno project. Oh well, thanks for all the fish, I suppose.

That brought me to do a little analysis for what could be a good replacement and, long story short, I settled for Crystal (which I didn’t even know it existed) and I’m actually very happy with that choice for now, so here I am joining the community in the hope of learning tricks, common idioms/patterns, and in general keep an eye on the development of the project.

I’m just getting started so I’m pretty sure I don’t have anything to share to be proud of (yet!), these are the only two public projects I wrote in Crystal so far:

Looking forward to get in touch with the community and learn more about this cool new language :crystal_ball:

PS: I’m also Al3xFor in #crystal-lang Libera IRC channel.

Welcome to the community of the world’s most beautiful language!

Thank you buddy!

What brought you to Crystal? what do you like the most? do you have anything online to share?

I was a Rubyist, the most like part of Crystal for me is static type null safety.

I am the creator of Crystal China, there are also some resources that might interest you.

e.g.

GitHub - crystal-china/build_scripts: Facilitate cross-compilation · GitHub for how to build a static binary for linux,macos.

GitHub - crystal-china/crystal_hello_world: A project for the purpose of demonstration some useful showcase · GitHub for how to write a web hello world use kemal with spec, and template for github action, Makefile.

Happy Crystal coding.

Welcome @al3xfor!

What brought me to Crystal is its rare combination of simplicity + productivity + high performance.

Previously, speed and productivity competed. Not anymore, not with Crystal.

I already saw some real cases in which, with proper optimization, it outperformed Rust.

There is no perfect language, of course. And my point here is not Crystal vs Rust, but about having the most productivity possible combined with the performance possible that such choice could allow.

So, after drafting personal projects for about a year or two in Crystal while working in production wit others, I migrated to Crystal as the main language in my startup, both on system-level (for virtualization) as well as backend API level.

Hello @paulocoghi , thanks for sharing, and interesting to realize how many projects are investing fully in Crystal, given that I didn’t even know it existed until a few days ago.

Personally I don’t know how to Rust but I’m decent at Go and has been my daily driver for the last few years when building production software. To be honest performance has seldom be the problem with Go (not that many problems related with Go specifically either) and, at least for now, I default to that if I am tasked to build something as rock solid as I can possibly do. I’m also ok with its highly opinionated approach and all in all I feel like recommending it as a product.

I wanted to go out of my comfort zone a little and learning a new language once in a while is also a good way to learn new ways of solving problems so that’s for now my reason for getting into Crystal, and it’s already paying out! The cooperative concurrent model is totally new and definitely interesting to learn, at the same time the channels aren’t new (they are primitive types in Go too) so it’s like both slightly unformfortable and familiar (I always liked how Ruby syntax reads) at the same time.

Let’s see if in one year or so I’ll also be telling others that Crystal got into production for me, can’t rule that out.

PS what do you mean exacly with “for virtualization”?

What I mean “for virtualization” is creating an open source cloud platform based on LXC containers. A new IaaS and PaaS cloud computing platform delivered in a single binary. No Docker, no Kubernetes. All the concerns solved in the binary.

It recently paused because of other projects, but should return in full force in 2 months, with a proper public release.

Welcome, Alexander!

Right now, my goal is to learn the language well enough to start developing my own personal projects and, eventually, use it in production environments.

I have already built several (simple) applications using other languages—such as Python, Go, TypeScript, Dart, C#, PHP, and Object Pascal (Delphi and Lazarus/FPC)—but Crystal is the one I’ve liked the most, thanks to its syntax, performance, and other qualities.

As someone just starting out with Crystal, I’ve found the lack of a fully functional LSP (Language Server Protocol) to be a drawback, as I’ve grown accustomed to having this feature available in the other languages ​​I’ve used.

@paulocoghi, I really like the idea behind your project; it’s truly interesting and promising. It’s excellent to see the emergence of alternatives to Kubernetes (which is quite complex) and Docker that are more user-friendly—especially one developed using Crystal.

@al3xfor

Welcome aboard! Always exciting to see new faces stumbling upon Crystal.

Happy coding and Happy hacking :)

Welcome to the community! I’m sad to hear about Deno, I wasn’t aware. I liked that tech stack, a great alternative to Node and Bun! :pensive_face:

Crystal is an amazing language. I’m always blown away by the innovation in this community. It reminds me of the early days of Java in the 00s. It’s so easy to read, and the fact it has a compiler, formatting tools, and simple package management via shards allows me to create very robust code.

I’m currently using Crystal to build a stealth MCP server I hope to release to production soon. The core libraries are perfect and cover 99% of my use cases.

Thanks buddy, appreciated.

Yeah I’m really hooked by Crystal at the moment, I’m developing my toy IRC bot as an excuse to learn the language and it’s way more feature rich that I initially thought.

PS what the hell is a stealth MCP server? :sweat_smile:

Hey! Check mine out: René Bon Ćirić (Rénich) / Crystal MCP · GitLab

Whoa! :collision: This is cool! Today I’m using Serena MCP, but I’ll take this one for a spin!

Welcome, Alexander! Moving scripts from Deno to Crystal is a nice fit, since you get static typing plus a single compiled binary that is easy to deploy. If you come from TypeScript, the union types and flow typing (if var = x) will feel familiar, and the shards ecosystem covers most scripting needs like OptionParser and HTTP::Client in the stdlib.

Thanks for the warm welcome!

Actually I come more from Go than Typescript and many concepts are familiar, like select and channels, for example.

So far I’m very happy with both the runtime and the community and I’m coming up with new pet projects as an excuse for learning the language better. Here the last one:

What I mean “for virtualization” is creating an open source cloud platform based on LXC containers. A new IaaS and PaaS cloud computing platform delivered in a single binary. No Docker, no Kubernetes. All the concerns solved in the binary.

How will this be different from Incus projects?

Btw, coming from docker, k8s and solaris zones, and having used BSD jails via wrappers, I did think of creating something like this, Incus + API with Crystal, but the author of Incus already has created this API. Thanks.

Incus is an excellent project, and it has its public. I’m just aiming at a different direction.

Incus is non-opinionated and, for example, it is your responsibility to choose between 10 different storage modes, deciding the network model and if you would use OVN or not, etc.

What I’m working on is on an opinionated project that solves all of these complex decisions for you, all in a single binary, and without having to rely on external softwares (like OVN) as most as possible.

No worries on the storage model, how clustering and HA is solved, how network is managed. Everything is carefully decided, so you focus on using your cloud for your projects.

There are people to which Incus will be a better solution. And this is fine and expected.