6 ms·
Every programmer eventually creates own db: https://github.com/antonmedv/medb https://github.com/antonmedv/medb
by medv 19d ago
Every programmer eventually creates own db: https://github.com/antonmedv/medb https://github.com/antonmedv/medb
- otabdeveloper4 19d agoA file-backed hashtable isn't really a DB.
- insanitybit 19d agoIf someone asked me what a DB is, I'd probably start the conversation with the exact description "a file-backed map, like a hashmap".
- riffraff 19d agoWell, dbm (database manager) is basically that and has been called that for almost 50 years
- otabdeveloper4 19d agodbm isn't a database either, and people who call it that are simply wrong.
- shakna 18d agoSo... Databases weren't invented, until after the name was in common use?
- mikedelago 19d agoWhy not?
- otabdeveloper4 17d ago"Database" implies there's some sort of data aggregation or query primitive under the hood.
- shakna 16d agoIn 1971, the Database Task Group, presented the formalisation of a standard to approaches used at the time, CODASYL (1959), in the formation of... COBOL. There is no query primitives in the CODASYL Data Model. Only a Data Manipulation Language. Because "relational" databases didn't really happen until the early '80s - nearly a decade later. (SQL came directly out of work on CODASYL). We had a Database Task Group, long, long, before we had the concept of a query primitive.
- rcxdude 19d agoit's not a relational database, but those aren't the only kind.
- howerj 19d agoIn fact the name "relational database" implies there are other kinds.
- yawniek 19d agoBuilding dbs is lots of fun. I recently did a few. Some in rust and some in go. And its really interesting.
- ncruces 19d agoAgreed. I went the route of building on top of something else. Sill lots of fun. https://github.com/ncruces/go-sqlite3 https://github.com/ncruces/go-sqlite3 And I'm still having fun. https://github.com/ncruces/go-sqlite3/pull/421 https://github.com/ncruces/go-sqlite3/pull/421
- idontneedcoffee 19d agoNo way(hides)
- timschmidt 19d agoAnd it's not complete until it can send and receive email.
- nunez 19d agoYep. I made a simple one in Bash even! (Do not recommend.)
- brabel 19d agoYou should've used recutils probably :) https://labs.tomasino.org/gnu-recutils/ https://labs.tomasino.org/gnu-recutils/
- nunez 18d agoTIL! Sharding would be so easy! Just run "split" and spread the chunks over a bunch of servers, then run "recutils" with "parallel" to retrieve! Truly webscale.