Earlier quoted context omitted.
> We believe JavaScript, instead of Python, could act as an ideal language for expressing mathematical ideas if the proper infrastructure existed Outside of "everyone uses js", why do we believe this? What makes JS "ideal". I would think for machine learning one would want: - generally default to non-mutating, functional representation of ideas, with convenient escape hatches - treats the GPU as a concurrent (or bett…
JS lives where you visualize and explore data, so making it better at processing data would be a big win for workflows. When you use a jupyter notebook the kernel wastes a lot of resources on visualization and the support for interactive visualization isn't ideal (copy all your data to json, pass that to a JS library which has to do the work). Take a look at ObservableHQ for an idea of what an interface might look li…
Deno 1.39: The Return of WebGPU
51–60 of 63 posts
Re: Deno 1.39: The Return of WebGPU
#52> WebGPU is still considered unstable in Deno. To access it in Deno use the --unstable-webgpu flag
Based on current progress in browsers, I'd guess at least 2 will have it enabled without flags by end of Q1 2024. Chrome sort of already does, but for select platforms only.
I highly doubt the API will change from now till then.
Re: Deno 1.39: The Return of WebGPU
#53Earlier quoted context omitted.
It would not bundle a HTML canvas renderer, only WebGPU rendering to a native window's client area. HTML+CSS would be left out entirely.
Unless the Deno folks want to write that renderer from scratch, the only usable implementation right now is...part of Chromium.
Chrome's implementation (C++): https://dawn.googlesource.com/dawn
Firefox's implementation (Rust): https://github.com/gfx-rs/wgpu/
Re: Deno 1.39: The Return of WebGPU
#54This is exciting > The WebGPU API gives developers a low level, high performance, cross architecture way to program GPU hardware from JavaScript. It is the effective successor to WebGL on the Web. The spec has been finalized and Chrome has already shipped the API. Support is underway in Firefox and Safari. Interestingly, the Deno team previously attempted[0] this and rolled it back due to instability. Once this is st…
JavaScript is useless for data exploration, that's why very little data scientist uses JavaScript and all kinds of none white spaces languages. Curly braces doesn't work well in iterative explorative programming
Re: Deno 1.39: The Return of WebGPU
#55Earlier quoted context omitted.
It would not bundle a HTML canvas renderer, only WebGPU rendering to a native window's client area. HTML+CSS would be left out entirely.
Unless the Deno folks want to write that renderer from scratch, the only usable implementation right now is...part of Chromium.
I'm very confused because every comment you have posted in this reply chain makes no sense in the context of the actual blog.
Re: Deno 1.39: The Return of WebGPU
#56Now all that's left to do is to integrate a minimal native system glue library into Deno (create a window with a WebGPU canvas, receive input events, audio buffer streaming) and it would be a nice little platform to build and distribute small games and graphics demos written in WebAssembly and/or Typescript :)
Why wouldn't you just make a game that runs in a browser at that point?
It's nothing groundbreaking. It would just be a nice and convenient, is all.
Re: Deno 1.39: The Return of WebGPU
#57Earlier quoted context omitted.
> We believe JavaScript, instead of Python, could act as an ideal language for expressing mathematical ideas if the proper infrastructure existed Outside of "everyone uses js", why do we believe this? What makes JS "ideal". I would think for machine learning one would want: - generally default to non-mutating, functional representation of ideas, with convenient escape hatches - treats the GPU as a concurrent (or bett…
The usage of the word "ideal" in the 2021 post was probably not ideal :) The accessibility and diverse ecosystem of JavaScript, owing to its status as the lingua franca of software development, would probably be the basis for it being "ideal". I think it would be hard to make an objective claim that one programming language is strictly better than another as a programming language for mathematical ideas.
s/software/web/
Re: Deno 1.39: The Return of WebGPU
#58Recent example: I've got a Deno server running a production service. I needed to make some bulk changes in the DB, and I was able to import DB types and utils directly from the main server project and quickly write a TypeScript script that used them to make the changes I needed, with the new script being the entrypoint, no config changes made, and the rest of the project being ignored. This would be practically impossible in a Node.js project that used any TypeScript, ES modules, etc.
Re: Deno 1.39: The Return of WebGPU
#59Earlier quoted context omitted.
It would be a much smaller and more efficient product than Electron because it wouldn't include a bundled web browser.
How would it be any different from Electron if it bundled a JS/Webassembly engine (V8, which it already does) and a HTML canvas renderer (which would most likely be Blink)?
Re: Deno 1.39: The Return of WebGPU
#60Earlier quoted context omitted.
Same reason why Electron exists, but in a much smaller bundle (since most of the actual browser engine wouldn't be included). This would also be an opportunity to build better cross-platform APIs than what's available in browsers (e.g. WebAudio, fullscreen, pointer lock, text input (input in general), networking, ... are all a royal PITA on the web - basically any web API that isn't WebGL or WebGPU is mostly broken o…
That is what middleware is for. So lets call it a game engine using JavaScript, instead of the usual ones.