Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Vendan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
Vendan
8y ago
The "movement" is the bubbles of magnetic state moving along the track under the influence of an external magnetic field, not the track itself moving. So yes, it is both at once.
92.
▲
by
Vendan
8y ago
> language allows casting pointers to integers The original thread was about converting int to be an arbitrary precision type: "so that 'int' can become a true integer". One would imagine that, to preserve the abilit
93.
▲
by
Vendan
8y ago
no, I get that, but int is not for pointer<->integer conversions. That is very specifically a separate type: uintptr an unsigned integer large enough to store the uninterpreted bits of a pointer value https://gol
94.
▲
by
Vendan
8y ago
int ebx = 0; but movl $1, %ebx .... FAIL.. :D
95.
▲
by
Vendan
8y ago
I feel you, but, that's uintptr. int is more useful as the "native type" for array/slice length/cap/indexing
96.
▲
by
Vendan
8y ago
to be fair, the original sblack was a "drop your slack app on here and it'll be made into dark mode slack", which involved things that are against the slack AUP. I'm guessing this is a "Fine then, I'll make my
97.
▲
by
Vendan
8y ago
most RV's don't have all that hefty of house battery capacity (my parent's house battery is 2 deep cycle lead acid batteries). Heating things takes a lot of power, probably run those batteries down before you got much more t
98.
▲
by
Vendan
8y ago
From the article: > Without a clock, the system stands still. The CPU flat out doesn’t work. The clock is literally the heartbeat of a modern device. Plenty of processors run without an RTC, but they all need a stable clock source (some
99.
▲
by
Vendan
8y ago
clock as in "processor ticks", not clock as in "my watch". It's necessarily coupled, cause a processor can't function without it.
100.
▲
by
Vendan
8y ago
Yeap. I mainly meant it as a fun alternative to the rather more standard "Obligatory xkcd" posts :D. Also, I'm a huge fan of Terry Pratchett.
101.
▲
by
Vendan
8y ago
Obligatory Terry Pratchett quote: “The reason that the rich were so rich, Vimes reasoned, was because they managed to spend less money. Take boots, for example. He earned thirty-eight dollars a month plus allowances. A really good pair of l
102.
▲
by
Vendan
8y ago
DX is a term for a long distance contact. Increased sunspot activity results in increasing ionosphere ionization, resulting in an increase in the refracting power of the ionosphere. Higher refracting power means radio waves can be bent mo
103.
▲
by
Vendan
8y ago
SSB's root is just "hash chain + signatures", and is relatively trivial to implement. Most of the actual protocol is flawed in several ways, and there's tough issues they are still trying to solve. I'd say somethi
104.
▲
by
Vendan
8y ago
GPS is not geostationary, it's in a MEO about 12k miles up (GEO is about 22k miles) and they orbit about twice a day.
105.
▲
by
Vendan
8y ago
Everything needs to be replicated for that stuff, or different clients see different things. Plenty of games DO this, so yes, a game trusting clients is a bug IMO. Yes, WoW doesn't do all the movement serverside, cause it can be expe
106.
▲
by
Vendan
8y ago
It's generally simpler to do everything server side then it is to try to keep x clients synchronized in their simulations of everything (physics, random number generation, multiple players all contributing movement and such)
107.
▲
by
Vendan
8y ago
It's actually quite common to do that... Yes, the game usually does more then just "send commands and display graphics", it's doing a lot of the stuff the server is in parallel, which is called client side prediction, b
108.
▲
by
Vendan
8y ago
Is that a question? Cause no, if they care about preventing cheating, they generally don't trust the client. WoW is a good example of this. Every action requires a client->server before it actually starts, though they are generou
109.
▲
by
Vendan
8y ago
Yeah, though I'd honestly be more impressed if it was computer vision based....
110.
▲
by
Vendan
8y ago
In video games, it's usually the simplest model to apply, and most common (when combined with client side prediction). The main alternatives are p2p, which is for when you don't have a central server, and hybrid, mainly for when
111.
▲
by
Vendan
8y ago
It's quite possible. I'll agree that sometimes, making the client authoritative for some stuff can reduce load on the server, but generally, it's both simpler and less "cheat prone" to make the server authoritative
112.
▲
by
Vendan
8y ago
It is a bug when the server trusts the client, for exactly this reason.
113.
▲
by
Vendan
8y ago
The bug was discovered on a call with 500 passed as the number of milliseconds.
114.
▲
by
Vendan
8y ago
I quite often write stuff with a function that gets called every few minutes or seconds... which is what the bug was actually discovered on. That's not suboptimal design.
115.
▲
by
Vendan
8y ago
stuff like crons, logging stats, all kinds of things. Note that this apparently even affected some setTimeout calls after that long, so you couldn't schedule something to happen 500 ms from now, for example...
116.
▲
by
Vendan
8y ago
Or to switch to a bank that actually cares about security?
117.
▲
by
Vendan
8y ago
the json.NewDecoder stuff does still trigger unmarshals of the types in the struct and such: i.e. package main import ( "bytes" "encoding/json" "errors" "fmt"
118.
▲
by
Vendan
8y ago
so, just for fun, here's a way to do that check without double unmarshalling and allocating maps and such for everything under your struct (also does a check for extra fields, but you could pull that out if you want): type Post
119.
▲
by
Vendan
8y ago
Movies yeah, but music is totally a substitute good to me. If you aren't on Spotify, I'll listen to something else...
120.
▲
by
Vendan
8y ago
Compared to a heat pump, that computer is still costing money, cause a heat pump can add more heat to the house then an electric heating element using the same amount of energy.
More ›