xyheme
Yantrajs: Another Competitor with Node.js
Ask HN: Is it ok to use CamelCase naming convention in C code base?
Show HN: Using File System as Database
One big JSON file is harder.
I am not fancy, and the aim is to simply use file system as database.
Not fancy stuff like "database as file system as database".
Which is "database as file system".
Not even complicated to implement.
See couchDB for how to handle "what if two people are editing a file at once".
I think it is only good to use directory as data table to store JSON data files, but not for JSON data properties.
I am using Btrfs.
Btrfs inode limits is in a whole different league (whereas ext4's inodes are allocated at filesystem creation time and cannot be resized after creation, typically at 1-2 million, with a hard limit of 4 billion, btrfs's inodes are dynamically allocated as needed, and the hard limit is 2^64, around 18.4 quintillion.
> -- https://unix.stackexchange.com/questions/18388/what-are-the-...
This is also the reason I am researching this old "What if" problem.
Because I think comparing to some version of MySQL or PostgreSQL, files are stable, open and timeless.
I read it, and I think it describes bad ways of using file system, but there are also good ways.
Just like there are bad ways of using SQL databases, and there are also NoSQL, and bad ways of using NoSQL databases.
Maybe there are some benchmarks in the past.
I agree.
We (developers) should also design tools to address the need of small scale web apps.
Maybe, we do not even need some general tools to use file system as database, just speak this method more often.
Ash HN: What if we use file system as database?
For example:users/{user}/index.jsonusers/{user}/projects/{project}/index.json
I was migrating all my websites and repo out of vercel (to use this tool), during which I mis-deleted this repo. It is back now.
Some background story here.
I am a little frontend programmer. Years ago, I worked in a company where the team built a complicated CI system. If a frontend programmers want to share some internal demo projects, he/she must go through this complicated CI pipeline, and get a internal subdomain at the end of the console log output of the last page of the CI building stages.
It sucks.
In my team, we all know vercel and netlify, but the internal demo projects can not use them.
Thus, my aim is to build a open-source mini vercel and netlify alternative.
I will build some command line tools like `vercel deploy`.
For my personal use, and for my future teams (where everyone is both Dev and Ops).
This `x-server` is a starting point.
More Show HNs will come :)
------
Some of my projects will feel stupid to you, please criticize them hard.
I will learn.
My aim is to build a open-source mini vercel and netlify alternative.
`x-server` is just a starting point.
I have even more "evil" projects, like "using file system as database", I will leave that for another Show HN :) :) :)
So far, feedback here are helpful to me.
Sorry about the mis-deleting.
I thinks I accidently deleted this repo.
Now it is back: https://github.com/xieyuheng/x-server
Show HN: Deploying subdomain-based routing like github.io
I removed the syntax of rearrange, and added a new builtin `@spread`, I hope it is less confusing now :)
Show HN: A website server for serving many websites by subdomain-based routing
I will not miss an issue there :)