←back to thread

Crystal 1.16.0

(crystal-lang.org)
131 points ksec | 3 comments | | HN request time: 0.673s | source
Show context
satvikpendem ◴[] No.43650003[source]
How has using Crystal been, anyone using it in production?
replies(6): >>43650049 #>>43650404 #>>43650442 #>>43650678 #>>43651362 #>>43656180 #
pankajdoharey ◴[] No.43650404[source]
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.
replies(2): >>43650501 #>>43650603 #
nine_k ◴[] No.43650501[source]
What 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.
replies(3): >>43650521 #>>43650623 #>>43650647 #
1. pankajdoharey ◴[] No.43650623[source]
My guess is LLVM. Crystal Uses LLVM for code generation while Go has their own compiler backend.
replies(1): >>43650640 #
2. Imustaskforhelp ◴[] No.43650640[source]
Go can also compile to llvm https://github.com/goplus/llgo Though I am not sure how fast it is.
replies(1): >>43650959 #
3. pjmlp ◴[] No.43650959[source]
Doesn't look like it fully supports the language or ecosystem, with partial support for 1.21 version.