Re: scala native, wouldn't it *not* have the optimizing JIT when not on the JVM, therefore making it potentially slower if the (compiler-based) optimizer is inferior?
On Thu, Dec 15, 2022 at 11:44 AM Interrante, John A (GE Research, US) < [email protected]> wrote: > The words "lots of integrations" comes from the library's README. As Adam > said, integrations seem to be Enumeratum add-on modules which help other > Scala ecosystem major players (Play framework, etc.) use Enumeratum with > their own software. Enumeratum itself supports Scala versions from 2.12 to > 3.x along with Scala native and Scala js, so it can be used pretty > universally everywhere. I was simply remarking on the sheer number of > Enumeratum add-on modules showing how many Scala ecosystem players there > are some of which I hadn't known about. > > Regarding Scala native's speed on a micro-benchmark, that may be because > Java increases its speed by optimizing hot pieces of frequently run loops > like micro-benchmarks. If you really need native machine execution speed > along with good things like low energy consumption, memory/stack > protection, and functional computing, Rust is famous for providing all > these albeit with slow compilation speed and an ownership model which takes > time to understand. > > -----Original Message----- > From: Mike Beckerle <[email protected]> > Sent: Thursday, December 15, 2022 2:03 PM > To: [email protected] > Subject: EXT: Re: Enumeratum > > I guess I don't understand what it means for an enumerations library to > have "lots of integrations". > By this do you mean the versions of scala it supports, and the scala > native and scala js? > > I think these things are pretty easy to support for a small library with > no dependencies at all. > > re: Scala Native.... > > Interesting tidbit about Scala native. I did a little micro-benchmark on > it, using our Tak scala code. > > It's substantially slower on scala native than on Java 19 openJDK JVM. > > One takeon is almost 2x as long on scala native as on standard java 19 JVM. > > I found that somewhat surprising. > > On Sun, Dec 11, 2022 at 9:42 AM Interrante, John A (GE Research, US) < > [email protected]> wrote: > > > The latest Scala Times newsletter mentioned an enumeration macro library. > > I looked at its README and was impressed at how many integrations it > > has, which also shows how large Scala's ecosystem is. Not saying we > > should use it in Daffodil, just saying FYI, this is a library worth > knowing about. > > > > https://github.com/lloydmeta/enumeratum > > enumeratum<https://github.com/lloydmeta/enumeratum> > > > > A type-safe, reflection-free, powerful enumeration implementation for > > Scala with exhaustive pattern match warnings and helpful integrations. > > > > MIT license > > <https://github.com/lloydmeta/enumeratum/blob/master/LICENSE> > > >
