WebContainers: Run Node.js natively in the browser
121–130 of 238 posts
Re: WebContainers: Run Node.js natively in the browser
#122Re: WebContainers: Run Node.js natively in the browser
#123I was kinda hoping it was something crazy like nodejs with v8 engine compiled to wasm lol
Did you read the post? You might be pleasantly surprised :)
Re: WebContainers: Run Node.js natively in the browser
#124Re: WebContainers: Run Node.js natively in the browser
#125Earlier quoted context omitted.
I think the issue isn't with Wasm support, it's the filesystem API. They could've included a polyfill though... But as that API is new it might not be available yet.
It's the "File System Access API," the one that allows the browser to read/write files on your actual computer. It's an I/O feature, impossible to polyfill. The similarly named "FileSystem API" gives you access to a sandboxed "virtual drive" in the browser. Firefox has supported that for years, and polyfills are possible, but it's irrelevant in this case. https://caniuse.com/?search=file%20system
Re: WebContainers: Run Node.js natively in the browser
#126Web development is a big gigantic shit storm. Why can’t we use a real statically typed language without this JS shitty overhead, generate compiled binary and send that to users? I personally hate writing javascript
Re: WebContainers: Run Node.js natively in the browser
#127Wow, the PWA is really impressive. Honestly it's starting to get hard to tell the difference between this and Electron-based editors like VS Code. I'm really excited for integration with the File System Access API; that's the final puzzle piece I'd need to use something like this for serious work.
You can checkout www.StackBlitz.com/local and give it a try! Still in Alpha, but should generally work for you :)
Re: WebContainers: Run Node.js natively in the browser
#128Hi all- CEO of StackBlitz/author of this blog post here. Happy to answer any questions! (Also, thanks for posting this bpierre!)
Re: WebContainers: Run Node.js natively in the browser
#129Everyone thought WASM would enable developers to write code in any language they wanted (with type checking and higher performance) and deploy it on the web. JS Developers come in: so we can compile node.js to WASM and run that in the browser?! Yay!! Now we can have backend JS running in the browser alongside browser JS! Jokes aside: this is actually quite interesting, the demo is very impressive (except for the "onl…
Browser Javascript suffers from not producing a single "binary" as its build system output. You do get one bundle, but none of the parts know anything about each other, and it limits the ability to optimize. (It is a lot more like the C preprocessor, rather than a C compiler.) Methods that can't possibly ever be called end up being sent to each user, for no reason other than "well someone could write an eval() that n…
Java… you want Java. And so the cycle continues!
Re: WebContainers: Run Node.js natively in the browser
#130Earlier quoted context omitted.
Names don't have any such requirements - but we should use them correctly. You don't rename Windows even though it's not a hole in the wall stuffed with glass.
It's just irksome. I don't think Windows is a good analogy. More like if I called the OS "Windows.jpg". If you're going to use something that looks like a filename as a product name, then make sure that file actually exists and is in the expected format. D3.js --> good Angular.js --> good Node.js --> bad python3.py --> bad Windows.jpg --> bad Windows.exe --> okay (I don't use windows but I assume there's something of…