←
Scala Native111 posts
Scala Native avatar

Scala Native

@scala_native

Your favourite language gets closer to bare metal.

◷ Joined February 2016▧ 3 Photos and videos
Scala Native avatar
Scala Native@scala_native·11 Apr 2024

We approve this message!

🎉 To all the library maintainers out there - the recommendation is to NOT cross-publish stuff for 0.4.x/0.5.x - just go straight to 0.5.0. The entire ecosystem will cut over quicker this way.

Scala Native avatar
Scala Native@scala_native·11 Apr 2024

Migration from 0.4.x to 0.5.x in most cases should not require source changes in most of codebases. The are no changes to globally available API Although, be aware of some changes related to FFI - mostly due to new platform dependent Size/USize type which maps to C size_t

Scala Native avatar
Scala Native@scala_native·11 Apr 2024

To the all the maintainers of the Scala ecosystem: now it's a time to start upgrading! The new release is not binary compatible with Scala Native 0.4.x, it unfortunately requires republishing of the artefacts.

Łukasz Biały avatar
⟳ Scala Native retweeted
Łukasz Biały@lukasz_bialy·31 Jan 2024

In these last hours of #1brc challenge I want to share with you my small exploration not of how fast I can make JVM go BRRRRR but of whether Scala Native is now a real, usable contender in the space of functional langs compiled to native binaries. The biggest issue, of course, was whether I can parallelise the load. Scala Native did not support multithreading for the longest time but now that has changed! In mid-January I implemented a relatively (no Panama and Unsafe, no SWAR) fast solution inspired by work of @sampullara, Yavuz Tas and @royvanrijn. Then, I cooked the binary using scala-cli and benchmarked it against the fastest JVM in the tournament. #scala 1/*

Scala Native avatar
Scala Native@scala_native·6 Jan 2024

The new SNIP (Scala Native Improvement Proposal) just dropped: `Non-GC object allocations using annotation hints` by @WojciechM_dev Let us know if it should work on it and add to Scala Native. github.com/scala-native/impr…

Scala Native avatar
Scala Native@scala_native·20 Jul 2023

Sbt users need to explictly enable multithreading using `nativeConig ~= { _.withMultithreadingSupport(true) }` When using scala-cli remember to use `--native-version=0.5.0-SNAPSHOT` . Multithreading would be enabled by default.

Scala Native avatar
Scala Native@scala_native·20 Jul 2023

It's time to test multithreading support in upcoming Scala Native 0.5.0! Let us know if you encounter any problems! While we're still polishing the new minor version, you can try its current state in scala-cli or sbt.

Scala Native 0.5.0-SNAPSHOT is now available in Sonatype snapshots, so I decided to do a silly multi-threading comparison against regular JVM launcher (jvm-packaged), Native Image (jvm-native), and Scala Native in release-fast. Even same ballpark would've been amazing!

Post attachmentPost attachment
Scala Native avatar
Scala Native@scala_native·6 Jun 2023

The 0.4.13 shipped with a bug. When linking with libraries produced using 0.4.12 or older it could lead to unreachability errors caused by the link-time values resolving mechanism. The bugfix release 0.4.14 fixes these problems. We're sorry for the inconvenience when upgrading.

Scala Native avatar
Scala Native@scala_native·5 Jun 2023

Scala Native 0.4.13 is out! That's the next maintenance upgrade with bug fixes and an update of the underlying Scala 2/3 standard library. This version is recommended for everyone targeting Scala 3.3.0 LTS and using the new parts of its stdlib. scala-native.org/en/stable/c…