hallettj

Just a basic programmer living in California

  • 22 Posts
  • 448 Comments
Joined 2 年前
cake
Cake day: 2024年2月23日

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

  • Yes, letter is the standard size in the US for loose leaf, printers, writing pads. It’s actually wider and shorter than A4. The other main sheet size is “legal”, which is the same width as letter, and is longer than A4. Legal is much less common. You’re most likely to see it on yellow, ruled “legal pads”.


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








  • Hey, I enjoy seeing a discussion of ideas like this! I feel like socialists can be reluctant to talk in concrete terms on how they’d like the world to change. I suppose that could be a tactful way to maintain solidarity, since I’m sure there are vehement disagreements when we get into details. I’m also told that the goal is not to hand out a prescriptive vision of the future, but that instead it’s important for a class-conscious working class to form its own system based on its own experience. But surely working class people like us bouncing ideas around is part of the process of forming a class consensus?

    I also lean toward a market economy because I haven’t seen an alternative yet that I’m convinced would be better. Markets are a way of distributing intelligence. It seems like centrally planned economies have a harder time anticipating what’s needed, invite corruption and ass-covering, and can lead to a different kind of hierarchical power imbalance where the people planning the economy have similar control to capitalists. But there are problems to solve with any of the options. In a market economy, even if all businesses are worker-owned and wage exploitation can be eliminated, there are still problems with consumer and environment exploitation. Like there might still be incentives to sell unhealthy food, to extract resources for short term gain. Each cooperative or industrial union could be incentivized to maximize the profit of their own business or industry. Certainly regulation is one way to address this. OTOH if industry is managed by large groups of workers instead of by a handful of sociopaths, maybe conscience would end up being a more powerful regulating force than it is under capitalism.

    My thoughts on some of your points:

      1. I’m not clear on what a planned market economy looks like. Do you have any references?
    • 2-6. Sounds pretty good to me. I’ve had thoughts along the lines of all private companies being mandated cooperatives. You could run a sole-proprietorship and have full control, but once you have employees they need to have a fair share in profit and decision making.
      1. Why would one party act as the main social institution? I agree there should be space for a diversity of ideas, and having multiple parties is probably the way to do that. But what is the framework for multiple parties in a one-party system? In Russia in the 1920s the Communist party actively suppressed parties-within-the-party, such as the Workers’ Opposition. Probably so the party leaders could maintain control. I’m not super well informed, but I haven’t heard about party diversity later in USSR history, or in other single-party states. To this day “factionalism” is still a dirty word to some socialists. (I get the impression that view might be influenced by Marxist-Leninism, but again I’m not super well informed, so I don’t know for sure.)
      1. There definitely needs to be worker organization to balance the state. Especially in the transition period, capitalists will resist giving up power through, among other tactics, capital strike. Workers need organization to keep industry running where necessary to keep people’s needs met while capitalists try to sabotage the system. I recently read an interview with Mike Parker on this that I thought was interesting. Longer term hopefully the state will be a fair reflection of the needs of all people. But having multiple systems of organization to check each other seems like a good idea.
    • 9-10. Of course!

    Back on point 7, I think I might have a different picture in mind of what a transition to socialism looks like. I think in principle the democratic systems that we have work as a political framework. There is a lot we can do to change those systems to make them better, such as the reforms presented in https://www.dsausa.org/dsa-political-platform-from-2021-convention/?ref=redstarcaucus.org#deepening, and proposals for proportional representation. And of course wealthy elites have way too much power currently. But I think that disproportionate power is an economic and social problem. My thinking is we don’t need a political revolution, we need a social revolution. Shift the view people have of extreme wealth from inspiration to disgust. Cultivate enough outrage to ban corporate money in political campaigns, to break up media monopolies, to tax and fine capitalists into oblivion, to force a combination of worker and state ownership of private industry. Maybe there is no way to strip power from billionaires except at gunpoint. But the social pressure of millions, or billions of people is immense. I think we can do it mostly non-violently.