Just a basic programmer living in California

  • 20 Posts
  • 359 Comments
Joined 2 years ago
cake
Cake day: February 23rd, 2024

help-circle
  • I’m not informed on all the details, but a key difference between the async_trait macro and a native async keyword is that async_trait gives you that boxed, trait object type. IIUC the thinking is native support should not automatically box futures, which implies it shouldn’t use dyn either. Using Box and dyn is an easy way to make sure the code works no matter what type of future a method returns. But the trade-off is some runtime overhead from heap allocation (due to Box), and dynamic dispatch (due to dyn).

    According to areweasyncyet.rs:

    async fn in trait method not stabilized yet

    • Workaround is available as an attribute macro: async-trait


  • Thanks! I do my best to stay organized.

    I’m in the US where we generally don’t use ISO paper sizes, except for in some niches like notebook enthusiasts. But we have a notebook size called a “composition” book that is close to B5, and is very common, especially among students. I think it’s the most common notebook size here.



  • I buy them, since index cards are easy get a hold of. They tend to come in heavier stock that doesn’t fall apart in my pocket without protection from a cover. They are not as nice to write on as my notebook, but they work.

    I used to carry a Moleskine notebook. But I realized that a few cards make for a slimmer, more comfortable arrangement that is easier and cheaper to replace when writing space fills up.

    They are for notes that I don’t keep, so no I don’t have a card organizer. Some notes are only relevant short-term. Stuff I want to keep I copy into my big notebook, and scribble over to remind myself that I don’t need to pay attention to that info on the card anymore. If I’m going to be writing a lot, like if I’m going to an activist meeting, then I bring my big notebook (size B5).

    I do have Zettelkasten notes, but mine are digital, using Obsidian. My paper notes are Bullet Journal things.


  • If it’s going 30+ mph on a path or a crosswalk then it’s not a regulation-compliant e-bike. You might be seeing e-motos, and mentally categorizing them as e-bikes. We all want extra requirements on vehicles that go 30+ mph.

    E-bikes are regulated. They are required to max out at 20 mph, or 28 mph. (Where I live in California the class 3 28 mph bikes are not allowed on mixed use trails, and are only allowed for ages 16 and up.) We are on board with regulation exactly because we want it to go in a beneficial direction. I don’t think requiring a driver’s license and insurance, and cutting out young teenagers is a beneficial direction. No, we don’t want dangerous vehicles zooming around without accountability. That’s why e-bike advocates came up with the 20 mph limit in the first place!

    We don’t want restrictions on bikes, because bikes get people outside, and reduce dependence on cars. E-bikes are bikes that work in places with hills, or in situations where long distances make unassisted cycling prohibitive for people who are not athletes.

    One more note I’ll add about cargo bikes is why I don’t think of them as motor vehicles: everything you can do on a cargo e-bike you can do on a non-motorized bike - on flat ground. A cargo e-bike is a cargo bike that works on hills.

    There are two groups who are hit hard by licensing and insurance requirements: people with low income, and kids.

    People with low income will struggle with any additional cost. A couple hundred bucks, insurance - even if it won’t cost very much from some people’s perspective - is a burden. E-bikes can be a livelihood, like for delivery drivers in cities. Even if it’s not a livelihood, everyone needs transportation.

    The New Jersey law flat-out prohibits kids under 15 years old from riding e-bikes. Kids 15 or 16 now need a motorized bike license. Kids are not getting out or socializing enough these days. E-bikes help change that. My 14-year-old rides a class 1 e-bike to school. Before getting that bike he spent most of his time on weekends at home, mostly in front of a screen. We live in a car-dependent society where everything is miles apart. Public transit in my town is crap. There are big hills that make it impractical for him to get home on an unassisted bike. My kid could only go places when my wife or I had time to drive him. But since getting the bike he goes out on the weekend, and visits friends who live a few miles away. They organize nerf battles. He’s much happier! And no, he’s not going more than 20 mph on that bike. With the NJ law there would have been two years of missing out on those benefits, and then an extra licensing and insurance process after that which is going to reduce the number of kids getting outside. Fewer parents are going to set kids up with bikes if there are extra bureaucratic steps, and if it comes with a recurring insurance cost.



  • Yeah, speed limits seem like a reasonable way to catch people who are not in compliance. If a bike is going faster than 30mph, and that’s in a bike lane or on a trail instead of on a road, or they don’t have a license plate, that could be cause to pull someone over. It is tricky because the 28mph limit for class 3 ebikes (in the US) is an assisted limit, and a strong cyclist might be able to go faster than that pedaling unassisted.

    20km/h is the assisted limit in Europe (I think), but that limit is too low for a bike lane speed limit. Plenty of unassisted cyclists go over 30km/h.

    People complying with the law already have speed limiters built into the bikes. But yes, it’s a method to spot misbehavers.

    The creator of the Youtube channel Berm Peak suggested that unregulated ebikes should not be allowed to have throttles, which would eliminate class 2 ebikes. That would make it much easier to spot problem riders, because they typically use a throttle instead of pedaling. That’s also how Europe regulates ebikes (I think). You’d want some way for people with accessibility needs to get an exemption. I’ve heard throttles are nice for getting started from a stop, especially with a heavy load, or going uphill. But I’ve noticed that California law already makes a distinction between a throttle and a “start assist”, and maybe a start assist could cover that use case.





  • It seems like some retconning, with the writers deciding that empathic characters are more interesting for storytelling than fully telepathic characters. It can be hard to create drama when someone on screen automatically knows what everyone else knows.

    The Betazoids also didn’t have black irises, which has previously been a distinguishing feature - albeit a feature that most viewers don’t seem to notice. Given the many, many franchise references included in the first two episodes it looks like the showrunners are aware of established details, and that both the lack of telepathy and eye color are deliberate choices.

    Edit: I read a suggestion here that maybe they do have dark contacts, except for Tarima, the president’s daughter. Maybe the actor didn’t want to wear contacts all day every day?

    My impression was the president being deaf didn’t have anything to do with the plot, but was probably about showing that deaf people are people who have stories too. The Betazoids delegates signing and speaking to each other might be something Troi has said previously: that it’s rude to communicate telepathically among non-telepaths. But Lwaxana does it anyway because she doesn’t care. Or it might have been to avoid confusion: “they’re empathic with other species, but telepathic with each other? What is going on?” I don’t know what is the significance of taking off the translation device.










  • I’m not an organizer for this community. But I also find the Quikscript literature compelling. Although an advantage of Shavian is that it has an established Unicode assignment, and corresponding fonts are in circulation. For example Shavian text renders correctly for me running the Thunder Lemmy client on Android without any special setup.

    The main criticism I’ve read of Shavian comes down to accommodating dialect differences. How you write "R"s and vowels is particularly issuous. You kinda have to pick a dialect as the one to canonicalize in spelling. But I think that applies to all phonetic alphabets - unless someone has come up with some very clever system of per-dialect glyph interpretation rules that I’m not aware of.