Anonymous 2021-10-08 (Fri) 09:55:03 No. 12002
>Although resembling the Ruby language in syntax, Crystal compiles to much more efficient native code using an LLVM backend, at the cost of precluding the dynamic aspects of Ruby. However, the advanced global type inference used by the Crystal compiler, combined with the use of union types, gives Crystal the feel of a higher-level scripting language more so than many other comparable programming languages. The language has automated garbage collection and currently offers a Boehm collector. Crystal possesses a macro system and supports generics as well as both method and operator overloading. Crystal's concurrency model is inspired by communicating sequential processes (CSP) and implements light-weight fibers and channels (for communicating between fibers) inspired by Go.
Anonymous 2021-10-08 (Fri) 10:25:55 No. 12003
Never used it. Ruby became a language people used because of rails. There was a boom of software shops popping up because they could push web apps really quickly with rails. Personally, I really dislike rails.
Python's Django y much less "magic" and much nicer in general.
What's crystal dev environment like?
Anonymous 2021-10-10 (Sun) 20:36:45 No. 12047
It's the least blub language of all languages out there. People are apprehensive to trying it out because they keep their minds in an enclosed blubhole, but they're all wrong and missing out on this truly unique Gem in the rough, the eternal crystal castle of Babylon is held within its perfect, crystalized syntax. Stop fighting your nature and use a chi- crystal.
Anonymous 2021-10-10 (Sun) 21:49:44 No. 12048
Invidious, the youtube frontend, is written in crystal.
Anonymous 2021-10-11 (Mon) 17:08:46 No. 12063
Can it compile to binary/metal (I forgot the proper term) instead of LLVM?
Anonymous 2021-10-11 (Mon) 18:39:26 No. 12064
Despite having its own language, LLVM is a compiler infrastructure first and foremost.
The manpage of crystal also says it to compile to native code by default:
>CRYSTAL(1) Crystal Compiler Command Line Reference Guide CRYSTAL(1) > >NAME >crystal – Compiler for the Crystal language. > >SYNOPSIS >crystal command [switches] programfile – [arguments] > >DESCRIPTION >Crystal is a statically type-checked programming language. It was created >with the beauty of Ruby and the performance of C in mind. > >USAGE >You can compile and run a program by invoking the compiler with a single >filename: > >crystal some_program.cr > >Crystal files usually end with the .cr extension, though this is not >mandatory. > >Alternatively you can use the run command: > >crystal run some_program.cr > >To create an executable use the build command: > >crystal build some_program.cr > >This will create an executable named "some_program". >[…] > https://crystal-lang.org/ The official web site. > https://github.com/crystal-lang/crystal Official Repository. > >UNIX Epoch UNIX
Anonymous 2021-10-11 (Mon) 22:24:32 No. 12068
Kinda nice but I don't think you can use existing Ruby libs because Crystal's stdlib is slightly different.
Anonymous 2021-10-11 (Mon) 23:34:09 No. 12072
True, but that turned out to be a major problem when the original dev stepped down from the project. Look up old issues in the github repo around that time. People mass-complained about the language choice, and it looked like the project might die very soon because nobody could fix anything. Invidious is the kind of thing that needs incessant changes because it's playing cat and mouse with Youtube.
Fortunately the current devs are extremely active and will also test and merge your patches very quickly, so it wasn't that fatal.