also acceptable
The Programming Language %a.ico{:href => "#"} %i.ip.downg icosahedron.cr Ruby-inspired syntax. Never have to specify the type of a variable or method argument. Be able to call C code by writing bindings to it in Crystal. Have compile-time evaluation and generation of code, to avoid boilerplate code. Compile to efficient native code. # Compute prime numbers up to 100 with the Sieve of Eratosthenes max = 100 sieve = Array . new ( max + 1 , true ) sieve [ 0 ] = false sieve [ 1 ] = false ( 2 . . . max ) . each do | i | if sieve [ i ] ( 2 * i ) . step ( max , i ) do | j | sieve [ j ] = false end end end sieve . each_with_index do | prime , number | puts number if prime end The project is in alpha stage: we are still tweaking the language and standard library. The compiler is written in Crystal. Post a questio...