Better HN
topnewbestaskshowjobs
Log inSign up

Schampu

392 karma · joined Aug 15, 2016 (10y ago) · 119 submissions

Submissions

comment 5y ago · link · parent

This unfortunately introduces a lot of overhead and doesn't scale well for larger applications. WebGL calls are already incredibly slow compared to native, and the trampolining between WASM and JS world adds on top.

When WASM got released (around 2017), there was already that discussion to allow direct bindings without a JS roundtrip, but AFAIK there is still no actual implementation for this in any browser.

comment 5y ago · link · parent

AssemblyScript initially targeted TS->WASM compilation, by only supporting a strict subset of the TS language. But at some point they dropped that idea and defined their own TS-like language. I don't know the reason for this, but my guess is that TS is too dynamic to just directly compile it to WASM?

comment 5y ago · link · parent

Regarding Germany's official Corona tracing app (not the of this post), by the end of last year there was a discussion about collecting movement data of the app users [0]. The discussion was part of the "German Infection Protection Act", resulted in public protests and in the end got declined. I wonder what the state of this is in other countries?

[0] https://www.sciencemediacenter.de/alle-angebote/rapid-reacti...

comment 5y ago · link · parent

For example reverse engineering and parsing binary file formats

comment 5y ago · link · parent

There is a WebKit based HTML renderer called Ultralight. It works by creating hooks and intercepting the rendering calls of WebKit in order to allow embedding it easily.

Unfortunately the license of Ultralight is questionable, and it's not open-source either by bypassing the WebKit license (which is very questionable as well since WebKit itself is BSD-licensed).

Having such a project as a free open-source variant would be a huge game changer in my opinion.

6.

Show HN: Chromium Ray Tracing(github.com ↗)

1 points · by Schampu · 6y ago · discuss

7.

Show HN: Chromium + Hardware accelerated Ray Tracing(github.com ↗)

5 points · by Schampu · 6y ago · discuss

comment 6y ago · link · parent

Hey thanks for you comment.

The Ray-Tracing Extension is currently only available for Windows and Linux.

My next plan is to implement the extension into Dawn's D3D12 backend, so I can build chromium with my Dawn fork and have Ray-Tracing available directly in the browser (at least for myself) :)

9.

Real-Time Ray-Tracing in WebGPU(maierfelix.github.io ↗)

118 points · by _s47s · 6y ago · 31 comments

10.

Real-Time Ray-Tracing in WebGPU(maierfelix.github.io ↗)

2 points · by Schampu · 6y ago · discuss

11.

Show HN: Early WebGPU API for Node(github.com ↗)

2 points · by Schampu · 6y ago · discuss

12.

Show HN: A Photorealistic Path Tracer with NVIDIA RTX(github.com ↗)

1 points · by Schampu · 7y ago · discuss

comment 7y ago · link · parent

Changed the title:)

14.

Show HN: Azula – Lightweight GPU Accelerated Electron Alternative(github.com ↗)

38 points · by Schampu · 7y ago · 8 comments

15.

Show HN: Vulkan RTX Ray Tracer Written in JavaScript(github.com ↗)

1 points · by Schampu · 7y ago · discuss

16.

Show HN: A Tiny RTX Ray Tracer(github.com ↗)

3 points · by Schampu · 7y ago · discuss

17.

Show HN: A Real-Time Ray Tracer Written in JavaScript and Vulkan(github.com ↗)

4 points · by Schampu · 7y ago · discuss

18.

Show HN: A tiny Real-Time Ray Tracer(github.com ↗)

2 points · by Schampu · 7y ago · discuss

19.

Show HN: Vulkan API for JavaScript/TypeScript(github.com ↗)

4 points · by Schampu · 7y ago · 1 comment

20.

Show HN: Vulkan API for JavaScript(github.com ↗)

2 points · by Schampu · 7y ago · discuss

comment 7y ago · link · parent

Vulkan has a very verbose setup phase, but after that you only make some tiny calls here and there (Draw a frame, update some UBOs), so the CPU load isn't that high because you record most things at start-up.

Multi-threading is possible with SharedArrayBuffers [0] and N-API allows to take the memory address of it. NVK is only a thin layer above Vulkan and JavaScript <-> C++ interopability is pretty fast. You only notice some overhead when making thousands of calls, because the C++ code cannot be inlined. But again, this is not something common in Vulkan.

Also JavaScript doesn't have essential features like Compute shaders for years now. Vulkan has all of it. Even though WebGPU [1] is in development, I don't expect it to give access to the Vulkan RTX pipeline anytime soon.

[0] SharedArrayBuffer: https://v8docs.nodesource.com/node-4.8/d4/db8/classv8_1_1_sh...

[1] WebGPU: https://github.com/gpuweb/gpuweb

22.

Show HN: RTX Real-Time Ray Tracing in JavaScript(github.com ↗)

5 points · by Schampu · 7y ago · 2 comments

1234