Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Filter by
Sorted by
Tagged with
1 vote
1 answer
62 views

Java uses network byte order for storing numerical values in memory. But what about Scala Native? Does it follow JVM's approach or brings something new?
R A's user avatar
  • 335
1 vote
1 answer
71 views

I'm trying to run a test on a scala native code that calls a C function from within it but got this error. Modified to provide more error output [build.mill-57/61] compile [build.mill-57] [info] ...
Jeffrey Whewhetu's user avatar
0 votes
1 answer
106 views

What's the right way to convert VM's Int to unmanaged CInt pointer from scala.scalanative.unsafe? val num: Int = 5 val nativeInt: Ptr[CInt] = // ?
R A's user avatar
  • 335
0 votes
2 answers
167 views

I'm trying to pass a Scala array to native code and need to do the conversion. How to convert Array[Byte] to Ptr[Byte] in Scala Native?
R A's user avatar
  • 335
0 votes
1 answer
171 views

I've written some code I'd like to share across a couple of ScalaNative command line tools I'm working on. Can I generate a library (preferably static) that I can share between multiple ScalaNative ...
Tim Stewart's user avatar
  • 5,510
3 votes
1 answer
237 views

From the scala native docs at https://scala-native.readthedocs.io/en/latest/ this is how to access struct members: type Vec = CStruct3[Double, Double, Double] val vec = stackalloc[Vec] // allocate c ...
user573215's user avatar
  • 4,697
2 votes
0 answers
147 views

I wonder when Zone or stack allocation are necessary when using C interoperability. For instance, if I call C function which takes function pointer, can I use any Scala function (with conversion to ...
abitbol's user avatar
  • 536
3 votes
1 answer
294 views

If I needed to use the stable release version, I would have my project/plugins.sbt as below: addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.0") I am trying ...
theFakeSheikS's user avatar
0 votes
1 answer
176 views

I am trying to use Scala native while performing few linear algebra computations (using Scala version 2.13.4 and Native version 0.4.0). When I try apache commons or Breeze library for linear algebra ...
Raghuveer Bhandarkar's user avatar
1 vote
1 answer
291 views

I am trying to build a super-optimizer in scala native and to perform better I would like to have GPU support. is this possible with some GPU programming library for C or C++?
Lambda Banquo's user avatar
0 votes
1 answer
143 views

I have two functions that find the factorial of a number and one works using integers, but the second using only shorts yield an error. This is the code var fac16i: Function2[Short, Short, Short] = ...
Lambda Banquo's user avatar
1 vote
1 answer
106 views

I am trying to define a helper method to dynamically compose functions which are dynamically loaded. import scala.scalanative.native._ @extern @link("dl") object dl { def dlopen(path: ...
GuoLiang Oon's user avatar
0 votes
1 answer
68 views

Error looks like this: [error] (nativeClang) java.io.IOException: Cannot run program "which": CreateProcess error=2, The system cannot find the file specified [error] (nativeClangPP) java.io....
Icterine Tech's user avatar
3 votes
1 answer
186 views

I succeed compiling a scala project to machine code using Scala Native. But I want to generate some executable code at runtime (I plan to implement a standalone compiler from a scala-like language to ...
dawid's user avatar
  • 794
1 vote
1 answer
159 views

The scala-native site says there is a faster executable option, but it doesn't state how to set it in SBT.
dawid's user avatar
  • 794

15 30 50 per page