WebContainers: Run Node.js natively in the browser
71–80 of 238 posts
Re: WebContainers: Run Node.js natively in the browser
#72Earlier quoted context omitted.
> We are working on CheerpX, but it’s not yet available generally. If you are curious and want to know more, stay tuned, or get in touch! How close is CheerpX to getting (for example) an app that uses a PyTorch model running in the browser? :)
Not an expert on PyTorch in particular, the python + native (if any) components would work right now. If GPU acceleration is required some way to bridge into WebGL or (much better) WebGPU would need to be engineered, certainly doable but not existing right now.
Re: WebContainers: Run Node.js natively in the browser
#73Isn't it awful? Now each smart ass web developer will start sending down scripts with nodejs to enable 'rich' user experience
Re: WebContainers: Run Node.js natively in the browser
#74Earlier quoted context omitted.
basically node exposes all these other APIs like reading a file from disk. Browser also has APIs like detecting when the page is fully loaded that wouldn't be available on Node. What JavaScript syntax is supported can also vary between Node and browsers.
WASM cannot magically load from disk, there is browser protection, right?
Re: WebContainers: Run Node.js natively in the browser
#75I think very few people will realize the systemic effects that a demo like this entails. Very, very good work StackBlitz team!
Re: WebContainers: Run Node.js natively in the browser
#76Re: WebContainers: Run Node.js natively in the browser
#77Can we please call it NodeJS and stop calling it Node.js? It's not a .js file, and it's not written in JavaScript .
Re: WebContainers: Run Node.js natively in the browser
#78Can we please call it NodeJS and stop calling it Node.js? It's not a .js file, and it's not written in JavaScript .
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.
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 the sort)
Re: WebContainers: Run Node.js natively in the browser
#79Second: looks like js is catching up with smalltalk. JJust a shame the debugger is still rather crappy, and the browser/inspector only applies to a subset of widgets/controls (the html/css stuff, not the tab bar, address line, bookmarks menu etc..).
Re: WebContainers: Run Node.js natively in the browser
#80Wow, 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.