Engineer on @googlechrome. Involved in CSS and W3C standards. Previously @mozilla, @w3ctag. Mastodon: @dbaron@w3c.social

Rockville, Maryland, USA
Joined March 2008
Filter
Exclude
Time range
-
Near
Writing tokio code in rust has been difficult because of the Tokio Reform described in tokio.rs/blog/2018-02-tokio-… . The crate documentation doesn't clearly describe which crates are "old" and which are "new"... and mixing old and new leads to inscrutable error messages.
2
2
7
The actual error messages I'm looking at now aren't that interesting; it's more that the way I think I feel like I want to fix them is something that I'm nearly sure the borrow checker will reject.
Replying to @khuey_ @ManishEarth
The actual error messages are from the borrow checker, about lifetimes of references in closures involved in an additional call to post to the Tokio event loop (handle.spawn(...)).
2
Replying to @khuey_ @ManishEarth
let mut core = Core::new().unwrap(); let mut irc_state = IRCState::new(ghtype, handle); let ircstream = ...; core.run(ircstream); ... but I could change it.
1
Replying to @khuey_ @ManishEarth
See my reply to Manish... it's not quite global.
Replying to @ManishEarth
I don't think I want a proper global since the "global" is set up differently in the running bot versus the tests. And it's state that's used in a bunch of functions. (That said, what I'm thinking of might fail on mutable vs. non-mutable borrows anyway... need to look.)
1
Replying to @humphd
Last I checked, changing the °C vs. °F setting on the homescreen (not sure if that's the thing you're talking about) required enabling "Web & App Activity" syncing to Google, which I don't want to do:
Is there a way to get Android Oreo (on a Pixel 2) to show the temperature in Celsius (rather than Fahrenheit) on the homescreen *without* enabling syncing of all "Web & App Activity" to Google?
1
What's the normal way of dealing with "global" state in a Rust program using tokio? Or, to ask a more specific question expressing what I think I want: is there a way to teach the borrow checker that an object has a lifetime longer than the tokio event loop? /cc @ManishEarth
2
1
That the closed Russian Consulates were San Francisco (last time) and Seattle (this time) feels like the US government being East coast-centric. They wouldn't close New York or Houston because that would make it harder for people they know to travel to Russia...
A reliable source for not braking is nytimes.com/2018/03/23/techn… which says: "According to the police, the car, with one safety driver and operating in autonomous mode, did not slow down before impact."
2
Though I tend to use the more old-fashioned sort of tool: amazon.com/J-Henckels-Intern…
Replying to @khuey_
You can sharpen knives at home given the right tools (there are multiple options).
Replying to @FremyCompany
The assertion that the car didn't brake was from another source (although second-hand).
1
If we care about humans effects on the environment, we should shift towards living in denser places, with less driving, and more walking and biking. Policy Changes that move us the other way, like new cars that endanger cyclists and pedestrians more, do not belong in this decade.
1
9
I think it's clear from this video that *these* self-driving cars aren't safe for public roads. The car should have detected the pedestrian well before she's visible in this low-quality video. Yet it apparently didn't brake *at all*, even after she was visible in the video.
Tempe Police Vehicular Crimes Unit is actively investigating the details of this incident that occurred on March 18th. We will provide updated information regarding the investigation once it is available.
2
3
7
Replying to @__apf__
On desktop facebook.com/ everything has a checkbox next to it...
1
On the other hand, the Euro did the logical/size grouping, and ended up with sets of three (1/2/5 cents and 10/20/50 cents) where the size distinctions are way too subtle. This is why I like the Japanese system where the coin values are just 1/5/10/50/100/500.
2
Replying to @ManishEarth
The UK sort of has this nice system where there are four types of coin appearance, each at two drastically different sizes. But they mess it up because the pairs are 0.01/0.02, 0.05/0.10, 0.20/0.50, and 1.0/2.0, when the values logically group as 1/2/5 10/20/50 1/2.
1
1
Replying to @ManishEarth
I'm a big fan of the Japanese coinage system, btw, except for the fact that *one* coin (5 JPY) has its value labeled only in Kanji and not in Arabic numerals. All the others are labeled in both.
3
Replying to @ManishEarth
Did you get: ONE DIME? What's a dime? ?
1
2