Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
usrnm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
631.
▲
by
usrnm
5y ago
> no major blunders No multithreading seems to be a pretty big problem. Hopefully, it will be fixed soon, but still
632.
▲
by
usrnm
6y ago
I'm not entirely sure plants want to be eaten either
633.
▲
by
usrnm
6y ago
You don't need to use delete explicitly to control the lifetime of objects in C++. A properly placed "}" or a call to something like .release() can be just as effective. The problem is, there is simply no way to do it in a GC
634.
▲
by
usrnm
6y ago
> Most of the time, they do things because other people do things, but don't truly understand what the true ramifications are To be fair, it's just as true for developers as it is for the marketing guys
635.
▲
by
usrnm
6y ago
Rice is one of the main ingridients of various Asian cuisines, e.g. the Japanese one. And somehow Japan is one of the healthiest nations in the world. We've been eating bread for millenia, but, somehow, obesity has never been a major h
636.
▲
by
usrnm
6y ago
It spends most of the time waiting for IO.
637.
▲
by
usrnm
6y ago
Well, algorithm-wise there's absolutely nothing interesting in this article. Every entry-level algorithm class tells you that radix sort is theoretically better for fixed-size integers, all the author did was copy-pasting the implement
638.
▲
by
usrnm
6y ago
Just a nitpick: "Alexandra" is the female version of the name "Alexander" in Russian, so it's a "she", not "he".
639.
▲
by
usrnm
6y ago
You can write quicksort in C++ in about the same number of lines using std::partition from the standard library.
640.
▲
by
usrnm
6y ago
Because Crimea is relatively warm, it's an interesting place worth visiting and, last but not least, there aren't that many options for Russians to go spend winter holidays in. The next work day is Monday
641.
▲
by
usrnm
6y ago
Honest question: does it really matter for lung cancer? Is there much difference between races in this particular field?
642.
▲
by
usrnm
6y ago
They had to figure out what backdoor to replace it with
643.
▲
by
usrnm
6y ago
Or you can simply use holds_alternative with a simple if expression. A little bit less efficient, but much more readable
644.
▲
by
usrnm
6y ago
Of course not, but at least we have several very different corporations that have to fight and agree on the final result, instead of just one that can push whatever crap that suits its short-term interests better
645.
▲
by
usrnm
6y ago
Thank god, we still have C++ :)
646.
▲
by
usrnm
6y ago
Most countries capable of doing that already have similar or even stricter laws. In a few decades there will be no country in the world that doesn't do something like this. It's over, the privacy war is already lost
647.
▲
by
usrnm
6y ago
> Compilers do an insane amount of duplicated and redundant work This is one of the problems that should be solved by modules in the near future.
648.
▲
by
usrnm
6y ago
In Russia we have several successful competitors to Google Maps and even a search engine that's actually good. Competing with Google is extremly difficult, but possible
649.
▲
by
usrnm
6y ago
People used to think the same thing about Objective C
650.
▲
by
usrnm
6y ago
Not really unique, Great Britain is another example, although the underlying reasons might be somewhat different.
651.
▲
by
usrnm
6y ago
The progress in boot times has much more to do with SSDs than anything software-related.
652.
▲
by
usrnm
6y ago
I guess, I'm not a real world software engineer then. Too bad
653.
▲
by
usrnm
7y ago
There is no compilation step in the js world, or any other interpreted language for that matter. Even in case of JIT, it happens completely transparently and has no effect on the package you download from npm. Nobody distributes JIT'ed
654.
▲
by
usrnm
7y ago
> Did C++ not already have a fully featured package manager until now? There are several competing projects, but no clear winner yet. And a lot of people a companies prefer to build their stuff themselves for additional control. > Why
655.
▲
by
usrnm
7y ago
> It might make sense to use something like memcmp() on structs to assert that they are exactly the same No, actually, it doesn't make sense in general. Due to padding, structs may have arbitrary meaningless bytes between the actua
656.
▲
by
usrnm
7y ago
But std::bad_alloc does exist and it's possible and sometimes necessary to write correct software that's able to handle allocation errors. What we probably need is some sort of a compiler switch, but it will significantly complica
657.
▲
by
usrnm
7y ago
On the other hand, not using atomics in heavy multithreaded code is just a recipe for disaster. The problem with shared_ptr is the fact that it uses atomics even in single-threaded code, which is obviously an overkill.
658.
▲
by
usrnm
7y ago
Telegeram allows third-party clients, there are quite a few of them, actually
659.
▲
by
usrnm
7y ago
Telegram clients are also open source. Unfortunately, not the server, though.
660.
▲
by
usrnm
7y ago
O_DIRECT allows you to bypass OS-level caching entirely, it's not that hard. Whether or not it's a good idea is another question, of course
More ›