Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
qalmakka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
421.
▲
by
qalmakka
4y ago
Well, they basically took the __looks__ of Perl and bolted on a dynamically typed Java on top of it. I don't think there are languages more different in concepts and values than Perl and Java, and PHP is the result of that unholy mixtu
422.
▲
by
qalmakka
4y ago
Well, PHP approach to features is not really "pragmatic", it has boiled down for decades to basically adding whatever they could rip from somewhere else, without the slightest trace of logic behind it. When they deprecated and rem
423.
▲
by
qalmakka
4y ago
Well, by pushing C++ you can enforce a lot of constraints at compile time, just like you do with Rust. For instance, by extensively using concepts or SFINAE (enable_if and friends) you can make type safe code that works well and (almost) ne
424.
▲
by
qalmakka
4y ago
Rust const is still way, WAY more limited than constexpr in C++. You can't do basically anything in const Rust yet, while C++'s constexpr even supports memory allocations.
425.
▲
by
qalmakka
4y ago
Honestly, if moving from C++ to Rust is frustrating for a developer not because of missing but because of borrowing, lifetimes and move semantics, it probably means that they were writing very "old style" C++. I write my modern C+
426.
▲
by
qalmakka
4y ago
That's a GNU extension that everyone relies so much on it's basically akin to a standard. You get a warning from Clang (or an error from GCC) if you ask for a more "standard" interpretation of the source: $ clang -
427.
▲
by
qalmakka
4y ago
I write C++ for a living and I admit I do like to push it to its limits (SFINAE, constexpr/type traits shenanigans, the more the merrier), but it must be acknowledged that it tends to become too much akin to magic the more you push the
428.
▲
by
qalmakka
4y ago
Golang isn't really a C++ replacement, the performance metrics just aren't comparable. It's more of a Python replacement, for those applications where it would be just too slow, forcing you to write C or C++ because that'
429.
▲
by
qalmakka
4y ago
Also, `const` values in C are not really evaluated at compile time, because they have by default external linkage so they are not really "constant", they are more like "readonly" or 'let' in Rust. They are alwa
430.
▲
by
qalmakka
4y ago
I think a large reason of why Clang lags behind in C++ standards is that Google and Apple don't really use modern C++ at all . Google has strict guidelines that prevent people to use half of the language (look at exceptions, for insta
431.
▲
by
qalmakka
4y ago
It's nice to see how GCC developers have worked hard in recent years to keep their compiler up to the most current standard. It's sad the same can't be said about Clang which, despite the fact LLVM has basically EVERYONE behi
432.
▲
by
qalmakka
5y ago
Let's say that a place rigged with explosives is not exactly the definition of a "pleasant place to work in".
433.
▲
by
qalmakka
5y ago
Why can't they just do like many other parts of the world and lay fiber alongside underground power cables? Fiber and electric cables mix up well because they don't interfere with each other.
434.
▲
by
qalmakka
5y ago
I'm very excited about this project. Bologna to Munich is a 6 hour train journey now, and the tunnel will make it way shorter and faster.
435.
▲
by
qalmakka
5y ago
On the bright side, PySide has finally been adopted by Qt as its official bindings, and it has made PyQt largely redundant. I find it simplifies a lot Qt app development on desktop, and it has the potential to attract a lot of new developer
436.
▲
by
qalmakka
5y ago
Especially in order to run the Facebook app.
437.
▲
by
qalmakka
5y ago
I'm not that enthused about where Qt is heading but it's arguably in better hands than GTK+, that's for sure. First, Qt isn't strictly tied with KDE - it has its own life by itself, without KDE libraries at all, and a vi
438.
▲
by
qalmakka
5y ago
I will say this once again: App Stores are too important in the current world to be left to the mercy of some big Internet company. I agree they should get a cut due to them being both the creators and maintainers of their platforms, but th
439.
▲
by
qalmakka
5y ago
> resolution to the GPLv3 problem Just comply with it? Allow people to damn modify the software on the machines they bought? This is not about forcing Apple to release sources or whatever, it's about giving people the tools to fully
440.
▲
by
qalmakka
5y ago
As much as I appreciate Python, I much rather use Perl as a replacement for complex shell scripts. Perl 5 is ubiquitous, it has been stable for the best part of the last 20 years and it's unbeatable for all those tasks that involve hea
441.
▲
by
qalmakka
5y ago
You always use a theme with Qt or Gtk. On Plasma the default Qt and Gtk theme is Breeze, which has not been ported to Qt6 yet. ATM the only Qt Widgets-compatible themes I have on my system are "Fusion" and "Windows" (as
442.
▲
by
qalmakka
5y ago
> That is Gnome. Gnome has become a top-down project that values consistency/coherency over modularity/theming They care about that so much that they break Gtk+ every few version, to the point that in 2022 there are still Gtk+
443.
▲
by
qalmakka
5y ago
That's because there's no Breeze theme for Qt 6, so it's using the builtin Fusion theme which is literal cow dung. If you port your theme to Qt 6, the app should look identical.
444.
▲
by
qalmakka
5y ago
GNOME 3 was a fiasco not because of GTK+ 3. It was a fiasco because they threw 12 years of work and UI/UX design in the rubbish bin instead of thinking of ways to improve on it. MATE now runs on GTK+ 3 and it's leaps and bounds be
445.
▲
by
qalmakka
5y ago
Python 3 types are very useful, especially when paired with something like PyLance. I started putting them everywhere and that's been a big boon to my productivity when writing Python. Python is not Perl, it's very strongly typed,
446.
▲
by
qalmakka
5y ago
Sadly, it can't survive the transition to Wayland, given that applying filters on the entire screen is something only the compositor can do and thus it must be handled at that level and not in a separate app, like f.lux did on X11.
447.
▲
by
qalmakka
5y ago
KDE Plasma has included a builtin feature very similar to f.lux/redshift for a while, which works fine on Wayland. I've been using it constantly for the last 2, 3 years (I think?) and it does its job all right.
448.
▲
by
qalmakka
5y ago
Yet another issue due to nonsensical Debian packaging policies. Debian should just stop wasting time applying random patches or modifying packages, if upstream is doing something there's probably a good reason for that.
449.
▲
by
qalmakka
5y ago
0 issues with PipeWire and Bluetooth audio in my experience. Try setting `bluetoothd` logs to debug and look a bit on what's happening.
450.
▲
by
qalmakka
5y ago
Pipewire is a blessing. It fixed so many things I can't really start listing them. Funnily, in my experience, it is a arguably better PulseAudio implementation than PulseAudio itself.
More ›