Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
331.
▲
by
DougBTX
6y ago
Bitwise or works at the level of bits, so the question is more like, in: >>> bin(0b011 | 0b010) '0b11' Does the leading 1 come from the first argument or the second argument? It isn't really a sensible q
332.
▲
by
DougBTX
6y ago
Interesting, it seems like madness to me to have it the other way around. Why bother with a merge commit if all the changes are squashed into one anyway? Why not just fast forward merge as if it was a commit directly to the main development
333.
▲
by
DougBTX
6y ago
The example uses numbers outside the range of JS numbers (too many significant digits), so when the JSON is evaluated as a JS number some of the least significant bits are rounded. Personally, I think it is a mistake to use values in JSON t
334.
▲
by
DougBTX
6y ago
Yes, this is something where different CPU architectures do it differently, even between ARMv7 and ARMv8 etc. There's a great presentation on the differences here: https://channel9.msdn.com/Shows/Going+Deep/Cp
335.
▲
by
DougBTX
6y ago
The "grid" example shows a similar effect, but the difference is even more stark. With Low Cut Frequency at 0%, slowly move the High Cut Frequency between 7% and 9%, on the "Modulus view" you should see the white dots wh
336.
▲
by
DougBTX
6y ago
At the end of the day, if you look at a low enough level in the stack, there are no types. In a very concrete way, types are a high-level idea, and if the high-level stops matching the low-level, then bugs crop up. See for example Tetris im
337.
▲
by
DougBTX
6y ago
> isn't `!` normally used after identifiers to indicate macro invocation? I'm not sure where that's explicitly documented, but the docs for procedural macros call it the "macro invocation operator": https:/
338.
▲
by
DougBTX
6y ago
There's a principle in Rust that only the function signature is needed to know if a function call is valid, without any need to look at the function body. It makes things much easier to think about: at a minimum, if you change the body
339.
▲
by
DougBTX
6y ago
Visual Studio is very much an IDE, but it is perfectly capable of editing a single file too. I think the only reason people tend to use something else for single files is because it tends to be slow to start up.
340.
▲
by
DougBTX
6y ago
It seems like the only distinction between an "IDE" and a "Text Editor" nowadays is that an "IDE" is slow to start up but a "Text Editor" is fast to start up. Everything else that would be in an IDE h
341.
▲
by
DougBTX
6y ago
A project can't be more stable than its dependencies and tooling, but that doesn't mean that the only way to be stable is to have no dependencies. Some programming languages make guarantees that old code will build in new versions
342.
▲
by
DougBTX
6y ago
That scam relies on the purchaser sending the full payment almost as soon as the bank transfer details have been sent to them, otherwise they’ll see the legit details too. When I’ve bought residential property in the past, there have always
343.
▲
by
DougBTX
6y ago
Along the lines of this? https://docs.microsoft.com/en-us/dotnet/api/system.globaliza...
344.
▲
by
DougBTX
6y ago
Oh, sorry, I didn't mean to be disparaging. What I meant was that if the application needs to handle lots of in-memory data, then thinking of it as an in-memory database seems like a great idea. The ECS architecture seems to be pulling
345.
▲
by
DougBTX
6y ago
That's probably not a bad way to think about it - in an application that large, dealing with lots of data, needing high performance, it is effectively an application-specific database.
346.
▲
by
DougBTX
6y ago
Keep in mind that the person who posed this appears to have nothing to do with the project, they're just someone who's seen something that interests them and shared it here, the same as the people voting it up.
347.
▲
by
DougBTX
6y ago
Seems you're right, all I can see is that a diagnostic should be produced, not that the code should be accepted. The impression I get is that when they say diagnostic, they really mean: "this is an error, but carry on if you like.
348.
▲
by
DougBTX
6y ago
> Bollocks. Only because it is misquoted, the sentence ends: > this is standards-conforming ISO C code that is required to not be rejected unless you crank up the -Werror -Wall -Wpedantic etc. etc. etc.
349.
▲
by
DougBTX
6y ago
> as that differs completely There must still be confusion, as when I read the title it means exactly what is said in the GitHub issue.
350.
▲
by
DougBTX
6y ago
Yes, it would be great to have packages grouped by organisation. It would make it much easier to see in a package list how which organisations you're depending on, rather than just how many crates.
351.
▲
by
DougBTX
6y ago
Imagine if every repository you pushed to GitHub had to have a globally unique name, rather than account/whatever-you-like.
352.
▲
by
DougBTX
6y ago
Interesting that you and another commenter interpreted "9 year old bug" to mean "bug discovered 9 years ago". I'd have thought it was unambiguous that the bug was introduced 9 years ago, but apparently it isn't
353.
▲
by
DougBTX
6y ago
Instead of calling it "ULPs" they refer to a "next floating point number" which I'm pretty sure is the same idea: > Unlike the number line, for every representable floating point number x, there is a _next_ float
354.
▲
by
DougBTX
6y ago
But interestingly, you can make rotations out of mirrors.
355.
▲
by
DougBTX
6y ago
A version 0.142.2 is perfectly possible with Semver, it just implies that the the developer has had a lot of iterations on the idea, but never got to the point that they consider stable. If the software had a stable API at that point, but t
356.
▲
by
DougBTX
6y ago
If it is a project you’ve recently built, it shouldn’t matter what’s in your cargo file, since none of that will change from build to build. I wonder what’s broken. How long does it take to build a new empty project? One think that’s helped
357.
▲
by
DougBTX
6y ago
Hopefully generics will help with this, if the middleware can deal with T then the calling code can “smuggle” whatever types it wants because it controls T.
358.
▲
by
DougBTX
6y ago
Perhaps the problem isn't mocking dependencies, but trying to hide the fact that GetSolarTimesAsync needs two pieces of data to work: a date and a location. But the original signature is just this: public async Task<SolarTimes
359.
▲
by
DougBTX
6y ago
> This quote from the OP directly address that attitude It doesn’t directly address it, the parent was talking about intention, the article is talking about outcome. Smooshing then together produces nonsense: “when someone wants to remov
360.
▲
by
DougBTX
6y ago
> But the headline does. That’s not really fair, it repeatedly says “wrong abstraction”, in the title and in the article. At steps 2 and 3 it is still the right abstraction, duplication only becomes better when it is the wrong abstractio
More ›