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

This is for tooling.

Node.js has been extraordinarily useful for building build tools. We're outgrowing it's capacity and rightfully moving to a compiled language. Also faster tooling is essential for establishing a high quality feedback loop for AI agents


Why go halfway, embrace compiled languages in the backend.

Fast all the way down, especially when coupled with REPL tooling.


Because writing Rust backend is needlessly complex for majority of projects.


There’s a middle ground between node and rust. Dotnet and Java are wildly productive places to work but they’re not as exciting as rust.

Also, writing JavaScript for the backend is needlessly underperforming for anything with any load.


Still easier than dealing with node dependencies, webpack and co, they make me wish to write ASP with OCX components instead.


Your complaint is with Vite – famously incredibly simple and reliable to work with – using Rust, but you're bringing up webpack's complexity?

Node dependencies are fine, add an npmrc file to have it default to exact versioning and you solve 90% of common day to day problems. It's not ideal, but nor is cargo's mystery meat approach to importing optional features from packages.


My remark, and not complaint, is that the fashion to rewrite everything in Rust across the JavaScript ecosystem proves the point of holding it wrong.

Maybe leave JavaScript on the browser, where it belongs.


Rewriting build time tooling to Rust is leaving Javascript on the browser?


Somebody just really dislikes JS. I sympathize. I wouldn't (be able to) write backend in Rust though.


Why stop at tbe build tools, take JS ecosystem out of the backend.


I've had a great time using Rust with Actix as the framework.


It takes tooling team and discipline to keep compile times at bay when you reach mid size projects with compiled languages (looking at you Java, C++, Rust).


But, it doesn’t need to be so. Go is pretty fast to compile. So is Jai, from what I’ve seen. So was TurboPascal. Rust has a similar problem to the one Vite has been solving- Rust (and most languages) weren’t designed for compilation speed, and it’s hard to retroactively fix that. But, there’s no reason we shouldn’t have a bunch of statically typed, fast-to-compile languages.


I agree with your remark, only that Rust's current problem is tooling, not the language itself.

See OCaml or Haskell, they also have interpreters and REPLs as part of their tooling.

Also there should be no need to always compile crates from scratch when starting a new project.

Which ironically circles back to your remark of having a similar problem.


Lack of discipline is exactly the magic word regardig the node ecosystem mess.


Maybe? The point still stands that majority of programmers/industry is not equipped to deal with this adequately.


It's not a good piece of software. Breaks in many places


that makes sense, it's not 1.0 yet


"Read the announcement: How we rebuilt Next.js with AI in one week".


My dad if he was alive would have shouted "I told you so"


What would make this super easy to adopt?

A simple page which shows what native components are available with/without the need for polyfills for a given browserslist config


The diagrams generated are arbitrary and make no sense. This needs improvements


My shower is theory is that there are infinite universes getting created all the time and we can never know about it because we're restricted in this universe. I love having these talks with my daughter.


There's a teapot orbiting the sun between Earth and Mars too.


That's almost the mainstream position in physics as of 2025 -- that cosmic inflation never stopped, that it produces universes beyond number, and we're in one pinched-off region of it.

You'd like this book: https://mitpress.mit.edu/9780262547222/an-infinity-of-worlds...


This is beautiful!


The trouble would be that even if we sensed other universes we might not be able to go there unless we can create our own pocket universes. There's no guarantee that an adjacent universe has the same rules of physics.

All of the enzymes in your body might stop working if you stepped into even a slightly different universe. You could just turn into a gas, and not in a good way.


Congratulations on the launch!

Have you considered any sort of templating like htm or JSX? Because it's a bit harder to read and I believe to work in a team it would be much simpler if there was a template syntax.


I admit that it takes some getting used to, but the fact that it's just JavaScript is a feature!


Yeah and it has no effect because its done by companies not countries. This is gonna continue for a long time. Its an incredible time to be a middle man


I thought a majority of Chinese businesses are state owned. Their neighbors understand the stakes though and have demonstrated eagerness to have low US tariff rates. I assume their customs agencies will be on the lookout for this relabeling strategy.

It's going to occur, as it already does occur, for all kinds of reasons, but it's not going to be as simple as you make it out to be. There is a limited capacity to perform this work meaning the costs may not even be competitive with the US tariff in the long run.


> I thought a majority of Chinese businesses are state owned.

Where'd you get that? The state has a significant (though usually less than controlling) ownership stake in about 1.5% of Chinese businesses, and at least _some_ ownership in about 2%.

"The state owns some of this" is, of course, not equivalent to "the state meaningfully controls this".

But in any case for this sort of activity you'd probably just establish new companies, which the state wouldn't have any share in anyway. And, also, this is kinda academic, because you wouldn't be doing it in China, you'd be doing it in some third country and transhipping goods originating in China.


I have never been to China, but you sound informed on the topic - maybe you can weight in on that.

I've heard from various YouTube channels covering news about China, it's social issues and shenanigans that all companies above a certain size are required to have someone on staff that's essentially part of the government. These channels are however mostly run by people speaking very good English, so clearly made for the western market.

But Googling that information seems to confirm it, too. I.e.

> Since 2018, domestically-listed companies are required to establish a party entity.

I cannot speak with confidence on the topic, but from an uninformed spectators perspective, it does sound like timewizards argument was correct?


> I thought a majority of Chinese businesses are state owned.

That’s not how things work, they care about control not micromanaging everything. There are rules favoring majority Chinese owned companies, but that doesn’t need to be government ownership.

The CCP only really cares about large companies or specific industries like media. There’s minimal interference in a food truck and thus most companies that are small, but things get more involved as you scale. Critical industries like shipping and electricity have government owned businesses running things.


Long term it will work. If foreign govt allow getting around tariffs, according to trump import deficit formula, tariff on the govt will go up. Usgov could also increase tariff on countries with more companies doing tariff shenanigans. The problem is with american 2 year election/midterm cycle no one believes that this will last more then 3-6 months now.


This is just beautiful artistry. I absolutely love it! Only thing missing is the click/clack sounds on those buttons


I have a naive question here.

Could this have been avoided if they had used Rust? Or is this a bug that can happen even in Rust code too?


The original bug was returning STATUS_SUCCESS to indicate that a function had succeeded without noticing that STATUS_SUCCESS is defined as 0 in a function that's expected to return a non-zero value on success. This specific error could have happened on any language - defining two different return types and using the wrong one could happen in any language.


> defining two different return types and using the wrong one could happen in any language

This specifically is the kind of bug that is avoided with strong typing. The compiler screams at you when using the wrong return type. For example, if a callback expects a Result type, you must return a Result type, not some random int-like value whose definition of success and failure is arbitrary.


It can be avoided in any compiled language that has a boolean type. That includes C these days. Unfortunately this functionality predates the existence of the boolean type.


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

Search: