Show HN: StrongMap – JavaScript Map Meets Your Hard Disk(github.com)
github.com
Show HN: StrongMap – JavaScript Map Meets Your Hard Disk
https://github.com/c9fe/StrongMap
8 comments
> Is it a map that commits to disk?
It looks that way.
> Does it operate on the filesystem level, or talk to the raw partition directly
Seems to use NodeJS' `fs` module[0]
> What's it for?
According to [1]: "How to make a Hash into a Disk system with fast lookup"
[0] https://github.com/c9fe/StrongMap/blob/main/src/strongmap.js...
[1] https://github.com/c9fe/StrongMap/blob/main/devlog/TECH.md
It looks that way.
> Does it operate on the filesystem level, or talk to the raw partition directly
Seems to use NodeJS' `fs` module[0]
> What's it for?
According to [1]: "How to make a Hash into a Disk system with fast lookup"
[0] https://github.com/c9fe/StrongMap/blob/main/src/strongmap.js...
[1] https://github.com/c9fe/StrongMap/blob/main/devlog/TECH.md
>1000 lines of code in one file. Can't get a good sense of what it does, either.
It uses the standard Node.js filesystem functions. Set a key a value writes the value to a file defined by the key and the name of the map that you set when you create it.
I have no idea what it's for.
I have no idea what it's for.
low effort readme's is bad content.
No offense, but if some code/library/project has no proper README and documentation, I immediately dismiss it as a potential candidate for use in any of my projects.
It is unclear to me what this even is and why I possibly should want to use it.
It is unclear to me what this even is and why I possibly should want to use it.
Seeing the caveats:
> - very slow
> - inefficient
> - incomplete
> - buggy and leaky
I'm assuming it isn't intended for production use, at least right now, maybe ever. Could just be early, could be a toy project, could even be satirical.
> - very slow
> - inefficient
> - incomplete
> - buggy and leaky
I'm assuming it isn't intended for production use, at least right now, maybe ever. Could just be early, could be a toy project, could even be satirical.
So you know, this is neither satire, nor a toy. I made this, a serious project.
It is AGPL, so if you use it, even internally, you basically open sourced your whole application.
AGPL let's you link against GPL code.
What's the purpose of this ? Where it would be useful for ?
[deleted]
How is it different from something like node localstorage ?
Is it a map that commits to disk? Does it operate on the filesystem level, or talk to the raw partition directly (as sort of suggested by the example)? What's it for?