Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
qalmakka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
661.
▲
by
qalmakka
5y ago
I've seen a trend from those languages and APIs of hiding UTF-16 away. They have to interoperate with everything else using just UTF8, while the rest of the world doesn't give a half damn about UTF-16 (the fact you have to also ta
662.
▲
by
qalmakka
5y ago
Yep, that's what I meant. They either use ASCII, UCS2 or UCS4 depending on the type of string. Doesn't make a lot of sense to me, but I guess they couldn't just throw 16 bit chars away.
663.
▲
by
qalmakka
5y ago
Yeah, because Qt started in the early 90s, when UCS2 hadn't still fiascoed and it was being adopted in droves as the "newer" solution to all encoding issues - you simply swapped `char` for `wchar_t`, made a `w` version of eve
664.
▲
by
qalmakka
5y ago
I'm glad UTF16 is (albeit slowly) going the way of the dodo by becoming just an internal representation for a few older toolkits and programming languages. It was incredibly nonsensical how inconvenient it was compared to UTF8. At leas
665.
▲
by
qalmakka
5y ago
True that. Finder is only slightly better than nautilus, but it gets beaten up by Dolphin badly. It would win outright for me with the "Press F4 for an integrated shell" feature alone.
666.
▲
by
qalmakka
5y ago
Case insensitive filesystems are a horrible idea, because you have to take encodings into account and the Turkey test, which means that either your normalization is broken or something will be equal under en_US but not tr_TR. Normalization
667.
▲
by
qalmakka
5y ago
I haven't seen a "big-C" file in years. Does any project that started after 1999 still use them? Anything I have ever read either uses .cpp, .cc, or more rarely .cxx.
668.
▲
by
qalmakka
5y ago
Yeah - Rust can, because it also ensures you can't exchange data unsafely between threads, but C++ can't. That's why `std::shared_ptr` has to be thread-safe.
669.
▲
by
qalmakka
5y ago
I don't know, is it though? Properly done reference counting AFAIK requires using atomic increase/decrease in order to be safe, and that creates a bit of overhead every time you assign a reference, while assignment to a reference
670.
▲
by
qalmakka
5y ago
While this _could_ be correct if we are just talking about Go, which has its own backend and optimizer, it is definitely not the case for Rust, which uses LLVM. The differences seen in these benchmarks are all about the gRPC implementation
671.
▲
by
qalmakka
6y ago
In my city (Italy) composting is mandatory (i.e. you might get fined if you an inspector discovers you put too much of it in generic waste bins). We have separate brown bins for curbside picking. It's simple to separate organic matter
672.
▲
by
qalmakka
6y ago
Right to repair is not about being cheap, it is about not caving in to the needs of an industry that doesn't know how to be profitable in a world without consumerism. Nowadays phones are much more powerful than ever, and can thus last
673.
▲
by
qalmakka
6y ago
I distinctly remember borrowing a copy of "Linux From Dummies" from the public library and then using it to learn how to use the Linux shell, back in the '00s. It even came with a CD of some extremely old version of Red Hat.
674.
▲
by
qalmakka
6y ago
In my experience, 90% of the time people use inheritance but they really only cared about composition, and their language simply does not have any convenient facility to compose types and re-export their methods. With a good type system tha
675.
▲
by
qalmakka
6y ago
Nano, it's been so long since the last time I have used it. I have so many fond memories of opening it to edit configuration fileson bare TTYs while installing Gentoo or Archlinux in the mid '00s. A few years later I switched to (
676.
▲
by
qalmakka
6y ago
I think something like that is not feasible anymore due to how complicated messaging apps have become in the last decade. Unifying several protocols under a same app means either implementing all the shades of how a feature is done in every
677.
▲
by
qalmakka
6y ago
> How did Germany get the efficiency stereotype and Japan didn’t? Everything in Japan still mostly relies on widespread use of fax machines due to their stubborn continued usage of personal wooden seals ("Hanko stamps"). Everyo
678.
▲
by
qalmakka
6y ago
> You can use new without exceptions, but you can't detect OOM then, if I'm not mistaken. AFAIK `new (std::nothrow) T` returns nullptr if allocation fails, like std::malloc.
679.
▲
by
qalmakka
6y ago
Yes, that's definitely a possibility, but I think most of the time when two patterns keep existing, instead of a new one just replacing the old one, is most of the time due to people refusing to change the ways they write code. For ins
680.
▲
by
qalmakka
6y ago
The main issue I have with C++ is that you basically have to relearn it from scratch every time a standard comes out. C++11 threw away decades of best practices, and C++17 again changed so many things it's hard to keep track of them (f
681.
▲
by
qalmakka
6y ago
As the other answer said, nobody has (yet) an implementation of the _released_ standard, but both GCC and especially Clang have had modules very close to what stabilized by C++20 for years. You can enable them by specifying a flag (-fmodule
682.
▲
by
qalmakka
6y ago
Modules have been released with C++20, but no compiler has a complete implementation for them yet. Also the standard library hasn't been modularized yet.
683.
▲
by
qalmakka
6y ago
It's 2021 and Swift is still nowhere to be found in the repositories of any of the Linux distributions I usually use. It's a big PITA to install, with nothing comparable to `rustup` or even truly universal prepackaged binaries - t
684.
▲
by
qalmakka
6y ago
Well, they had it coming. They abused the community's trust once in order to gain data for their research, and now it's understandable GKH has very little regard for them. Any action has consequences.
685.
▲
by
qalmakka
6y ago
You may argue that OpenBSD's founder Theo de Raadt is arguably not a shy, calm person either, but that hasn't brought to its project the same amount of mindshare and attention Linux has.
686.
▲
by
qalmakka
6y ago
In Italy it's the same, but we don't have so many pharmacies. I think it's quite a French thing.
687.
▲
by
qalmakka
6y ago
So that has got a name? I always instinctively wrote code like that, because it's much more easier to understand.
688.
▲
by
qalmakka
6y ago
Why didn't they pack more ram on this? 400K is a bit tight, we often hit the ceiling with the ESP32's 512K of internal RAM. Does anyone know if they support SPI-connected external RAM on this? It has been a lifesaver on the ESP32,
689.
▲
by
qalmakka
6y ago
So basically if your SSD is faulty, you have to find a new mac to fix the one you already have. Oh well, Apple is being Apple indeed. Arguably you already needed a Mac given how hard it is to download a macOS image without a Mac already.
690.
▲
by
qalmakka
6y ago
Japan it's basically it's own little world. Their local version of Yahoo is not only still very popular, but it looks like it's stuck in the early '00s for some inexplicable reason.
More ›