Remix.run Logo
Write ReactJS in Rust(github.com)
13 points by StellaMary 5 days ago | 12 comments
philipwhiuk 41 minutes ago | parent | next [-]

Obviously it's up to everyone how they open source stuff, but I'm not necessarily sure that a massive blob of compiled code is the way to go: https://github.com/Shyam20001/rsjs

StellaMary 17 minutes ago | parent | next [-]

Here you go for the core https://github.com/Shyam20001/brahma-core All npm packages including esbuild publish binaries node Js a Runtime not compiled one. So don't get into a judgement dude. Don't get blindly attached to the topics. Do check the Read Me before commenting.

embedding-shape 15 minutes ago | parent [-]

Usually authors upload those to npm though, and ignore them in the git repository, hence you're getting questions about it.

embedding-shape 17 minutes ago | parent | prev [-]

Fairly common pattern in NodeJS (to store binary blob in npmjs, not GitHub, but similar pattern anyhow) so you don't trigger builds on download.

Not saying it's the greatest idea, I despise it personally, but I do understand the motivation for it.

StellaMary 13 minutes ago | parent [-]

Most of companies don't even know that node js npm packages has build scripts which do rely on python c++ build tools. That's y. This saves lots of time. Also binaries once checked and published cannot be edited in npm / all we can do is just remove that version fully if below 300 downloads.

embedding-shape 8 minutes ago | parent [-]

Any developers worth their salt has build scripts turned off everywhere at this point, and manually build the packages they need it for, or manually whitelisted. It may save time, but as others mentioned, shipping binary blobs in a opaque way is a great way of making people avoid your project.

ironblood 31 minutes ago | parent | prev | next [-]

So I guess the package `brahma-firelight` is the core idea behind this? But why in the repo[0], you uploaded those `.node` files instead of the source code + building scripts? Also your source code `brahma.js` looks like generated from `@napi-rs/cli`. Because recently I'm trying to build rolldown and next.js for msys2 platforms, and I'm certain this line[1] of code won't work in some cases.

[0] https://github.com/Shyam20001/rsjs

[1] https://github.com/Shyam20001/rsjs/blob/a226f62de039ebbd8da0...

StellaMary 19 minutes ago | parent [-]

Dude that's how ultra web sockets binaries are built. Node Js can run build scripts but it hurts the machine and requires appropriate node-gyp builds. Also the source to the code is here https://github.com/Shyam20001/brahma-core

Do refer the READ me for further information.

embedding-shape 16 minutes ago | parent | prev | next [-]

> Ideal for micro-service and API use-cases where speed matters

This is a wild mismatch from the HN title, this seems to be backend software?

8 minutes ago | parent [-]
[deleted]
cobertos 28 minutes ago | parent | prev [-]

I wish the author included examples of what it's like to write ReactJS in Rust. Can't get a good idea of how succinct or structured it is to write for example a button handler on an element from what's in the docs currently.

cobertos 19 minutes ago | parent [-]

After looking through the author's post history, the title seems incorrect. This does not seem to be "ReactJS in Rust", but more something Express-like in Rust. They've been spamming this project over the past 50 days or so with different conflicting names, seemingly to try to gain traction[0].

[0](https://news.ycombinator.com/item?id=45745876)