thom's Avatar

thom

@shift.click

rust stdlib maintainer (library team member) | watches a lot of anime | on twitter as at_tcsc, and hachyderm as zuurr | bi | they/he

119
Followers
52
Following
17
Posts
04.05.2023
Joined
Posts Following

Latest posts by thom @shift.click

Post image

πŸ–€Heavy Souls πŸ–€

30.10.2025 00:23 πŸ‘ 303 πŸ” 129 πŸ’¬ 0 πŸ“Œ 1
Video thumbnail

i can't believe they have to play again today.

28.10.2025 07:21 πŸ‘ 1483 πŸ” 433 πŸ’¬ 13 πŸ“Œ 7
Iterator in std::iter - Rust A trait for dealing with iterators.

I would try doc.rust-lang.org/nightly/std/... rather than boxing to avoid the box overhead. That said, I'm at work at the moment so I can't really investigate. 1000 chains in a row is certainly a degenerate case and there's a number of reasons that could perform poorly, just not for the cited reason

20.10.2025 14:53 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
accum.rs - source Source of the Rust file `library/core/src/iter/traits/accum.rs`.

Sum uses fold: doc.rust-lang.org/nightly/src/..., which as linked in my other comment does this. If you're seeing rust being slower than the other languages here, it's more likely because of copying around the iterator object, which will be considerably larger in Rust. A profile might be useful.

20.10.2025 14:44 πŸ‘ 3 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0
iterator.rs - source Source of the Rust file `library/core/src/iter/traits/iterator.rs`.

default impl doesn't call next in a loop. It calls fold: doc.rust-lang.org/nightly/src/.... In the case of Chain, that has a custom impl that calls all the first iterator and then all the second iterator: doc.rust-lang.org/nightly/src/.... which avoids the issue (intentionally).

20.10.2025 14:37 πŸ‘ 4 πŸ” 0 πŸ’¬ 1 πŸ“Œ 1

Here’s my opinion on the new typescript compiler:

You should write programs in the language you want to.

12.03.2025 13:34 πŸ‘ 387 πŸ” 38 πŸ’¬ 22 πŸ“Œ 5

[being assigned a routine task that falls under my job description at my place of employment] what did I do to deserve this

30.12.2024 18:42 πŸ‘ 184 πŸ” 30 πŸ’¬ 1 πŸ“Œ 1
it's a picture of a in-progress gundam model kit. only the upper torso, head, and arms are completed. it is of the rx78-2 (the original gundam). the plastic used is all semi-transparent. on the desk you can see part of the assembly instructions, and behind you can see some of the runners.

it's a picture of a in-progress gundam model kit. only the upper torso, head, and arms are completed. it is of the rx78-2 (the original gundam). the plastic used is all semi-transparent. on the desk you can see part of the assembly instructions, and behind you can see some of the runners.

wip gunpla

02.07.2023 03:18 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

yeah my interest in semiprofessional tech things is at an all time low honestly >_>

i also like the aspect of twitter where people follow me for tech stuff and then i almost never tweet about tech, which this lacks... for now

02.07.2023 02:40 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

i dont really like mastodon or bluesky but i guess of the two this one seems slightly better?

02.07.2023 02:34 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

i still had this tab open i guess. the thing i love the most about it is how people rationalize software bugs in their heads. like, parallel universe is certainly a way you can explain that particular bug...

you see this kid of stuff with lots of speedrunning, and i love it every time.

29.06.2023 07:58 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

its so good

28.06.2023 21:27 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I'd just like to interject for a moment. What you're refering to as Skeets, is in fact, AT/Skeets, or as I've recently taken to calling it, AT plus Skeets. Skeets is not a platform unto itself, but rather another free component of a fully functioning AT system made useful by the DIDs, XRPC, and

28.04.2023 19:18 πŸ‘ 166 πŸ” 48 πŸ’¬ 13 πŸ“Œ 7

Map keys dont, Object does though, although theres some specialness with array. I guess you mean JSON tho

15.05.2023 20:21 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

(actually in reality, i would probably be very stressed out by the whole thing and dissappear from the public eye to handle it, but still)

11.05.2023 16:48 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

damn oklab is everywhere now. wild to me that not only did it get added to css ~2 years after the blog post, its the default colorspace for interpolation. i mean it owns so thats dope, just its crazy how fast the adoption has been. id never be sad again if a blog of mine had that kinda response

11.05.2023 16:46 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

narrator: it does

10.05.2023 22:00 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

god does bluesky really let me enter newlines in this textbox, which it completely deletes when i post? :|

10.05.2023 22:00 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

just spent half a day at work tracking down a bug in our build system, only to realize not only is it in an open source project i maintain, the bug is one i WONTFIXed several months ago. damn, my petard.

10.05.2023 21:59 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

admittedly "hard to prove correct" is probably what i signed up for when I typed `use core::intrinsics::{atomic_load_unordered, assume};`

06.05.2023 20:17 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

feeling the tension between an optimal impl and one that's slightly slower but simplifies the correctness proof (well, more of a correctness argument)it's easier for me to prove correctness of my code if only one thread ever performs some initialization, despite the init being (trivially) idempotent

06.05.2023 20:15 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

it's cool that i get to use my own domain i suppose

04.05.2023 03:38 πŸ‘ 4 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0