News for hackers. Stuff that matters.
Re:Experimental support for WebAssembly in V8 by systems on Tuesday March 15, 2016 @10:46AM (#11289971)
does this mean i wont have to learn javascript, css, d3, svg, typescript, jquery, etc ... to make webistes and web apps
Re:Experimental support for WebAssembly in V8 by benjoffe on Tuesday March 15, 2016 @10:49AM (#11290004)
You don't need any of those to make websites and web apps already (or to be less pednantic, you don't need most of those) so I'm not sure what your question is.
Re:Experimental support for WebAssembly in V8 by megalodon on Tuesday March 15, 2016 @11:33AM (#11290376)
No idea why this was downvoted, you are correct.

Furthermore d3, typescript and jquery is javascript so the question is more like "do I need to learn how to use tools to make websites?" at which point it is kind of silly.

Re:Experimental support for WebAssembly in V8 by iLoch on Tuesday March 15, 2016 @12:21PM (#11290772)
They're being downvoted because show me useful website that doesn't have any of those things. Yes, it's technically correct to say that you don't need any of those things, but totally pedantic because you WILL use any number of them for ANY real website.
Re:Experimental support for WebAssembly in V8 by megalodon on Tuesday March 15, 2016 @12:52PM (#11291031)
Here you go: http://arxiv.org

No javascript needed to make a perfectly functional, efficient and useful website. Maybe it doesn't fit into your description of a "real" website?

Re:Experimental support for WebAssembly in V8 by iLoch on Tuesday March 15, 2016 @01:42PM (#11291481)
Uses CSS, though. Which is also on that list.
Re:Experimental support for WebAssembly in V8 by tomjen3 on Tuesday March 15, 2016 @01:08PM (#11291162)
Most if not all use CSS and javascript, but he mentioned a ton of techniques in such a way as to imply that most websites use all of them or that you needed to know all of them to do web development.

That is just not true. I am sure that most web developers don't know d3, svg (other than exporting it from a drawing program) or typescript.

Re:Experimental support for WebAssembly in V8 by euroclydon on Tuesday March 15, 2016 @10:50AM (#11290017)
Think of all the technologies you have to learn to make Desktop or Mobile Apps, or both. You'll need a language to compile to Web Assembly. Then you'll need a target display layer: DOM, SVG-DOM or Canvas. DOM support for text and user interaction is way better than SVG or Canvas.
Re:Experimental support for WebAssembly in V8 by hutzlibu on Tuesday March 15, 2016 @11:30AM (#11290355)
Yes, in the future you will be able to programm your Website in C++ and OpenGl (2.0) and export it to WebAssembler and WebGL, if you think this will be easier ...

edit: this might actually work for some people, once you can access dom elements directly, but for now it is meant for huge WebApps, like games in the browser

Re:Experimental support for WebAssembly in V8 by CyberDildonics on Tuesday March 15, 2016 @12:36PM (#11290911)
No one said it will be easier. It is meant to be faster.
Re:Experimental support for WebAssembly in V8 by hutzlibu on Tuesday March 15, 2016 @01:11PM (#11291186)
But he said it, like it might be easier for him, to avoid learning html and co in the first place ... To which I would say, if you are allready a pro at designing UI-Elements in OpenGL and c++, then yeah, otherwise probably no.
Re:Experimental support for WebAssembly in V8 by Cshelton on Tuesday March 15, 2016 @10:49AM (#11290008)
No, most things will still be done in javascript as the benefit of doing it in Wasm is negligible.
Re:Experimental support for WebAssembly in V8 by tracker1 on Tuesday March 15, 2016 @02:01PM (#11291664)
If you're targetting HTML, you will likely need at least CSS... most JS is optional, and there are compile-to options.

That said, this should allow you to target a canvas element, with minimal JS binder to wasm code... all logic including what gets rendered could be outside JS... but you'd have to think of and control all input/output, and there are other considerations for rendering performance.

Re:Experimental support for WebAssembly in V8 by IvanK_net on Tuesday March 15, 2016 @01:16PM (#11291228)
You are talking about a step in a specific direction.

If you make few more steps in that direction, you can simply write your own operating system, make native apps for it and then call it all "a website", because you can run it in a browser using e.g. this JS computer simulator https://copy.sh/v86/

Re:Experimental support for WebAssembly in V8 by spriggan3 on Tuesday March 15, 2016 @01:41PM (#11291463)
You'll still need to learn CSS and SVG as they are web techs, but you wont have to learn anything related to Javascript anymore. As for now Javascript has become irrelevant for good.
Re:Experimental support for WebAssembly in V8 by _alexander_ on Tuesday March 15, 2016 @10:58AM (#11290090)
You still need these languages/technologies and libraries.
Re:Experimental support for WebAssembly in V8 by untog on Tuesday March 15, 2016 @11:05AM (#11290153)
From my understanding, WebAssembly won't have DOM access. So it certainly won't replace jQuery, D3 or CSS any time soon.
Re:Experimental support for WebAssembly in V8 by s3th on Tuesday March 15, 2016 @11:12AM (#11290208)
WebAssembly doesn't intend to replace jQuery, D8, or CSS. However, we definitely plan to enable efficient DOM access. Doing so requires supporting some sort of native Garbage Collection, as well as the concept of opaque reference types. See more here: https://github.com/WebAssembly/design/blob/master/GC.md
Re:Experimental support for WebAssembly in V8 by tadlan on Tuesday March 15, 2016 @11:17AM (#11290260)
Any specific plans for python support?
Re:Experimental support for WebAssembly in V8 by jfbastien on Tuesday March 15, 2016 @11:44AM (#11290462)
Python is just another language VM. C Python should work just fine in WebAssembly, and bridging the APIs to the web (e.g. filesystem, etc) is already possible through Emscripten.

We don't plan to do things for WebAssembly, we plan to make WebAssembly powerful enough that anyone can run their language VM :-)

Re:Experimental support for WebAssembly in V8 by esailija on Tuesday March 15, 2016 @04:05PM (#11292560)
I think what they meant is that they could use python without having to also ship the implementation like CPython. I mean, that thing is huge. How is it feasible to serve 10mb for a website?
Re:Experimental support for WebAssembly in V8 by tanlermin on Tuesday March 15, 2016 @04:20PM (#11292660)
Yes, thats what I meant.
Re:Experimental support for WebAssembly in V8 by BuckRogers on Tuesday March 15, 2016 @02:30PM (#11291884)
That's awesome and means alongside ObjectiveC, I effectively waited out deep diving on 2 (soon to be) formerly popular programming languages. I get to use my preferred language, Python, for even more.
Re:Experimental support for WebAssembly in V8 by tadlan on Tuesday March 15, 2016 @12:02PM (#11290604)
Gotcha!
Re:Experimental support for WebAssembly in V8 by bjt on Tuesday March 15, 2016 @11:15AM (#11290241)
The article specifically mentions first class DOM manipulation as one of the next goals. That's been part of the plan from the start. Maybe you're thinking of web workers?
Re:Experimental support for WebAssembly in V8 by tadlan on Tuesday March 15, 2016 @11:09AM (#11290188)
It will eventually, iirc
Re:Experimental support for WebAssembly in V8 by coldtea on Tuesday March 15, 2016 @11:08AM (#11290179)
Yeah, you could program in C++...
Re:Experimental support for WebAssembly in V8 by tadlan on Tuesday March 15, 2016 @11:10AM (#11290196)
Or julia. Which is 1000th better than js
Re:Experimental support for WebAssembly in V8 by CyberDildonics on Tuesday March 15, 2016 @12:57PM (#11291075)
Julia would still require the garbage collector but I don't think the downvotes here are fair at all. If there was a language that would be a natural transition to people used to javascript but wanting native speed, julia would be it. In a way it is a glimpse of what javascript could have been given a lot of experience and much more design.
Re:Experimental support for WebAssembly in V8 by tanlermin on Tuesday March 15, 2016 @01:21PM (#11291273)
So how big are the Julia binaries? Would it still need a VM?
Re:Experimental support for WebAssembly in V8 by CyberDildonics on Wednesday March 16, 2016 @01:09PM (#11298903)
At the moment actually that would be a pretty big problem, the dependencies are very large, mostly because that hasn't been a priority I think.

There has been work released recently which allows programs to be compiled to native binaries if they aren't dynamically evaluating anything however.

Re:Experimental support for WebAssembly in V8 by tanlermin on Wednesday March 16, 2016 @03:48PM (#11300156)
Yea I meant the native binaries in the recent ahead of time compilation work.