HN user

jasmcole

538 karma

Physics -> software

I blog at jasmcole.com I work at count.co

Posts11
Comments54
View on HN

Hey, if you click through to one of the example simulations you'll be able to change the visualization from waves to time-averaged power density, which should be closer to what you're looking for.

Thanks! If you navigate to one of the example simulations, you'll be able to change the instantaneous field visualisation to one of time-averaged power density, which sounds closer to what you're looking for.

The cool thing about the speed of WebGPU is that you can drag things around and watch changes in real-time, even if you have to average lots of simulation steps per rendered frame.

Good question! This is actually a numerical solver for a few coupled partial differential equations - the method in this context (electromagnetism) is called FDTD. It's implemented as a WebGPU compute shader.

You absolutely could do this using WebGL2 compute shaders too, but I thought it would be fun to try this newer API.

Agreed! Though support should be coming soon it seems. As a complete WebGPU novice I was really impressed with how quick it was to get going.

We use Pyodide at https://count.co and think it's pretty amazing! Congrats on the new release. I read about the snapshot support for Cloudflare workers and assumed it was a feature that Cloudflare had developed - the fact it may be coming to all users of Pyodide is great news.

Nice article!

When we wrote the instanced WebGL line renderer for https://count.co one of the tricky parts was switching between mitre and bevel joins based on the join angle - for very acute angles the mitre join shoots off to infinity.

Another nice extension (that we are yet to implement) is anti-aliasing, but I think that requires extra geometry to vary the opacity over.

One application (which I used to work on) is generating electric field strengths beyond the 'Schwinger limit'. This is a field strength below which various QED processes are exponentially damped, such as electron-positron pair production. Generating such field strengths in the laboratory (as opposed to, say, the surface of pulsars) will allow studies of strong-field QED.

Sad News 7 years ago

Very sad. Reading datagenetics inspired me to start my own blog, which has been very fun over the years. Thanks Nick for the great posts and inspiration!