News for hackers. Stuff that matters.

jswrenn

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.
> 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.

Author, here! Happy to answer any questions.
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.

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-...
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.

Re:We’re using our streets all wrong [video] on Monday February 27, 2023 @05:29PM (#34962896)
I, for one, would very much so like to live in a row house, but they're nigh illegal to construct in my city.
Re:Pretty Rust backtraces in raw terminal mode on Friday February 24, 2023 @06:43PM (#34931878)
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).

Re:Io_uring and Networking in 2023 [pdf] on Friday February 17, 2023 @07:33AM (#34833892)
Re:Biggest Barrier to Biking Is a Fear of Cars on Tuesday February 14, 2023 @04:59PM (#34796762)
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.

Re:Native Reflection in Rust on Thursday December 15, 2022 @04:18PM (#34005899)
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...

Re:Native Reflection in Rust on Thursday December 15, 2022 @03:10PM (#34004973)
Yep!
Re:Native Reflection in Rust on Thursday December 15, 2022 @02:52PM (#34004720)
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

Re:Native Reflection in Rust on Thursday December 15, 2022 @11:45AM (#34002189)
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.
Re:Native Reflection in Rust on Thursday December 15, 2022 @11:28AM (#34001876)
Oh, I should add a note about that. Fortunately, it's quite easy to tell Rust to generate debuginfo even in release mode.
> 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. :(

Oh, whoa, I'm the author of this! Happy to answer any questions.
Re:Amtrak is streaming an empty railroad on Twitch on Sunday April 10, 2022 @04:55PM (#30981626)
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.
Re:Amtrak is streaming an empty railroad on Twitch on Sunday April 10, 2022 @04:22PM (#30981317)
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

Re:How L.A. Got Hooked on Adderall on Saturday April 02, 2022 @03:58PM (#30891191)
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.

Re:What killed Haskell, could kill Rust, too (2020) on Tuesday December 14, 2021 @10:45PM (#29561841)
datomic
Re:Joe Rogan, confined to Spotify, is losing influence on Wednesday August 25, 2021 @02:09PM (#28304868)
Correction: SiriusXM owns Pandora, not Spotify.

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

Re:I forgot about print style sheets (2016) on Tuesday April 27, 2021 @12:13PM (#26957917)
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/

Re:FTP is 50 years old on Friday April 16, 2021 @11:09AM (#26834821)
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!

Re:Goldman Sachs Working Conditions Survey on Saturday March 20, 2021 @03:00PM (#26525241)
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.

Re:The 100 Year Computer on Thursday January 07, 2021 @11:21AM (#25672935)
> 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.

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

Older »