7 ms·
Maybe the guys here know: Is there a little 3D/GFX/game engine (plain and simple C written) strapped to a javascript interpreter (like quickjs) without being i
by sylware 1y ago
Maybe the guys here know:
Is there a little 3D/GFX/game engine (plain and simple C written) strapped to a javascript interpreter (like quickjs) without being in apple or gogol gigantic and ultra complex web engines?
Basically, a set of javascript APIs with a runtime for wayland/vulkan3D, freetype2, and input devices.
- chirsz 1y agoYou could use Deno with WebGPU.
- FjordWarden 1y agoYou can access the gpu without a browser using Deno[1] (and probably Node too if you search for it). Not to be patronising here, but if you are looking for something that makes 3D/GFX/game programming easier without all the paralysing complexity, you should recalibrate how hard this is going to be. [1] https://windowing.deno.dev/ https://windowing.deno.dev/
- jkcxn 1y agoYou can quite easily make bindings for raylib/sokol-gpu/bgfx from Bun
- deleted 1y ago[deleted]
- gr4vityWall 1y agoYou can use Node.js or Bun with bindings for stuff like raylib or SDL. Examples: https://github.com/RobLoach/node-raylib https://github.com/RobLoach/node-raylib https://github.com/kmamal/node-sdl https://github.com/kmamal/node-sdl
- afavour 1y agoI assume OP mentioned QuickJS specifically because they're looking for a tiny runtime. Node and Bun aren't that.
- sylware 1y agoAnd if it could compile without requiring gcc or clang, for instance cproc, tinycc, scc, etc...
- gr4vityWall 1y agoAhh, my bad. That makes sense. I wonder if QuickJS not having JIT capabilities could have a noticeable impact in a bigger game.
- rossant 1y agohttps://datoviz.org https://datoviz.org will have a webgpu js backend in a year or so.
- ronsor 1y agoYou could take raylib (https://www.raylib.com https://www.raylib.com) and bolt quickjs to that.