5 ms·
So is it like RPython...Crystal programs running on Crystal convert other Crystals programs into C to build an interpreter that is then used to run yet other Cr
by smegel 11y ago
So is it like RPython...Crystal programs running on Crystal convert other Crystals programs into C to build an interpreter that is then used to run yet other Crystal programs (the ones users write)?
- zeckalpha 11y agoI think it goes to LLVM IR rather than C. It does it's own type inference, so compiling to C after that would preclude many optimizations that it could take advantage of.
- smegel 11y agoAh the penny drops: "Crystal is not interpreted. It doesn’t have a virtual machine. The code is compiled to native machine code by using LLVM." http://crystal-lang.org/2013/09/04/happy-birthday-crystal.html http://crystal-lang.org/2013/09/04/happy-birthday-crystal.ht...