Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_gabe_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
391.
▲
by
_gabe_
4y ago
I'm using C++ for a minecraft clone that I've been tinkering on for the past year[0]. I also plan on using embedded lua for scripting, and I'm using RML UI for game HUDs, ImGui for development tools, and OpenGL for graphics.
392.
▲
by
_gabe_
4y ago
> You would be better served studying philosophy directly, rather than a book filled with misogyny, slavery, thought-crime and magic. Quite a hot take. Most famous philosophers lived in similar environments. I don't know how your en
393.
▲
by
_gabe_
4y ago
That's a link to the benchmark framework that I used. The C# benchmark are in a separate gist that I didn't feel like digging up. This is the C# benchmarks[0]. All the interfaces and indirection is the result of me adapting this f
394.
▲
by
_gabe_
4y ago
It looks like caching definitely skewed the results a bit. You can take a look at the linked code yourself. Worst case was still only around 80 nanoseconds which is definitely slower, but still orders of magnitude faster than "sub 5 mi
395.
▲
by
_gabe_
4y ago
> Not as fast as C++ at sub 5 micros. Try sub 5 nanos. I was curious awhile ago at how fast C++ hash set lookup was compared to C#, and it consistently performed a lookup at 1 nanosecond. I tested with up to 6GB of data and then stopped
396.
▲
by
_gabe_
4y ago
> A person’s main task shouldn’t be computing, but to be human. Ok that's fine. I'm not sure what part of my statement required computing vs being human. Installing an OS isn't some herculean effort, and if you're fin
397.
▲
by
_gabe_
4y ago
I'm curious if you bought a laptop or if you bought a windows 10 license and did a fresh install? When I built my PC with windows 10, the experience was way different from buying a laptop with windows 10. The laptop manufacturer purpos
398.
▲
by
_gabe_
4y ago
I'm interested in specific cases that cause extra noise :) I don't recall doing any extra work to reduce noise on my personal PC that runs windows. I'm unaware if I forgot about stuff I did to make that happen (it's been
399.
▲
by
_gabe_
4y ago
> A good operating system: Mac OS. Windows has become so user-hostile that I refuse to get near it. Like...? Windows annoys me at times too, but the most annoying thing to me is the forced updates. Other than that, I can't recall an
400.
▲
by
_gabe_
4y ago
> I feel like they are the only source I can trust on figuring out the best truth we know about history. I hope this isn't a widespread belief. If it is, then this concerns me.
401.
▲
by
_gabe_
4y ago
From the authors original post, it looks like you're right in saying that was not one of his goals. This article says: > Thus we can reasonably say that the code does contain an implementation of a very limited and basic form of LaT
402.
▲
by
_gabe_
4y ago
I thought one of the reasons Knuth made TeX was because there were no good math typesetters available. I have no idea if this assumption is correct, but one of the main reasons I've resorted to using LaTeX in the past is for the math t
403.
▲
by
_gabe_
4y ago
A pointer is just a number that points to addressable memory. Pointers don't even point to actual memory these days anyways. They're just glorified indices into OS tables that eventually map to actual memory. You can increase a po
404.
▲
by
_gabe_
4y ago
A lot of comments here sound like they're saying these cutesy messages are what non-technical users would like to see. I don't think this is true. It reminds me of a penguinz0 video I watched awhile ago about Discord's cutesy
405.
▲
by
_gabe_
4y ago
> There is also the notion of being able to make better decisions with more "connection material" in your mind. The more you know, the more likely you are to make a novel connection. I completely agree with this, but I don'
406.
▲
by
_gabe_
4y ago
> Strong labor numbers means wages would be increasing How can you equate these two? Couldn't strong labor numbers also be indicative of an economy in turmoil, forcing many people who no longer had to work back into a job to get by?
407.
▲
by
_gabe_
4y ago
Only if you then proceeded to tell me that because less people are employed the country has a lower standard of living and is more economically unstable. As a direct example of this, Sweden's unemployment rate is 7.6% right now[0], and
408.
▲
by
_gabe_
4y ago
I've never understood how strong labor numbers negate a recession. Like sure your money is worth less because of all the inflation, and your COL keeps increasing but your wages remain the same, but hey we have lots of people working. M
409.
▲
by
_gabe_
4y ago
> I think a lot of programmers get stuck in this trap of thinking that making a game is an engineering task. It isn’t. Here are a few (non-engineering?) tasks unity does not ship with (last I checked): * AI Steering behavior * 2D Pathf
410.
▲
by
_gabe_
4y ago
It's not different though. You asked: > Do you honestly claim that you know when deallocations happen in any codebase full of conditionals depending on outside effects (user input, network, etc)? And the answer to that is yes. You e
411.
▲
by
_gabe_
4y ago
> Do you honestly claim that you know when deallocations happen in any codebase full of conditionals depending on outside effects (user input, network, etc)? Yes. C programs have been doing this for over 40 years now. A leak free C progr
412.
▲
by
_gabe_
4y ago
> trigger deallocation of a large object graph and it's not always clear by just looking at a code what will happen If you can't understand what's happening when an object gets freed, it may be a sign that your code is too
413.
▲
by
_gabe_
4y ago
> Like, imagine a game for example where the user can drag'n'drop different things to a "parent" object. Where is the reference count going to 0 here? Presumably the object you dragged from one parent to another paren
414.
▲
by
_gabe_
4y ago
> First, because there often isn't a context where the word has the correct meaning in the first place. In this case, there's an unequivocally correct meaning to the term blacklist and whitelist that has nothing to do with race
415.
▲
by
_gabe_
4y ago
> Even though the etymologies of the words don't describe them as being based on race / racial judgments Then why should we change them? I know you said: > Setting aside the historical context, they also help reenforce the i
416.
▲
by
_gabe_
4y ago
> Made things faster (no parsing). And simple. I parsed a wav file for the first time awhile ago and it was surprisingly refreshing how easy it was to parse. I just made some C structures in the format of the specification, and I could j
417.
▲
by
_gabe_
4y ago
> Wikipedia serves the public, and its notability heuristic is demand-driven. This sentence seems to be incompatible with itself. > the public This constitutes all public groups, including the advertising industry. > its notabili
418.
▲
by
_gabe_
4y ago
I've done the big red X and felt the pain of breaking the chain as well. Instead of that, I've started just listing the number of days of my latest chain on a whiteboard, and if I hit 30 days then I reset it to 0. This helps me no
419.
▲
by
_gabe_
4y ago
I think it's interesting how medpagetoday reports these laws compared to how the laws are written. As just one example, medpagetoday says this about Missouri: > As of June 24, Missouri's trigger ban is in effect. It prohibits a
420.
▲
by
_gabe_
4y ago
> First, let me say that I appreciate that you've at least expressed a willingness to change your mind. That's more than I can say about myself. If this is the case, then I don't see the need to continue this debate. I app
More ›