Better HN
topnewbestaskshowjobs
Log inSign up

jswrenn

953 karma · joined Dec 8, 2015 (10y ago) · 105 submissions

jack.wrenn.fyi

[ my public key: https://keybase.io/jsw; my proof: https://keybase.io/jsw/sigs/5ksJvZggatSVHFut1Re-QCnEWoPMSWaUvHRHU8hqr5A ]

Submissions

comment 1y ago · link · parent

Sure, in areas without robust transit, transit is a problem. But I'm responding to RandallBrown's assertion that there's a persistent last mile issue in areas with robust transit. There's not. Manhattan is evidence that robust transit solves the last mile problem for most people.

comment 1y ago · link · parent

> Trains still don't solve last mile transport for most people

This has not been my experience since moving to Manhattan last January. Subways, alone, close the gap between regional rail and most destinations astoundingly well. I haven't yet needed to use a bus (but they seem abundant, too), and I haven't even thought of taking a taxi yet.

Here, robust transit has solved the last mile problem for most people.

comment 2y ago · link · parent

Author, here! Happy to answer any questions.

comment 2y ago · link · parent

If you enjoy thinking about the legal implications of this, you'll almost certainly enjoy the first entry in "Legal Systems Very Different From Ours, Because I Just Made Them Up": https://slatestarcodex.com/2020/03/30/legal-systems-very-dif...

An excerpt:

> The Clamzorians are animists. They believe every rock and tree and river has its own spirit. And those spirits are legal people. This on its own is not unusual – even New Zealand gives rivers legal personhood. But in Clamzoria, if a flood destroys your home, you sue the river.

comment 3y ago · link · parent

It already exists! https://github.com/cuviper/alloc_geiger

comment 3y ago · link · parent

The article devotes a paragraph to saying as much. This line of criticism reminds be a bit of the debacle around the I-enjoy-coffee-with-my-husband-in-the-garden tweet: https://www.insider.com/woman-shocked-accusations-privilege-...

comment 3y ago · link · parent

I don't think that having two numbers will help much. I'd guess that most sim-swapped cell numbers are leaked in data breaches or acquired through data brokering. Enrolling a number in 2fa is letting people know your number, because you're tying that number to the account.

A separate number for each account might help. Maybe.

comment 3y ago · link · parent

I, for one, would very much so like to live in a row house, but they're nigh illegal to construct in my city.

comment 3y ago · link · parent

It's an area of active development! I'm hopeful the situation will improve significantly this year.

For tracing suspended Futures, I've worked on a few approaches:

1. If you don't mind annotating your async functions, you can use the async-backtrace crate, which provides pretty-printing out-of-the-box: https://crates.io/crates/async-backtrace

2. If you are already using the `tracing` ecosystem, you can use the tracing-causality crate (it doesn't yet include pretty-printing, but it's not too hard to add that on): https://crates.io/crates/tracing-causality

3. If you are only supporting Linux (and maybe MacOS) and you aren't stripping away debuginfo from your binaries, you can build atop the deflect crate (https://jack.wrenn.fyi/blog/deflect/). If your `Future` purely consists of `async` blocks, Tyler Mandry's reflection based approach works well: https://github.com/tmandry/rust-dbg-ext/tree/async-backtrace...

For analyzing stack traces of active futures, I'm not aware of any good ways to reliably filter out irrelevant frames (e.g., frames from the runtime).

comment 3y ago · link · parent

dupe (2 days ago): https://news.ycombinator.com/item?id=34798281

comment 3y ago · link · parent

I fantasize about that, too. You might be interested in the work of Culdesac (https://culdesac.com/); they're building an expressly car-free neighborhood, from scratch.

I'm optimistic that I can make strides closer to home. I have only ever lived in places that predated the advent of automobiles. At one time, they were very accessible via walking, biking, rail, and trolley. So, last fall, when I moved back to Providence, I made it my mission to get involved in local transit activism. It's been a great source of social and civic satisfaction, and I intend to repeat the exercise when I move again next Fall.

It feels like positive change is (slowly) happening.

12.

Oh the Crates You’ll Go! A 2022 Rust Retrospective(jack.wrenn.fyi ↗)

2 points · by jswrenn · 3y ago · discuss

comment 3y ago · link · parent

It only works if DWARF is generated. By default, the `release` profile of Cargo sets `debug = false` [0]. But, it's quite easy to override this setting, and have a build that is both optimized and includes debuginfo.

[0]: https://doc.rust-lang.org/cargo/reference/profiles.html#rele...

comment 3y ago · link · parent

Yep!

comment 3y ago · link · parent

Absolutely! That's the approach that frunk [0] takes. Frunk (and other reflection libraries like it) are suitable for most use cases, and make better use of Rust's affordances.

My crate is suitable for cases where you cannot know (or control) the set of types you might need to reflect on in advance. It's primary use-cases are related to debugging.

[0]: https://docs.rs/frunk

comment 3y ago · link · parent

Yes, unfortunately that's a tradeoff here. Rust does support splitting debug info into other files, but Deflect doesn't support loading split debuginfo yet.

comment 3y ago · link · parent

Oh, I should add a note about that. Fortunately, it's quite easy to tell Rust to generate debuginfo even in release mode.

18.

Native Reflection in Rust(jack.wrenn.fyi ↗)

277 points · by jswrenn · 3y ago · 65 comments

comment 4y ago · link · parent

> Also note that you have to go out of your way to get broken by such additions: you have to declare a trait, then implement that trait for a group of types that you didn't define, and then use that trait on standard library types.

There's some mild irony here, in that you're replying to burntsushi, who just released 1.0 of a library that employs this pattern: https://news.ycombinator.com/item?id=32762345

I also think you might be downplaying the ease of hitting of the problem, too. While RFC1105 declares that this sort of breakage is acceptable, Rust's maintainers are, in practice, (understandably) hesitant to break builds. The stabilization of `Iterator::intersperse` was aborted after it was discovered that doing so would break the no-less-than 319 crates that directly or transitively depend on `Itertools::intersperse`: https://github.com/rust-lang/rust/pull/89638

Speaking as one of the maintainers of itertools: This whole situation feels kinda awful, and kinda makes me want to discourage others from using itertools. :(

comment 4y ago · link · parent

Oh, whoa, I'm the author of this! Happy to answer any questions.

comment 4y ago · link · parent

We've made a point to ride all the lines, but mostly ride Red Line (with a dash of Green), plus the Providence commuter rail line. Our rides tend to be during evenings, so the cars aren't sparkling clean. But, so far, the worst we've experienced are some loose french fries.

comment 4y ago · link · parent

1) Amtrak isn't light rail. It definitely doesn't smell like piss.

2) Your characterization of light rail does not remotely resemble the reality my partner and I have experienced in the Boston area. We have yet to ride in a rail car that "smells like piss". It's fast, safe, and inexpensive. We do not have to worry about enduring property damage to our private vehicles, or injury from other drivers. I suspect our experience is not unusual among MBTA riders; per the 2015-17 MBTA Systemwide Passenger Survey [1], 70% of subway riders have access to one or more cars and 82% hold a valid drivers license.

[1] https://www.ctps.org/dv/mbtasurvey2018/index.html

comment 4y ago · link · parent

Buried amidst the sensationalism of people "popping pills" at the behest of their psychiatrists is the real lede:

> [...] the Drug Enforcement Administration decides how much can be sold for the entire country. And the DEA has dropped its allowed quotas. In 2016, it allowed 50,000 kilograms to be sold; but for 2022, it has lowered the amount to 41,200 kilograms. [...] All of which is leading some people to buy illegal Adderall, which goes by the street name of “Adderall.” [...] Some wind up with fentanyl-laced Adderall.

This is unconscionable. These shortages inflict tremendous anxiety upon those who rely on amphetamines to treat their ADHD. As anyone who is prescribed amphetamines can confirm: effective treatment is very sensitive to dosage, and unplanned pauses in treatment Really Suck.

A few months ago, my local CVS told me to either transfer my prescription, or come back the following month — they had reached their procurement quota. Last month, it took me two weeks to get to the front of their wait-list and get my prescription filled.

What choices does this leave patients who are unable to easily get to other pharmacies? At best, they're compelled to override the judgement of their care providers and either ration or entirely skip doses. At worst (or so this article claims) it pushes patients onto the black market.

A quick google search suggests that amphetamine shortages stretch back years. I feel immensely lucky to have lived in unaffected locales up until recently, and I feel immense anxiety to discover that my present locale is plagued by shortages with no end in sight.

comment 4y ago · link · parent

datomic

comment 5y ago · link · parent

Correction: SiriusXM owns Pandora, not Spotify.

https://investor.siriusxm.com/investor-overview/press-releas...

comment 5y ago · link · parent

I think this title needs a '(2016)' appended to it.

Between print stylesheets and paged media, CSS has become one of my favorite ways to typeset documents documents where the layout of individual pages matters greatly. (LaTeX remains my prefered choice for documents where text flows between pages.)

I recently wrote up my experience typesetting my resume in HTML/CSS: https://jack.wrenn.fyi/blog/pdf-resume-from-html/

comment 5y ago · link · parent

Ha, I was like "REALLY!?!?" before actually clicking the link. I was thinking of: https://en.wikipedia.org/wiki/Shibboleth_Single_Sign-on_arch...

...which is an unlikely contender for oldest protocol!

comment 5y ago · link · parent

Where do they claim to be "working productively for 95 hours a week"? And are these the "macho lies" you're referring to:

- “I can’t sleep anymore because my anxiety levels are through the roof”

- “My body physically hurts all the time and mentally I’m in a really dark place”

- “Being unemployed is less frightening to me than what my body might succumb to if I keep up this lifestyle”

It doesn't sound like this person knew the degree of abuse they were signing up for:

- “I didn’t come into this job expecting a 9am-5pm’s, but I also didn’t expect consistent 9am-5am’s either”

Nobody really signs up to be abused. They sign up because they're the sort of college grads who've handled every other challenge that's been thrown at them, and “if you can make it here, you can make it anywhere” doesn't sound any different.

comment 5y ago · link · parent

> a rabbit hole of a pointless obsession

...like, a hobby? I don't see any evidence that this author has an unhealthy obsession. And, if the comments here are any indication: a lot of techies would be absolutely charmed to find unearth such a machine from a dusty box. I know I would!

Watching the incredible work of amateur retro-computing enthusiasts today, I have no doubt that whatever Steve Lord creates could find an enthusiastic operator a century from now.

comment 5y ago · link · parent

Yes, the pointer issues Ralf raises has implications about what operations Rust can make safe. An example Ralf posed to the safe transmute working group: a transmutation from a reference (i.e., a pointer with provenance) to one without (e.g., a "raw" pointer) or to a `usize` number cannot be safe. (Rust can safely provide these conversions via the `as` keyword, just not via the more general framework of transmutations).

More broadly: Rust is very sensitive to LLVM bugs that inadvertently generate UB. The longstanding issues with `noalias` optimizations is the prime example of this: https://stackoverflow.com/a/57259339/7501301

1234