Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alurm
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
1.
▲
by
alurm
16d ago
Location: Tbilisi, Georgia Remote: Yes Willing to relocate: Yes Technologies: Rust, Nix Résumé/CV: https://alurm.github.io/cv.pdf Email: alan.urman@gmail.com Software engineer, open source maintainer. S
2.
▲
Nix Taco Sprint 2026
(jrdsgl.com)
6 points
by
alurm
3mo ago
|
0 comments
3.
▲
by
alurm
3mo ago
Yeah, I've added macros `vec_len` and `vec_ptr` (or, enums, actually), which help somewhat. `arr[3]` should be flagged by the compiler it is known to the compiler that you're operating on an array. You can pass `arr` as `&arr`
4.
▲
by
alurm
3mo ago
Thank you! I implemented this pattern initially about a year ago, but decided to write about it now. Since you liked it, it wasn't for nothing. :)
5.
▲
by
alurm
3mo ago
You're right, I added some more clarity in the README. Interestingly, I think my approach will work fine on CHERI, since the pointer is never dereferenced, but I didn't test this. But yeah, there are some architectures where it wo
6.
▲
by
alurm
3mo ago
Good point! Added `vec_ptr[vec]` and `vec_len[vec]` helpers to mitigate this somewhat.
7.
▲
by
alurm
3mo ago
Thanks for mentioning it, I've heard about stb, but this time around I actually looked at the code. Their approach is very nice.
8.
▲
A generic dynamic array in C that stores no capacity and needs no struct
(gist.github.com)
27 points
by
alurm
3mo ago
|
33 comments
9.
▲
by
alurm
6mo ago
Making a strict subset of some existing language (Go) be a "better C" is quite an interesting idea compared to others (D, Zig, Hare, C3, D, ...), haven't seen it elsewhere. No new syntax. And Go seems to be a pretty good choi
10.
▲
by
alurm
1y ago
Yes, but you can generate JSON with other tools easily. home.md describes how you can do it with Nix, but just as easily you can use Cue or something else. Edit: mentioned this in the README explicitly. Thanks!
11.
▲
by
alurm
1y ago
Yeah, in general (a bit of a tangent), ideas from Plan 9 are really powerful. For example, the Acme text editor exposes it's API as a file system (it's represented via Unix sockets in plan9port, but FUSE is available as well there
12.
▲
by
alurm
1y ago
Well, if you're generating JSON with Nix, you don't have to put everything inside of one file. It would be a better idea to split it up into multiple. You can also use builtins.readFile for reading config files which don't ha
13.
▲
Json2dir: a JSON-to-directory converter, a fast alternative to home-manager
(github.com)
51 points
by
alurm
1y ago
|
20 comments
14.
▲
by
alurm
1y ago
YSH looks very nice here, thanks. I thought to mention YSH, but have no experience with it, so I hoped you would comment. (I guess we're duplicating threads at this point :D)
15.
▲
by
alurm
1y ago
Sure. I have tried Bash namerefs. I found them to be kinda awkward, since you need to name them uniquely. So, you have to pretend that they are global variables, even though they are declared inside a function, which makes their usage verbo
16.
▲
by
alurm
1y ago
Yeah, PowerShell and nushell are pretty cool, I hope they gain more adoption.
17.
▲
Moreshell tricks: first class lists, jq, and the es shell
(alurm.github.io)
41 points
by
alurm
1y ago
|
14 comments
18.
▲
by
alurm
1y ago
Location: Yerevan, Armenia. Remote: yes. Willing to relocate: yes. Technologies: Rust, C/C++, Bash, Go, Linux, Nix. Résumé/CV: https://alurm.github.io/resume/alan-urmancheev.html (or .pdf for a PDF). Email: a
19.
▲
by
alurm
2y ago
I like your approach. (Implicitly) using [1] instead of [false] as a default is less typing for sure (but maybe a bit more confusing?). Also, objects being switched on really have to be tables in my version anyway (since overriding __call f
20.
▲
by
alurm
2y ago
Honestly, not much. I found it nice how it's possible to emulate switches in Lua with so little code, without the result looking too ugly. You may find this pattern useful. That's it. The catch is that, unlike with normal switches
21.
▲
by
alurm
2y ago
Thanks, fixed.
22.
▲
I made a tiny library for switches and sum types in Lua
(github.com)
83 points
by
alurm
2y ago
|
7 comments
23.
▲
by
alurm
2y ago
https doesn't make content trust worthy.
24.
▲
by
alurm
2y ago
In this case it doesn't matter much I think. I suppose the api existed for ages. But I prefer openbsd or man7 pages, sure.
25.
▲
by
alurm
2y ago
Pretty sure it's fake.
26.
▲
by
alurm
2y ago
As I understand, Bittorrent is not a persistent data structure. Git and IPFS are. Radicle is another interesting approach. They used IPFS but switched to a custom protocol, as I understand, for performance.
27.
▲
by
alurm
3y ago
This is very funny.
28.
▲
by
alurm
3y ago
Click bait hacker news title.
29.
▲
by
alurm
3y ago
Here's how I understand it. One important (and beautiful) thing to understand about C is that declarations and use in C mirror each other. Consider the same type written in Go and C: array of ten pointers to functions from int to int.
30.
▲
Java vs. Go
(telegra.ph)
1 points
by
alurm
4y ago
|
0 comments
More ›