Better HN
topnewbestaskshowjobs
Log inSign up

avinassh

6,477 karma · joined Jun 19, 2014 (12y ago) · 1,414 submissions

I am learning to build Databases.

CaskDB - https://github.com/avinassh/py-caskdb

Blog at https://avi.im/blag

Submissions

comment 6mo ago · link · parent

TIL electrobun. How does it compare against electron?

2.

Bun's problem may be developing in the open(00f.net ↗)

1 points · by avinassh · 6mo ago · discuss

comment 6mo ago · link · parent

I'd love to learn how the database is built and the sync works

4.

SQLite prefixes its temp files with `etilqs_`(avi.im ↗)

3 points · by avinassh · 7mo ago · discuss

5.

Towards a Disaggregated Agent Filesystem on Object Storage(penberg.org ↗)

1 points · by avinassh · 10mo ago · discuss

comment 11mo ago · link · parent

previous Show HN post submitted by the author (109 comments) - https://news.ycombinator.com/item?id=41224689

7.

Fermyon Joins Akamai(fermyon.com ↗)

14 points · by avinassh · 11mo ago · discuss

comment 1y ago · link · parent

> You can shard your SQLite tables into multiple database files and query across all of them from a single connection.

You mean using ATTACH statement, right? If you use WAL mode, then you cannot get transaction safety / ACID with ATTACH [0]

> If the main database is ":memory:" or if the journal_mode is WAL, then transactions continue to be atomic within each individual database file. But if the host computer crashes in the middle of a COMMIT where two or more database files are updated, some of those files might get the changes where others might not.

Moreover, ATTACH do not support more than 125 databases, so that limits the shards to 125. [1]

ATTACH does not solve the concurrency problems. That's why SQLite also has a BEGIN CONCURRENT experimental branch

[0] - https://www.sqlite.org/lang_attach.html

[1] - https://www.sqlite.org/limits.html

comment 1y ago · link · parent

how does collaboration works for SQLite, since the db is embedded?

comment 1y ago · link · parent

I have an old 2019 MBP, now I am tempted to try Pop on it. Does the external displays work?

comment 1y ago · link · parent

> I've been working on something similar... although with slightly larger scope (intended to be used within containers/sandboxes) https://github.com/andrewbaxter/passworth

> stored in encrypted sqlite3

you had me at encrypted sqlite3. it would be great if you mention in readme that it uses SQLCipher

12.

Setsum – order agnostic, additive, subtractive checksum(avi.im ↗)

4 points · by avinassh · 1y ago · 1 comment

comment 1y ago · link · parent

any opinion on how does this compare with ente?

comment 1y ago · link · parent

I find this interesting. This is probably the first time I am seeing a large-ish project ban AI outright

15.

Gotosocial: We will not accept changes created with the aid of "AI"(codeberg.org ↗)

4 points · by avinassh · 1y ago · 1 comment

comment 1y ago · link · parent

Does substack let you add canonical URLs for the post? Otherwise won't you penalised by search engines for duplicated content?

17.

Everything Is a []U8(openmymind.net ↗)

2 points · by avinassh · 1y ago · discuss

18.

Oldest recorded transaction(avi.im ↗)

182 points · by avinassh · 1y ago · 106 comments

19.

Tufte CSS(edwardtufte.github.io ↗)

207 points · by avinassh · 1y ago · 48 comments

comment 1y ago · link · parent

This is cool! The code base is small to follow easily and also TIL ggez.

In the single player mode, the computer is not so intelligent. So initially i just kept winning without understanding what was happening.

comment 1y ago · link · parent

Is it possible to create a filter that can work over a complex join operation?

That's what IVM systems like Noria can do. With application + cache, the application stores the final result in the cache. So, with these new IVM systems, you get that precomputed data directly from the database.

Views in Postgres are not materialized right? so every small delta would require refresh of entire view.

22.

Replacing a cache service with a database(avi.im ↗)

81 points · by avinassh · 1y ago · 66 comments

comment 1y ago · link · parent

> I don't think WAL can ever really have a durable transaction; it is essentially based on leaving a transaction open until it gets "check-pointed" or actually committed to the database file

why not? if you use synchronous=FULL, then WAL does provide durable transactions, no?

comment 1y ago · link · parent

I wrote the first article, and I thought documentation is clear, but then I saw comment by Hipp which got confused me:

> If you switch to WAL mode, the default behavior is that transactions are durable across application crashes (or SIGKILL or similar) but are not necessarily durable across OS crashes or power failures. Transactions are atomic across OS crashes and power failures. But if you commit a transaction in WAL mode and take a power loss shortly thereafter, the transaction might be rolled back after power is restored.

https://news.ycombinator.com/item?id=45014296

the documentation is in contradiction with this.

comment 1y ago · link · parent

> am now always looking for more ways to include this for inline-documentation.

same lol. here is a blog post of mine where I used them - https://avi.im/blag/2024/disaggregated-storage

I had to convert them to images because I couldn't get to working with Hugo, static site generator

comment 1y ago · link · parent

hey, I just tested and `NORMAL` is default:

    $ sqlite3 test.db
    
    SQLite version 3.43.2 2023-10-10 13:08:14
    Enter ".help" for usage hints.
    sqlite> PRAGMA journal_mode=wal;
    wal
    sqlite> PRAGMA synchronous;
    1
    sqlite>

edit: fresh installation from homebrew shows default as FULL:

    /opt/homebrew/opt/sqlite/bin/sqlite3 test.db
    SQLite version 3.50.4 2025-07-30 19:33:53
    Enter ".help" for usage hints.
    sqlite> PRAGMA journal_mode=wal;
    wal
    sqlite> PRAGMA synchronous;
    2
    sqlite>
I will update the post, thanks!

27.

A Conceptual Model for Storage Unification(jack-vanlightly.com ↗)

27 points · by avinassh · 1y ago · 3 comments

28.

L2AW Theorem(law-theorem.com ↗)

2 points · by avinassh · 1y ago · discuss

comment 1y ago · link · parent

This looks great! I hope you will be able to get back to it
12345
48