News for hackers. Stuff that matters.
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.