3 ms·
Show HN: StrongMap – JavaScript Map Meets Your Hard Disk
- JosephRedfern 6y agoForgive me, but it's not clear what this actually does. 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?
- duhi88 6y ago>1000 lines of code in one file. Can't get a good sense of what it does, either.
- lucideer 6y ago> 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#L1 https://github.com/c9fe/StrongMap/blob/main/src/strongmap.js... [1] https://github.com/c9fe/StrongMap/blob/main/devlog/TECH.md https://github.com/c9fe/StrongMap/blob/main/devlog/TECH.md
- nicoburns 6y agoIt 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.
- deleted 6y ago[deleted]
- sktguha 6y agoHow is it different from something like node localstorage ?
- simlevesque 6y agolow effort readme's is bad content.
- datenarsch 6y agoNo 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.
- brundolf 6y agoSeeing 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.
- hgschmie 6y agoIt is AGPL, so if you use it, even internally, you basically open sourced your whole application.
- crazypython 6y agoAGPL let's you link against GPL code.
- juleska 6y agoWhat's the purpose of this ? Where it would be useful for ?
- graderjs 6y agoSo you know, this is neither satire, nor a toy. I made this, a serious project.