Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
54 ms
·
601.
▲
by
DougBTX
9y ago
At least in C# terminology, a "setter" for a public property is mediated access, unmediated access would be a public field that can be set without invoking a setter method. Getters and setters in C# are method calls, like `setFoo`
602.
▲
by
DougBTX
10y ago
For google-ability, TypeScript has structural types, in contrast with Java which has nominal types.
603.
▲
by
DougBTX
10y ago
The US government has other "loyalty programs", for example if you buy a 10 year treasury bond instead of holding cash, they'll pay out a bonus every six months. Another way to look at it is return on investment vs risk vs li
604.
▲
by
DougBTX
10y ago
Agreed, the Nyan cat demo has problems scrolling on iOS too. For example, if you accidentally scroll a single device pixel up before scrolling down, then the page frame bounces up and down, instead of actually scrolling down to show the con
605.
▲
by
DougBTX
10y ago
Guess: video recording produces large amounts of data while recording, so is disk write bound. "Instant capture" requires only a short, fixed duration, recording, so is only memory write bound. An alternative possibility, along th
606.
▲
by
DougBTX
10y ago
UUIDs can be chosen to have at least a rough ordering to make them more efficient to use as primary keys, discussion about this use here: https://github.com/jmcvetta/guid/blob/master/README.md
607.
▲
by
DougBTX
10y ago
> We know the law meant the last two things as separate anyway, though, because there's no "or" The judgment by the appeals court covers that too. Interestingly they don't side one way or the other on what the text me
608.
▲
by
DougBTX
10y ago
Gasoline mostly contains carbon, the oxygen in carbon dioxide comes from the air, adding to the final mass of carbon dioxide.
609.
▲
by
DougBTX
10y ago
Try: https://ad-pdf.s3.amazonaws.com/papers/wp.MD5_Collisions.en_... (snark: this is the 8th Google search result for "learn more about the specific part of MD5 that makes it weak")
610.
▲
by
DougBTX
10y ago
> I've yet to see one that could effectively work with dynamic languages That is a hard nut to crack, a dynamic language will frustrate static analysis.
611.
▲
by
DougBTX
10y ago
Git could have been written with a pluggable hash system, but for something that needs to be changed let's say once every ten years, is the up front cost really worth it?
612.
▲
by
DougBTX
10y ago
I don't understand that reasoning, 0.5 on a logarithmic base 2 scale would be the next step below 1 on the x axis (0.5, 1, 2, 4, 8), and the y axis already goes to zero anyway.
613.
▲
by
DougBTX
10y ago
> What am I missing? The paradox is that they tried to reduce demand to reduce consumption, but accidentally reduced price, so increased consumption. The bit you're missing is that duality, that an action intended to reduce demand c
614.
▲
by
DougBTX
10y ago
Sure, but what does "similar slowdown" mean? The headline says "20%", which would imply that a "similar slowdown" for a 100 milliseconds response would bring it to 120 milliseconds. But what is actually happeni
615.
▲
by
DougBTX
10y ago
Syntax sugar is extra syntax to make an existing feature easier to use, syntax sugar has no runtime impact. Generics are not syntax sugar, they add functionality such as stricter compile-time type checking and improved run-time performance
616.
▲
by
DougBTX
10y ago
> I'm not sure I follow. So, thinking out loud... a billion dollars at $10 a ride, so lots of transactions, lots of customers. Theory says a transaction will only happen if both sides feel they will profit, so lots of people must ha
617.
▲
by
DougBTX
10y ago
> simply can't get enough local talent These things always need to be suffixed with "at price point x".
618.
▲
by
DougBTX
10y ago
> a few -did- exist, but were obscure, iirc In a similar vein, the next big thing has probably been discovered, it just isn't big yet.
619.
▲
by
DougBTX
10y ago
On iOS it is a single scrollable page with a collapsed table of contents. Bad browser detection?
620.
▲
by
DougBTX
10y ago
Yep, hence the pun
621.
▲
by
DougBTX
10y ago
Perhaps a "why is there a timeout?" would have lead to a "why is this traceroure so long?" then "why is there a loop?" and "why is my test router in the list?"
622.
▲
by
DougBTX
10y ago
I wonder about how the analogy is being used though. On the face of it, it is just an analogy, saying that they work in the same sort of way. But usually analogies are made to something that the listener is already familiar with, to explain
623.
▲
by
DougBTX
10y ago
The "computer controlled characters" is a new twist on this to me - keeping up with the Jones's is now keeping up with simulated Jones's!
624.
▲
by
DougBTX
10y ago
> Not everything is a new cleanly constructed codebase. This is true, in lots of ways. Lots of code is rushed, corners cut, so was bad the moment it was written. Other code is written in a particular style, and would need to be cleaned u
625.
▲
by
DougBTX
10y ago
Yea, that's tricky. The simple way would be to treat all people equally, e.g. charge $1/kg for every passenger. But if weight correlates with race, even though each individual is treated equally, different races aren't being
626.
▲
by
DougBTX
10y ago
> "depending on architecture and compiler". The standard also has the idea of "implementation defined" behaviour, which is close to the definition above. "Undefined behaviour" is a trickier beast, since comp
627.
▲
by
DougBTX
10y ago
Yes, I think you could call it a fractal. The Wikipedia page linked to from the article says that this technique is also called a "random midpoint displacement fractal".
628.
▲
by
DougBTX
10y ago
Thanks, that's a nice breakdown. I suppose some apps will be combinations, e.g. Wolfram Alpha can do simple sums entirely offline, while the more complex stuff is entirely online.
629.
▲
by
DougBTX
10y ago
Calling `cargo run` has made it easier for me to treat it as a scripting language since it combines the build and run steps in a single command. Good luck with it!
630.
▲
by
DougBTX
10y ago
Apparently also for electronics: https://en.wikipedia.org/wiki/Ram_air_turbine
More ›