top | item 46095571

Write ReactJS in Rust

12 points| StellaMary | 3 months ago |github.com

14 comments

order

philipwhiuk|2 months ago

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

embedding-shape|2 months ago

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|2 months ago

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.

ironblood|2 months ago

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|2 months ago

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|2 months ago

> 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?

cobertos|2 months ago

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|2 months ago

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)

zenethian|2 months ago

I hate this with every fabric of my being.