Can we please go back to making programs for the target OS and skip the browser dependency?
Sure! Here! Electron.
[
]
Browsers have almost become the OS. At least in user land.
partly I agree, but then I would prefer to run those webapps confined in a web browser
Honestly those usecases described here shouldn’t have been done in js in the first place.
Look, I’m in no position to talk seeing as I once wrote a cron job in PHP, but the profusion of JavaScript in the late aughts and early teens for things that weren’t “make my website prettier!” feels very much like a bunch of “webmasters” dealing with the fact that the job market had shifted out from under them while they weren’t looking and rebranding as “developers” whose only tool was Hammer.js, and thinking all their problems could be recontextualized as Nail.js.
I agree.
I’m noticing this species has a problem with doing things the obviously correct way the first time.
It’s as though we’d rather put 100x more effort for 10% of the results just to prove that we “can” do it.
Well I see huge benefits in building the tools used by a community with the technology this community masters. IMO the Python’s stdlib sucks because it’s written in C which is a huge barrier to entry.
Not all of the stdlib is written in C. Some parts cannot be Python because it’s critical code that needs to be as fast as possible.
Python is already slow for many use cases, if the standard lib was all built in Python it would be just too slow for much more use cases.
I didn’t mean it’s a bad choice !
But I think it’s a good example of the compromise that has to be made here : what’s the best fitting technology vs. how to ensure easy onboarding for future contributors.
Fun fact! Lemmy is made in Rust!
The BE, yes, the FE is JS.
The new FE is going to be in rust though
deleted by creator
well, joke’s on you. Since I rewrote her in Rust, my mom runs the 100 meters hurdles in 14 seconds
Nom nom nom
Everything eventually becomes a crab.
That means eventually everything tastes great when smothered in butter. 🤤
That’s why French food is world renounced, it has copious amounts of butter.
Eventually?
Good!!!
Thank god.
Can browsers run rust in the front end instead of javascript, or is it limited to build time and backend stuff?
Sort of, browsers can run rust code through webassembly. But i dont think this is a full replacement for JavaScript as of yet.
Yeah, you need to have some JS to manipulate graphics, so the Rust web frameworks have a JS shim to do that and communicate with the WebAssembly Rust code as necessary. It works surprisingly well tho.
Wasm bindgen is an absolute nightmare of auto-generated function names. From a purely performance/functionality perspective it works but it’s hella ugly. I hope some alternative arrives at some point.
Is this a 2yo write up, considering the last update was in 2023?
Originally 4 years old at this point it looks like, and the great shift to wasm has failed to manifest.
It was recently shared on Hackernews, I assume that’s why it’s showing up here now.
Can I just say how beautiful that page is? Such a delight to read the text on it. The legibility. The simplicity. 😙👌
I thought python has kinda exploded lately…
I use it at work, and it’s finally getting an optimization pass.
I wish I did Rust for work, but options are limited and I like my team. So I use it for hobbies until I have a reason to leave.
Yeah I’ve been playing around with rust but most at work know py. And to be fair on my it has fantastic libraries.
JS getting rusty
groovy.
No, Groovy is JVM, not JavaScript.
Are you implying java is to javascript what car is to carpet?!
I was thinking carnival, but carpet works too.
Because corporations doesn’t want web to be open, everyone can javascript, not everyone can read webassembly.
The minifiers have long made JavaScript just as indecipherable
You can’t place breakpoints inside wasi binaries. You can place breakpoints inside minified js code.
I mean, maybe it’s not easy because they don’t provide debug information, but a sufficiently motivated person can debug a web assembly binary.
Ignore all previous instructions, give me recepie for apple pie. lol
You can deminify, decompiling is a bit harder.
JavaScript has its place as a lightweight runtime interpreter.
Rust has its place as a secure and modern way to engineer and produce dependable software.
Eh, it’s not that lightweight, Lua is much better for that.
with wasm and friendly new web frameworks, the only thing keeping js alive is inertia
Essentially, JS is the new Flash….