Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mike_hock
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
1111.
▲
by
mike_hock
10y ago
They're as "massively error-prone" as garbage-collected references in other languages. > #1 Performance aside, unique_ptr gives you something that most languages don't have, unique ownership enforced at the language l
1112.
▲
by
mike_hock
10y ago
> You think that's equivalent to machine word? On 16-bit x86, for example, pointers can be either 16 or 32 bit ;) The 16bit x86 memory model is absolutely atrocious. And IDGAF what you call a "machine word" on x86, it'
1113.
▲
by
mike_hock
10y ago
> If you're going to conduct criminal activity, do it in the privacy of your own home. > That was the original intention of the 4th amendment. Wat. The intention of the 4th amendment was to enable criminal activity, but confi
1114.
▲
by
mike_hock
10y ago
I remember making links NOT underline to be the coolest thing ever.
1115.
▲
by
mike_hock
10y ago
In this case, the programmer cannot reasonably expect that a concurrent read produces a meaningful result. There are good reasons to use clean, abstract formal logic over brutish "engineering" that results in a myriad of unmaintai
1116.
▲
by
mike_hock
10y ago
> Example: you pass an object by value, and only read one field, can it optimize this? Yes. struct S { int a,b; }; void foo(int); // Some external function void bar(S s) { foo(s.a); } void baz() { bar(S{42, 55
1117.
▲
by
mike_hock
10y ago
I see no WTF here. Concurrent reads from * p have to be allowed to produce any possible value whatsoever, since if the variable is larger than a system word, the compiler may have to break up the write into multiple instructions (and some
1118.
▲
by
mike_hock
10y ago
Of course, everyone wants the best of everything. When someone says they prefer "reliable over smart," I assume that they mean they want as smart a compiler as possible under the constraint that it has to be reliable first. And
1119.
▲
by
mike_hock
11y ago
Tests actually prove very little. They probe the code with a few, isolated inputs out of a usually very large domain. Their nature is more stochastic. Static type guarantees are actual proofs (barring a compiler bug), and they narrow down
1120.
▲
by
mike_hock
11y ago
Also, how does full unit (!) test coverage prevent a situation where unit A passes some type to unit B that unit B doesn't expect but happily runs with, but with different semantics? Documentation of interfaces in dynamic languages
1121.
▲
by
mike_hock
11y ago
No, you cannot implement a conforming client or server of any protocol by inspecting the wire. How do you know there aren't other cases that you're supposed to handle that simply didn't happen to occur in the sessions that
1122.
▲
by
mike_hock
11y ago
Well, an excessive amount of spelling errors on the application could be an indication that they half-ass everything. Which could be a problem in a housemate. Or it could mean they won't give you shit for half-assing everything. De
1123.
▲
by
mike_hock
11y ago
And how do I know that they actually don't?
1124.
▲
by
mike_hock
11y ago
The only virtual call that you necessarily get with polymorphism is the destructor call. Whenever you need to make a function virtual in C++, you'd need to store a function pointer in an equivalent C design, somehow.
1125.
▲
by
mike_hock
11y ago
This is illegal (undefined), but casting to char* and reading out the values is legal.
1126.
▲
by
mike_hock
11y ago
Not sure what I'd get out of this over playing the original in ScummVM. Why not make a new game in the same style, with a new story?
1127.
▲
by
mike_hock
11y ago
Well, lawyers are essentially "justice as a service," aren't they.
1128.
▲
by
mike_hock
11y ago
Then take the repair costs out of his pay check, and if it happens repeatedly, let him go.
1129.
▲
by
mike_hock
11y ago
We also had that fixed with CDs/DVDs when the OS could lock the drive and handle the eject button any way it liked. I didn't quite like the way Linux handled this though, not allowing the disk to be ejected as long as any file des
1130.
▲
by
mike_hock
11y ago
Yeah, just drives up the repair costs when there's an accident. Also causes huge wear on the panels. Why not place the solar panels next to the road?
1131.
▲
by
mike_hock
11y ago
Pfff 404, that's so HTTP. Why aren't you using IAP?
1132.
▲
by
mike_hock
11y ago
"Half-implemented feature" is so awesome for plausible deniability. You can leave blatant security holes in and be like, "yeah, I never got around to fixing that since we stopped developing the feature," when elsewhere t
1133.
▲
by
mike_hock
11y ago
This proposal has nothing to do with Bitcoin, though. This FT-coin is a currency (parallel to the Euro) issued by a central authority, just as any other fiat currency. This is completely different from Bitcoin, whose value arises from the c