34 karma · joined Jul 14, 2023 (3y ago) · 15 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
Another thing that helps me get it is comparing it to the continuation passing style, where you never return from a function, you just take an argument that's basically a function pointer bound to an environment, and at the end of the function, instead of returning, you call your input function, giving it another function and environment as input, repeating the cycle. It's very similar to the transformation of callbacks within callbacks within callbacks pattern in JavaScript to the async/await pattern.
comment 3y ago · link · parent
However, most programming languages really just have a few symbols: arithmetic operators (+, -, /, *), comparison operators (<, >, <=, >=), and logical operators (&&, ||, !). C also has bitwise operators (~, &, |). It's already easy enough to distinguish these without ligatures, so the benefit is negligible here, IMO. I prefer to go without ligatures, because I have no trouble remembering or distinguishing them, and, like someone else mentioned, I find ligatures in a monospace font kind of weird (how they morph into a two column character when you write them, and turn back to a one column character when you delete half of it).
comment 3y ago · link · parent
I don't think this is really a big point against Rust; in my experience, ChatGPT doesn't write good code in general.
To be honest, I think Rust's borrow checker won't seem very hard if you've used C++ smart pointers before, which are like Rust's references/Box<T>s, but there's no borrow checker. The borrow checker just formalizes and enforces existing good practice for using pointers in C and C++, and makes sure they're followed 100% of the time unless specifically opted out of.
What actually seems more interesting to me than Rust is the ATS language. Rather than a borrow checker, you have proof objects that you pass around with pointers (and these proof objects exist only at compile time), which prove to the compiler that the pointer has a valid address. What's cool is that you can do things like pointer arithmetic in a type safe way. The downside is that it's more verbose than either C or Rust. I'm still trying to learn it.
comment 3y ago · link · parent
I also like that you can use two-fingers to zoom in on a webpage with Firefox, just as on Windows.
GNOME is the first DE I've tried where all of this touchpad support was implemented so well, although I haven't tried that many, to be fair.
Sorry if I sound like an advertisement; I just wanted to be specific about what I like about GNOME's trackpad support as opposed to just saying that it "works fine for me."
comment 3y ago · link · parent
The problem is that differences in fonts are kind of subtle when their goals are very similar. Both Roboto and Aptos seem like they're trying to be high x-height grotesque sans serif fonts. They're going to look similar to some other font, because there are so many in that category already.
(However, the capitals of Aptos remind me more of Gill Sans than of Helvetica, so I guess it's not strictly grotesque.)
comment 3y ago · link · parent