Earlier quoted context omitted.
Maybe. OpenGL has a lot of history and baggage. I'm pretty sure the current browser engines don't use OpenGL for 2d graphics. I think they still use Skia (Chrome) and Cairo (WebKit). It could be as "easy" as allowing calls to be made directly to those graphics libraries in WebAssembly.
In any case, it should be hierarchical. It should be simple and efficient to move an object and all its children around.
Bringing the web up to speed with WebAssembly
121–130 of 172 posts
Re: Bringing the web up to speed with WebAssembly
#122Earlier quoted context omitted.
In any case, it should be hierarchical. It should be simple and efficient to move an object and all its children around.
I think you're missing the point. An object and child hierarchy is too high level for what I'm suggesting. Just expose the graphics library and let the programmers handle the rest. If you want something hierarchical that's simple and efficient to move an object and all its children around, great. You write that for your applications. Make it into a framework if others want to use it. But if somebody wants to use a di…
Re: Bringing the web up to speed with WebAssembly
#123Yet, almost one year after its release, nobody makes money directly or indirectly with wasm... despite the beauty of its engineering, I'm starting to worry. Who will continue funding it if nobody uses it?
Re: Bringing the web up to speed with WebAssembly
#124Earlier quoted context omitted.
And how long do you think that'll last? As developers stubbornly persist in trying to make desktop applications on the web, they'll demand more and more access to the host, and browser developers will give it to them in an effort to one-up each other. If anyone had actually cared about security on the web we wouldn't be where we are now.
Your phrasing leads me to believe that you distrust how web standards organizations approve new features? If that's not the case then I invite you to join the W3C Community Group and help avoid insecure additions w3.org/community/webassembly/
And we already have a bluetooth stack for the web, USB drivers in JS, etc.
Re: Bringing the web up to speed with WebAssembly
#125Of course I accepted that they surely had some good reasons for doing it the way they did, but the paper has some interesting specific points in favor of the Webassembly and against existing stuff like the JVM (easier verification of the bytecode etc.).
Re: Bringing the web up to speed with WebAssembly
#126Earlier quoted context omitted.
I hope not as HTML has accessibility built in while canvas doesn’t. No need to take a step backwards on this. I’m okay with rendering to canvas but long as accessibility is taken into account. (Hint: most of the time it is not.)
HTML is also much a more convenient encoding for content than writing on the canvas. It's fully declarative¹ and everything. Yet, plenty of people already prefer to send you a black page and manually write everything on the DOM's document. I certainly do not understand them, but they are way too common. 1 - You just write your content, and it's there. There isn't more declarative than that.
Re: Bringing the web up to speed with WebAssembly
#127This is probably hand-waving but : instead of implementing threads directly into the WebAssembly language, would it make sense to compile a known micro-kernel to WebAssembly and then compile the C standard library (which, IIRC, implements threads)?
This wouldn't help at all. Kernels (micro or no) can only implement preemption with the help of hardware timers (and, if you want parallelism, hardware cores), which Webassembly cannot access. (The C library does not implement threads; it merely wraps the kernel's implementation of them.) So at some level WebAssembly itself must provide some sort of primitive for threading, or else at best you'll get cooperative coro…
Re: Bringing the web up to speed with WebAssembly
#128Earlier quoted context omitted.
I'm quite excited about WASM (as I was, admittedly, about Java Applets in the 90s), but this is a question that haunts me. I wish someone with better understanding of WASM and Java than me could write up why byte code delivery to a sandboxed VM in the browser failed in the 90s and why we should believe it will succeed now, or what exactly WASM brings to the table that Java didn't.
Along with the other responses, the JVM imposes its own object model on any language implemented on top of it. WebAssembly does not, so it is vastly simpler and more flexible. For example, you had to rewrite your apps to run as Java applets. You do not have to rewrite things to run on WebAssembly- all the existing C, C++, etc. code is compatible, up to the platform API.
Re: Bringing the web up to speed with WebAssembly
#129Earlier quoted context omitted.
Your phrasing leads me to believe that you distrust how web standards organizations approve new features? If that's not the case then I invite you to join the W3C Community Group and help avoid insecure additions w3.org/community/webassembly/
That doesn’t help, as the browser vendors ignore the W3C entirely anyway, and just do stuff in the WHATWG. And we already have a bluetooth stack for the web, USB drivers in JS, etc.
Re: Bringing the web up to speed with WebAssembly
#130Url changed from https://blog.acolyer.org/2017/09/18/bringing-the-web-up-to-s... , which points to this. acolyer.org's glosses on papers are excellent and I like reading them myself, but sometimes it's a bit of a struggle knowing where to situate them on HN given the original source rule ( https://news.ycombinator.com/newsguidelines.html ). Edit: changed my mind. Like I said, a bit of a struggle.