News for hackers. Stuff that matters.
Re:Brendan Eich: WebAssembly is a game-changer by icedchai on Thursday March 10, 2016 @07:56PM (#11263849)
The advantage? Instead of having access to a large, stable ecosystem with 20+ years of engineering behind it (Java/JVM), you'll get to use fun, new half-baked tools that barely work to build your webassembly apps.

In another 20 years time, we might be at the level of productivity we had 20 years ago with VisualBasic.

Re:Brendan Eich: WebAssembly is a game-changer by jjm on Thursday March 10, 2016 @10:15PM (#11264431)
You really think closed source Oracle is going to make applets better? People don't like applets cause the experience sucks, the tooling generally lacks, and the libraries are old.

You say that webdev is Applet 2.0? ok sure, at least it's open and moving instead of EOL'd [1] and the experience is better else wouldn't we all still be using Applets...

[1] http://www.v3.co.uk/v3-uk/news/2443810/oracle-signals-the-en...

Re:Brendan Eich: WebAssembly is a game-changer by pjmlp on Friday March 11, 2016 @01:55AM (#11265089)
No it is Applet 5.0.

Applet 2.0 was Flash, followed by Applet 3.0 aka Silverlight, followed by Applet 4.0 aka ecmspriten/asm.js.

Re:Brendan Eich: WebAssembly is a game-changer by icedchai on Thursday March 10, 2016 @11:18PM (#11264617)
Oracle isn't. Sun dropped the ball.

My point is we could've embedded JVM in the browser "correctly" instead of reinventing the wheel with another byte code format.

Re:Brendan Eich: WebAssembly is a game-changer by CyberDildonics on Friday March 11, 2016 @12:05AM (#11264757)
webasm is not a bytecode format
Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @12:41AM (#11264851)
Yes, it's an IR. It still has all of the issues a bytecode format has, and none of the size advantages.
Re:Brendan Eich: WebAssembly is a game-changer by thesz on Friday March 11, 2016 @11:39AM (#11267636)
Cannot find PDF for Slim Binaries paper by Franz, so I cite it from memory.

They used syntax trees of program as a distribution format, compressed these trees with LZW variant and executed using simple JIT compiler (basically, tree automata over program trees). The size of Slim Binaries was smaller than JAR files for comparable Java programs. I don't remember exact percentage reduction, it was about 20-40, I believe.

Re:Brendan Eich: WebAssembly is a game-changer by CyberDildonics on Friday March 11, 2016 @10:27PM (#11271253)
It is a binary AST and is explicitly made to be both compact and fast to parse.

Not all intermediate representations are bytecode.

Re:Brendan Eich: WebAssembly is a game-changer by renlo on Friday March 11, 2016 @05:09AM (#11265722)
Do you have a source that Webasm's IR won't be as compact as Java bytecode?
Re:Brendan Eich: WebAssembly is a game-changer by mbebenita on Thursday March 10, 2016 @09:15PM (#11264212)
The toolchain is C/C++/LLVM, which is pretty well baked.
Re:Brendan Eich: WebAssembly is a game-changer by drdaeman on Thursday March 10, 2016 @09:24PM (#11264233)
The toolchain, yes. I'm not sure about the libraries - especially the ones that provide the glue to the JS world (or DOM, directly). I heard there is something, say, SDL support for asm.js or emscripten, but I don't think there's a large and stable ecosystem. More like "some stuff patched to some extent".

Oh, and I think in webdev, there is a lot of... err... modern creative and innovative guys and gals out there who are always happy to rewrite the world again, because the last week's tech isn't cool anymore.

Re:Brendan Eich: WebAssembly is a game-changer by sangnoir on Friday March 11, 2016 @05:55AM (#11265858)
> I'm not sure about the libraries - especially the ones that provide the glue to the JS world (or DOM, directly)

Has the Java world come up with anything better than Swing or SWT? Because those are the libraries that are in the "stable ecosystem with 20+ years of engineering behind it", and they are terrible. Give me the 'innovative' webdev guys and gals any day.

Re:Brendan Eich: WebAssembly is a game-changer by Crespyl on Friday March 11, 2016 @10:49AM (#11267262)
We do actually have JavaFX now, which has some has some weird historical baggage from back when it was supposed to be its own platform, but is actually pretty nice to work with from a UI standpoint.

It has a XML/CSS based way to describe the UI/layout and then lets you link that to your code with annotations. It's not perfect, but it's a lot more pleasant to work with than the likes of SWT.

Re:Brendan Eich: WebAssembly is a game-changer by OpenDrapery on Friday March 11, 2016 @09:25AM (#11266759)
"Oh, and I think in webdev, there is a lot of... err... modern creative and innovative guys and gals out there who are always happy to rewrite the world again, because the last week's tech isn't cool anymore."

well said

Re:Brendan Eich: WebAssembly is a game-changer by oblio on Thursday March 10, 2016 @07:58PM (#11263865)
The advantage is that in time people agree about web standards.

Good luck getting Visual Basic adopted as an standard ;)

Re:Brendan Eich: WebAssembly is a game-changer by trentmb on Thursday March 10, 2016 @09:37PM (#11264276)
We've gotten worse.
Re:Brendan Eich: WebAssembly is a game-changer by im3w1l on Friday March 11, 2016 @01:32AM (#11264999)
Fun fact: Netscape promised to include vbscript in Navigator but it never happened.
Re:Brendan Eich: WebAssembly is a game-changer by pjmlp on Friday March 11, 2016 @01:52AM (#11265081)
Worse than that, in 2016 it still hasn't matched what VB and Delphi were capable of in the 90's.

I am really happy that our current customer projects that I am involved with, are all native mobile and desktop applications.

Re:Brendan Eich: WebAssembly is a game-changer by iheartmemcache on Friday March 11, 2016 @05:30PM (#11270016)
It's amazing, really. A few years ago I was brought in to feature-enhance (80%) / bug-fix (20%) some mil-spec hardware that interfaced with some custom Delphi front-end which was acting as a controller. I was amazed at the functionality:LOC ratio along with the correctness[0] with purely pre&post Asserts[1]. The hotel industry still largely runs on one popular Delphi app that's still chugging away. Other than MS Lightswitch which is dead[2], nothing even came close re: great RAD.

(Hey, MS employees reading this - now VS Community is free-for-commercial-use, if you want to capture the 5<=revenue<=50 MM market, replicate the Delphi + VCL ecosystem for RAD apps with Azure as the backing technology. Lightswitch already let me target WPF and HTML5, with Xamarin you now have native mobile. You pushed for an "integrated" desktop + surface/tablet + cell-phone a few years too early, but Xamarin as the presentation layer and Azure as your data-store and you've got the feature set that most businesses need. You'd put me out of business, but absolutely take over that mid-market share.)

[0] Pedants, I'm one of you. No Coq was not used in this project ;) [1] http://blog.matthewskelton.net/2012/01/29/assert-based-error... Similar to this [2] http://janvanderhaegen.com/2015/01/14/its-2015-and-lightswit...

Re:Brendan Eich: WebAssembly is a game-changer by tarsinge on Friday March 11, 2016 @04:05AM (#11265542)
Never used Delphi but after reading about it I would love an equivalent for web dev. I wrote small abstractions over Rails and or React but it's still too low level for my work.
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @08:02PM (#11263887)
Imagine you can run (efficiently) Eclipse or Lucene in any browser.

Someone try to do that with WebKit:

http://trevorlinton.github.io/

Re:Brendan Eich: WebAssembly is a game-changer by jestar_jokin on Thursday March 10, 2016 @09:55PM (#11264351)
Eclipse (Che) is already coming to the browser!

https://eclipse.org/che/

Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @12:45AM (#11264862)
Eww. One of the most beautiful parts of eclipse is the extensive level of plugins. A browser-based IDE means more painful maintenance, more painful extensibility, and a generally worse user experience. How am I going to tie into native binaries for C/C++ compilation like I can do with eclipse as is? Or the many plugins that give static checking, etc? A web-based IDE is a step backwards.
Re:Brendan Eich: WebAssembly is a game-changer by jm547ster on Friday March 11, 2016 @12:42AM (#11264855)
Joke?