Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:10
    WojciechMazur synchronize #2443
  • 07:30
    shadaj synchronize #1571
  • 07:29
    shadaj synchronize #1571
  • 07:28
    shadaj synchronize #1571
  • 07:20
    shadaj synchronize #1571
  • 06:19
    shadaj synchronize #1571
  • 06:03
    shadaj synchronize #1571
  • 04:43
    shadaj synchronize #1571
  • 04:00
    shadaj synchronize #1571
  • Dec 05 16:44
    densh commented #2435
  • Dec 05 16:38
    densh synchronize #2443
  • Dec 05 16:26
    densh edited #2443
  • Dec 05 16:25
    densh commented #2443
  • Dec 05 16:25
    densh edited #2443
  • Dec 05 16:24
    densh commented #2443
  • Dec 05 16:23
    densh opened #2443
  • Dec 04 12:51
    david-bouyssie commented #2436
  • Dec 03 20:04
    ekrich commented #2437
  • Dec 03 20:00
    ekrich commented #2437
  • Dec 03 19:46
    WojciechMazur commented #2437
Eric K Richardson
@ekrich
@densh I will go ahead and do that, thanks.
João Costa
@jd557:matrix.org
[m]
So, the bot just joined. Can I try to setup de bridge?
João Costa
@jd557:matrix.org
[m]
!discord bridge 632150470000902164 635668881951686686
Discord Bridge
@_discord_bot:t2bot.io
[m]
ERROR: insufficient permissions to use this command! Try !discord help to see all available commands
Eric K Richardson
@ekrich
@jd557:matrix.org They are trying to figure out the best way to do this from an admin point of view. In discord #admin is the best bet.
João Costa
@jd557:matrix.org
[m]
👍️
Anton Sviridov
@velvetbaldmime:matrix.org
[m]
I'm watching video with @WojciechMazur, and I think this bit is incorrect?
I.e. I'd expect native0.4 to go before the scala version
Eric K Richardson
@ekrich
Yes, you are correct.
Eric K Richardson
@ekrich
@catap did you see the chats on Discord now? https://discord.gg/YCACkcFV
Kirill A. Korinsky
@catap
@ekrich not yet!
Wojciech Mazur
@WojciechMazur
Most of the Scala related chats are moving to Discord, so does the Scala Native. It's probably going to be a main place of discussions now
Ergys Dona
@errikos
The discord link above does not work anymore, anyone can send a new one? Thanks!
nvm found it :)
Eric K Richardson
@ekrich
:+1:
Hanns Holger Rutz
@Sciss
Seeing that shadaj's work on 32-bit support has been added to 0.5.0 milestone - does that mean that 0.5.0 will have straight forward support for WASM, or is that entirely adjacent?
Eric K Richardson
@ekrich
I think that is adjacent. 32 bit is a breaking NIR change so I think that is why it is planned for 0.5.0. Perhaps using the shared library would work for WASM. Pretty sure that is not merged yet. Perhaps someone with an interest needs to work on it and see what can be done.
Andriy Plokhotnyuk
@plokhotnyuk
Please vote if you use IntelliJ IDEA for projects with CrossType.Full cross-build: https://youtrack.jetbrains.com/issue/SCL-19567
ankusharya
@ankusharya
Is scalanative 0.4.0 supported in wsl (windows subsystem linux) Windows?
Erik Bruchez
@ebruchez
@plokhotnyuk Just voted!
Eric K Richardson
@ekrich
It should be.
Eric K Richardson
@ekrich
@ankusharya Yes, I had the 0.4.0-M2 and it works in WSL1 (I am unable to get networking to work in WSL2). So 0.4.0 works as well. Do you have your project on the WSL filesystem? I remember reports that it won't work if the project is on the C drive. Release 0.4.1 coming soon will have initial support for native Windows (non-WSL) as well. You could try adding logLevel := Level.Debug in your build.sbt to see if you get more info on the crash.
We are also on Discord - https://discord.gg/scala
Vasil Vasilev
@vasilmkd
Congratulations on the release! I have a question from a library maintainer’s perspective. Is 0.4.1 forwards compatible with 0.4.0? If it isn’t I would like to release a version with the minor version incremented. Thanks in advance
Vasil Vasilev
@vasilmkd
I guess the answer is no, to my question
I tried publishing a local library with 0.4.1 and tried to use the library in a 0.4.0 project
and got the following linking error
[error] scala.MatchError: 170 (of class java.lang.Integer)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.getInst(BinaryDeserializer.scala:106)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.$anonfun$getInsts$1(BinaryDeserializer.scala:103)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.$anonfun$getSeq$1(BinaryDeserializer.scala:41)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.$anonfun$getSeq$1$adapted(BinaryDeserializer.scala:41)
[error]         at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
[error]         at scala.collection.immutable.Range.foreach(Range.scala:158)
[error]         at scala.collection.TraversableLike.map(TraversableLike.scala:286)
[error]         at scala.collection.TraversableLike.map$(TraversableLike.scala:279)
[error]         at scala.collection.AbstractTraversable.map(Traversable.scala:108)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.getSeq(BinaryDeserializer.scala:41)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.getInsts(BinaryDeserializer.scala:103)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.getDefn(BinaryDeserializer.scala:168)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.$anonfun$deserialize$1(BinaryDeserializer.scala:35)
[error]         at scala.collection.Iterator.foreach(Iterator.scala:943)
[error]         at scala.collection.Iterator.foreach$(Iterator.scala:943)
[error]         at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
[error]         at scala.collection.IterableLike.foreach(IterableLike.scala:74)
[error]         at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
[error]         at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
[error]         at scala.scalanative.nir.serialization.BinaryDeserializer.deserialize(BinaryDeserializer.scala:32)
[error]         at scala.scalanative.nir.serialization.package$.$anonfun$deserializeBinary$1(package.scala:27)
[error]         at scala.scalanative.nir.serialization.package$.withBigEndian(package.scala:18)
[error]         at scala.scalanative.nir.serialization.package$.deserializeBinary(package.scala:27)
[error]         at scala.scalanative.linker.ClassPath$Impl.$anonfun$load$2(ClassPath.scala:58)
[error]         at scala.Option.map(Option.scala:230)
[error]         at scala.scalanative.linker.ClassPath$Impl.$anonfun$load$1(ClassPath.scala:56)
...
updating the project to 0.4.1 links correctly
Alex Henning Johannessen
@ahjohannessen
@vasilmkd I think most of the devs are on Discord :)
Vasil Vasilev
@vasilmkd
@ahjohannessen thanks
ankusharya
@ankusharya
@ekrich I develop small automation tools for some tasks. I recently switched to Windows. Thanks for the reply. I have opened a bug on scalanative issues page and provided all the details about my setup and ways to reproduce it. I also on discord and have joined the scala server there but i thought scala-native channel on discord is not the right place to ask about such issue.
Lorenzo Gabriele
@lolgab
@ankusharya You can consider the #scala-native channel in discord equivalent to this chat here. Since the community is small enough, we can talk about specific topics inside the channel :-) Of course related with Scala Native :)
Tim Stewart
@timjstewart

I'm on arch linux trying to use os-lib and I'm getting some linker errors:

[error] Found 2 missing definitions while linking
[error] Not found Top(os.walk$)
[error]         at /home/tim/src/scalaNative/json-transformer/src/main/scala/Main.scala:14
[error] Not found Top(os.package$)
[error]         at /home/tim/src/scalaNative/json-transformer/src/main/scala/Main.scala:14
[error] Undefined definitions found in reachability phase

My build.sbt:

scalaVersion := "2.13.6"
nativeLinkStubs := true
enablePlugins(ScalaNativePlugin)
libraryDependencies ++= Seq(
  "com.lihaoyi" %% "os-lib" % "0.7.8"
)
Eric K Richardson
@ekrich
I think your should 3 %%% for native. See above - most people are on Discord now.
Tim Stewart
@timjstewart
@ekrich that fixed my problem. Thanks!! And thanks for the note about discord!
Eric K Richardson
@ekrich
Very cool 😎
ayush9999-qa
@ayush9999-qa
Hello, is there any tool to perform RTS (Regression test selection) for scala?
Lorenzo Gabriele
@lolgab
@ayush9999-qa I think you want to ask this question in discord's #scala-users channel. This channel is specific to the Scala Native project: https://scala-native.readthedocs.io
1 reply
Hanns Holger Rutz
@Sciss
quick question - is it possible to use SN on a Raspberry Pi Zero 2W ? "a quad-core 64-bit ARM Cortex-A53". Has only 512 MB RAM so a bit prohibitive for JVM
Erik Bruchez
@ebruchez
I don't have an authoritative answer but I don't see why not given the hardware specs. Even 32-bit support has been in the works for a while scala-native/scala-native#1571
daniel-s
@daniel-s
Is it possible to use gdb with Scala Native?
Wojciech Mazur
@WojciechMazur
Yes, and no. You can debug assembly, but it does not contain source code/variables etc. Symbols are only present in function calls/stacktrace
Eric K Richardson
@ekrich
@Sciss I have run Scala Native on Rasp PI 4 with 64 bit Ubuntu and also have made hello world work for the 32bit branch. In both these cases I used Java on the box to run sbt to compile and link. With only 512, I think you would have to cross compile on something else with more memory.
Hanns Holger Rutz
@Sciss
Ok, thanks; so I take away that it does work on 64-bit ARM without requiring an experimental branch of SN. Can you compile on the desktop for that arch even if your host system there is AMD 64?
Eric K Richardson
@ekrich
Yes, it work unchanged on 64 bit ARM. I have not cross compiled on AMD for ARM. We added the ability to provide the target triple but don't know how the rest of that process works - install the ARM includes and libs? If you can achieve this is would be great to add a How-to in the docs. All we have so far - https://scala-native.readthedocs.io/en/latest/user/sbt.html#cross-compilation-using-target-triple
Hanns Holger Rutz
@Sciss
ok, i'll try
Eric K Richardson
@ekrich
:thumbsup: Good luck.