8 ms·
Crystal 0.33
- kick 7y agoCrystal is really nice! Cloning Ruby syntax but making it prettier is probably one of the smartest language design decisions that have happened in a long time. It's definitely gotten further on my radar in the past year or so, though I remember reading this a few years ago and finding it pretty cool then, too: https://blog.codeship.com/an-introduction-to-crystal-fast-as-c-slick-as-ruby/ https://blog.codeship.com/an-introduction-to-crystal-fast-as... Relevant HN thread: https://news.ycombinator.com/item?id=12223395 https://news.ycombinator.com/item?id=12223395 Seeing Lilith in (what was, I think) December was what really alerted me to the fact that it had come along so far, I had mostly thought it was dead before. Lilith: https://github.com/ffwff/lilith https://github.com/ffwff/lilith Relevant HN thread on Lilith: https://news.ycombinator.com/item?id=21860713 https://news.ycombinator.com/item?id=21860713
- pjmlp 7y agoI just wish that they would had chosen another name for the OS. https://en.wikipedia.org/wiki/Lilith_(computer) https://en.wikipedia.org/wiki/Lilith_(computer) https://www.cfbsoftware.com/modula2/ https://www.cfbsoftware.com/modula2/
- scroot 7y agoThe Oberon boon -- especially the 2013 update -- is something that is, unfortunately, uncommon in the field: a total description of a computing system, top to bottom. If you or anyone reading this has access to that book in epub or similar ereader format I'd greatly appreciate. It seems Wirth published only a PDF (probably from MS Word)
- pjmlp 7y agoThe original books were written in the Oberon System Word Processor, and you can access them as part of Oberon live documentation. For example by running A2 and starting Oberon System 3 from it. Regarding converting them into epub, I guess it is a question of copyright, even if Wirth has made the PDF versions freely available, but I am no lawyer.
- appleiigs 7y agoI wonder why Ruby users don’t flock to Crystal, and Python users to Julia. With all the whining about performance and types, they just stay put.
- dyeje 7y agoMost of the people whining about performance and types probably don't actually use Ruby day to day.
- symfoniq 7y agoAnd Ruby 2.6 is already much, much faster than it was in the days when it was too slow for Twitter. Ruby 3.0 should be much faster still.
- eropple 7y agoI dunno. I used to use a lot of Ruby. The lack of types regularly made my life a real pain. I ended up building frameworks[0] tied really tightly to dry-struct to try to work around that, and it wasn't great. I use TypeScript for everything I used to use Ruby for, save for the occasional file munging inside of `pry`. [0]: https://github.com/modern-project/modern-ruby https://github.com/modern-project/modern-ruby
- jitl 7y agoThis is pretty much the route I’ve taken, except I used an internal framework at Airbnb for typings instead of “dry-...”. These days I write Typescript. I’m excited for Deno, which looks like it’ll solve most of the Node bullshit.
- fermuch 7y agoI've seen a lot of people (myself included) going from ruby to elixir
- Buttons840 7y agoAs an outsider, a non-Ruby-user, I find it strange that Ruby users seem to be migrating to languages that are similar only in syntax but vastly different in nearly every other imaginable way. Do Ruby users care only about syntax? Maybe I'm not so different? Maybe my preference for ALGOL syntax just gives me more language options?
- devmunchies 7y agoI’ve been using Crystal since 2016, but have recently started to learn Rust. Rust definitely makes me appreciate Crystal’s pretty robust std lib. it’s more like Go in that sense.
- bsaul 7y agoWhat's the state of crystal's concurrency ? I think i've read something on HN saying it wasn't quite there yet..
- devmunchies 7y agoYou mean parallelism? Concurrency has been there for years. Parallelism was available under a flag a few months ago. I do t know the current status since I don’t need it.
- bsaul 7y agosorry yeah i mean parallelism. Is the model an event loop running on single thread , like with with node.js ? When you say you don't need it, don't you use crystal for developing backend APIs ?
- faitswulff 7y agoThe most interesting Crystal project I've heard of is this x86-64 OS: https://www.reddit.com/r/crystal_programming/comments/djoy8a/lilith_an_x8664_os_written_in_crystalc/ https://www.reddit.com/r/crystal_programming/comments/djoy8a... If Crystal can make a case for itself as a systems programming language, I'm very interested.
- gregors 7y agoI recently noticed that frontend language Mint is written in Crystal - https://github.com/mint-lang/mint https://github.com/mint-lang/mint I've been playing around with Crystal for some toy projects as well as some data cleaning/munging scripts. I had a fairly large CSV dump that was making Ruby choke to death - porting to Crystal was trivial and it ran amazingly fast! I'm super interested to see where the concurrency story goes in Crystal. Fingers crossed!
- xuejie 7y agoCrystal is indeed a very nice language, but the only thing that is holding me from using it greatly, is that it still uses the Boehm GC, which makes it hard to compete with other languages in a production setting. I understand we might get there one day but I'm afraid this is taking far too long.
- anonsivalley652 7y agoPony's ORCA GC is supposed to be the faster than Erlang's BEAM/HiPE and Azul C4. Ideally, it would be extracted from that language and examples given how to integrate it with the likes of LLVM (it's not compatible OOTB with LLVM's API because of different synchronization primitives). https://www.ponylang.io/media/papers/orca_gc_and_type_system_co-design_for_actor_languages.pdf https://www.ponylang.io/media/papers/orca_gc_and_type_system...
- ampdepolymerase 7y agoStill no first class Win32 support.
- pjmlp 7y agoLove to see the progress on Crystal, hope that they manage to sustain its development.