Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
quicknir
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
quicknir
3y ago
Ah okay, didn't know that. Good luck wherever you are!
2.
▲
by
quicknir
3y ago
FWIW, as a high performance C++ dev who likes Rust but considers unsafe the biggest issue by far, it's encouraging to see important folk within the project believe there are issues. Too often as a relative Rust outsider it feels like t
3.
▲
by
quicknir
3y ago
It's honestly unfortunate that rust has been sold so hard on memory safety, so that when C++ folk don't spend tons of time in memory issues they think rust is pointless. I don't want rust for memory safety. I want it for thin
4.
▲
by
quicknir
3y ago
Duplicating meaning that the smart pointer deleter is going to need a copy of the allocator (or a pointer to it if you prefer, but allocators are already typically pointers). If your container is storing N separately allocated elements, hol
5.
▲
by
quicknir
3y ago
I think there's a bit of confusion here around "value semantics". No C++ smart pointer has "value semantics", relative to its target T. You can see this because == performs address comparison, not deep comparison, a
6.
▲
by
quicknir
4y ago
It's a pretty drastic assertion (and quite HN worthy) that a whole industry is abusing their developers, based on not even one job, but your impression of a job based on an interview. And assertions like "they expected us never to
7.
▲
by
quicknir
6y ago
I would encourage you to benchmark linear search and binary search on a dynamic array (std::vector) of a million elements. You may be in for a surprise. I can only assume you have 4KB of ram.
8.
▲
by
quicknir
6y ago
IIRC, Java interfaces are subtype polymorphism. Ad hoc polymorphism would be, for example, overloading.
9.
▲
by
quicknir
6y ago
I would assume that within unsafe you could simply do the same kinds of shenanigans you would do in C++, e.g. you have a fixed size struct that is just the "header", it's only created on the heap, and it's immediately fo
10.
▲
by
quicknir
7y ago
It's hard to say. I think a lot of the Rust community actually hails from more of the web world, where security is rightfully a big concern, and the that's where actix was positioned. So maybe with something like HFT it wouldn
11.
▲
by
quicknir
7y ago
Very curious where you work, because there's only really a handful of major places doing HFT (as opposed to algorithmic trading) and haven't heard of Rust being used at any of them.
12.
▲
by
quicknir
7y ago
I think this picture of how HFT and games work doesn't have much connection to how it actually does. In these industries you can't just get all or even most of the high performance stuff you need off the shelf for a variety of rea
13.
▲
by
quicknir
7y ago
Yes, he may well improve some algorithm, or rewrite some commonly used tool to improve efficiency. And researchers are often not incentivized to do that, so it would be great. But a far cry from the picture people are painting about him soa
14.
▲
by
quicknir
7y ago
I normally don't bother but this comment is so profoundly ridiculous I had to say something. Tenured ML professors at the top 100 or so universities in the world aren't "most of us". A very large chunk of these people a
15.
▲
by
quicknir
7y ago
Except that in HFT we don't generally disable RTTI or exceptions. I work at a top HFT firm, have friends/colleagues at other top firms, have seen multiple people like Carl Cook at Optiver state in talks that they use exceptions..
16.
▲
by
quicknir
7y ago
Well you can certainly elect to torture yourself if you really want to. Atomics in C++ compile to assembly in very straightforward ways and there isn't really an enormous design space there. Preshing certainly makes it seem like Ubisof
17.
▲
by
quicknir
7y ago
Dude I mean the context in which I'm discussing this is a large organization operating on timescales shorter than microseconds with numerous people involved in optimizing every single part of the pipeline. We are waaaaaaaaaaay past the
18.
▲
by
quicknir
7y ago
I didn't intend to imply otherwise but I see my wording was unclear. I meant that D generally would be a hit, though it's only really speculation either way.
19.
▲
by
quicknir
7y ago
HFT doesn't subset C++ nor does it ignore the standard library. Given you're totally wrong about one I'm not inclined to believe you on the other, and I have an examples from the standard library used in game dev eg atomics.
20.
▲
by
quicknir
7y ago
I'm sure these people exist but they're the exception rather than the rule. The two biggest industries in SG14, the C++ low latency study group, are games and HFT. In both these areas, D penetration is pretty much zero. And in HFT
21.
▲
by
quicknir
7y ago
That's a pretty vague statement though. vector and unique_ptr are class templates (generic classes). To understand them you need at least a basic idea of how that works, which you probably do. After that, you just need to understand th
22.
▲
by
quicknir
7y ago
I think the author blows his credibility very early with this comment: > As I said, it’s a superficial example, but I think it shows a general difference in philosophy between C++ and D. (If I wanted to make the difference even clearer,
23.
▲
by
quicknir
7y ago
I'm not saying that D is defined by that. I'm simply saying that if you're comparing to C or C++, you are talking about use cases that are defined by performance and/or memory management (or else, they are being used for
24.
▲
by
quicknir
7y ago
The whole "subset" argument is pretty thin. There are style/convention guides, and there are are more obscure features in C++ the same way there are more obscure features in other languages. But it is not necessary to cherry
25.
▲
by
quicknir
7y ago
If you can tolerate GC then like 20 languages (as or less obscure than D) enter the conversation. If you can tolerate GC and the performance implications that go with it, then using C or C++ is rarely a good choice to begin with (well, othe
26.
▲
by
quicknir
7y ago
I've grepped through the codebase of Firefox some time ago, and it was very very far from being modern, with a huge amount of naked news and deletes. This is a straw man. Nobody in the C++ community action like the next release is a si
27.
▲
by
quicknir
7y ago
Uhm, citation needed? Most of the most performance critical industries like game dev, high frequency trading, are primarily in C++, not C. Well written C++ tends to be more performant than C largely because there's just much less indir
28.
▲
by
quicknir
9y ago
This makes sense if you are writing an absolutely tiny library where the interface (the surface area) is a substantial fraction of the whole. In most projects of any appreciable scale, the user facing functions and types are a tiny, tiny fr
29.
▲
by
quicknir
9y ago
You can never actually replace what the reference is bound to in C++, you can only call the assignment operator. The real distinction here is that in languages like Java and python, assignment is fundamentally different from mutation. In C+
30.
▲
by
quicknir
9y ago
I keep hearing this. How exactly common is it that you can't use C++ for technical, as opposed to human, reasons? gcc is by far the most talked about compiler in this space (at least from what I hear) and obviously it's a C++ comp
More ›