3 ms·
I used it in production for a client last yr and i compared that with a go implementation. The concurrency support of crystal on a 40 Core machine beast the so
by pankajdoharey 2y ago
I used it in production for a client last yr and i compared that with a go implementation. The concurrency support of crystal on a 40 Core machine beast the socks off golang. Crystal both maxes out all the cores to a high degree, on file io and overall speed of execution. The time taken to do the same task Crystal; beats go by a significant margin while being so easy to write. And go is a easy language to write but Crystal is so much more easy to read because of Ruby syntax inheritance.
- nine_k 2y agoWhat is the reason of such advantage over Go? The latter is known to be geared towards concurrency, and also for having a very fast GC.
- bendangelo 2y agoIt's Ruby like syntax is awesome. It reads like psuedo code.
- pankajdoharey 2y agoMy guess is LLVM. Crystal Uses LLVM for code generation while Go has their own compiler backend.
- Imustaskforhelp 2y agoGo can also compile to llvm https://github.com/goplus/llgo https://github.com/goplus/llgo Though I am not sure how fast it is.
- pjmlp 2y agoDoesn't look like it fully supports the language or ecosystem, with partial support for 1.21 version.
- Imustaskforhelp 2y agoman, I wish for something like crystal but with a little more golang like syntax. I hate OOP though, I may be wrong but crystal afaik is OOP. I wish for a non OOP golang-esque crystal alternative.
- pmarreck 2y agoRoc? They're unfortunately in the middle of a compiler rewrite from Rust to Zig right now though
- shawabawa3 2y ago> something like crystal but with a little more golang like syntax... I wish for a non OOP golang-esque crystal alternative. I don't understand... Isn't that golang?
- xigoi 2y agoI think V might be what you’re looking for?
- samuell 2y agoCan second about the concurrency syntax! Did a small comparison with Go a few years back [1]. I my tests I have got the feeling it is causing a lot less gotchas with blocking go-routines and such. Not sure why that is though. Surprised to hear about the multi-core performance though! That is super interesting. [1] https://livesys.se/posts/crystal-concurrency-easier-syntax-than-golang/ https://livesys.se/posts/crystal-concurrency-easier-syntax-t...