Crystal lang is like Rust without a borrow checker, and more importantly, without semicolons. The syntax is like Ruby, but performs fast like golang. It's compiled with a garbage collector like golang, but also it's kind of like "what if golang was good?". Unlike ruby, the macros are compile time instead of runtime, also unlike Ruby, the type system is closer to rusts.
It sounds neat, but it doesn’t seem like a direct alternative to rust. For me, the core feature of rust is the borrow checker and the ownership system, which give you most of the convenience and safety of garbage collection but without any runtime overhead.
Of course I don't suggest Crystal for embedded work or non-scripting parts of game engines, but we're on a website written in rust. All the borrow checker does for lemmy is exclude 99% of your backend devs from contributing.
Looks like you guys are all regretting loading up all your eggs in rust instead of crystal lang.
This message brought to you by Crystal Gang ©
I write all my code in a basic Turing machine. Become ungovernable.
Just a notebook and Russell-era Lambda calculus for me.
imagine using a language with predefined special syntax instead of simply creating your own
this post made by Common Lisp Gang
Knowing nothing about either, what makes crystal better than rust?
Crystal lang is like Rust without a borrow checker, and more importantly, without semicolons. The syntax is like Ruby, but performs fast like golang. It's compiled with a garbage collector like golang, but also it's kind of like "what if golang was good?". Unlike ruby, the macros are compile time instead of runtime, also unlike Ruby, the type system is closer to rusts.
It sounds neat, but it doesn’t seem like a direct alternative to rust. For me, the core feature of rust is the borrow checker and the ownership system, which give you most of the convenience and safety of garbage collection but without any runtime overhead.
Of course I don't suggest Crystal for embedded work or non-scripting parts of game engines, but we're on a website written in rust. All the borrow checker does for lemmy is exclude 99% of your backend devs from contributing.
deleted by creator