3 ms·
A database in 200 lines of code is incredible. I'd love to see that, even better if it was annotated.
by Doubl 8y ago
A database in 200 lines of code is incredible. I'd love to see that, even better if it was annotated.
- lmilcin 8y agoAs I said, there is nothing spectacular about this. This notion that a database must be a difficult and complex thing and best left for experts is just turning people off from exploring and learning. When it doesn't need to be general purpose, has only one thread accessing it, stores at most 1MB of data, has only KV access (so basically persistent hashmap) and doesn't have to be blazing fast, the resulting code may be very simple.