JSONlite
Data
document store
SHOW HN2017
How HN took it
1 positive, 11 neutral or asking, 1 mixed, 21 critical, out of 34 comments about the project. Thread score -0.53.
Idea: 0 for, 7 againstDocs: 0 for, 7 againstPerformance: 0 for, 4 againstExecution: 1 for, 1 againstDesign: 0 for, 2 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Maker takes criticism graciously and fixes reported bugs
From 1 comment
Just wanted to say, glad to see these are being fixed. My initial message was a little harsh -- although github makes it hard to tell if you are making a new library for fun, or…
CJefferson on HN
Objections
Title's 'serverless' and 'zero-configuration' claims are misleading
From 5 comments
I think your title might not be the best; * Serverless typically implies something accessible from more than the host you're on * It's not zero configuration, there's at least 1…
mtolan on HNI agree that "serverless" now mainly means "Function as a Service." The goal here is convey that there is no server component of the database, similar to SQLite and unlike…
edraferi on HNOf course there is no server, since we are talking about local. I agree with others that the title is misleading. I looked at the project for a while to realize that it's just a…
cocktailpeanuts on HNFirst I want to say this is really cool. Thanks for taking the time to make it and I'll definitely give a test drive. That said, it's not zero configuration and your title is…
vikingcaffiene on HNlol why is this so high in the front page? BTW this is NOT SERVERLESS therefore click bait in my book
sscarduzio on HN
Thin implementation; a bash wrapper over the filesystem with little added value
From 3 comments
This is 200 lines of bash using the file system as a database. The term document store implies a database which this is not. How is this different than just writing files to a…
sigmonsays on HNThe point is the project seems a bit low-effort. The most complicated thing in that bash script is argument processing. What is the added value of that project? does it come up…
camus2 on HNIf you are going to invoke the sacred name of 'sqlite', then I expect to see rock-solid code and quality testing. Instead, there are two tiny tests, and I found a couple of…
CJefferson on HN
Filesystem performance degrades with many files in one directory
From 3 comments
Hint: If you really want to use your filesystem as a database (and don't mind the haters, there's a long and storied history of doing just this), make sure you break it up into…
noonespecial on HNWith 1, you are trusting the directory returned by uuid will be unique --it should be, but it might not be, in particular if it is based on time and I run in two threads. With 4,…
CJefferson on HNEven if it's running on a filesystem that deals with it well, standard utilities like 'ls' don't deal with it well, as the default behavior is to sort. You end up having to look…
tyingq on HN
Insufficient tests and error handling
From 1 comment
If you are going to invoke the sacred name of 'sqlite', then I expect to see rock-solid code and quality testing. Instead, there are two tiny tests, and I found a couple of…
CJefferson on HN
SQLite with JSON1 already covers this
From 2 comments
Why not just use SQLite? Its JSON1 extension is pretty good, and then you get all the rest of SQLite's goodness as part of the package. https://sqlite.org/json1.html
NelsonMinar on HNWouldn't you be much better off storing JSON in a SQLite table?
bvinc on HN
Requests
Shard files into subdirectories by UUID prefix
From 2 comments
I think your title might not be the best; * Serverless typically implies something accessible from more than the host you're on * It's not zero configuration, there's at least 1…
mtolan on HNOn 4, the point might be that thousands of files in a single directory can create performance issues with readdir(). The usual workaround to that is to create subdirectories…
tyingq on HN
Add an append function
From 1 comment
Cool! Can you add an append function?
Tepix on HN
Rename to avoid clash with the R jsonlite package
From 2 comments
There's already an R package called jsonlite: https://cran.r-project.org/package=jsonlite
nerdponx on HNAlso the name of a very popular R package. Maybe call it JSONdb? Or JSONstore?
laughfactory on HN
Questions
What are the use cases for this project?
From 2 comments
This is 200 lines of bash using the file system as a database. The term document store implies a database which this is not. How is this different than just writing files to a…
sigmonsays on HNThis reminds me of NodeJS configstore[1]. I would be really happy to learn what are the use-cases for this tool, since using it via bash is actually an overkill. 1:…
drinchev on HN
What does sandboxing the current working directory mean?
From 1 comment
> JSONlite sandboxes the current working directory similar to SQLite. Huh, what does that mean?
jwilk on HN
Why not store JSON in SQLite instead?
From 2 comments
Wouldn't you be much better off storing JSON in a SQLite table?
bvinc on HNWhy not just use SQLite? Its JSON1 extension is pretty good, and then you get all the rest of SQLite's goodness as part of the package. https://sqlite.org/json1.html
NelsonMinar on HN
Alternatives named
SQLite with JSON1 extension
From 2 comments
Why not just use SQLite? Its JSON1 extension is pretty good, and then you get all the rest of SQLite's goodness as part of the package. https://sqlite.org/json1.html
NelsonMinar on HNServerless means anything really, a cli app is now serverless. I didn't know I was writing serverless applications for 20 years then. Serverless was already a bad buzz word, it…
camus2 on HN
Amazon DynamoDB
From 1 comment
I think your title might not be the best; * Serverless typically implies something accessible from more than the host you're on * It's not zero configuration, there's at least 1…
mtolan on HN
configstore
From 1 comment
This reminds me of NodeJS configstore[1]. I would be really happy to learn what are the use-cases for this tool, since using it via bash is actually an overkill. 1:…
drinchev on HN