3 ms·
You cannot go along like “I’m writing a cold path high-level code, I don’t need performance, I don’t need to go deeper into lifetime handling, I just want to wr
by themgt 11mo ago
You cannot go along like “I’m writing a cold path high-level code, I don’t need performance, I don’t need to go deeper into lifetime handling, I just want to write a high level logic”. You will be forced into the low level nuances every time you write a single line of Rust. There is no garbage collector for Rust and will never be — you will have to semi-manually pack all your data into a tree of ownership. You have to be fluent in ownership, borrowing, traits to write just a few lines of code.
It's still quite rough around the edges, but Crystal is a fun choice for this type of thing. If you want a readable high level language and sane package manager that compiles to reasonably performant machine code, it's worth a look.
- claudiug 11mo agothe issues with Crystal, nim, zig, is that they have zero changes to be bigger.
- preommr 11mo agocrtystal and nim, probably not. Zig... is surprisngly used a lot given how rough the state of the language is. It makes me think that if it ever reaches v1.0, it has a very good chance of being at least a "Kotlin", probably a "elixir"/"haskell", and a decent enough shot of "typescript".
- JackStarborn 11mo agoI'm trying to understand this. The languages mentioned will never grow because others didn't give them a chance, so you won't give them a chance either. Sir, I think I've diagnosed an infinite loop here. I recently started learning Nim. I'm only at the beginning of my journey, and there are things I don't like, but overall, Nim is a very nice language :-) A significant portion of the mistakes one can make in C/C++ can be avoided by writing idiomatic Nim, which is most case is super easy to do :-) EDIT: you=>one :-)