Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
qalmakka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
781.
▲
by
qalmakka
6y ago
Not having any control on how a library allocates memory is a huge downside, though, and it's something C++ has in my experience largely resolved (at the expense of ABI compatibility, which is something that IMHO hasn't hindered i
782.
▲
by
qalmakka
6y ago
I think it's much better to define a pool class and just use methods or static functions to get instances instead of overloading new/delete per class - it's much much more clearer and explicit; having your objects not going t
783.
▲
by
qalmakka
6y ago
I'm not talking about allocators or global new/delete, I'm talking about operator new and delete inside of classes, which are arguably almost never used.
784.
▲
by
qalmakka
6y ago
The post was about writing a wrapper for wlroots, a Wayland library designed to simplify writing Wayland compositors upon which Sway is made, not Wayland itself. There is a nice reimplementation/wrap of Wayland C libraries, and it'
785.
▲
by
qalmakka
6y ago
Because, IMHO, a lot if not every of the GUI frameworks have been born by necessity and has a lot of cruft around that requires type magic incompatible with a strict language like Rust. GUI toolkits are often really old (more than 20 years
786.
▲
by
qalmakka
6y ago
Overloaded delete operators are a relic of a past where malloc() was crummy and inefficient, and almost every object was allocated using new. Quoting Stroustrup: Introducing operator new thus made the use of free store more conven
787.
▲
by
qalmakka
6y ago
I write C and C++ for a living, and the reason I prefer Rust to them is definitely not memory safety, that's just a nice plus. I think that lots of C/C++ developers have never thought for long about how you end up having to care a
788.
▲
by
qalmakka
6y ago
As a European I grew up on UHT milk, and boy, I didn't like it a bit, but my mom only went shopping once a week, so it was either that or no milk at all. I still find it repulsive and a bit tasteless, the worst offenders being the hal
789.
▲
by
qalmakka
6y ago
Yes, I'd really like to see Zuckerberg trying to explain to his shareholders that he quit one of their most lucrative markets just to stick it to the EU authorities. I don't think it would go that well to him. This threat is so em
790.
▲
by
qalmakka
6y ago
I think the only way to really understand why the Good Friday agreement is important is to visit Belfast. You need to walk through the neighborhoods in order to see the gates, the Peace Walls, the murales and the signs expressing the grief
791.
▲
by
qalmakka
6y ago
It was clear SoftBank didn't give a damn about ARM, they only bought it to grab some of the sweet monies they were raking up and pretty much left everything as-is. Not so much for NVIDIA, which is a big player in the industry and is Am
792.
▲
by
qalmakka
6y ago
With "standard Hyper-V virtual machine" I mean that's like every other VM, because it runs under its own instance of vmwp.exe, spawned by vmms.exe, like every other one you may have in the system.
793.
▲
by
qalmakka
6y ago
You got it completely wrong. WSL1 was a system call translation layer, and everything worked directly on the Windows kernel, like Windows programs do under WINE. WSL2 is an standard Hyper-V virtual machine, no more no less, with a custom Li
794.
▲
by
qalmakka
6y ago
Apple's and Microsoft's compilers are downloadable for free (Apple's is actually Clang), they're not forcing you to pay if you want to use them; even the IDEs have been free for a while without any kind of payment or sub
795.
▲
by
qalmakka
6y ago
It's also an attempt to not give reasons to the British government to red-light the acquisition. If you read the BBC, lots of British personalities (including the founders of Acorn and ARM themselves) have been extremely critical about
796.
▲
by
qalmakka
6y ago
This, exactly. MSVC is full of extensions so heinous and horrible to make you scream when you sleep at night. They probably pledged to support those until the end of time, so I guess they would have to keep CL around forever. Also, if you m
797.
▲
by
qalmakka
6y ago
Having a source code release full of Chinese comments is still better than not having the source at all. Nobody owes anything to anyone in FOSS, and it's not like they did that with the purpose of hindering comprehension from foreigne
798.
▲
by
qalmakka
6y ago
GPLv2 and Apache v2 are not compatible due to the patent grants, so I think the Apache v2 licensed code ought to be covered by another license or else it would be a breach of copyright. In general if you mix up BSD licensed software with GP
799.
▲
by
qalmakka
6y ago
Come on, you can't expect the whole world to speak your language, especially since this was a project that was closed and internal until a very short time ago. Also Mandarin is not an obscure or uncommon language at all (it's the
800.
▲
by
qalmakka
6y ago
I think the main reason CDs outpaced vinyl records in sales in the last decades was convenience. CDs are smaller, players are more compact and they can be read and burnt by computers easily and on the cheap. Nowadays you can just connect yo
801.
▲
by
qalmakka
6y ago
After all this news of false advertisement and lower quality drives from WD, I'm glad I bought Seagate drives, even if only because Amazon had a big fat discount on Barracudas the day I was shopping for some spinning rust.
802.
▲
by
qalmakka
6y ago
Clang has been able to parse MSVC headers and link with its libraries for years now. It also supports the same interface that CL provides using clang-cl, so it's not that that necessary for Microsoft to actually update the entire compi
803.
▲
by
qalmakka
6y ago
It doesn't matter. Sometimes in order to achieve your goals you must compromise or risk loosing the footing you already have, because you have close to zero chances of succeeding. If RMS had compromised on GCC in the '00s, i.e. if
804.
▲
by
qalmakka
6y ago
The point is, these things would have happened no matter what. RMS simply overplayed its leverage, and the magic that kept GCC at the centre of everything for decades broke. If he could just stop being a zealot for a split second and actual
805.
▲
by
qalmakka
6y ago
Developing a GCC frontend is a massive PITA, and the worst of all it was made purposefully so complicated because of RMS' concerns about closed compilers. He actually brought LLVM's existence onto himself, because it was somewhat
806.
▲
by
qalmakka
6y ago
Does case folding in the kernel pass the Turkey test? I.e., are different locales taken into account in order for the correct string to be matched? As far as I remember this was a big deal for supporting Unicode on case insensitive filesyst
807.
▲
by
qalmakka
6y ago
Would China actually bother with that? I don't think so. They like doing business with the Americans, and that would basically be a declaration of war to the USA. Even if it didn't boil down to that, sanctions would hurt them plen
808.
▲
by
qalmakka
6y ago
Technically, they do, they are forced to remain the Republic of China (and also lay a claim on Mongolia) because any change of status would be interpreted by The PRC as a declaration of independence. So yes, while it's quite clear they
809.
▲
by
qalmakka
6y ago
There's no obvious indication what the standard C function void (*signal(int sig, void (*func)(int)))(int) means; if you don't know C it's plain gibberish, impossible to fully understand. Everything in computers (and I
810.
▲
by
qalmakka
6y ago
I'd say that the ties of Taiwan with China are not that concerning, considering that they actually consider themselves to be the legitimate government of China in exile on the island of Taiwan and that the mainland has missile batterie
More ›