Viewing profile — alurm
alurm
HN member- Joined
- Sat, Feb 11, 2023, 11:36 PM UTC
- HN karma
- 103
- Public activity
- 31 items
- HN profile
- View on Hacker News ↗
About alurm
No profile information was provided.
Recent public activity
- story
-
comment
Comment #48565599
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 opera…
-
comment
Comment #48565520
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. :)
-
comment
Comment #48565508
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. …
-
comment
Comment #48565447
Good point! Added `vec_ptr[vec]` and `vec_len[vec]` helpers to mitigate this somewhat.
-
comment
Comment #48565439
Thanks for mentioning it, I've heard about stb, but this time around I actually looked at the code. Their approach is very nice.
- story
- story
-
comment
Comment #47475301
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 …
- story
-
comment
Comment #44843187
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 …
-
comment
Comment #44841072
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…
-
comment
Comment #44840912
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.rea…
- story
-
comment
Comment #44829461
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)
-
comment
Comment #44828052
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 a…
-
comment
Comment #44827587
Yeah, PowerShell and nushell are pretty cool, I hope they gain more adoption.
- story
-
comment
Comment #44760581
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 (…
-
comment
Comment #42570776
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 …
-
comment
Comment #42556931
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 …
-
comment
Comment #42555801
Thanks, fixed.
- story
-
comment
Comment #42335822
https doesn't make content trust worthy.
-
comment
Comment #41308407
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.