Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Maxatar
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
241.
▲
by
Maxatar
11mo ago
>Do you agree that C++ pass-by-value is using copy constructors? C++ is an incredibly complex language that it's almost never the case that you can make a categorical statement this simple and have it be true or false. In C++, pass
242.
▲
by
Maxatar
11mo ago
>So, unless you have chosen to shoot yourself in the foot by defining a class who's copy constructor doesn't do a deep copy, then C++ pass-by-value will indeed do a deep copy. You either are misspeaking, deeply confused, or qui
243.
▲
by
Maxatar
11mo ago
You seem to misunderstand the meaning of deep versus shallow copy. This distinction has to do with how references/pointers get copied. In C++ the compiler generated copy constructors are shallow, not deep, meaning that if you want a co
244.
▲
by
Maxatar
11mo ago
Why would you copy a whole list to modify a single element?
245.
▲
by
Maxatar
11mo ago
Why not? I already use LLMs to generate summaries of my emails, search emails, and perform a host of email related operations as do many people. No reason OpenAI couldn't release their own email service that tightly integrates their LL
246.
▲
by
Maxatar
11mo ago
Yes but ChatGPT has not replaced Google Search at a profit. ChatGPT loses revenue per user. Certainly the hope is that at some point they become profitable but the concern is that might not happen.
247.
▲
by
Maxatar
11mo ago
This is as relevant as claiming the President doesn't set taxes... it's technically true but displays a very superficial understanding of the overall political process.
248.
▲
by
Maxatar
11mo ago
Reviewing various western democracies it looks like most mayoral candidates run affiliated with a political party. The exception is Canada where mayoral candidates run an independent campaign.
249.
▲
by
Maxatar
11mo ago
Every Ikea I've been to has one.
250.
▲
by
Maxatar
11mo ago
I'll just speak for myself, but I use Copilot with Visual Studio and C++ and Copilot does an excellent job of interpreting the instructions given to it and ensuring that the code I write is consistent with the coding style and standard
251.
▲
by
Maxatar
11mo ago
>For exemple, it's endlessly amusing to me to see all the efforts the Haskell community does to basically reinvent mutability in a way which is somehow palatable to their type system. That's because Haskell is a predominantly a
252.
▲
by
Maxatar
11mo ago
Even the title uses one of ChatGPT's signature lines "It's not X, it's Y."
253.
▲
by
Maxatar
1y ago
Weird claim since threads were originally introduced as a concurrency primitive, basically a way to make user facing programs more responsive while sharing the same address space and CPU. The idea of generalizing threads for use in parallel
254.
▲
by
Maxatar
1y ago
The same reason an actual AI wouldn't play chess by brute forcing every possible position. Intelligent systems are about reasoning, not simply computing, and that requires operating at the level of abstraction where your intelligence i
255.
▲
by
Maxatar
1y ago
There was no need for you to involve yourself in the discussion to begin with given that you misunderstood every single comment that has been made, it's for the best that you refrain from further involvement.
256.
▲
by
Maxatar
1y ago
When someone says "I don't understand why FOO matters so much..." it's usually understood that the author is trying to say "FOO doesn't matter". When the author then follows up with "It's sad th
257.
▲
by
Maxatar
1y ago
Doesn't make much sense to say it doesn't matter and also that it's sad. If it's sad then it matters, if it doesn't matter then it isn't sad.
258.
▲
by
Maxatar
1y ago
OpenAI has published a great deal of information about hallucination rates, as have the other major LLM providers. You can't just give one single global hallucination rate since the rates depend on the different use cases and despite t
259.
▲
by
Maxatar
1y ago
C++ uses the term elision for these kinds of semantics.
260.
▲
by
Maxatar
1y ago
Consider a move assign to a vector<int> from src to this . The first step is for this to free its resources, the second step is to assign src resources to this , the third step is to set src resources to null. If src and
261.
▲
by
Maxatar
1y ago
>If anyone ever submitted a diff that required you to know the difference between get<1> and get<2> I would reject it with a polite message that this is extremely unclear, unintuitive, and error prone. Don’t do that. But that
262.
▲
by
Maxatar
1y ago
If you're using it via RDP then you won't notice any rendering performance issues since RDP itself has terrible rendering performance.
263.
▲
by
Maxatar
1y ago
I treat std::variant the same way I treat std::tuple, which is that I use them internally/privately and don't expose them as part of a public API. If I want to expose a std::variant publicly then I take the effort to emulate Rust,
264.
▲
by
Maxatar
1y ago
I think the being an aficionado is clouding your judgement, because it's pretty obvious what the intent is.
265.
▲
by
Maxatar
1y ago
Ease of implementation was not the issue here, on the contrary the easier implementation would have guaranteed that std::variant<Dog, Cat> always contains a Dog or a Cat. The issue was performance in that guaranteeing a Dog or a Cat r
266.
▲
by
Maxatar
1y ago
>Want a variant with two ints that represent two things? Fuck you, you can’t. This is false, I also find that in general you have a tendency to make false claims about C++ in most of your posts about it. I would suggest you check out a r
267.
▲
by
Maxatar
1y ago
Just doing a quick check on this, lifestyle choices slightly edges out net worth. Living what is called a "low-risk" lifestyle (don't drink, don't smoke, maintain healthy weight, avoid junk food) results in an average li
268.
▲
by
Maxatar
1y ago
C and C++
269.
▲
by
Maxatar
1y ago
There are a lot of misconceptions and things being confused together in your post. For one complexity classes are related to decision problems, not algorithms. An algorithm does not have a complexity class, rather it's decision problem
270.
▲
by
Maxatar
1y ago
Yes, C++ and Java have different conditions for what a data race is. That your position hinges on thinking all languages share the same memory model suggests a much deeper failure to understand some of the basic principles of writing correc
More ›