Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
qalmakka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
331.
▲
by
qalmakka
4y ago
It does because it repays you with extremely fast and safe code. Prototyping and performance are two concepts that do not mix. I've seen way too many half baked attempts at making prototypes fast that do end up in complete rewrites.
332.
▲
by
qalmakka
4y ago
This, this, and this again. Lots of patterns Rust enforces are sensible choices even with a garbage collector, because data races for instance are still a thing even if you have automatic memory management
333.
▲
by
qalmakka
4y ago
This, it's pointless to have char32_t if you still need to pull several megabytes of ICU to normalize the string first in order to remove characters spanning over multiple codepoints. UTF32 is arguably dangerous because of this, it
334.
▲
by
qalmakka
4y ago
> However, we have two popular Unicode formats: UTF-8 and UTF-16 The fact we are still using UTF-16 still irks me to this day. UTF-16 (which is actually two different encodings, not one, hence the need for a BOM) is basically a way to sa
335.
▲
by
qalmakka
4y ago
The point is, nobody gives a damn about that in Italy right now, except a very few number of people. Cash as a way of payment is accepted everywhere and is not threatened in any way, nor anyone has proposed to allow shops to refuse cash. Th
336.
▲
by
qalmakka
4y ago
Italian here, the reason behind this is that Italy is full of small enterprises, mon and pop shops, ... and until the end of the '90s tax evasion was so rampant that those shops and small companies have basically never paid a single li
337.
▲
by
qalmakka
4y ago
Thankfully I'm 90% sure this crap would never fly in the EU due to the reasonable risk of it being interpreted as a violation of GDPR
338.
▲
by
qalmakka
4y ago
There are several, to be honest, but my favourite by far is that it cleanly separates, like all BSDs, the base system and the external packages. You can have a stable or bleeding edge base system depending on what suits your tastes, and on
339.
▲
by
qalmakka
4y ago
FreeBSD really deserves all the love it can get. It is an amazing system to work with and develop on, and I'll never stop evangelizing everyone about it.
340.
▲
by
qalmakka
4y ago
> the complexity of Glib and GObject makes OP’s API quite a bit nicer to use Yeah, Glib and GObject are a massive PITA, thankfully both have C++ bindings and can be used from Vala, so it's not that bad in practice. The C API is a
341.
▲
by
qalmakka
4y ago
- A stream is something you can play as a sound. It may be loaded from a file or generated on the fly. It may be finite or infinite. One important thing is that a stream is single-shot: it doesn’t have a restart method or anything li
342.
▲
by
qalmakka
4y ago
> And I'm not going to install Ubuntu [...] to my actual machines :) Music to my ears. Life is too short to deal with Ubuntu.
343.
▲
by
qalmakka
4y ago
Docker is fine and dandy, but sometimes you just need to run an Ubuntu container that has to be persistent to run a few tests. debootstrap + systemd-nspawn -bD is amazing at that. I am also curious about why GP needs audio in Linux VMs - I
344.
▲
by
qalmakka
4y ago
I also play those, indeed, but Steam + Proton works very well for a whole lot of titles without a hitch too, so that's a bonus.
345.
▲
by
qalmakka
4y ago
I was a big user of dual boot and VFIO, but thanks to the advent of Proton and the recent Wine improvements (DXVK, ...) I've found myself rebooting into Windows for gaming less and less over the course of the last few years. Sure, not
346.
▲
by
qalmakka
4y ago
This is a good hack, and it works better than a lot of alternatives, albeit Linux-on-Linux VMs have arguably few uses since systemd-nspawn exists (so you can just --bind the Pipewire socket in the VM)
347.
▲
by
qalmakka
4y ago
It would be pointless for Russia to rest their hopes on Italy to break NATO and EU unity - Meloni got fiercely pro-USA recently, and unless a miracle happens, Salvini is heading towards a total defeat tonight and is all but finished, same g
348.
▲
by
qalmakka
4y ago
Italy is not in a situation to pull itself out of its problems - it's paralyzed due its chronic political instability and its abysmal political class born out of a dysfunctional system. While the left isn't that great either, the
349.
▲
by
qalmakka
4y ago
The situation in Italy is bleak - due to widespread NIMBY-ism it's basically impossible to build anything. Even hooking up a LNG FSRU temporarily in an emergency situation like the current one is a monumental feat of burocracy and figh
350.
▲
by
qalmakka
4y ago
> Pin is a way to create self referential structs, by pinning memory and preventing moves. This, exactly. Pin works more or less like a C++ class with a deleted move constructor. Copies may be allowed if clone/copy (aka, the implici
351.
▲
by
qalmakka
4y ago
I've seen people picking up C++ from scratch recently and rest assured, that's not so obvious for a novice like it is for a person that's been using it for decades. I think the level of complexity is similar, but at least Rus
352.
▲
by
qalmakka
4y ago
The point is, Rust is vastly easier than C++ when you start factoring in the complexity of debugging nasty design choices that comes to bite you in the back and you can't really fix without tearing the whole application apart. Yesterda
353.
▲
by
qalmakka
4y ago
I think on Linux is often GNU DBM, Berkeley DB is a different, better implementation by Oracle that requires a third party module.
354.
▲
by
qalmakka
4y ago
The main issue here is that, given it relies on whatever implementation of DBM you have installed, its performance will vary considerably from OS to OS. I don't know how fast or slow the "dumb" implementation is, but I can be
355.
▲
by
qalmakka
4y ago
I hope this and future endeavors will stop the GPU hoarding madness for good.
356.
▲
by
qalmakka
4y ago
I kinda doubt it. Only new ISPs are rolling out IPv6 ATM, because they know they will not be able in the future to get enough IPv4 to satisfy demand. Everyone else is sitting on a crapload of IPv4 and will never bother to implement IPv6 unt
357.
▲
by
qalmakka
4y ago
We may argue that Windows Firewall (and macOS) by default already do that. On Linux, I usually set nftables like such on all my machines, but it's trivial for "user friendly" distros to ship sane defaults for nftables. What s
358.
▲
by
qalmakka
4y ago
NAT66 is, in general, utterly broken and most OSes prefer IPv4 to ULAs - thus, if a mobile subscriber can connect to an external IPv6 service, it's very likely the address they were given by their carrier is publicly routable.
359.
▲
by
qalmakka
4y ago
This is not correct. Especially in the USA lots of mobile phones now have IPv6 connectivity. From https://www.arin.net/blog/2020/01/16/mobile-edge-of-the-inte... "80% of smartphones in the US on th
360.
▲
by
qalmakka
4y ago
CGNAT is pretty expensive compared to rolling out IPv6 and tunneling IPv4 on it using stuff like MAP-E. I guess they still have no need to NAT everyone ATM because they have plenty of IPv4s to distribute to their subscribers.
More ›