News for hackers. Stuff that matters.
Re:Crystal 1.0 – What to expect by nine_k on Monday March 22, 2021 @06:18PM (#26548094)
Kotlin mostly requires JVM, Crystal does not. Kotlin is heavily oriented towards Java familiarity and interoperability, Crystal is heavily oriented towards Ruby familiarity, and C interoperability.

Also, Crystal was first released in 2014, when Kotlin was like 3 years old, and 100% JVM-bound.

Re:Crystal 1.0 – What to expect by The_rationalist on Monday March 22, 2021 @09:43PM (#26549979)
Kotlin mostly requires JVM, Crystal does not. With Kotlin native, Kotlin js and most importantly Graal native this is plain wrong.
Re:Crystal 1.0 – What to expect by socialdemocrat on Monday March 22, 2021 @10:14PM (#26550211)
That is like a hack. You are basically dumping a JIT image to file. That means all sorts of caveats apply such as be real careful about how you use reflection.

Also there is no ABI so you cannot use anything like a native DLL.

Native compilation while possible is clearly second class on the JVM platform. For Crystal it is first class.

Re:Crystal 1.0 – What to expect by heavyset_go on Tuesday March 23, 2021 @12:39AM (#26551190)
> Also there is no ABI so you cannot use anything like a native DLL.

Pretty sure this isn't the case with Kotlin Native[1].

[1] https://kotlinlang.org/docs/native-dynamic-libraries.html

Re:Crystal 1.0 – What to expect by yxhuvud on Monday March 22, 2021 @10:40PM (#26550393)
Crystal is also not great for dlls or .so files as the event loop and gc probably wouldn't work well in that scenario.
Re:Crystal 1.0 – What to expect by filleduchaos on Tuesday March 23, 2021 @06:09AM (#26553135)
I have used Crystal to make DLLs and it worked plenty fine.
Re:Crystal 1.0 – What to expect by iomcr on Tuesday March 23, 2021 @09:50AM (#26554933)
Sounds like a fair compromise when the alternatives includes at least one of the following tradeoffs: harder, less safe, and/or slower.
Re:Crystal 1.0 – What to expect by abhijat on Tuesday March 23, 2021 @12:24AM (#26551100)
Is kotlin/native a first class option today for server side programming? Last I looked at it, which was fairly recently, that did not seem to be the case.
Re:Crystal 1.0 – What to expect by The_rationalist on Tuesday March 23, 2021 @09:38AM (#26554800)
While Kotlin native is likely more mature than crystal I would say that graal native is much better as it allow you to reuse Java libraries and therefore spring native.
Re:Crystal 1.0 – What to expect by nine_k on Monday March 22, 2021 @09:49PM (#26550028)
This is correct today.

This was not the case when Crystal development started.

Re:Crystal 1.0 – What to expect by The_rationalist on Tuesday March 23, 2021 @09:32AM (#26554741)
Translation: Crystal had a value proposition but now it's gone, before the product launch.
Re:Crystal 1.0 – What to expect by iomcr on Tuesday March 23, 2021 @09:53AM (#26554963)
Reality: Kotlin's value proposition is android development.
Re:Crystal 1.0 – What to expect by The_rationalist on Tuesday March 23, 2021 @01:12PM (#26557385)
It's a misconception, Kotlin is suitable everywhere that Java is suitable, and even more.
Re:Crystal 1.0 – What to expect by iomcr on Tuesday March 23, 2021 @09:42AM (#26554842)
That doesn't stop 99% of the mind share and language design from being "Java with lipstick".