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.
[ Parent
| on HN ]
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
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.
Sounds like a fair compromise when the alternatives includes at least one of the following tradeoffs: harder, less safe, and/or slower.
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.
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.
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.