News for hackers. Stuff that matters.
Re:Kb: A minimalist hacker-oriented knowledge base manager by laurent123456 on Thursday September 17, 2020 @12:56PM (#24507030)
For me this kind of tool needs to provide a way to sync between devices to be useful, and ideally be available on mobile. As it's using sqlite3 to store documents, it's probably not trivial to sync with something like Dropbox.
Re:Kb: A minimalist hacker-oriented knowledge base manager by apetresc on Thursday September 17, 2020 @01:20PM (#24507312)
Why would a sqlite3 DB file not be trivial to sync with Dropbox or Syncthing? Are there platform-specific nuances to decoding or something?
Re:Kb: A minimalist hacker-oriented knowledge base manager by m000 on Thursday September 17, 2020 @01:38PM (#24507543)
Syncing at db-file level would create false sync conflicts when making edits while offline. You may even lose data, depending on how Dropbox/Syncthing resolve file-level conflicts. For fully automatic sync, you need to operate at the level of records.
Re:Kb: A minimalist hacker-oriented knowledge base manager by The_Colonel on Thursday September 17, 2020 @02:55PM (#24508535)
> You may even lose data, depending on how Dropbox/Syncthing resolve file-level conflicts.

It's even worse - Dropbox can corrupt the database file even without conflicts - it's not safe to copy database file which is currently open in some process since it can change within the reading operation. I mean, the original file stays OK, but the copy will be likely corrupt (and in this corrupt state synced into another instance).

For safe copy, Dropbox would have to force some FS-level snapshotting, but that would halt all database operations. I have received few bug reports for my app which were eventually traced into attempts to sync it with Dropbox and similar services.

Re:Kb: A minimalist hacker-oriented knowledge base manager by geoelectric on Thursday September 17, 2020 @04:28PM (#24509584)
I missed it was in a database when I checked it out. That'd be a hard no for me.

I much prefer separate text files for any minimal notes solution, since that plays well with nvAlt, Obsidian, 1Writer, etc, and is the safest sync in every file syncing service (they pretty much all know how to deal with text conflicts). It also lets me write side tooling to crawl and process notes much more easily than if I had to hit a database.

At this point, a proprietary database had better be justified by something epic like Roam's bullet transclusion or Evernote's back-end handwriting OCR, or some other killer feature that's hard to replicate locally in decoupled files. Otherwise, it's just not worth even considering.

Re:Kb: A minimalist hacker-oriented knowledge base manager by juped on Thursday September 17, 2020 @07:36PM (#24511248)
A ubiquitous public domain library is a proprietary database now?
Re:Kb: A minimalist hacker-oriented knowledge base manager by clankyclanker on Thursday September 17, 2020 @10:30PM (#24512343)
No, but it is non-transparent and can’t be edited with a text editor, without being unpacked and repacked like Fossil. Yet another layer of indirection is the last thing I want when I’m in a hurry to write down a thought before I forget it. Of course that can be overcome with practicing the tooling, but that’s also a non-negligible transition cost.
Re:Kb: A minimalist hacker-oriented knowledge base manager by geoelectric on Wednesday September 23, 2020 @04:47PM (#24571827)
Yes, because the database is the custom schema + the data being managed by the library, not the library itself.

The library is properly an example of a DBMS: database management system, it's only "a database" informally to lay users.

Re:Kb: A minimalist hacker-oriented knowledge base manager by The_Colonel on Thursday September 17, 2020 @05:29PM (#24510184)
> At this point, a proprietary database had better be justified by something epic like Roam's bullet transclusion or Evernote's back-end handwriting OCR, or some other killer feature that's hard to replicate locally in decoupled files. Otherwise, it's just not worth even considering.

Even basic things like backlinks are not possible (to do well) without some sort of indexes and overall control over data.

(assuming we're talking about large amount of data, 100 notes does not constitute "knowledge base" IMHO).

Re:Kb: A minimalist hacker-oriented knowledge base manager by geoelectric on Wednesday September 23, 2020 @04:55PM (#24571931)
Obsidian.md is doing them pretty well in plaintext. It has scaling issues, but think they come in a couple orders of magnitude above the "toy" threshold you mention. It might suffer a bit for a well-populated Zettelkasten until they optimize more, but for most users it'd be fine. I think a lot of the scaling issue was in the link graph analysis, and they've been steadily working on that.

To your point, I'm sure it caches a fair amount of that analysis in its .obsidian directory, but to mine, it can still calculate them from scratch on a new (or newly synced) note set. It does so invisibly the first time it sees the Vault (or the new file in the Vault directory, if you add it from elsewhere), so it's still portable, just with an indexing phase if you want to show a backlink or graph pane.

The important thing for me is that most other plaintext notes editors support the forward [[links]] that are the only real "source" data. The implied backlink analysis is just that, results of an analysis. It'd be nice for the cache to be portable, but not necessary.

Transclusion is where I'd agree with you, since that actually appears in the notes themselves rather than as part of an active sidebar. You're more or less stuck with proprietary software that knows how to look for anchors and render their targets inline, at least until/unless we get a generic format for it. But so far that's been more a reason I can't have transclusion yet than a reason why I'd move off plaintext notes in a directory.

Re:Kb: A minimalist hacker-oriented knowledge base manager by siscia on Friday September 18, 2020 @03:13AM (#24513847)
I build https://nostashapp.com pretty much for the same reason.

I needed it on very different devices and on mobile.

It is a web app, but it is coming with export functionality.

Re:Kb: A minimalist hacker-oriented knowledge base manager by ShinyRice on Thursday September 17, 2020 @01:20PM (#24507310)
Why not just use a separate program? I personally use Syncthing to sync my notes, among other things. It's peer to peer, doesn't even need an internet connection if your devices are on the same LAN.
Re:Kb: A minimalist hacker-oriented knowledge base manager by prezjordan on Thursday September 17, 2020 @01:37PM (#24507523)
Could you throw the .sqlite file into your Dropbox folder?
Re:Kb: A minimalist hacker-oriented knowledge base manager by mirekrusin on Thursday September 17, 2020 @03:21PM (#24508802)
Wouldn't fossil be perfect for this?