News for hackers. Stuff that matters.
Re:Libc++ 9.0.0 adds explicit support for WASI by svnpenn on Friday October 11, 2019 @03:01PM (#21227354)
I still dont understand the point of this. Why are people trying to turn JavaScript into a systems programming language? It isnt, has never been, and never will be that.

If you wish to use a systems programming language, use a systems programming language. Plenty of old ones (Java, C, C++) and plenty of new ones (Go, D, Nim, Rust, Zig) are available. Its like people took a square piece of rock and said:

A: hey, lets chip off some corners so that this can roll!

B: but now its an octagon...

A: well if you put it on a hill it can tumble down!

All the while several styles of modern wheels sit behind them.

Re:Libc++ 9.0.0 adds explicit support for WASI by josephg on Friday October 11, 2019 @03:07PM (#21227418)
Uh, I think you have the metaphor the wrong way around. The goal of wasm / wasi isn’t to allow javascript to be a systems language. It’s to allow systems languages to be used in javascript, or allow them to interoperate with one another or run on different operating systems, or run on different hardware platforms.

In javascript we’ve been stuck using octagon wheels but there’s all these new modern wheels sitting around that we haven’t been able to use because browsers could only run javascript. But now we have a way to fit the modern wheels on our javascript car.

Re:Libc++ 9.0.0 adds explicit support for WASI by snagglegaggle on Friday October 11, 2019 @04:17PM (#21228054)
But I gave you octagon wheels because I don't want you using real wheels.
Re:Libc++ 9.0.0 adds explicit support for WASI by josephg on Friday October 11, 2019 @09:35PM (#21229955)
You don’t want web developers to have access to the tools we need to make websites cpu and and memory efficient?

I for one am sick of web apps being so slow and bloated. The day react’s code runs in wasm with native wsdl calls is the day websites the world over will suddenly get a lot faster. What is the problem with that?

Re:Libc++ 9.0.0 adds explicit support for WASI by fredsanford on Saturday October 12, 2019 @02:11AM (#21230991)
And also the day every browser will turn into IE 5.x
Re:Libc++ 9.0.0 adds explicit support for WASI by krapp on Friday October 11, 2019 @03:07PM (#21227417)
Webassembly isn't Javascript?

I mean, people probably are trying to do systems programming in Javascript, and I agree that's ridiculous, but this isn't an example of it.

Webassembly is just a spec for a language agnostic bytecode. Despite it's name, it isn't even meant to run only in the browser.

Re:Libc++ 9.0.0 adds explicit support for WASI by gumby on Friday October 11, 2019 @03:29PM (#21227612)
> Webassembly is just a spec for a language agnostic bytecode. Despite it's name, it isn't even meant to run only in the browser.

It's the same kind of namewashing as javascript's on name. Once more and we can call it a tradition!

Re:Libc++ 9.0.0 adds explicit support for WASI by jameskilton on Friday October 11, 2019 @03:08PM (#21227425)
WASM is not Javascript.

WASM is solving the problem Java tried to solve many years ago (and for the most part failed): write once, run anywhere.

Re:Libc++ 9.0.0 adds explicit support for WASI by jokoon on Friday October 11, 2019 @04:23PM (#21228104)
Because js is an interpreted language with all the problem is carries, it was designed in 10 days and many developers can't stand it. Optimized js engines are very complex and cannot be fast on smartphones. Did you know those engines optimize code while it's running based on execution paths? It's a nightmare for determinism.

Enabling an agnostic compile target is the greatest thing that could ever happen to the web.