4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 3y ago · link · parent
And in fact USB-C is not really physically reversible, because the hardware detects which way it's plugged in and permutes the signals, as opposed to mirroring all the wires, so there is indeed a "right" way of inserting an USB-C plug, except it's impossible to tell which it is without a dedicated hardware tester.
comment 3y ago · link · parent
Rather, it can ask for two comparisons and act according to the results (e.g. it learns that 1 < 2 and 2 < 3 and returns [1, 2, 3]).
This makes the output unspecified in general, but it will be consistent with the information received and the calls made even if the comparator doesn't form an ordering, which is what one would expect.
comment 3y ago · link · parent
I think a sort implementation should return elements in an order consistent with a subset of the comparison calls it makes, and that subset should be such that it fully determines the order.
An even better guarantee is that the subset should be the whole set of comparison calls.
comment 3y ago · link · parent
Looks like the Go code generator and optimizer is absolutely terrible, since any reasonable optimizer has standard optimizations that prevent this.
Apparently they wrote their own rather than using something established like LLVM, and this is the result.
comment 3y ago · link · parent
Then Firefox would be guaranteed to be strictly better than Chrome, since the baseline is the same and they can put in all the features that Google doesn't want because they would reduce their ad income, such as great ad-blocking support.
This might result in losing Google's search engine deal, but they can probably make a similar deal with an LLM-based search engine and even if the money might be less they don't need that much if they are only maintaining a fork and not the whole engine.
comment 3y ago · link · parent
Basically the issue is that the only control available is turning the wheel, but an unstable scooter actually needs two controls: one to balance the board and one to control the speed.
Having a single control means that they are tied and thus that, discounting air resistance, if the user continuously leans forward, then the board has to continuously accelerate up to arbitrary speeds since turning the wheel to balance also results in acceleration.
Furthermore, it seems that they don't even have a motor powerful enough to always be able to balance the user along with air resistance, so if the rider continuously leans forward eventually the motor is no longer powerful enough, the board loses balance and the rider probably falls down and dies.
Not sure how they could even think of selling a design like that or how they are surviving the lawsuits.
The simplest fix seems to be using four wheels instead of one, which also removes the need of active balancing and is a normal proper design. If "leaning to accelerate" is desired instead of a more normal handle with a throttle control, then it should be achievable by adding suspension springs and detecting their extension.
Not sure if it's possible to have a proper design with one wheel; a thing that comes to mind is having a sort of "landing gear" that can come down and make the board stable on demand. An alternative could perhaps be an internal reaction flywheel, but not sure if that works and is feasible.
comment 3y ago · link · parent
And if you are OK with uncomfortable then a simple closed-cell foam mat, while possibly a bit more expensive, seems far more reliable, durable and cleanable than this.
comment 3y ago · link · parent
At 50 km/h, it moves 10-20 times faster than a hiker, and at <1000$ it's more than 100x cheaper than a plane or helicopter.
But requiring line of sight is a strong limitation because it means that you need to fly over the tree canopy and might not see under it, and you need to fly really high if target is on the other side of a mountain or hill and again you might not see well.
And of course cell phone coverage is not guaranteed so you can't use the easiest solution of putting a cell modem on it.
comment 3y ago · link · parent
Maybe something where there are two drones, and one flies high with line of sight to both the user and the low-flying drone so that it can act as a relay like a satellite would?
Or something that uses radio frequencies that bounce over the atmosphere, and if bandwidth is not enough uses an automated pilot plus the ability to send photos every few seconds so the user can tell it in which general direction it should fly?
Or something that uses Starlink/Iridium/etc. to relay data?
comment 3y ago · link · parent
comment 3y ago · link · parent
So in practice it's probably going to be fixed by the time a new game is released, and otherwise you can tell users to start the browser with the proper command line, or contribute a workaround to Godot yourself.
comment 3y ago · link · parent
comment 3y ago · link · parent
There's a lot of distracting glitches like the K and Q having small gaps where strokes come together, and even glyphs like the N, M, Y and Z have weird little gaps at the joints, the F and B have a bizarre overhang at the upper horizontal stroke, the 1 and 6 have a weird cut in their strokes.
There are lots of weird confusing choices like the parenthesis being a round rect instead of a bow shape, the @ having a "complex a" inside, the 3 and 5 using a "cute" diagonal layout instead of the normal "rounded-and-rect layout".
Seems horrible for something that should be as simple as possible. The default system UI fonts like DejaVu Sans, Segoe UI, Roboto, etc. are far better.
comment 3y ago · link · parent
For instance, it could start with "Was", "I was", "verifying" could be "checking" or "computing" or "testing", etc.
A bit tight, but it seems feasible with some work.
comment 3y ago · link · parent
comment 3y ago · link · parent
Or in other words, the goal is that you can think in abstract what the natural optimal machine code would be for a program, and you can write a Rust program that, in principle, can compile to that machine code, with as little constraints as possible on what that machine code looks like.
Unlike C, that also has this property, Rust additionally seeks to guarantee that any code will satisfy a bunch of invariants (such as that a variable of a data type actually always holds a valid value of that data type) provided the unsafe code part satisfies a bunch of invariants.
If you use Go or Haskell, that's not possible.
For example, Go requires a GC (and thus requires to waste CPU cycles uselessly scanning memory), and Haskell requires to use memory to store thunks rather than the actual data and has limited mutation (meaning you waste CPU cycles uselessly handling lazy computations and copying data). Obviously neither of this are required for the vast majority of programs, so choosing such a language means your program is unfixably handicapped in term of efficiency, and has no chance to compile to the machine code that any reasonable programmer would conceive as the best solution to the problem.
comment 3y ago · link · parent
Would be very interesting to learn how that was possible, it seems surprising to me that there wasn't even one instance that the owner forgot about or just was unwilling to do any work on.
It's possible that credit card expiration was the key, as that may have automatically disabled almost all forgotten accounts.
comment 3y ago · link · parent