Posts

Showing posts with the label crystal

Installation & Introduction to Crystal Language

Image
Source: Wikipedia Today, I have started exploring new programming language called Crystal . Why Crystal Language: Speed:  Crystal is compiled language based on LLVM framework so it directly gets executed on runtime. Syntax : As Crystal lang tagline suggest Fast As Slick as Ruby, Crystal uses ruby language like syntax to write code. Statically Type check :   Crystal is statically type checked language so any type of errors will be shown or caught on compile time rather than fail at runtime.  Clean : Crystal has built-in type inference, so most type annotations are unneeded. Null Reference Check:  Compiler automatically checks for null references in compile time only. Macros: We can create and use macros so it's easy to use. your dynamic method definition could be replaced with a compile-time macro in as many lines of code. Green Threads:  Crystal uses green threads, called fibers , to achieve concurrency. Fibers communicate with each other...