HN user

aaviator42

289 karma
Posts5
Comments74
View on HN

We use SQLite IMMEDIATE transactions, which lock files for writes for a few milliseconds while commiting data to the file. This is not a problem in practice until you reach more than dozens of concurrent writers. StorX configures a default busy timeout of 1.5s, but it can be configured as per your needs. You can also get a lot more out of it by being smart about how you spread your data over DB files (eg: one file per user instead of one for multiple/all users), and also by considering when you call openFile() and closeFile() (eg: keep write transactions short, don't leave a file handler open while running long calculations).

I thought apple didn't allow this?

Edit: apparently "hybrid apps" using webviews are allowed as long as they're not "thin wrappers" for websites and provide meaningful functionality. See also: the capacitor framework.

I really miss the time before generative images and video were a thing. We opened such a can of worms. Really seems like a "the scientists were so occupied with if they could they didn't stop to think if they should" situation. What is the actual utility of these tools again beyond putting artists out of work?

Hey, it's cool that you care so much about coral reefs and climate change — that kind of awareness is really important.

A lot of us care about climate change and coral reefs and the planet. The problem is that the biggest damage is often caused by large systems — like industries and governments — that prioritize profit over the planet. Even when regular people try to make eco-friendly choices, it’s really hard to make a big difference alone when the rules and incentives still let pollution and destruction keep happening on a huge scale. That’s why we also need collective action, policy changes, and accountability at the top.

Your voice matters though, and speaking up like you are is part of how change starts. Keep going. But keep in mind that people problems cannot be solved by technology alone. Even if you are able to develop technology to help coral reefs survive, you need massive funding and buy-in from various people and orgs with power to implement it in practice. That's way harder than coming up with the tech.

Also, food for thought: should we really be trying to genetically modify other organisms to be compatible with pollution or should we be reducing pollution in the first place?

It is a fork of an older version, I will update it sometime soon and send a PR upstream for the vert switcher, although I'm afraid it might not be implemented in the neatest way possible. :)