Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sjrd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
sjrd
5y ago
It is web-based, yes. I was aware of WebRTC but assumed I would need a least to host the server myself. I'm looking at the links you provided and they seem very interesting. Thank you.
92.
▲
by
sjrd
5y ago
I'm also writing an online version of a board game I like, to play with family and friends. I am about to start the networking part, and I actually intended to implement the deterministic approach, although I didn't know the conce
93.
▲
Scala.js 1.7.0 released with “zero known bugs”
(scala-js.org)
3 points
by
sjrd
5y ago
|
2 comments
94.
▲
by
sjrd
5y ago
I'm afraid not. Otherwise I would have had some head start for this one. ;-)
95.
▲
by
sjrd
5y ago
I'm not an expert in regexes in other platforms, but already if you want a common subset between Java and JS, you're limited to the following constructs: * Literal characters * Some escape sequences for literal characters: \t \r \
96.
▲
by
sjrd
5y ago
I'm curious: what is the advantage of a custom engine over calling the JavaScript's `RegExp` via the interop layer of Wasm<->JS? I guess you'd have to convert the Wasm input string to a JS string, but is there any other
97.
▲
by
sjrd
5y ago
I'd be happy to help, if someone wants to take the lead, and there is buy in from the maintainers of Regexr. I believe my contact is available in my profile. Otherwise, I'm really not hard to find on the internet. ;)
98.
▲
by
sjrd
5y ago
Not directly related, but recently I've built a regex engine that was a bit different: I implemented the semantics of Java's java.util.regex.Pattern on top of JavaScript's RegExp. This is for Scala.js' implementation of
99.
▲
by
sjrd
5y ago
Those combinations are indeed quite common in Belgium. Another example: myself :-p (Sébastien Doeraene).
100.
▲
Git Commands Visualizer, in Scala.js
(ssdong.github.io)
2 points
by
sjrd
6y ago
|
0 comments
101.
▲
by
sjrd
6y ago
This kind of hacks is a major part of how we made Scala.js' 64-bit integers fast (the fastest known implementation of 64-bit integers on JavaScript). See [1] for the implementation, and [2] at section 4.4 for the long explanation with
102.
▲
by
sjrd
6y ago
It's a specific term used in the ECMAScript specification [1]. That refers to any object for which at least one internal method does not behave like for a standard object created for example with `{}`. [1] http://www.ecma-in
103.
▲
by
sjrd
6y ago
> So far the easiest JSON library has been Li Haoyi's uPickle: https://www.lihaoyi.com/post/HowtoworkwithJSONinScala.html > Still, it does not parse JSON where objects have uknown arbitrary value types. Arbi
104.
▲
by
sjrd
6y ago
https://dotty.epfl.ch/docs/reference/overview.html and associated pages.
105.
▲
by
sjrd
6y ago
Your comment makes sense if we think of FP as being about "function values". In a world where all sorts of programming languages have function values, this is not a strong enough characterization anymore (if it ever truly was). Fu
106.
▲
by
sjrd
6y ago
> ReScript is more correct than scala, ReScript's type system(essentially borrowed from OCaml) is sound while scala is unsound. Ah, I did not make it clear what I meant by "correct" in this context. I meant "faithful
107.
▲
by
sjrd
6y ago
I'm sorry but that statement is simply false. Scala does default to, and encourage, immutability.
108.
▲
by
sjrd
6y ago
In the small, Rescript generates smaller code than Scala.js, that is true. It is mostly a question of the interdependencies in the standard Scala collection library, though, not so much the semantics of the language. And Scala.js also has i
109.
▲
by
sjrd
6y ago
> Some people view them as irritating annoyances that should be pushed to some forum like stack overflow though. I maintain a fairly large open source project. We close "issues" that are support requests on sight, with a more-o
110.
▲
by
sjrd
6y ago
Absolutely. That guy's video may have caused a lot of spammy PRs, but I'm pretty sure they're far from the majority.
111.
▲
by
sjrd
6y ago
This is unfortunately so true. Last year I got away with "only" 4 or 5 spam PRs (and 0 legitimate one). But this year I've already got 2 before my timezone reached October! Digital Ocean, please stop this.
112.
▲
by
sjrd
6y ago
It depends. GCC (the Google Closure Compiler) indeed does some transformations that will improve run-time performance, but it is not its forte, and definitely not its primary goal. In the benchmarks of Scala.js [1], another compiler that us
113.
▲
by
sjrd
6y ago
> but Scala does give a lot of niceties IF AND ONLY IF you're willing to learn how to program the more pure functional side of things. I disagree. Context: Scala has been my language of choice for the past 9 years, and I'm the
114.
▲
by
sjrd
6y ago
Incidentally, I started my PhD around the time this article was written. My thesis, which discusses the design and implementation of Scala.js, ended up being titled "Cross-Platform Language Design" [1], as it focuses on the langua
115.
▲
by
sjrd
7y ago
For a privacy-preserving alternative, see Pan-European Privacy-Preserving Proximity Tracing ( https://www.pepp-pt.org/ ) which was announced today.
116.
▲
by
sjrd
7y ago
I believe the biggest challenge has actually been to resist scope creep. Knowing where to stop, and push back when users would like us to add something that does not fit the scope, is sometimes difficult. Scala.js was never a toy project. I
117.
▲
by
sjrd
7y ago
Author and lead maintainer here. Ask me anything. :)
118.
▲
Scala.js 1.0.0 Is Released
(scala-js.org)
37 points
by
sjrd
7y ago
|
3 comments
119.
▲
by
sjrd
7y ago
But not on mobile nor with a modern Firefox' reader mode ...
120.
▲
by
sjrd
7y ago
Workbench [1], for example :) [1] https://github.com/lihaoyi/workbench
More ›