Looks like the Ceylon people either managed to put some pixie dust on top of HotSpot to make it less slow/memory inefficient or didn't benchmark it yet, but it seems like they added reified Generics in exactly the same way the Kotlin devs eventually gave up on it:
Looks like the Ceylon people either managed to put some pixie dust on top of HotSpot to make it less slow/memory inefficient or didn't benchmark it yet, but it seems like they added reified Generics in exactly the same way the Kotlin devs eventually gave up on it:
https://groups.google.com/d/topic/ceylon-dev/mIrroqhcf7o/discussion
Some archeology: I am aware of research by Martin (before he joined EPFL) and Enno Runne on the Pizza compiler, where they experimented with reified types for specialization. I had another look at the paper and it seems at most a 7% slowdown can be attributed to carrying reified types. What's more, this was happening back in version 1.1 of the JVM, so maybe revisiting the common belief that carrying reified types is expensive is warranted.
Now, is anyone aware of more recent attempts of implementing this? (in Scala, maybe)
Have a look at the PhD thesis of Michel Schinz (2005): http://infoscience.epfl.ch/record/52211
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-interna...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I believe the way to go is to have optional reification the way we start to do in Scala with Manifests/TypeTags.