Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xyheme
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Ask HN: Node v.s. Deno v.s. bun which will win in the end?
1 points
by
xyheme
3y ago
|
1 comments
2.
▲
Yantrajs: Another Competitor with Node.js
(github.com)
1 points
by
xyheme
3y ago
|
0 comments
3.
▲
Ask HN: Is it ok to use CamelCase naming convention in C code base?
1 points
by
xyheme
3y ago
|
4 comments
4.
▲
Show HN: Using File System as Database
(readonly.link)
4 points
by
xyheme
3y ago
|
1 comments
5.
▲
by
xyheme
3y ago
directory tree is not as easy to view and edit as JSON. 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".
6.
▲
by
xyheme
3y ago
Me and a lot of linux user friends are using btrfs.
7.
▲
by
xyheme
3y ago
I should thought about that.
8.
▲
by
xyheme
3y ago
Isn't WinFS the reverse of "file system as database"? Which is "database as file system".
9.
▲
by
xyheme
3y ago
That all can be achieved by using file system as database. Not even complicated to implement. See couchDB for how to handle "what if two people are editing a file at once".
10.
▲
by
xyheme
3y ago
JSON is there for human to read a record of data by group. I think it is only good to use directory as data table to store JSON data files, but not for JSON data properties.
11.
▲
by
xyheme
3y ago
Inode limits depends on the file system you use. 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-
12.
▲
by
xyheme
3y ago
> The main reason is that I can use a variety of tools to view and manipulate files. 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 a
13.
▲
by
xyheme
3y ago
Thanks for the reminder about meaningful pathnames :)
14.
▲
by
xyheme
3y ago
Thanks for the link. 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.
15.
▲
by
xyheme
3y ago
So that I can use subdirectory to model "has many" relationship, like "a user has many projects".
16.
▲
by
xyheme
3y ago
I think, unless column-oriented database is used, "one file per row" is similar to normal row-oriented database. Maybe there are some benchmarks in the past.
17.
▲
by
xyheme
3y ago
Why not use one JSON file as one record of data, and use pathname as primary ID?
18.
▲
by
xyheme
3y ago
@jqpabc123 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.
19.
▲
Ash HN: What if we use file system as database?
11 points
by
xyheme
3y ago
|
39 comments
20.
▲
by
xyheme
3y ago
Thanks, I now learn double content s have this effect on SEO :)
21.
▲
by
xyheme
3y ago
Hi, it's you again :) 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 t
22.
▲
by
xyheme
3y ago
I enjoy the criticism, I think I can learn things from them. So far, feedback here are helpful to me. Sorry about the mis-deleting.
23.
▲
by
xyheme
3y ago
Sorry about that, I was migrating my websites and repo out of vercel (to use this tool), during which I deleted a lot of outdated github repos. I thinks I accidently deleted this repo. Now it is back: https://github.com/xiey
24.
▲
Show HN: Deploying subdomain-based routing like github.io
(github.com)
55 points
by
xyheme
3y ago
|
52 comments
25.
▲
by
xyheme
3y ago
> ... when it comes to node rearranges, which, frankly, I didn't quite get. I removed the syntax of rearrange, and added a new builtin `@spread`, I hope it is less confusing now :)
26.
▲
by
xyheme
3y ago
Caddy looks very complicated.
27.
▲
Show HN: A website server for serving many websites by subdomain-based routing
(github.com)
1 points
by
xyheme
3y ago
|
3 comments
28.
▲
by
xyheme
3y ago
At that time, feel free to open issue at: https://github.com/cicada-lang/inet/issues I will not miss an issue there :)
29.
▲
by
xyheme
3y ago
If you use telegram, welcome to join https://t.me/CicadaLanguage
30.
▲
by
xyheme
3y ago
If you use telegram, welcome to join https://t.me/CicadaLanguage
More ›