Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jb1991
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
931.
▲
by
jb1991
4y ago
I can’t upvote this comment enough. The amount of pedantic nonsense on HN these days is disappointing. I’m not sure why I even bother to read comments here anymore.
932.
▲
by
jb1991
4y ago
Any advice in overcoming insomnia? I’ve tried everything I can think of. Melatonin, various vitamin supplements, exercise, dietary changes of a wide variety, nothing seems to help. Always waking up in the middle of the night and can’t get b
933.
▲
by
jb1991
4y ago
We are talking about one very specific issue, the point of this thread is a joke about new and delete. And your response after evidence services against your position is, “what about all these other things?” Definition of whataboutism.
934.
▲
by
jb1991
4y ago
Sitter’s idea in that is a different matter entirely.
935.
▲
by
jb1991
4y ago
That’s called whataboutism.
936.
▲
by
jb1991
4y ago
> Ah, so you've been doing programming-lite. I hope you can understand why that's offensive.
937.
▲
by
jb1991
4y ago
But it’s not counted, that’s my point. It’s getting quite pedantic to talk about ones and zeros in this context anyway.
938.
▲
by
jb1991
4y ago
C++ can do pretty much anything, but that doesn't mean that it’s typical to do so. In practice, you will never see a garbage collector in C++.
939.
▲
by
jb1991
4y ago
I think you’re making a joke, but reference counting is different than what a unique pointer does. (a destructor is not the same thing as a reference count, even if that reference count is limited as you suggest.)
940.
▲
by
jb1991
4y ago
If you are going to work with a legacy codebase, then sure. My comment was more about fresh codebases, which are fortunately the only ones I've worked on.
941.
▲
by
jb1991
4y ago
That's perfectly reasonable. I have fortunately worked on greenfield projects, so don't have to contend with legacy paradigms.
942.
▲
by
jb1991
4y ago
Go is a garbage collector. Smart pointers are not. It's fairly simple: instead of new --> make_unique(); this returns a pointer, but it will automatically delete its memory when it goes out of scope. instead of delete --> do noth
943.
▲
by
jb1991
4y ago
No, it’s not just theory. Like anything in C++, codebases and their styles widely vary. But my comment holds true for the vast majority of developers I have worked with over the last decade. With the exception of the special “placement new“
944.
▲
by
jb1991
4y ago
I was surprised to see it not mentioned in the post -- the most obvious reason this joke should be retired is not the reference to a television show but rather the modern practice of never using new or delete at all in C++ code. Modern C++
945.
▲
by
jb1991
4y ago
It’s not just about memory. The path tracing algorithm is a natural fit for CPU threads but very difficult to design for efficient use of GPU threads. It’s very easy to leave many of your GPUs threads idle due to the divergence, or overflow
946.
▲
by
jb1991
4y ago
That’s a bit pedantic in this context. True but that’s not what we’re talking about.
947.
▲
by
jb1991
4y ago
There’s a big difference between a graphics class for engineers and a graphics class for the users of that software. Modern graphics programming is also just basically math, as evident from any good textbook on the subject.
948.
▲
by
jb1991
4y ago
Only some decaf coffee is made that way, there are actually four major methods now for making decaf, only two of them do not involve chemicals. Always research the methods of your decaf coffee vendor before you buy!
949.
▲
by
jb1991
4y ago
The vim ecosystem is starting to look a lot like the JavaScript ecosystem, new shiny projects every month! I’m just joking of course, as vim is a far superior entry into world of technology than JavaScript has been, look, I’m joking again!
950.
▲
by
jb1991
4y ago
Don’t forget about all the accolades he left on Facebook stock before it had its massive crash.
951.
▲
by
jb1991
4y ago
> Only 3% of deposits in the bank are FDIC insured why is that?!
952.
▲
by
jb1991
4y ago
I'm super curious why in the world that in 2023, nearly all the deposits in the country's 18th largest bank are not insured ? what ?
953.
▲
by
jb1991
4y ago
in Switzerland though salaries need to be higher to account for the higher cost in living, no?
954.
▲
by
jb1991
4y ago
> when we're older time passes more quickly even on the scale of minutes. And understatement for anyone who has kids.
955.
▲
Slack to adopt ChatGPT app technology
(cbsnews.com)
1 points
by
jb1991
4y ago
|
0 comments
956.
▲
by
jb1991
4y ago
> most interesting programming landscape in Europe. What do you mean?
957.
▲
by
jb1991
4y ago
There’s also Swift, of course. https://docs.swift.org/swift-book/documentation/the-swift-pr...
958.
▲
by
jb1991
4y ago
It’s not unusual for the operator to be automatically available while the hashing function is not, however.
959.
▲
by
jb1991
4y ago
The thing is, it’s not actually effortless in many situations to switch from one map to the other. In C++, if you switch to an unordered map, you now have to contend with the annoying boilerplate of implementing a hash function for many key
960.
▲
by
jb1991
4y ago
Why dangerous?
More ›