Live data from Hacker News

Crystal 0.33

crystal-lang.org

31–40 of 43 posts

Re: Crystal 0.33

#31
post #2

Crystal 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... Relevant HN thread: https://news.ycombinator…

I just wish that they would had chosen another name for the OS.

https://en.wikipedia.org/wiki/Lilith_(computer)

https://www.cfbsoftware.com/modula2/

Re: Crystal 0.33

#32
post #7

I 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.

I use Python and I just don't like 1-based indexed languages. I would say that a better replacement for Python(at least for backend) is Go.

I fail to see how a bare bones language is a replacement for a language with Lisp/Smalltalk like expressive power.

The only thing missing is having more love for JIT compilers among the Python community.

Re: Crystal 0.33

#33

Earlier quoted context omitted.

n=1 but I am a Rubyist migrating to Julia, FWIW.

I'm curious what makes you want to move to Julia, because it seems that the overall philosophy of the two languages are quite far from each other. Would you mind if you share?

robbseaton probably has other reasons but I was a huge Ruby fan years ago and have been using Julia for many years now.

For me both languages have similar types of appeal. Ruby is quick to pick up, allows you to write expressive code and is built on the idea of everything being an object. So Ruby is both clean, easy and expressive.

Julia is EXACTLY the same, but for the modern age. It is easy to learn and expressive. Like Ruby the type system is consistent all over. It is not like Java which has primitive types and objects. Numbers in both Julia and Ruby are treated like any other type.

The primary difference is that Ruby came of age in the most object-oriented hyped period of programming language development and that reflects its heavy OOP design.

Julia came around when OOP was no longer considered the silver bullet. So why Julia has elaborate type hierarchies, it is probably closer to a functional language than an object-oriented one.

When Ruby came out it was a language that appealed to programming language geeks like me. It had a bunch of really powerful features we where not used to.

Julia is kind of the same. Multiple-dispatch and Julia macros is something that appeals to all geeks.

I actually never switched to Julia for performance reasons, but because I loved the language.

Re: Crystal 0.33

#34

I’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.

What's the state of crystal's concurrency ? I think i've read something on HN saying it wasn't quite there yet..

Re: Crystal 0.33

#35
post #31
post #2

Crystal 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... Relevant HN thread: https://news.ycombinator…

I just wish that they would had chosen another name for the OS. https://en.wikipedia.org/wiki/Lilith_(computer) https://www.cfbsoftware.com/modula2/

The 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)

Re: Crystal 0.33

#36
post #34

I’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.

What's the state of crystal's concurrency ? I think i've read something on HN saying it wasn't quite there yet..

You 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.

Re: Crystal 0.33

#37
post #35
post #31

Earlier quoted context omitted.

I just wish that they would had chosen another name for the OS. https://en.wikipedia.org/wiki/Lilith_(computer) https://www.cfbsoftware.com/modula2/

The 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)

The 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.

Re: Crystal 0.33

#38

Earlier quoted context omitted.

I'm curious what makes you want to move to Julia, because it seems that the overall philosophy of the two languages are quite far from each other. Would you mind if you share?

robbseaton probably has other reasons but I was a huge Ruby fan years ago and have been using Julia for many years now. For me both languages have similar types of appeal. Ruby is quick to pick up, allows you to write expressive code and is built on the idea of everything being an object. So Ruby is both clean, easy and expressive. Julia is EXACTLY the same, but for the modern age. It is easy to learn and expressive.…

> Julia came around when OOP was no longer considered the silver bullet.

Julia has multimethods dispatch.

One of the most famous writings about them is called "The Art of MetaObject Protocol".

A book to be read by everyone that thinks OOP is just the Java way.

While at it, reading about BETA and Self would also be illuminating.

Re: Crystal 0.33

#39
post #13
post #7

Earlier quoted context omitted.

I use Python and I just don't like 1-based indexed languages. I would say that a better replacement for Python(at least for backend) is Go.

Did you have a look at nim?

Maybe I should try it. It seems to be mentioned a lot here. Any recommended book?

Re: Crystal 0.33

#40
post #26

Earlier quoted context omitted.

It's a "get hooked with the syntax, stay for the features" situation. Elixir leverages the incredible robustness of the erlang virtual machine. So much so, that for me, anyways, it's hard to imagine using anything else without losing sleep anymore.

i've read a lot about erlang vm, but i'm curious which feature makes it hard for you to imagine using something else, in practice. What are the things that saved you, in your experience.

I replaced a python/uwsgi stateless stack with an elixir stateful system. Flipped it over and it worked flawlessly, and hasn't died once in several months of operation. Latencies are way down, and operation of it is simpler. Full deploy to the head node is one command, not an ansible script.

I guess part of it is that I'm lazy and haven't learned supervisor strategies like kubernetes (the place I work doesn't deploy kubernetes anyways)

This video is instrumental in giving me the confidence to do what I did: https://youtu.be/JvBT4XBdoUE

Post reply on HN