HNHacker News
TopNewBestAskShowJobs

agentkilo

254 karma · joined November 20, 2024

https://github.com/agent-kilo
submissionscomments
agentkilo··on All clocks are 30 seconds late
Well I was bothered by a similar problem when tweaking my StumpWM modeline long time ago.

I wanted to show the seconds in the clock on my modeline, but the modeline has a fixed refresh rate, which I set to 1HZ. Then I realized my clock can never be accurate.

Eventually I chose to hide the seconds to stop myself from having those nightmares, but I think they are coming back after reading this article.

agentkilo··on Zig's comptime is bonkers good
Well put. I always have the feeling that any language which has an `eval` function or an invokable compiler can do meta program. That said, I think the "big deal" is in UX/DX. It's really nice to have meta programming support built-in to the language when you need it.
agentkilo··on Curl -v Google.com
direct link to youtube video: https://youtu.be/atcqMWqB3hw

Well done, the "Guitar Solo" at 1:14 killed me lol.

Thanks to modern technology, as a civilization we can now efficiently convert the energy we harvested into memes.

agentkilo··on Playground Wisdom: Threads Beat Async/Await
People should try Janet (the programming language). Its fiber abstraction got everything right IMO.

Functions in Janet don't have "colors", since fiber scheduling is built-in to the runtime in a lower level. You can call "async" functions from anywhere, and Janet's event loop would handle it for you. It's so ergonomic that it almost feels like Erlang.

Janet has something akin to Erlang's supervisor pattern too, which, IMO, is a decent implementation of "structured concurrency" mentioned in the article.

← PreviousPage 2 of 2