boolean string parsing behaviour in scala-native

what could be the reason for a normal parsing code to give on the scale-native side(after compiling) the below exception: java.lang.IllegalArgumentException: For input string: "false"at scala.collection.immutable.StringLike$class$.parseBoolean(Unknown Source)at scala.collection.TraversableLike$$anonfun$map$1.apply(Unknown Source)at scala.collection.AbstractIterator.foreach(Unknown Source)at scala.collection.TraversableLike$class$.map(Unknown Source)at example.Main$.main(Unknown Source)at <none>.main(Unknown Source)at <none>.__libc_s...Read more

pointer to pointer in scala-native

I'm trying to use czmq with scala-native and I haven't found a way to create pointer in scala-native.here is extern:@native.link("czmq")@native.externobject czmq {//struct _zsock_t {// uint32_t tag; // Object tag for runtime detection// void *handle; // The libzmq socket handle// char *endpoint; // Last bound endpoint, if any// char *cache; // Holds last zsock_brecv strings// int type; // Socket type// size_t cache_size; // Current size of ...Read more

Scala native hello world fails to find _scalanative_alloc

Trying to build the Hello World example in scala native (on MacOS 10.11.6) I get the following error while linking. Where should _scalanative_alloc and _scalanative_init be defined? In my main program? If so what should it be defined as?[info] /Users/nnovod/tools/clang+llvm-4.0.0-x86_64-apple-darwin/bin/clang++[info] -o[info] /Users/nnovod/projects/scalaNative/target/scala-2.11/scalanative-out[info] -lgc[info] -I/usr/local/include[info] -I/Users/nnovod/tools/clang+llvm-4.0.0-x86_64-apple-darwin/include[info] -L/usr/local/lib[info] -L/...Read more

Is it possible to have zero cost abstractions on Scala Native?

I was reading the documentation of the Rust language, and I was immediately interested in Scala Native, thinking about mature libraries and insanely optimized algorithms. I've two questions hereIs it possible to have zero-cost abstractions in Scala Native (similar to Rust)?Can we do away with the BOEHM GC which is nevertheless present in all Scala Native installations, so it is usable on embedded systems?...Read more

Using scala-native for in-memory data processing

I'm wondering whether it is possible to leverage scala-native for performing large in-memory jobs. For instance, imagine you have a spark job that needs 150GB of RAM so you'd have to run 5x30GB executors in a spark cluster since JVM garbage collectors wouldn't catch up with heap bigger than that.Imagine that 99% of the data being processed are Strings in collections. Do you think that scala-native would help here? I mean, as an alternative to Spark? How does it treat String? Does it also have this overhead because jvm treats it as class?What a...Read more

Can scala-native use existing Java/Scala libraries?

I have not been able to understand if a project intended to be compiled by scala-native can: Use Java libraries? If yes, does it make scala-native an ahead of time compiler for Java as well as Scala?Use Scala libraries (compiled to JVM bytecode)I understand only part of the Scala standard library is available. Is it because there are parts of the implementation using Java standard library?In case it can't, wouldn't this drawback make it almost impossible for a [non-trivial] project to compile to both the JVM and native using a single code bas...Read more