Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sjrd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
sjrd
3y ago
My first name (Sébastien) fits in latin1 (ISO-8859-1) and I still can't trust airlines websites to deal with it correctly, so I remove the (mandatory in French) diacritic. I don't know how people with names outside of that range n
62.
▲
by
sjrd
3y ago
In the Scala ecosystem, MiMa [1] has been in widespread use for years. It automatically checks compatibility for the binary API of a library. Every library with any amount of success uses it. One could say it's the foundation of a stab
63.
▲
by
sjrd
3y ago
At least in Scala, code completion in the IDE does include available extension methods.
64.
▲
by
sjrd
3y ago
Scala 3 has actual `extension` methods, which have a much clearer intent. https://docs.scala-lang.org/scala3/book/ca-extension-methods...
65.
▲
by
sjrd
3y ago
Bare ECMAScript does require normalization [1] and case conversions (for the root locale only) [2]. [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [2] https://developer.mo
66.
▲
by
sjrd
3y ago
You can use comparatives, like "simpler", usually without issues. Something can be simpler than something else without necessarily being simple. Superlatives like "simplest" can sometimes be used as well. After all, bein
67.
▲
by
sjrd
3y ago
Ah ah, similar experience here as well, though through the board game Terraforming Mars.
68.
▲
by
sjrd
3y ago
The JVM flavor of Scala has built-in interoperability with Java. Scala.js has built-in interoperability with JavaScript instead. And Scala Native has built-in interoperability with C.
69.
▲
by
sjrd
3y ago
You are right. See my other comment for some more details.
70.
▲
by
sjrd
3y ago
As others have mentioned, Indigo is entirely written in Scala.js. Therefore, it runs on JavaScript in browsers. There is no JVM at all at run-time. (A JVM is required to compile the code, but what you run and deploy has no dependency on a
71.
▲
Faster Scala.js development with front-end tooling and new tutorials
(scala-lang.org)
2 points
by
sjrd
3y ago
|
0 comments
72.
▲
by
sjrd
4y ago
Scala has had all of that for years. This JEP literally copies the design of Scala string interpolators. Except that Scala has macros so, if desired, a string interpolator can perform validation at compile time, making it even more secure
73.
▲
by
sjrd
4y ago
That reminds me of a real world experience I had a few years ago, where a real engine in front of my eyes looked like CGI. I was on a small cruise on Switzerland's PS Gallia [1], the fastest lake steamboat in Europe. When you're o
74.
▲
by
sjrd
4y ago
Yes, it does. This is what Dynamic Imports are for. See https://www.scala-js.org/doc/project/module.html#dynamic-imp...
75.
▲
by
sjrd
4y ago
There's no runtime. The Scala language is compiled to JavaScript. There is no interpreter in JavaScript that runs the Scala code. There is a cost for the standard collections library (from 100 to 200 KB depending on what you use) but o
76.
▲
by
sjrd
4y ago
Scala.js core itself, which I maintain, does not need much innovation. We support all of Scala, and interact with any JavaScript library. That's what the core promises. If you want to compare to Scala 3, it's worth pointing out th
77.
▲
by
sjrd
4y ago
Probably all the same selling points that Scala/JVM has over Java or Kotlin. The main one would be favoring a coding style with immutable data, only reaching for mutability when necessary. If you like that style, Scala.js will help you
78.
▲
by
sjrd
4y ago
You can get facade types for any JavaScript library using https://scalablytyped.org/docs/readme.html . If types exists in the library itself or in DefinitelyTyped, you can use them. sbt is not mandatory. All the build
79.
▲
by
sjrd
4y ago
TypeScript provides static types for JavaScript. Not just the language, but its idioms, its way of writing programs. Scala.js is first Scala. That means you favor a style with immutable data, work with the great collection library of Scala
80.
▲
by
sjrd
4y ago
Author of Scala.js and of the post here. AMA.
81.
▲
by
sjrd
4y ago
I have a laptop whose keyboard is physically a QWERTY, but I configured to use (the Belgian variant of) AZERTY. There is one physical key missing on QWERTY compared to AZERTY, so there are 3 characters I cannot type normally, and not rare
82.
▲
Real-time front ends in Scala with Kalix and Laminar
(dev.to)
1 points
by
sjrd
4y ago
|
0 comments
83.
▲
by
sjrd
4y ago
As a compiler engineer myself, I dislike dogfooding in the compiler itself. It biases us to design the language for the compiler use case, and that is in fact a very niche use case. I much prefer having a side project that uses the language
84.
▲
by
sjrd
4y ago
I have been singing all day today in a choir (Rachmaninoff's All Night Vigil). Tomorrow I attend a meeting and lunch for the committee of another choir, and I conduct a third choir in the evening.
85.
▲
by
sjrd
4y ago
Because there are as many subnormal values as NaN values. At least if you don't count the two 0's, which are "paired" with the two infinities.
86.
▲
by
sjrd
4y ago
To me, if the code is not "as simple as possible, but not simpler", it is not beautiful.
87.
▲
by
sjrd
5y ago
Hum, yes, that's probably true for real-time physics.
88.
▲
by
sjrd
5y ago
I'm targeting desktop, but your point is good to know, thanks. I will keep it in mind.
89.
▲
by
sjrd
5y ago
Let's say you use JDK 17 (which re-specified float and double operations to be strict everywhere) and always use `java.lang.StrictMath` instead of `Math`, wouldn't you get determinism for all the floating point operations "fo
90.
▲
by
sjrd
5y ago
Thank you for the suggestion. However I am close to finishing all the game mechanics, just on a single computer (the game has no secret knowledge so it playable on a single computer or, at worst, via screen sharing). Also I'm implement
More ›