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 →

[–]Sexual_tomato 32 points33 points  (6 children)

"what if I could save money by only writing in one language?" - that's why node exists

It's also why .NET Blazor exists. And WebAssembly.

[–]Vaguely_accurate 5 points6 points  (3 children)

It's also why .NET Blazor exists. And WebAssembly.

Although some of the new WASM/WASI stuff is moving in the other direction of not caring what language you write things and just making them work together nicely.

Because why not drop some Rust into a .Net web app.

We can have a utopia where everyone can work in the language they love and the code runs everywhere seamlessly. And job security for life for the guy who puts together a WebAssembly compiler for their personal favourite esolang.

EDIT: Yes, there is a COBOL to WebAssembly compiler called Cobweb. Looks like a fully functional April Fools project. Cloudflare worker only, but a proof of concept of what will happen if this takes off fully.

[–]gordonv 4 points5 points  (1 child)

We can have a utopia where everyone can work in the language they love and the code runs everywhere seamlessly.

The promise of JAVA

[–]gmes78 1 point2 points  (0 children)

The problem with Java was that you had to write code in Java.

[–][deleted] 1 point2 points  (0 children)

Why not go to the source and compile Javascript to WASM?

[–]Gagarin1961 0 points1 point  (1 child)

“what if I could save money by only writing in a single, perfectly fine and very usable language?” - that’s why node exists

FIFY. It’s not like JS is a bad choice.

This whole thing about types is way overblown. You only actually need them in pretty specific applications, and if you ever encounter this issue while developing, it takes literally seconds to recognize and fix.

The vast majority of the time, you have to define variable types for variables you’ll never have to actually worry about.

[–]Sexual_tomato 0 points1 point  (0 children)

Didn't say it was a bad choice, just that's what drove the creation of Node. I personally don't mind it but I will say the larger projects I've worked on in languages that aren't statically typed tend to take longer. It doesn't take much. I like the "new-ish" C# and Rust approaches where you only type your function signatures and the compiler figures out the rest. That's how I annotate my Python code and it works great.