Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codeflo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
931.
▲
by
codeflo
5y ago
The “initial scan” scenario also happens after git operations like pull, checkout etc. When working in a team where you pull and push often, it’s a real quality of life improvement if the IDE adapts quickly, so I wouldn’t dismiss that compl
932.
▲
by
codeflo
5y ago
If all of this was planned (and I’m not saying it is), that would have been very clever. It would work like this: 1. You “accidentally forget” to disable the feature in hardware. Given how competitive the market is, motherboard manufacturer
933.
▲
by
codeflo
5y ago
Thanks, that’s a great correction/clarification.
934.
▲
by
codeflo
5y ago
I didn’t downvote, in fact, I’m a bit amused because the reason I used quotes is exactly because I’m not using any official definition! There’s no consensus definition of “native”, and I’m using “should” purely in the colloquial sense of “s
935.
▲
by
codeflo
5y ago
It is. I haven’t checked the complete source code. What I know for sure is that a program using Rust’s std still requires the C runtime to link and run, and from that perspective, it doesn’t really matter if some or even many parts of the s
936.
▲
by
codeflo
5y ago
As a believer in removing unnecessary layers of abstraction, this looks interesting. Is there a technical reason Rustix doesn’t support Windows, or is that just not a priority at the moment? (For a bit of background info: It might seem coun
937.
▲
by
codeflo
5y ago
Unfortunately, they’ll get away with it as long as the company value goes up. As long as investors make money, who told whom what is irrelevant.
938.
▲
by
codeflo
5y ago
Isn’t Al Capone’s tax evasion conviction usually mentioned as a bit of a joke? I don’t see how anyone can cite it as an example of the system working perfectly fine . Ignoring for a moment that this was in a very different era, to me, ther
939.
▲
by
codeflo
5y ago
It’s a large topic, but the most important goal is to minimize the amount of code that’s transitively included in headers. That can mean avoiding templates, or (if you’re willing to do the work) using explicit instantiations in one source f
940.
▲
by
codeflo
5y ago
That matches my experience as well. It takes a nontrivial amount of discipline, but it’s possible to structure a C++ project for fast builds. In theory, having a module system that isn’t based on text substitution should give Rust an advant
941.
▲
by
codeflo
5y ago
I agree, and even as someone who holds Rust in high regard, I’m becoming increasingly frustrated by this. There doesn’t seem to be one clear root of this problem. Some of it is the language not being designed with ease of compilation in min
942.
▲
by
codeflo
5y ago
Are we looking at a different version of the page? I see descriptions and definitions, but no proof.
943.
▲
by
codeflo
5y ago
But you don’t start with a point belonging to the triangle, that’s the whole idea!
944.
▲
by
codeflo
5y ago
I'm sorry, but that gives me "draw the rest of the fucking owl" vibes. You're basically restating the algorithm's definition -- it's the rest of the proof that contains the interesting steps. Edit: In my view,
945.
▲
by
codeflo
5y ago
I don’t think we actually disagree, see my last paragraph.
946.
▲
by
codeflo
5y ago
Not the OP, but off the top of my head, we have: * str and String, which are the ones we just call “strings” * CStr and CString, for interop with libraries that work with null-terminated strings * OsStr and OsString, for interop with system
947.
▲
by
codeflo
5y ago
That’s an evil problem to have. Let’s say you derive two references to a GC’d object (this can easily happen accidentally in a graph-like data structure) and pass them both as parameters to a function. I’ve looked at disassembled Rust code
948.
▲
by
codeflo
5y ago
I absolutely agree. There’s prior art in that direction. It’s more or less abandoned now, but Microsoft developed an extension to C++ that integrated the .NET runtime with it’s garbage collector called C++/CLI. The way it worked is tha
949.
▲
by
codeflo
5y ago
It’s been a while, but didn’t the program knob in those machines turn in discrete steps? If so, then that system was — to be pedantic — a mechanical digital computer, not an analog one.
950.
▲
by
codeflo
5y ago
Supposedly, one application of analog computing is simulating systems governed by differential equations. The discrete time step in a typical numerical simulation introduces some artifacts, often seen as an error at high frequencies. In an
951.
▲
by
codeflo
5y ago
“Only”.
952.
▲
by
codeflo
5y ago
Look more carefully, the estimation according to Wikipedia is 10^80, which is roughly 2^266. (BTW, when converting 10^x to 2^x, times 3 is what I use for very rough back of the envelope estimations. Times 10/3 is actually almost precis
953.
▲
by
codeflo
5y ago
Boyajian’s star is 1470 lightyears away according to Wikipedia. As a sci-fi concept: Imagine we detect an expanding civilization at this distance, and they travel at a significant fraction of c. We have a few millennia, at most, what do we
954.
▲
by
codeflo
5y ago
I personally don’t get bored when a tool is “too simple”, but when it forces me to do things by hand that the machine should be able to do. Like manually specializing a generic concept. I didn’t become a programmer out of love for repetitiv
955.
▲
by
codeflo
5y ago
Even though I personally much prefer Unix environments, I've done a lot of work in Microsoft's tech stacks and WPF in particular. WPF is nice, but it's not developed much anymore and lacks basic features that people have come
956.
▲
by
codeflo
5y ago
Laws that require software companies to implement a user choice should really contain some wording against dark patterns. EU lawmakers could have been warned: A similar thing happened back when Microsoft was forced to give users in the EU a
957.
▲
by
codeflo
5y ago
Exactly, straight lines on a texture should obey perspective (think rows of bricks on a wall). I think this wasn't as widely understood back then, but notably, id software already got it right a few years earlier in the original Wolfen
958.
▲
by
codeflo
5y ago
In early 3D hardware, the Z buffer was a bit more special cased than it is now, where you quite literally allocate a texture. In either case, the interesting (and expensive to emulate in software) part is of course using the depth buffer
959.
▲
by
codeflo
5y ago
Fake/real is not the most precise terminology, but I think it gets the important point across, so I’ll use it. In a "real 3D" rasterizer, you interpolate the depth coordinate for each individual pixel. You need this value to
960.
▲
by
codeflo
5y ago
Codebases that do that are very rarely const correct, however. (Personally, I don’t think typing unique_ptr<Foo> or unique_ptr<const Foo> is such a big deal. But then, I also consider having “using namespace std” the only somewh
More ›