Lesley Lai
Computer Graphics & Programming Languages person.
I twoot about languages like C, C++, Rust, JS/TS, and OCaml.
I organize @graphicsmeetup@mastodon.gamedev.place
he/him
Since I reduced my usage of em-dash (it's pretty hard to type any way), my new best friend is parentheses. (Parentheses are really cool since you can use it to express non-linear flow, and you can also nest it (like this (isn't this cool?)))
What? It's hard to read? If you can read Lisp (I am sure, you, my target audience, can), this is a piece of cake
Added Mastodon comments functionality to my blog (the function is already there for the "microblog" section, and I just added it to regular posts).
Now, if I link a Mastodon post in a blog entry, all the replies from Mastodon will appear on the page.
What a good treat when you are learning something (generating functions in my case) and find a blog post written by someone you know: https://blog.demofox.org/2025/01/05/dice-deconvolution-and-generating-functions/. Thank you, @demofox@mastodon.gamedev.place.
Also, it's a good observation that generating functions are like the z transform (and also Fourier/Laplace in continuous space). All of those solve problems by transforming into a different space, solving the problem there, and then transforming back.
I don't know. The complexity of this issue (both implementations and the mental overhead of programmers) just to save a few keystrokes makes me feel it's not really worthwhile? It feels more like a fashion when the convinience is debatable?
Yet another person asked me "aren't your programmer's job to be replaced by AI soon?"
This friend's job is to predict the stock market.
I hope generators get more love in the C++ circle.
Unfortunately, I think a C++ coroutine-based generator has a non-trivial overhead compared to a hand-written iterator or state machine. It probably doesn't matter for a lot of use cases (like the example the author showed).
Trying to apply for jobs, and one job sent me this LeetCode-style coding challenge that I failed miserably. I am not that kind of person performing well under high pressure.
Choosing C++ was also a mistake. Their platform doesn't support debuggers, and STL index-out-of-bounds errors don't give me any information about where they occur. At the end, I am pretty much stuck in debugging hell with std::cout
