Arman Bilge
Arman Bilge
Thanks for a really fantastic lib btw :)
Scenario: 1. I create a binding for a library e.g. `libfoo` which requires some glue code. ```scala @link("foo") @extern object foo { @name("scalanative_foo_bar") def bar(): Unit = extern } ```...
Fixes https://github.com/scala-native/scala-native/issues/2600 by porting the changes in https://github.com/scala-js/scala-js/pull/4659. Targeting 0.4.x.
Scala Native counterpart of https://github.com/scala-js/scala-js/issues/4657. See discussion there. https://github.com/scala-native/scala-native/blob/30b6781ee3f1854e07ea5b9274179c14e0e5abd5/javalib/src/main/scala/java/util/UUID.scala#L137-L145 /cc @sjrd
I added a test for this in https://github.com/scala-native/scala-native/commit/0847cfa75241272bd3d6917ee44340bbce6ebd9d. It passes on JVM and fails on Native.
Targeting 0.4.x.
I apologize that I don't have time to minimize this at the moment. To replicate, check out https://github.com/fthomas/refined/commit/3916b07c1e6934a2c8fe83d75dc10e36d4165d28 and run `catsNative/test`.
``` $ wget https://repo1.maven.org/maven2/org/scala-native/nir_2.12/0.4.5/nir_2.12-0.4.5.jar $ less nir_2.12-0.4.5.jar | head -n 30 Archive: nir_2.12-0.4.5.jar Length Method Size Cmpr Date Time CRC-32 Name -------- ------ ------- ---- ---------- ----- -------- ---- 313...
```scala //> using scala "3.1.2" //> using platform "native" @main def main = new scala.util.matching.Regex("\\u2070") ``` ``` java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 1 \u2070 ^ at java.lang.StackTrace$.currentStackTrace(Unknown Source) at...
Something analogous to Scala.js `TypedArrayBuffer` for creating `ByteBuffer` from `Int8Array`. https://www.scala-js.org/api/scalajs-library/latest/scala/scalajs/js/typedarray/TypedArrayBuffer$.html