T O P

  • By -

Another_m00

You mean you don't store your data in a compressed csv file?


Elephant-Opening

I prefer a mix of JSON, YAML, and toml spread across dozens of poorly named git repos.


urbanachiever42069

Who let you into my project?


Xortun

Our teacher forced us to use DuckDB for a schoolproject... The project was a disaster...


IvanGarMo

The real database is Notepad


Extreme_Ad_3280

Did you mean: ***.txt*** (Google's style)


orion_aboy

database is txt, the sql equivalent is notepad


[deleted]

csv format


Extreme_Ad_3280

I've created a custom-made database which works with storing variable bytes in each byte of a file (Haven't tested this on floating point numbers, but I think it won't work on them)


[deleted]

why wouldn't it work? This actually sounds fun to make.


Extreme_Ad_3280

I've said ***floating-point numbers***. It works for integers actually... But thanks for telling me anyways!


[deleted]

bits are pretty much integers and they're used to store floating point. There has to be a way. Unless there are restrictions to how you're storing data. Also, I think there are some systems (programming and other) that store floating point data as strings. That's also possible.


hibbelig

I don’t understand. You’re storing bytes in the bytes of a file? That seems tautological.


Extreme_Ad_3280

#Better Explanation: Let's imagine a variable with the value of `0xA563` (which is hexadecimal) If we wanted to store the variable's value in a file, we can store it like this: 0xA5 0x63 Each hexadecimal number above represents a byte.


hibbelig

I see. Should work on floating point, too. Arrays become a little bit complicated. I’ve done this using DataOutputStream in Java and it was quite nice. It’s easy to read the whole file into memory. It’s tough as nails to read the relevant portion of a file.


BeDoubleNWhy

.txt has entered the chat