Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
451.
▲
by
DougBTX
7y ago
Like PHP
452.
▲
by
DougBTX
7y ago
Yes, nice article on that here: https://hackernoon.com/java-is-unsound-28c84cb2b3f
453.
▲
by
DougBTX
7y ago
> Github had a stronger association with open source than Bitbucket (dunno why though). Early on GitHub gave out free public repositories, but Bitbucket gave our free private repositories. Working in public is aligned much more closely w
454.
▲
by
DougBTX
7y ago
The article goes on: > The law does not define a computer, but defines data storage devices as a “thing containing, or designed to contain, data for use by a computer”. Regardless of whether the phone is a computer, how could it be argue
455.
▲
by
DougBTX
7y ago
I’d phrase it as, “It’s not _just_ about floating point artefacts.” Rounding is a source of error inherent to storing arbitrary precision numbers in finite space, floating point numbers are just a very common way to do that. Numerical stabi
456.
▲
by
DougBTX
7y ago
Let’s say there is a system that controls whether a second system receives input from random source A or random source B, and there is some difference in the distribution of values generated from each source. Starting without knowing the re
457.
▲
by
DougBTX
7y ago
Hm, perhaps the answer is a subtle definition of "rounding error". A rounding error is when you have a number, lets say 0.75, and due to rounding it is recorded as 1.00. The "rounding error" is 0.25. An alternative to ro
458.
▲
Cryptographic Right Answers (2018)
(latacora.micro.blog)
3 points
by
DougBTX
7y ago
|
0 comments
459.
▲
by
DougBTX
7y ago
The implication is that a secret is being revealed, possibly a dark secret to worry about. But FB and others put content in alt tags for people to read when they can’t see the images (for example die to blindness), it is much less dramatic
460.
▲
by
DougBTX
7y ago
That isn't quite true re Python, eg https://stackoverflow.com/questions/2933/how-can-i-create-a-... Go might be a special case actually, as it was designed to be a "boring" language to reduce the co
461.
▲
by
DougBTX
7y ago
> fundamental features of the language The thing is you’re right, Go compiling to a self-contained binary is different from a folder of .py scripts. But both can be deployed into production. The deployment steps are different but the o
462.
▲
by
DougBTX
7y ago
https://www.microsoftpressstore.com/store/software-requireme... That book is from this perspective, that you can work out what needs to be done for a project before actually doing it.
463.
▲
by
DougBTX
7y ago
There's some discussion about unsafety in the face of concurrency from Rob Pike here: https://talks.golang.org/2012/splash.article#TOC_13 . > There is one important caveat: Go is not purely memory safe in the p
464.
▲
by
DougBTX
7y ago
The implementation in the article still used hard-coded lengths, perhaps this could have been fixed without the extra markup after all.
465.
▲
by
DougBTX
7y ago
Yes, though you'll need pass-through header pins: https://www.raspberrypi.org/blog/introducing-power-over-ethe...
466.
▲
by
DougBTX
7y ago
Yea, that seems like a use-case I’ve felt like I wanted before. TypeScript supports this, as the JS output can be produced even if type checking fails, though in practice I have it turned off so that I don’t accidentally end up with type er
467.
▲
by
DougBTX
7y ago
At least for me, that's the most interesting part of it. (0.125 isn't in the range I mentioned above though)
468.
▲
by
DougBTX
7y ago
Hm, yes, perhaps "error" is still a good word for it. I'm not sure I understand what you mean by "holes", the idea is that all the real numbers between roughly 0.09999999999999999862 and 0.10000000000000001249 are r
469.
▲
by
DougBTX
7y ago
I wonder about the terminology of calling these "errors". That implies that there's a mistake, when really floats are among the most accurate ways to represent arbitrary real numbers in a finite number of bits. Another way to
470.
▲
by
DougBTX
7y ago
I wonder how much of this is a scam on the advertisers too, sure the platform might have great detail for targeting ads, but if someone comes along and outbids on generic terms it isn’t going to do you much good as an advertiser either.
471.
▲
by
DougBTX
7y ago
In this context, yes, tests shouldn't require external dependencies. By "tests" we're really talking about tests like, "is this particular build consistent with its spec?" There could be other types of test whe
472.
▲
by
DougBTX
7y ago
Yes, I avoided the “semantic” question as it seems very slippery, it could easily devolve to “Rust is turing complete so it is just the same as any other language”. Out of interest, do you have any examples that you would consider semantica
473.
▲
by
DougBTX
7y ago
> there's no meaningful semantic difference Traits can be defined for existing structs without changes to the struct definition, so there are at least practical differences. Examples here: https://blog.theenginerd.com
474.
▲
by
DougBTX
7y ago
The way to answer your two questions is to combine them, the definition of “a while” depends on how good a job the interface does. If the interface is really good, then it can last a really long time (perhaps as long as the language lasts).
475.
▲
by
DougBTX
7y ago
Parent comment was edited to include this quote: _6 When a value is stored in an object of structure or union type, including in a member object, the bytes of the object representation that correspond to any padding bytes take unspecified v
476.
▲
by
DougBTX
7y ago
Basically yes. If an immediate mode API is much easier to use, and a retained mode underlying implementation has much better performance, then putting a React-style VDOM layer in-between could get the best of both worlds, depending on how w
477.
▲
by
DougBTX
8y ago
> ISTR Rust implements a specialization on pointers Yes, and NonZeroU8 for Option<NonZeroU8> and friends: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
478.
▲
by
DougBTX
8y ago
Unfortunately that doesn't preserve case nor order of the input strings.
479.
▲
by
DougBTX
8y ago
Even with the hash set solution, it would be nice to not copy the string contents, which unfortunately is needed if the hash set contains lowercased versions of the strings. On the other hand, converting all strings to lowercase then compar
480.
▲
by
DougBTX
8y ago
The output form this is a little different form the article, as it additionally requires: * that the uniqueness check is done case-insensitively, * that the casing from the first instance of the string in the input array should be used in t
More ›