News for hackers. Stuff that matters.
Re:Advanced programming languages (2009) by kmiroslav on Sunday June 19, 2016 @01:58PM (#11933852)
The size of the Javascript generated by Scala.js alone makes it a non starter for serious projects.
Re:Advanced programming languages (2009) by premium-concern on Sunday June 19, 2016 @04:41PM (#11934583)
Yeah, these tens of kilobytes of JS next to those ten badly compressed 600kB jpgs are really killing it.
Re:Advanced programming languages (2009) by dastbe on Sunday June 19, 2016 @06:46PM (#11935087)
this isn't a fair comparison. It fails to account for what happens after the files are downloaded, which is where overall js code size has an outsized effect.
Re:Advanced programming languages (2009) by premium-concern on Monday June 20, 2016 @07:15AM (#11937272)
I think people have been including jQuery just fine for the last decade.
Re:Advanced programming languages (2009) by dastbe on Monday June 20, 2016 @11:40AM (#11938705)
Yes, but jquery is much smaller than an empty scala.js app. jquery is about 25kb gzipped and minified (the other comment used the raw size) whereas scala js is 45kb for an empty application.
Re:Advanced programming languages (2009) by raquo on Monday June 20, 2016 @04:04PM (#11941023)
TBH, You don't use scala.js to write hello world apps. I'm much more curious how Scala.js handles a 100Kloc app, but I haven't seen any data on that.
Re:Advanced programming languages (2009) by idobai on Sunday June 19, 2016 @02:11PM (#11933916)
Look at here: https://www.scala-js.org/

"The generated JavaScript is both fast and small, starting from 45kB gzipped for a full application." - 45kB... jQuery is ~80kB.

Re:Advanced programming languages (2009) by dastbe on Tuesday June 21, 2016 @11:11AM (#11946199)
jQuery gzipped and minified is 25kb. You're comparing raw to compressed.
Re:Advanced programming languages (2009) by watchxxx on Sunday June 19, 2016 @08:52PM (#11935513)
Cedric, how does a 45KB js file make Scala a non-starter?