Hacker Newsnew | past | comments | ask | show | jobs | submit | hoppp's commentslogin

Lucky you. I keep coming back to it because jobs and even for desktop apps a native webview beats everything else.

We fcked up with js, big time and its with us forever now


I was hyped for wasm because i thought it was supposed to solve this problem, allowing any programming language to be compiled to run in browsers.

But apparently they only made it do like 95% of what JS does so you can't actually replace js with it. To me it seems like a huge blunder. I don't give a crap about making niche applications a bit faster, but freeing the web from the curse of JS would be absolutely huge. And they basically did it except not quite. It's so strange to me, why not just go the extra 5%?


That 5% of js glue code necessary right now is just monumentally difficult to get rid of, it's like a binary serialization / interface (ABI) of all DOM/BOM APIs and these APIs are huge, dynamic, callback-heavy and object-oriented. It's much easier to have that glue compiler generated, which you can already do right now (you can write your entire web app in rust if you want):

https://github.com/wasm-bindgen/wasm-bindgen https://docs.rs/web-sys/latest/web_sys/

This is also being worked on, in the future this 5% glue might eventually entirely disappear:

> Designed with the "Web IDL bindings" proposal in mind. Eventually, there won't be any JavaScript shims between Rust-generated wasm functions and native DOM methods


Maybe its something about sharing memory with the js that would introduce serious vulnerabilities so they can't let wasm code have access to everything.

The only way to remove Js is to create a new browser that doesn't use it. Fragments the web, yes and probably nobody will use it


The DOM is fundamentally dependent upon JS shaped data structures and garbage collection. They are BFFs.

Any attempt to bypass this will be perilous.


So we'd need a new DOM, seems feasible

A webview doesn't beat anything for desktop apps. It is the worst option available.

For game dev too - all game engines suck. <canvas/> FTW.

They are. Any language that depends heavily on package managers and lacks a standard lib is vulnerable to this.

At some point people need to realize and go back to writing vanilla js, which will be very hard.

The rust ecosystem is also the same. Too much dependence on packages.

An example of doing it right is golang.


The solution is not to go back to vanilla JS, it's for people to form a foundation and build a more complete utilities library for JS that doesn't have 1000 different dependencies, and can be trusted. Something like Boost for C++, or Apache Commons for Java.

> Something like Boost for C++, or Apache Commons for Java.

Honestly I wish Python worked this way too. The reason people use Requests so much is because urllib is so painful. Changes to a first-party standard library have to be very conservative, which ends up leaving stuff in place that nobody wants to use any more because they have higher standards now. It'd be better to keep the standard library to a minimum needed more or less just to make the REPL work, and have all of that be "builtin" the way that `sys` is; then have the rest available from the developers (including a default "full-fat" distribution), but in a few separately-obtainable pieces and independently versioned from the interpreter.

And possibly maintained by a third party like Boost, yeah. I don't know how important that is or isn't.


Python and Rust both have decent std lib, but it is just a matter of time before this happens in thoae ecosystems. There is nothing unique about this specific attack that could only happen in JavaScript.

>and go back to writing vanilla js

Lists of things that won't happen. Companies are filled with node_modules importers these days.

Even worse, now you have to check for security flaws in that JS that's been written by node_modules importers.

That or there could someone could write a standard library for JS?


Some of us are fortunate to have never left vanilla JS.

Of course that limits my job search options, but I can't feel comfortable signing off on any project that includes more dependencies than I can count at a glance.


C#, Java, and so on.

Word. I quit nicotine and it triggered auto immune response, I got celiac disease. Never touched it ever again and I had to stop eating like a normal person. No more fast food for the rest of my life.

OCaml is a good one but many find it too hard. It can be a bit alien and there are not enough jobs to justify learning it for work.

Okay, you convinced me. I will try it. It seems like something I would really enjoy.

I like rust but it takes too long to write. Go is usually my go to language because its simple I adore erlang and can write some elixir but I also dislike dynamic typing.

I have been looking at gleam for a while and I think now you inspired me to create a small project to learn more about it.


Elixir is gradually typed: https://news.ycombinator.com/item?id=38914407

...and is gradually getting more gradually typed: https://elixirforum.com/t/elixir-v1-19-0-rc-0-released/71190...


I definitely don't agree. SQL is great.

I read vibe coding and I click the back button. Genuine human effort is interesting, but if it's outsourced to Ai, anyone can just do the same

I got a feeling that clause is basically a super app that will eventually do everything

all SaaS projects building on it to resell functionality will go away because there will be no point to pay the added costs.


So your work can be automated by AI. Don't tell your boss or you are fired

OP listed N tools they stitch together in a creative and thoughtful way (“30% brainstorming”) which happen to leverage AI.

What’s the fireable offense? Does the boss want to stitch those tools together themselves?

If the output is crap- regardless of the tool- that’s a different story, and one we don’t have enough info to evaluate.


There has to be no offence, its cost reduction for the company.

It depends how mission critical his brainstorming is for the company. LLMs can brainstorm too.


My latest take is: AI amplifies human intent. For now at least, it very much needs someone with vision to guide and leverage it, and this can easily be a full time job.

That means OP’s job may be _safer_, because they are getting higher leverage on their time.

It’s their colleague who’s ignoring AI that I see as higher risk.


Same.

People these days do everything to avoid actually programing but still they wanna call themselves a programmer


Programming is much more than typing code on a keyboard.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: