Readit News logoReadit News
taylorallred commented on 4 billion if statements (2023)   andreasjhkarlsson.github.... · Posted by u/damethos
taylorallred · 12 days ago
Meanwhile:

    not     eax
    and     eax, 1

taylorallred commented on Response to "Ruby Is Not a Serious Programming Language"   robbyonrails.com/articles... · Posted by u/robbyrussell
taylorallred · 23 days ago
I see people waxing poetic over Ruby a lot saying that it's a language "built for the human". The thing is, every language is built for humans (or at least should be) but we tend to have different definitions for what "built for humans" means. Ruby certainly has some clean and expressive syntax, but I personally find it difficult to use because of its dynamic typing (which makes it hard to know what the types are while I'm writing it) and the heavy use of macros and other magic (which does unknown operations without my knowledge and introduces symbols into the scope mysteriously). That said, it clearly works great for some humans, just not for this human (me).
taylorallred commented on Zig and the design choices within   blueberrywren.dev/blog/on... · Posted by u/lerno
taylorallred · a month ago
I have admired many parts of Zig and its philosophy but I've never seen it as a language that I want to use. What I've noticed is that Zig users care most about explicitness, simplicity, and minimal indirection. This leads to a lot of syntax that is cumbersome to read (albeit unambiguous) like casting and a lack of "convenience" features. I can't help but think that maybe they're right and that this philosophy probably leads to better software because nothing is "hidden". But, I also think that there's a level of abstraction/indirection that makes code clearer and less error-prone. It's a tricky balance to achieve, and past languages have succeeded and failed at it to different degrees. Either way, I echo the OP's sentiment: if Zig is your jam, great, go make some awesome stuff with it. It's just not my go-to today.
taylorallred commented on Garbage collection for Rust: The finalizer frontier   soft-dev.org/pubs/html/hu... · Posted by u/ltratt
haberman · 2 months ago
I agree, but in my experience arena allocation in Rust leaves something to be desired. I wrote something about this here: https://blog.reverberate.org/2021/12/19/arenas-and-rust.html

I was previously excited about this project which proposed to support arena allocation in the language in a more fundamental way: https://www.sophiajt.com/search-for-easier-safe-systems-prog...

That effort was focused primarily on learnability and teachability, but it seems like more fundamental arena support could help even for experienced devs if it made patterns like linked lists fundamentally easier to work with.

taylorallred · 2 months ago
Thanks for those links. Have you tried using arenas that give out handles (sometimes indexes) instead of mutable references? It's less convenient and you're not leveraging borrow checking but I would imagine it supports Send well.
taylorallred commented on Garbage collection for Rust: The finalizer frontier   soft-dev.org/pubs/html/hu... · Posted by u/ltratt
taylorallred · 2 months ago
For those who are interested, I think that arena allocation is an underrated approach to managing lifetimes of interconnected objects that works well with borrow checking.
taylorallred commented on Working pipe operator today in pure JavaScript   github.com/irony/aspipes... · Posted by u/urvader
taylorallred · 3 months ago
Piping syntax is nice for reading, but it's hard to debug. There's no clear way to "step through" each stage of the pipe to see the intermediate results.
taylorallred commented on Imagining a language without booleans   justinpombrio.net/2025/09... · Posted by u/todsacerdoti
taylorallred · 3 months ago
I love seeing these kinds of explorations in the realm of language design. I've wondered about expanding the notion of boolean operators like this. For all its flaws, one thing I've always liked about JS is the overloaded (||) and (&&) operators. It's really slick to write something like `foo.get_that_can_fail(x) || "default value"`.
taylorallred commented on React is winning by default and slowing innovation   lorenstew.art/blog/react-... · Posted by u/dbushell
taylorallred · 3 months ago
I'm less concerned about people not adopting other frameworks. I'm concerned about people not knowing/learning the fundamentals of how websites work. It's apparent in job interviews that developers from bootcamps are only learning how to make sites/apps with React and don't know the fundamentals that support it.
taylorallred commented on JetBrains working on higher-abstraction programming language   infoworld.com/article/402... · Posted by u/pjmlp
taylorallred · 4 months ago
"So-called "natural language" is wonderful for the purposes it was created for, such as to be rude in, to tell jokes in, to cheat or to make love in (and Theorists of Literary Criticism can even be content-free in it), but it is hopelessly inadequate when we have to deal unambiguously with situations of great intricacy, situations which unavoidably arise in such activities as legislation, arbitration, mathematics or programming." -Dijkstra
taylorallred commented on Design patterns you should unlearn in Python   lihil.cc/blog/design-patt... · Posted by u/zeitlupe
taylorallred · 5 months ago
I really appreciate how this article explains why certain design patterns became a thing. Usually, it was to address some very practical problem or limitation. And yet, a lot of younger programmers treat these patterns like a religious dogma that they must follow and don't question if they really make sense for the specific situation they are in.

u/taylorallred

KarmaCake day312April 14, 2025View Original