HNHacker News
TopNewBestAskShowJobs

salojoo

21 karma · joined September 14, 2023

submissionscomments
salojoo··on Konva.js - Declarative 2D Canvas for React, Vue, and Svelte
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?

salojoo··on Konva.js - Declarative 2D Canvas for React, Vue, and Svelte
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.

salojoo··on Konva.js - Declarative 2D Canvas for React, Vue, and Svelte
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

salojoo··on Alleged M4 MacBook Pro unboxing video
You should wait for M5 to get M4 for a discount
salojoo··on Zuckerberg claims regret on caving to White House pressure on content
This is good news. Feels refreshing to see some respect towards users for a change.
salojoo··on The notifier pattern for applications that use Postgres
Right, I didn't know it was possible to bypass full channels like that with select/default. Thanks for spelling it out
salojoo··on The notifier pattern for applications that use Postgres
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?

salojoo··on The notifier pattern for applications that use Postgres
"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

salojoo··on Vernor Vinge has died
Vinge introduced me to space opera with zones of thought. Such amazing books I've read multiple times.
salojoo··on Snapdragon X Elite Multi-Core Superiority Claims over Apple's M3 Were Right
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?

salojoo··on Postgres is eating the database world
https://github.com/sraoss/pg_ivm
salojoo··on PostgreSQL 16
Have you tried pg_repack?