Hacker Newsnew | past | comments | ask | show | jobs | submit | jsmith45's commentslogin

Hubs or devices that contain an internal hub are the main use cases where both will be in use at once.

You can often get away with splitting the two within a single physical device, as many hosts tend to treat the buses independently except for certain power management related tasks, but officially if you are doing that you need an internal hub. An internal hub is allowed to have 3.x-only devices on it, (although this may be confusing to users).


While this does largely work, there are a few complications.

The biggest one being power management, especially the cutting off of power to a specific port. If a host wants to cut off power to a 3.x device, it typically needs to know which 2.x port that device is connected to. The host internally can have some really wild mappings of 2.0 and 3.x hubs, controllers, etc, but the device tree or ACPI tables let it know exactly which ones are paired together for any port leaving the device. After that point it is assumed that the host can learn the topology from any hubs attached. The power management is tied to the 2.0 port. Unexpectedly splitting the topology could lead the host to instruct a hub to cut off power to the wrong port when trying to target a specific USB 3.x device.

Also, if a hub indicates that a device is drawing excessive current, and there is nothing communicating on the 2.0 lines, there is a risk of the wrong 3.x getting blamed by the host, possibly showing a warning popup to the user with the wrong device name, or similar.

This isn't to say this is always a problem, because it isn't but it is something to be aware of.


It's also just straight up not permitted per USB3.2, as USB3 devices are supposed to, per spec, be able to drop down to USB2 speeds. OS support varies, it might work, it might not.

FTA: > If you are building an inline USB-C tool where your MCU only needs a slow control channel and the host just needs fast passthrough to the downstream device, you might not need a USB 3 hub. USB-C gives you two independent buses in the same port. The OS knows they're both peripherals are assigned to the same logical connector.

This is bad advice in general because USB-C does not actually give you two independent busses in the same port.


> It's also just straight up not permitted per USB3.2

Who cares if it works? We're talking about a tool here that is used by experts, not a mass consumer product.


A disclaimer that would be missing from TFA.

w/ the hub on the 2.0 lines, the usb3 device can drop down to 2 just fine

TI addressed this on their forum a while ago.

> Can you connect a USB 3.0 device and a USB 2.0 device to the same downstream port of a hub? We don't recommend it. The devices will enumerate and traffic will be routed correctly, but as noted above, the two devices would share a single port power control. Also, the USB specification requires all USB 3.0 devices have the ability to drop to USB 2.0 speeds. Since the USB specification does not allow for two different speed devices connected to the same USB port, TI cannot guarantee that all USB drivers / host controller would support that implementation.

https://e2e.ti.com/support/interface-group/interface/f/inter...

Is it gonna work? Usually, but not properly, and it's not an approach I would recommend for any production devices.

If you are okay being non-compliant with the USB spec and hoping for the best, it's an option for some small run stuff you test. For this application it's probably fine because you know how your host controller behaves but it's not a good approach in general, and may stop working at some point in the future as the busses are not independent. They share a power control and the same logical port identifier, and this is not a support configuration per the USB spec.

For the record I do think this is very cool and the only thing I'd change about the blog post is mentioning that the busses are not actually independent and this is not a supported configuration.


The TI forum is really good, I was confident the link you posted would be an authoritative reference, and it was. If you ask a very technical question you will often also get follow-up questions that nail down a root cause quickly. Come to think of it, I don't think I've ever asked a question there because whenever I've searched for an error code or seemingly obscure problem, there's already an answer for me with enough detail to know that it also applies to my problem. TI also tends to send engineering samples without much fuss so as an engineer you can essentially bypass your procurement department when doing prototyping. My experience with this is as a grad student in Japan, so they must really have a policy to make engineers fans of the company.

yeah thats fair, thanks for the context and the ti link, super helpful to learn about all potential issues w/ this setup! planning to go through everyone's feedback here and updating the post. to be honest this was mostly an experiment, i had medium confidence that i'd even work, still unsure myself if this is a sku thats worth putting out into the world or if i should just go with the slightly higher cost spec compliant bom

Just in case I came off as critical or snarky, this project is really cool, it's a great write-up and I'll be ordering one when available haha.

>It's also just straight up not permitted per USB3.2, as USB3 devices are supposed to, per spec, be able to drop down to USB2 speeds. OS support varies, it might work, it might not.

That does not mean that the host side has USB 2.0 pins for that. Lenovo (ab)uses this for some devices in their notebook.


In a lot of ways I experienced USB 3.0 as a regression.

Like the USB 1.0 spec described how you could hook up 128 devices or so devices to a port although it didn't promise it would work I can say I put together some pretty big USB 1.0 and USB 2.0 trees and they worked.

Back in the late 2010s I had numerous laptops which I would try to make a kind of "docking station" with USB audio and external storage and SD card readers and such and what I always found was that there was some resource limits somewhere in the system and at some point plugging in a new device would cause an old device to drop out which could possibly force the uncontrolled unmounting of a filesystem. Sure, today's commercial filesystems are robust against this, but I hate it.

I looked closely at the USB 3.0 spec and found it didn't make any promises at all about configurations involving hubs and came to the conclusion it didn't make sense to use hubs with 3.0 at all and if you didn't want to be miserable you should just plug in one device into one port on the host.


Pretty weird given that it seems like back in USB 1.0 days, it would have been less of a problem to install extra USB ports directly in the host than now.

Well... Mac laptops have as few ports as they can get away with and I hear they are completely asymmetrical in capabilities. Windows laptops have more ports and they're all FUBAR. I do have a PC that I built a few years back which has about 15 or so USB/USB-C/Thunderbolt ports. That machine never has problems!

This is not true in the age of Apple Silicon. All 3 ports on a MacBook Air or MacBook Pro have independent Thunderbolt controllers and can each operate at 40Gbps bidirectional (MacBook Air/Pro with M6, which has Thunderbolt 4) or 80Gbps bidirectional/120Gbps asymmetric (MacBook Pro with M5 Pro/Max, which has Thunderbolt 5).

The MacBook Neo is the odd one out: it has two USB-C ports, but one is a USB 3.2 gen 2 port (10Gbps) and the other is USB 2.0 only. The slower one is meant to be your charging port, since USB-PD only requires USB 2.0 and the Neo doesn’t have MagSafe.


Many scientifically minded would question this. There is no specific space for "free will" in our best understanding of physics. Even the non-determinism brought in by Quantum mechanics doesn't really seem to fix that.

My view is really whether we truly have free will or just an illusion thereof, it makes little difference. Denying free will isn't ideal, since it leads to a lot of unhelpful views of things. It just isn't useful for people to think their lives are predestined, and that they get no say in it, and are just along for the ride. Even if it were true, it would just generally lead to reaching worse decisions that believing in some form of free will does.


> From what I can tell, dsl of any type didn’t really take off in America.

VDSL was the core of the AT&T U-verse offerings in the US for a good decade perhaps a little more. This was marketed as a full cable replacement, as it included Internet, TV (including the normal cable channels), and optionally landline phone (over ip, but without some of the normal headaches of VOIP, as AT&T could treat this more like a digitized POTS line on their side, much like the normal pots lines they digitized behind the scenes). There were also some other smaller deployments here and there, but that seemed to be the biggest one in the US.

ADSL/ADSL2/ADSL2+ certainly did exist, but to work well you need to be relatively close to the local exchange, needed copper wires in good condition, etc. It was offered fairly widely, like by most companies offering phone service over copper lines, but because the quality could vary quite significantly depending on things not obvious to the purchaser, it tended to get a bad-rap. If you tried it once, but was unluck enough to have it not work well, you would write off the tech, and tell all your firends not to bother, and go go with the cable offering.

For me personally, in its heyday, ADSL2 beat cable hands down, as in that time frame cable was only using a tiny fraction of its bandwidth to provide internet service, and only a few feeds coming out of the local office, so the amount of oversubscription was insane, and amounted to basically fraud, as you could only ever get anywhere near your advertised speed at like 4 am.


That's at best a partial fix for the API side. Python side CPython sill exposes a LOT of implementation details, and as a result occasionally projects will choose to rely on some of these details. Then other implementations need to decide whether to also pick the same implementations details and expose them, or use different details, and lack compatibility with any library that depended upon them.

The python documentation has historically also not been especially clear at distinguishing between what the language guarantees, vs what is just implementation details of the cPython implementation. So even if libraries wanted to try to avoid depending on implementation specifics, it isn't always clear what those are.

The net result is that for the end user python the language is effectively: whatever cpython does. This really, really discourages creating alternate implementations, as the only way to be an alternative implementation with good compatibility is to be a living fork of cpython, constantly merging in all the changes from it, while also maintaining your improvements.


This is also slowly being addressed


The current WebP Spec RFC9649 defines the format as effectively:

A 'RIFF' chunk containing formtype 'WEBP' and a mandatory 'VP8 ' or 'VP8L' chunk, and optional 'VP8X', 'ICCP','ANIM', 'ANMF', 'EXIF', 'XMP ' chunks and possibly some unknown chunks, where if any of these optional chunks appear 'VP8X' must be first, and with certain ordering restrictions on the chunks.

It is true that earlier spec versions only allowed the core 'VP8 ' or 'VP8L' chunk, and the spec does warn that some older software might not support files with the newer chunks, so they should only be used if really needed for best compatibility.


This is the spitting image of old pre-CRM thinking:

If I try to force the captain to go around, (or follow procedures or whatever), then i am exceeding my authority and will probably be fired. Some cultures have this sort of mentality a lot stronger than others, and it has zero place in the modern cockpit.

While a captain can pull rank, they really should only ever do it with respect to the first officer if: an inexperienced first officer is trying to insist on something dangerous or forbidden by law or policy, or if the captain fully understands an FO's concerns, is fully accounting for them, and as the person ultimately responsible for safety, has determined from experience and training that the current action is safer than alternatives, and would explain but cannot explain right now for workload/emergency status reasons.

That's it, the only two reasons.


This seems like a no win situation for the subordinate pilot. Grabbing the wheel of an aircraft while landing must have its own set of risks. We also only hear about the times when the subordinate pilot didn’t prevent a crash. Never hear about the times they were mistaken and did nothing.


An overcautious go-around is a non-event though.

A big part of the monitoring pilot's job is noticing when things have gotten too far and taking over controls. This does very much include scenarios when the pilot flying has fallen to tunnel vision, subtle incapacitation, and the continuation/sunk cost fallacy.


“Go around. My controls.”

Four words said by the pilot monitoring that any pilot flying will understand and react automatically to.


He doesn’t need to “grab the wheel”. Simply saying “go-around” would have been enough, it’s highly highly unlikely that the captain would have ignored that.


lol! OP writes:

   PM finally said "too fast, go around" but PF ignored him (or likely did not hear)


I don’t see this in the official CVR transcript from the NTSB. Only mention of “around” is the go-around called on the ground, 15s before CVR stopped


Yes I was wrong. Looking at the transcript that go-around call out was likely from the PF; that's where the data recorder indicates the brakes were released the throttle set to max for the go-around (and go back to braking only 4 sec later).

Still, the PM notified PF that they were going too fast many times during the approach. All warnings were ignored.



Thanks, I was wondering why they would be using Salesforce in the cockpit


Is this legislated, required policy, or is this something that you believe should be the case?

The reason I ask is, case in point, do you think the PM is going to be penalized in some way?


I don't think there's a law mandating it, but CRM (https://en.wikipedia.org/wiki/Crew_resource_management) has been used and trained by all major airlines since the 1980s. The reason is simple: it doesn't really help to have two people in the cockpit if only one of them is making all the decisions.


And all Military air forces AFAIK. The military of course also takes rank very seriously, but there was existing understanding that Mother Nature doesn't give a shit about rank and so CRM makes sense in that same practical vein.

Also, you'll see that says "Crew" not just "Cockpit". Turns out that from the cockpit of an airliner you've not always got the best possible view of the problem. If the steward who has no idea how to fly a plane insists it's the right engine that is on fire, her input is valuable, from back where she's serving customers with coffee she can see the engines, the fire is on the right, whereas you're just looking at sensor outputs and you were maybe about to turn off the left engine.


I don’t think it’s required, but my friends who do flights for remote mining operations in SE Asia use the same concepts — so it really is pretty standard for commercial flying, even down to remote private operations.

A bad bump on a commercial plane can be hundreds of thousands to millions in damage + downtime + inspection/repairs. And tens or hundreds of millions if you wreck a big plane. Companies may be evil, but most would still prefer you waste $2k in go around fuel than $200k because you decided to set it down badly or $20M+ because you drove their plane off the runway.


It was instituted after Tenerife where hundreds died because of this exact same problem.

I'm pretty sure it's FAA policy, but not 100% on that.


A pilot friend once told me that the Tenerife crash was a turning point for this sort of thing. I believe that was the origin of CRM training.


The ~"positive" side of that, the UA flight 232 disaster is often noted as an event that demonstrated the effectiveness of CRM as a strategy.


Yeah, my bigger worry here is more about if somebody direct edits a file in their venv and uv was unable to make the venv with reflink/COW semantics and fell back to hardlinks.

This could happen with a user asking their editor to show definition, and then not realizing the result was in some other package, changing it, and saving it, but only if the editor's normal atomic replace mode is disabled. So perhaps that sounds farfetched. But if an AI agent wants to patch some package in a venv, I've seen them bypass the editor and use command line tools to make edits often enough to be concerned. Like corrupting the cache for one package version is already not ideal, and this could potentially affect multiple versions now?

I suppose is this happens the right fix is to nuke the cache completely?


You wouldn't.

But keep in mind that there are multiple kinds of exceptions.

Some exceptions, indicate scenarios the caller could reasonably have avoided. This include things like argument bound or null checks. A caller absolutely could avoid these exceptions by doing its own checks. This can be split between checks that the caller really should have done, like not passing null to a function that cannot take null, vs those where baking the relevant knowledge into the caller would be undesirable (perhaps because future versions of the library expect to accept more values).

There are exceptions that in theory a caller could avoid, but in practice it is impractical, like an exception thrown by a parser of some complex format if the provided input isn't legal. The only good way to avoid such an exception is to have a non-throwing parser that you can check with, but you probably don't want to parse twice. An alternative interface for the parser might be able to totally avoid the exception, returning either succeeded (with result tree) or fail with error message, but that would be a design choice of the implementor, not the caller.

There can be exceptions that indicate a logic bug in the impleentation (things like throwing if some invariant the implementation is in charge of is violated), but more often this is assertions instead.

Lastly, you have exceptions that there is no possible way the caller could always avoid. IO exceptions are among these. While you can sometimes do existence, space, or permission checks or similar to reduce the probability of getting certain exceptions, something else could race your app between the check and performing IO, and make them happen anyway.

The primary target for contracts are exceptions that callers both could and should have avoided, and the exception/assertion case that is trying to verify the implementation is working as expected.

The other categories of exceptions are more or less totally out of scope.


To be clear, they are billing for all the coded line items at the listed prices, it is just that the agreements with the insurance company will disallow many of the line items in favor of other ones. They bill everything, because they may accept some insurance that has not negotiated a day rate, and in that case, the day rate code would be disallowed and some of the other line items will be paid at relevant negotiated rates instead (with others still likely disallowed). It needs to be the same bill in both cases, so they need to include everything, and the list prices need to be greater than or equal to what any insurance would pay, or they might lose out on the difference.

This is one of the areas where more standardization would certainly help. If there were more standardization of which codes disallow which other ones (which can currently vary wildly by plan even with the same insurer, must less across insurers), then a lot of line items could actually get removed as truly redundant, vastly simplifying the bill.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: