It's been a while since I posted anything here, so I think it's better to just leave a pinned tweet.
I might still post some important announcements, but if you want to follow me, do so at @[email protected] (or just https://t.co/IQ7eT9Pgrt) where I share all my updates.
@Anh32920995@jdegoes Indeed, the issue seems to be fixed in 3.6 by https://t.co/g2RWL0woET
I don't see that widenPrefix method in 3.3.5, so I'll assume that the bug is not present in the LTS series.
Published a port of https://t.co/oRtHLVcYak to Scala, cross-compiled to JVM/JS/Native.
It's now easier than ever to generate QR codes in Scala. 🙂
Check it out at https://t.co/XTs1PlH0oR
@velvetbaldmime How long have you been using westerm?
I tried it ~2 months ago, but gave up due to issues with JLine (SBT and scala CLI bugged out)
Did you do something special, or does it "just works" now?
@lukasz_bialy A bit off-topic, but:
> That's a take I'd like to discuss.
I think it would be great to also have this discussion on a proper forum, like https://t.co/G54coGk06D.
This topic is quite nuanced, but having to reply with a limited char count makes that hard to express 😅.
@kubukoz@lukasz_bialy@hmemcpy I think your Playdate example is a great example of that. You probably won't be able to compile a game with GraalVM to run there.
I understand that SN is also still very limited on that aspect and needed a bunch of hacks on top, but it's getting better every day.
@kubukoz@lukasz_bialy@hmemcpy I should have rephrased that: I don't think the goal is to minimize the GC impact, the goal would be to target systems where the running a JVM is not viable.
In which case you are probably very memory limited, so you just can't allocate at will and let the GC deal with it later.
@kubukoz@lukasz_bialy@hmemcpy To be fair, I think the main reason people don't use SN is because they can use Scala on the JVM instead.
It's hard to predict what would be the differentiating feature that would trigger a switch, with "low-GC" code being one possibility (e.g. for embedded systems).
@ghostdogpr@lukasz_bialy For me, at its current state, the main use cases are:
1. Small tools/scripts with instant startup
2. Being able to generate Windows binaries
While Java claims jars to be easy to distribute, sometimes it's hard to beat an .exe in a USB drive.
@lukasz_bialy This is not just dependent on Native, though.
Projects like the Scala Toolkit and Scala CLI, along with libraries like Cue4s are essential on making Scala a viable language for "native scripts".
@lukasz_bialy I can't speak for the "more people", but regarding companies, I don't think it's yet stable enough to be used in production.
I do use some scala-cli scripts compiled with SN at work, and I imagine that will be the "gateway drug" for most companies.
@velvetbaldmime ```
def hello(u: Int) =
val r = scala.util.Random.nextInt(10_000)
val a = Array.ofDim[Int](10_000)
var i = 0
while (i < 10_000)
var j = 0
while (j < 100_000)
a(i) = a(i) + u
j += 1
a(i) += r
i = i + 1
println(a(r))
```
@velvetbaldmime FYI, I think you messed up on the inner loop... based on https://t.co/50iB24MObA, I think the inner loop is supposed to go up to 100_000.
@velvetbaldmime@lukasz_bialy > I bought twitter premium just post this. Think what you will about what it says about my business savviness..
You should have posted on twotm8 and just shared the link here
On a more serious note, 💯 post.
Just released Minart 0.6.2 with experimental support for vector graphics and faster convolutions. https://t.co/S5ZxlIrw8p
Here's a quick demo of Scala-kun (https://t.co/irajFjKCAW) made with vector shapes and motion blur: https://t.co/MlH17qBunD
@Krever01 Not to put down your achievement, but I was a bit surprised that your name is Wojciech 😯
Voytek=Wojciech sounds a bit obvious in hindsight. Since I couldn't put those two together, I think I'll skip the IQ test 😅
@kubukoz@kkondzielski As an extra, here's some screenshots to show what I mean. Firefox on Android vs Chrome on Android (icons and visiting an external page).
@kubukoz@kkondzielski And, at the end of the day, you want to make sure your app keeps working even for those using some weird default browser that came with their budget phone.
But maybe things will improve in the future, I do like the idea of PWAs instead of wrapping stuff in Electron.
6/6