News for hackers. Stuff that matters.

salojoo

The amount of concurrent webgl canvases on a page is limited by browsers. I believe it's somewhere between 8-20 depending on the browser.

Hopefully webgpu would lift that limit?

I'm rendering charts. The native API conveniently provides the fundamentals with lines and rectangles. In addition masking and text have been very useful.

Interaction is also supported by the API with hit regions, though I've opted to do my calculations. But I agree that interaction is where Konva would probably have shined.

I evaluated this vs pixi and native canvas API. In the end I decided to use native API.

Konva didn't have enough performance for my use case and pixi webgl has a limit on the number of canvases on the screen at the same time

The native API is easy to use and well documented. It also performs well enough to animate charts at 60fps on modern hw for my use case. I also like that there are no libraries to update

You should wait for M5 to get M4 for a discount
This is good news. Feels refreshing to see some respect towards users for a change.
Right, I didn't know it was possible to bypass full channels like that with select/default. Thanks for spelling it out
We probably both understand the underlying concepts correctly. But just in case: also buffered channels will block if full.

So I don't see how notifications get discarded (meaning lost). But somehow that's what your text says?

"Instead, a received notification is immediately sent into buffered channel, which means it’s discarded if the channel is full"

Shouldn't the channel rather block than discard if full?

Anyway, nice and relevant article for me as I've recently added a few listeners to my app. I chose the naive approach since I only have two topics and a surplus of connections

Re:Vernor Vinge (1944-2024) on Thursday March 21, 2024 @08:18AM (#39777582)
Vinge introduced me to space opera with zones of thought. Such amazing books I've read multiple times.
Performance per dollar has traditionally been the selling point with PCs. Performance per watt is the selling point with Apple silicon.

Does this one fit somewhere in between?

Re:PostgreSQL 16 Released on Thursday September 14, 2023 @01:07PM (#37511677)
Have you tried pg_repack?