Live data from Hacker News

Viewing profile — alurm

alurm

HN member
Joined
Sat, Feb 11, 2023, 11:36 PM UTC
HN karma
103
Public activity
31 items

About alurm

No profile information was provided.

Recent public activity

  1. story
  2. 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…

  3. 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. :)

  4. 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. …

  5. comment
    Comment #48565447

    Good point! Added `vec_ptr[vec]` and `vec_len[vec]` helpers to mitigate this somewhat.

  6. 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.

  7. story
  8. story
  9. 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 …

  10. story
  11. 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 …

  12. 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…

  13. 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…

  14. story
  15. 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)

  16. 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…

  17. comment
    Comment #44827587

    Yeah, PowerShell and nushell are pretty cool, I hope they gain more adoption.

  18. story
  19. 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 (…

  20. 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 …

  21. 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 …

  22. comment
    Comment #42555801

    Thanks, fixed.

  23. story
  24. comment
    Comment #42335822

    https doesn't make content trust worthy.

  25. 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.