Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sjrd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
121.
▲
by
sjrd
7y ago
sbt is not the only build tool that supports Scala.js. I at least know of support for Maven [1], Pants [2], Gradle [3] (a bit outdated that one, but an interested person could revive it), and there seems to be a path forward for Bazel [4].
122.
▲
by
sjrd
7y ago
If you're into JSX, then probably Bindings.scala is a better fit for you: https://github.com/ThoughtWorksInc/Binding.scala#step-3-crea...
123.
▲
by
sjrd
7y ago
scalac is only slow when it needs to compile an entire project. But the Scala tooling ecosystem has invested a lot in incremental compilation, which means that most of the time when you make a change, only 1 or 2 files are recompiled, whi
124.
▲
by
sjrd
7y ago
There is a significant difference between CLJS and Scala.js regarding their use of GCC (Google Closure Compiler). In ClojureScript, GCC is a user-visible feature of the toolchain, so users are encouraged to use GCC-compatible libraries and
125.
▲
by
sjrd
7y ago
Yes once you're at 90 KB the slope will be much less. It will simply grow with the actual code of your app.
126.
▲
by
sjrd
7y ago
The bare minimum for a hello world is 6 KB (before gzip). But of course as soon as you start using Scala collections, it's getting bigger. The minimum for a realistic application is 90 KB (before gzip). That's less than your typ
127.
▲
by
sjrd
7y ago
It's exactly like TypeScript. You write type definitions or you find them online, like in TypeScript, then you can call any JavaScript API using the relevant types. Full relevant docs at https://www.scala-js.org/doc
128.
▲
Scala.js 1.0.0-RC1
(scala-js.org)
100 points
by
sjrd
7y ago
|
55 comments
129.
▲
by
sjrd
7y ago
In French, and more specifically French as spoken in some areas in Switzerland, there is a very natural way of pronouncing hex numbers: 1 to F are the normal 'un' to 'quinze'. A is 'dix'. 10 is 'seize'
130.
▲
by
sjrd
7y ago
It's all in the issue tracker: https://github.com/scala-js/scala-js/issues . Look for issues attached to 1.x milestones.
131.
▲
by
sjrd
7y ago
The home grown GC is actually an Immix GC at the core. See the original paper at http://www.cs.utexas.edu/users/speedway/DaCapo/papers/immix-...
132.
▲
by
sjrd
7y ago
> is not The Driver for Scala to interact with Apache Spark ? A gateway drug? Perhaps. A driver? Perhaps. The only driver? Nope. For example Scala is used a lot for regular Web servers. > Secondly, it seems from comments here that
133.
▲
by
sjrd
8y ago
It's always important to put things into context. If you're developing a hello world or a few animations for your mostly static web site, the initial "tax" of Scala.js will always be too heavy. It's not so much the
134.
▲
by
sjrd
8y ago
Wasm will not influence Scala.js' semantics. Scala.js "folding back into Scala" would be a regression as far as development for JavaScript platforms goes. Scala without Scala.js means a Scala that cannot interact with its env
135.
▲
by
sjrd
8y ago
Hi, author here. Feel free to ask any question :-)
136.
▲
by
sjrd
8y ago
No, but I do work for the Scala Center ( https://scala.epfl.ch/ ).
137.
▲
by
sjrd
8y ago
> Source: can read them without my glasses :) I can't :-p
138.
▲
by
sjrd
8y ago
Thanks :)
139.
▲
by
sjrd
8y ago
Author here, in case you have any question ;)
140.
▲
by
sjrd
8y ago
OMG, I had no idea. I TA'ed this course 3 years ago. I wish the project had been the GB emulator at the time ... I would have had so much fun :-p
141.
▲
by
sjrd
8y ago
I've implemented support in the Scala.js compiler to emit Longs (64-bit signed integers) as BigInts about 6 weeks ago. [1] Unfortunately, without specific optimizations that are not part of the baseline currently implemented in V8, thi
142.
▲
by
sjrd
9y ago
> Surrogates are actual codepoints, the range U+D800 to U+DFFF is reserved exclusively for that use: Yes ... and no. In a UTF-16-encoded string, surrogates lose their status of code point (which they would have in a UTF-32- or a UCS-2-en
143.
▲
by
sjrd
9y ago
Nope, nothing to do with surrogates either. Surrogates are code points encoded with 2 code units of 2 bytes each. A number of emoji, like the heart, are coded using multiple code points , which is even more bizarre.
144.
▲
by
sjrd
9y ago
> I haven't seen a fully static transpiled language deal with that gracefully, but I'd love to be wrong about that! Scala.js is specifically designed to be very good at this. You might want to give a shot, if you haven't a
145.
▲
by
sjrd
9y ago
Maybe, but at what cost? I wouldn't be surprised if the cost of verifying the machine code was higher than the cost of compiling wasm to machine code.
146.
▲
by
sjrd
9y ago
I understand all that. I have been writing compilers for more than 10 years, including the compiler of Scala.js. I am not criticizing wasm nor its benefits. What I profoundly dislike is that such good articles about wasm, written by excelle
147.
▲
by
sjrd
9y ago
asm.js was not a well-behaved subset of JavaScript. It was a well-behaved subset of assembly that happened to be encoded in JavaScript. There is virtually no human-written JS code that is amenable to compilation to wasm in a meaningful way.
148.
▲
by
sjrd
9y ago
See my answer here: https://news.ycombinator.com/item?id=16169705
149.
▲
by
sjrd
9y ago
I can't tell whether you're being sarcastic or not, so I will answer as if you are not. Yes, it is absurd. Because your wasm that was compiled from JS needs to embed an entire implementation of the dynamic nature of JS. And to mak
150.
▲
by
sjrd
9y ago
That would assume you trust the server not to give you malicious machine code (which you of course cannot!). wasm is specified in such a way that it is still sandboxed by the VM that compiles it. If you fetch arbitrary machine code, you can
More ›