News for hackers. Stuff that matters.
Re:Time to retire the CSV? by karteum on Wednesday August 18, 2021 @01:39PM (#28224600)
I personally believe that at least SQLite matches all those criteria :

"1) A truly open format is available" : sqlite is open-source, MIT-licensed, and well specified (even though I am usually not so happy with its weak typing approach, yet in this case this precisely enables a 100% correspondance between CSV and sqlite since CSV has also no typing at all...)

"2) Applications have a speed increase from using csvs" : I think it should be obvious to everyone that this is the case...

"3) The new format should not be grossly larger than the one it is replacing" : this is also the case

Re:Time to retire the CSV? by anigbrowl on Wednesday August 18, 2021 @06:05PM (#28227741)
It's worth mentioning that SQLite is committed by its publishers to be backward-compatible out to 2050 and is the recommended by the Library of Congress as a safe long-term storage format (as are XML, JSON, and CSV). https://www.sqlite.org/locrsf.html

For single tables a database is probably overkill, but it's nice to have around when you need something reasonably powerful without being overly complex or hard to get started with.

Re:Time to retire the CSV? by dolni on Wednesday August 18, 2021 @11:54PM (#28230162)
I suppose if I was to recommend some "safe long-term storage formats" I, too, would choose things that are readable in plain ASCII and/or have open source roots.

Shoutout to the Library of Congress for doing the real heavy lifting here?

Re:Time to retire the CSV? by unnouinceput on Wednesday August 18, 2021 @01:50PM (#28224716)
sqlite files are binary files, so a non-starter. If I open them in Notepad I can't read the values like I can with CSV.
Re:Time to retire the CSV? by euroderf on Thursday August 19, 2021 @02:37AM (#28231040)
How about an app that opens an SQLite DB so that strings and numbers can easily be edited, and then on file save, SQLite's internal pointers and markers are updated ? Maybe an Emacs mode ?
Re:Time to retire the CSV? by postalrat on Wednesday August 18, 2021 @02:09PM (#28224975)
"If I open them in Notepad"

Well there's your problem.

Re:Time to retire the CSV? by munk-a on Wednesday August 18, 2021 @04:55PM (#28227015)
There is a definite demand for some import format that you can trivially edit - CSV excels at this right now and JSON isn't that bad. Binary dump formats definitely do have a time and a place but there is also a separate need for trivially human readable formats.
Re:Time to retire the CSV? by postalrat on Wednesday August 18, 2021 @06:00PM (#28227701)
I guess my point is that CSVs or any text files aren't really "human readable". You still need some application top view them.
Re:Time to retire the CSV? by icelancer on Wednesday August 18, 2021 @09:09PM (#28229221)
I can - and do - read a CSV by opening it in Notepad++ to view basic data. This isn't possible with a SQLite file.
Re:Time to retire the CSV? by creata on Thursday August 19, 2021 @01:04AM (#28230519)
In some incredibly pedantic sense, sure. But the difference is that every computer comes with what a human needs to read a CSV file. That's not true of an SQLite database.
Re:Time to retire the CSV? by atatatat on Thursday August 19, 2021 @10:46AM (#28234467)
Could it be?
Re:Time to retire the CSV? by CRConrad on Thursday September 02, 2021 @02:09AM (#28389160)
Sure, could be. In about the same sense that it could be that every computer comes with a free and open source operating system. Could be; it's not theoretically impossible -- but...
Re:Time to retire the CSV? by HanaShiratori on Wednesday August 18, 2021 @09:02PM (#28229169)
So what's the alternative? Good old pen and paper?
Re:Time to retire the CSV? by vertere on Thursday August 19, 2021 @03:16AM (#28231231)
Doesn't count, you still need light to make it human-readable.

/s