Imogen
banner
imogenbits.bsky.social
Imogen
@imogenbits.bsky.social
ok this one's the worst so far
December 5, 2025 at 9:53 AM
I simply avoid this by only interacting with languages where things never appear to make sense
December 4, 2025 at 11:17 AM
And then when you do have to use it, its an immediate flag that you're probably using the array API in a bad way.

Of course, after the compilation it's still all just ints. My idea is just about turning the abstract API that arrays expose into something that pushes people towards a particular usage
December 2, 2025 at 11:37 AM
If we then also make things like .first() and .last() methods on arrays, have search functions return the wrapped values, have the wrappers implement arithmetic, etc. we could imo get to a point where in "good" code you never actually see the wrapper class
December 2, 2025 at 11:37 AM
so what if we actually just make that code really annoying to write? We could say that arrays aren't indexed by ints but by SomeAnnoyingIntWrapper and you'd always have to write

for i in range(len(my_list)):
func(my_list[SomeAnnoyingIntWrapper.LongConstructorName(I)])
December 2, 2025 at 11:37 AM
So e.g. in Python you don't really want to write code like

for i in range(len(my_list)):
func(my_list[i])

but that code is more or less just as tempting to write compared to the better

for element in my_list:
func(element)
December 2, 2025 at 11:37 AM
ok so this isn't super well thought out, but the general idea is that "good" array access usually isn't done via raw indexing but through some intermediate layer. Most often some kind of iteration protocol, first searching through the array and then using the resulting value, etc.
December 2, 2025 at 11:37 AM
My real hot take is that array indices shouldn't start with either value or even be integers at all.

(they should be some Index "struct" that the compiler inlines, purely to make good array access like first/last and iterators much easier than unsafe indexing)
December 1, 2025 at 3:57 PM
thanks :3 I'm really happy with how they turned out
November 30, 2025 at 11:04 PM
these are beautiful! Do you sell prints somewhere?
November 26, 2025 at 12:46 PM
It took me several restaurant visits in the UK to realise that I didn't just pick the most specifically incompetent places imaginable, y'all just enjoy all your vegetables as quasi-smoothies?!
November 16, 2025 at 12:09 PM
I am shocked that this didn't turn into an extremely self deprecating joke
November 13, 2025 at 5:34 PM
his point always has been that people are reacting to the vibes about inflation, rather than inflation itself. that perfectly matches people talking about inflation in focus groups.
November 7, 2025 at 10:57 AM
personally, I like them more on the front. Then it's visible when I'm looking in the mirror or when I'm wearing a jacket over it etc. But I can see how some people prefer it on the back too
November 7, 2025 at 6:47 AM
I have no idea what VCL is, but that does look really cool! and it's fun how you can tell it's your article just by the writing style alone :3
November 6, 2025 at 11:10 PM
urgh, fuck. I don't think I knew her much but it always just hurts to hear that people that touched my life in random little ways are gone and can't keep making the world a better place for everyone.
November 6, 2025 at 2:29 PM
feels like brain seizures would be the kinda thing you'd want reasonably low error bars on, but who can really complain about +/- 1
November 3, 2025 at 12:12 AM
it's so insane how much easier it would be to just have info infinitely better systems. But no, it's for a lot of people it's deeply important that we go out of our way to make things worse for others.
November 2, 2025 at 11:22 PM
I spent a good 15 minutes staring at the notes saying a coefficient should be 2 when my repeated calculations always ended up at sqrt(4)

I only figured it out once I asked other people...
October 29, 2025 at 1:19 PM
whenever I hear someone say that they looked something up on chatgpt as some kind of argument of its truth I just lose all respect for them
October 29, 2025 at 1:10 PM
actually, my favourite genre of this is when I teach complexity theory and like half of the random mistakes people make end up being equivalent to "proving" a conjecture that's been open for several decades :D
October 24, 2025 at 12:14 AM
It's so impressive how after even just a couple weeks my students have mastered model theory enough that inferences that elude even the most advanced proof systems I know are utterly "obvious" to them!
October 24, 2025 at 12:11 AM
The monarchy absolutely is a great system, it makes total sense that a 80 year old is "punishing" his brother by asking him to move to a literal castle and that's somehow international news people think is totally reasonable?
October 22, 2025 at 8:22 PM