-
Not sure what will be the title I mention here some unexpected behaviors I got:
1 -> Side Effect Erasing
``` scala
object Main {
def main(args: Array[String]): Unit = {
5 / 0
println("…
-
There are a number of non-trivial issues we've accumulated so far:
* No way to dereference a single field of a struct #39
* Interaction between structs and stack allocation is not obvious #115
…
densh updated
7 years ago
-
lldb says:
```
* thread #1: tid = 11734, 0x00000000004064db kmeans-out`kmeans.Main$::main_class.ssnr.ObjectArray_unit + 507, name = 'kmeans-out', stop reason = integer divide by zero
frame #0: 0x…
-
Currently all operations on `null`s are undefined behaviour. This is not consistent with `isInstanceOf` and `asInstanceOf` having a defined non-throwing semantics on null values on the JVM.
densh updated
8 years ago
-
https://github.com/scala-native/scala-native/blob/master/nativelib/src/main/scala/scala/scalanative/native/FunctionPtr.scala#L11
I'm reasonably happy with the output up until `fromFunction15`. Afterw…
densh updated
8 years ago
-
``` scala
import scalanative.native._
import scalanative.libc.stdlib._
object Test {
def main(args: Array[String]): Unit = {
val l = 43.toUInt
fprintf(stdout, c"%d", l)
}
}
```
Currently…
densh updated
8 years ago
-
Add support for additional APIs:
- [ ] `def fromCString(str: CString): String = ...`
- [ ] `def toCString(str: String): CString = ...`
For clarity they should not be added implicitly to normal string…
densh updated
8 years ago
-
The following test-case produces this exception when running (`sbt clean run`): https://github.com/Sciss/scala-native-test/tree/scala-native-issue-207
Stack trace:
```
java.util.NoSuchElementExcepti…
Sciss updated
8 years ago
-
I've tried this simple example on linux:
```
import scalanative.native._
import scalanative.libc.stdlib._
object Main {
def main(args: Array[String]): Unit = {
val p = (n: CString) => {
…
-
``` scala
import scala.scalanative.libc.stdlib._
import scala.scalanative.native._
object Main {
def main(a: Array[String]): Unit = {
fprintf(stdout, c"%c\n", "0123".charAt(0))
}
}
```
prin…