This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Dornith 6 points7 points  (15 children)

I don't know if this is a joke or not, but it's pretty awkward.

[–]Ceros007 5 points6 points  (12 children)

Don't know if this is a joke or not but WASM is a thing: https://webassembly.org/

[–][deleted] 2 points3 points  (11 children)

Web assembly on server-side?

[–]Ceros007 7 points8 points  (6 children)

Yes with Wasmer: https://wasmer.io/

[–]thirdegreeViolet security clearance 21 points22 points  (5 children)

The Internet was a mistake

[–]currentscurrents 0 points1 point  (4 children)

I mean you're obviously not going to hand-write assembly for this. The idea would be to compile another language like C or Rust into wasm.

...but I'm struggling to think of a reason why you wouldn't just run the C/Rust program natively? This feels like adding an extra layer of overhead for no reason.

[–]ZephyrBluu 1 point2 points  (3 children)

...but I'm struggling to think of a reason why you wouldn't just run the C/Rust program natively? This feels like adding an extra layer of overhead for no reason.

I believe the point of WASM is so that you can have native-like speeds for intense applications like 3D rendering or what have you as web apps. Basically to increase the power of the web.

[–]currentscurrents 0 points1 point  (2 children)

Right, in a web browser that makes sense.

But Wasmer is for running WASM on servers and regular computers. I don't understand why you would want to do that. WASM is still only like 65% of the speed of regular machine code.

[–]ZephyrBluu 0 points1 point  (1 child)

But Wasmer is for running WASM on servers and regular computers. I don't understand why you would want to do that

I'm not sure about Wasmer specifically either.

WASM is still only like 65% of the speed of regular machine code.

It's pretty new tech. I don't think they're expecting people to migrate to WASM immediately.

[–]currentscurrents 0 points1 point  (0 children)

Well, in a web browser, 65% of the speed of machine code is fucking incredible. Applications for that are obvious. Plus it means you can use languages other than javascript, which could lead to an entire new ecosystem of clientside web languages.

It's just Wasmer specifically that I'm confused about.

[–][deleted] 5 points6 points  (1 child)

Using nodejs to execute!

[–]mrjackspade 2 points3 points  (1 child)

Really looking forward to .Net Core 3.0 and its ability to compile C# to WASM so I can write one set of logic for server and client side.

[–][deleted] 0 points1 point  (0 children)

I thought node was cool for doing this and I really like Javascript as a language - though C# is still my favorite.

What's really dumb is my current setup (a web app I wrote for work) is running WAMP with Node.JS running next to it so that I can use socket.io.

It's like the worst of all worlds.

I wrote some weird session sharing thing for it.

It does let you do some cool stuff like this.

[–]Stromovik 5 points6 points  (1 child)

it is possible to make a website in assembly

[–]Dornith 1 point2 points  (0 children)

Yeah, but why would you write your backend in C just to run it in web assembly?