4 ms·
I'm not a vm or compiler expert by any means but Gosu and Ceylon have implemented reified generics on the JVM somehow. It seems possible, but I don't know what
by meddlepal 12y ago
I'm not a vm or compiler expert by any means but Gosu and Ceylon have implemented reified generics on the JVM somehow. It seems possible, but I don't know what the performance impact would be.
- gsnedders 12y agoWell it's obviously doable — both the JVM and CLR are equivalent to Turing machines, so it follows that they can run the same set of programs. It just, uh, might be non-trivial. :)
- meddlepal 12y agoFwiw, when Gavin King (Ceylon) did a AMA on Reddit a while back I asked about how they implemented reified generics on the JVM: https://www.reddit.com/r/programming/comments/2iszra/ceylon_11_is_now_available/cl5vp6x https://www.reddit.com/r/programming/comments/2iszra/ceylon_...
- Gurkenmaster 12y agoCeylon is a great language in my opinion. I would rather programm in Ceylon than in C#.
- meddlepal 12y agoThat's good to hear! I haven't played with it yet beyond flipping through the docs. Have you built any production ready apps or libraries in it? How was the transition from writing Java? Did anything cause you pain or surprise?
- Gurkenmaster 12y agoThe Eclipse IDE plugin works but is pretty slow. I wouldn't use it if I wasn't so used to autocompletion + documentation in my IDE. The module system can use the central maven repository but it doesn't accept dashes in the name like jackson-core unless you put it in quotes. (Took me a while to figure out). Ceylon doesn't have enums but you can emulate them like this: http://ceylon-lang.org/documentation/1.1/tour/types#enumerated_instances http://ceylon-lang.org/documentation/1.1/tour/types#enumerat... Otherwise it's fairly straightforward to translate java into ceylon. I love immutability by default. Only 10% of my variables/fields are actually mutable. I could reduce that percentage further if the jvm had TCO.