Live data from Hacker News

Show HN: StrongMap – JavaScript Map Meets Your Hard Disk

github.com

1–10 of 14 posts

Re: Show HN: StrongMap – JavaScript Map Meets Your Hard Disk

#3

Forgive 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?

>1000 lines of code in one file. Can't get a good sense of what it does, either.

Re: Show HN: StrongMap – JavaScript Map Meets Your Hard Disk

#4

Forgive 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?

> 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

Re: Show HN: StrongMap – JavaScript Map Meets Your Hard Disk

#5

Forgive 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?

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.

Re: Show HN: StrongMap – JavaScript Map Meets Your Hard Disk

#10

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.

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.

Post reply on HN