Re:Scala React interface: Cross-platform apps using Scalajs
by warfangle on Monday October 12, 2015 @03:05PM
(#10376402)
How is scalajs now? The last time I checked it out, it baked in about 100KB of overhead into the simple hello world.
[ Parent
| on HN ]
Re:Scala React interface: Cross-platform apps using Scalajs
by eeperson on Monday October 12, 2015 @04:45PM
(#10376860)
According to this[1], as of 2 years ago, hello world was only 2.63KB. It's probably even better now as there have been several releases in the past 2 years.
[1] - https://github.com/scala-js/scala-js/issues/4#issuecomment-2...
Re:Scala React interface: Cross-platform apps using Scalajs
by sjrd on Monday October 12, 2015 @05:49PM
(#10377149)
20 KB is as low as it gets, these days (not gzipped). But really, that doesn't matter in the least, because you don't write Hello World's with Scala.js. You write larger apps for which the cost of these few tens of KB is completely dwarfed by the size of your application code. Remember that jQuery itself is 40 KB, and nobody complains about it.
Re:Scala React interface: Cross-platform apps using Scalajs
by paulddraper on Monday October 12, 2015 @07:53PM
(#10377581)
My experience too.
But that goes down to like 50k after compression. Some logos are bigger than that.
Not trivial, but for a lot of use cases, that's good enough. Especially if you cache appropriately.