Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
qalmakka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
541.
▲
by
qalmakka
5y ago
The STL can throw exceptions, but it's easy to avoid that if you use the right patterns (i.e., find() instead of at(), iterators, and so on). If you build your C code as C++, exceptions will flow through it just fine. Nothing will thro
542.
▲
by
qalmakka
5y ago
> STL has a lot of weird pitfalls everything that's old and has legacy is doomed to have several. It's just a fact of life. The C++ committee doesn't and can't just throw away stuff like `std::vector<bool>`, des
543.
▲
by
qalmakka
5y ago
The Glib approach is an immense monolith of nonsensical zealotry towards C. Reimplementing an Object-Oriented system in C using hacks and void pointers when GCC already had not one but two fully object oriented languages built-in was a comp
544.
▲
by
qalmakka
5y ago
This, exactly. The Greek alphabet is much older than Koine Greek, of almost 500 years. While spoken language tends to change fast, written language tends to stick and doesn't easily change, for obvious reasons (just look at English or
545.
▲
by
qalmakka
5y ago
I think it's a sensible choice. I've seen way too many C codebases rewriting half of the STL or using clunky macro hacks (or worse, half-assed linked lists) when basically every single platform out there has a copy on the STL avai
546.
▲
by
qalmakka
5y ago
The crucial difference between cardiovascular diseases and severe COVID is that COVID comes in waves. In a very short period of time a large number of people can end up with the virus, thus having a significant chance to develop serious pne
547.
▲
by
qalmakka
5y ago
That's still pocket change for Facebook. In order to have any deterrence effect, any fine should probably be at least 20 times higher. Otherwise, it is almost always better for those large companies to violate the law, reap profits, pa
548.
▲
by
qalmakka
5y ago
Pretty well I must say, modern C++ is very portable across different compilers. I wrote a quite complex piece of code two months ago, I fully tested it under GCC and Clang, and it built under MSVC without having to change almost anything. I
549.
▲
by
qalmakka
5y ago
More than something out of a mobile OS, it quite looks to me like some launcher I've seen on Linux (I don't remember which one was, I've been using Plasma for too long).
550.
▲
by
qalmakka
5y ago
Apple is getting worse day after day. I'm still hoping that one day the EU Commission will finally go after them and force them to open up their stuff.
551.
▲
by
qalmakka
5y ago
Thanks a lot to you for writing such an awesome library! :) This is briefly how I use C++ Allocators with the ESP32 and Nlohmann/JSON (GCC8, C++17 mode): I have a series of "extmem" headers which define aliases for STL contai
552.
▲
by
qalmakka
5y ago
The only few bugs I hit were SIGSEGV from the compiler - annoying, yes, but nothing too serious. After I switched some of my desktop projects to C++20 I've started seeing ICE crashes in Clang, GCC and MSVC alike. Always very pleasant,
553.
▲
by
qalmakka
5y ago
Yes, but I don't want to change the allocator for _all_ of cJSON - we often have to use third party libraries which rely on cJSON, shipped as binary blobs, which haven't been tested with that. Nlohmann gives you the ability to pic
554.
▲
by
qalmakka
5y ago
In my experience I've yet to find a C++17 feature I need that GCC 8 didn't have. I've written crazy complicated C++17 on the ESP32 without too much worries (the true issues are always space and memory constraints).
555.
▲
by
qalmakka
5y ago
Most container base images are often so barebone you can't really count on them containing anything. For instance, on an Alpine image you can't count on bash.
556.
▲
by
qalmakka
5y ago
While I agree on you on compile times getting slower with nlohmann/json, I think that its performances are fairly adequate. I've been using it on the ESP32 in single core mode and it's still fast enough for everything. Unless
557.
▲
by
qalmakka
5y ago
I've seen instances of some Unix systems not having Perl installed, but that's very rare. Basically everything directly or indirectly depends on Perl, so you really have to run your scripts on a minimal install of RHEL of FreeBSD
558.
▲
by
qalmakka
5y ago
It's also unlikely you have Python installed on Windows though, and there's a non-insignificant change that's an old or random version (probably even Python 2). You can't rely on anything on Windows, so you're defin
559.
▲
by
qalmakka
5y ago
That's why Perl is my go-to choice for glue scripts. It's almost always installed by default, it has stayed consistent for decades without any breaking changes, its regex support is by far the best around, and its almost as good a
560.
▲
by
qalmakka
5y ago
Here's some examples: 1. Declare all your constants as constexpr. They can then be used everywhere in constexpr functions, and every time you invoke a constexpr function with constexpr arguments or literals there's a very high cha
561.
▲
by
qalmakka
5y ago
With constexpr and not consteval you can really do crazy stuff at compile time. It's super neat and it has eradicated macros everywhere in my code, except in those places where I need conditional compilation.
562.
▲
by
qalmakka
5y ago
Even if we assume that companies are willing to support the systems they sold for an undetermined amount of time (something that will _never_ happen), this still won't solve the fact that the hardware itself enabling the "smart&qu
563.
▲
by
qalmakka
5y ago
The smart home is a crappy idea because appliances, switches and fixed lights are supposed to last for decades before needing to be replaced. Companies have clearly shown close to no interest in maintaining and upgrading even reasonably rec
564.
▲
by
qalmakka
5y ago
That was Microsoft Frontpage I think. Dreamweaver was very similar to Frontpage in the 00's, I'm surprised it still exists.
565.
▲
by
qalmakka
5y ago
If what you've described was indeed the case Vista would have taken off eventually, but it didn't and it barely touch a 20% of the market in almost 3 years of being exclusively sold by OEM on new machines. In the Enterprise market
566.
▲
by
qalmakka
5y ago
> I object to the assertion that VLAs are bad! They are an improvement to function signatures. The main issue is that they are not restricted to that. They went overboard and basically made alloca() part of the language, causing all ki
567.
▲
by
qalmakka
5y ago
It's more of an acknowledgement to how impossible it is to avoid people to run what they want where they want, unless your software is not meant to run on off-the-shelf hardware in the first place (see iOS)
568.
▲
by
qalmakka
5y ago
Knowing how sloppy MS is they are going to get pwned in a month. Let's all remember that the community managed to find a way to install macOS on PCs a few weeks after the first x86 build was made public.
569.
▲
by
qalmakka
5y ago
Microsoft really is trying hard to get Windows 11 to fail. They still haven't realized most people don't feel the urge to update unless its 100% painless or it's necessary. If you alienate or disgrunt the "techies",
570.
▲
by
qalmakka
5y ago
C++ is being adding basically both the kitchen and the sink for years now and still it hasn't broken anything. If anything, lots of warts have been removed now. This whole reasoning doesn't hold when the ISO C standard adds half-a
More ›