Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gary17the
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
gary17the
3y ago
> I love the idea of Rust, but the language itself seems needlessly complex Well, I have to agree Rust isn't one of the simplest PL-s on the planet. This is due to the fact that it is quite a modern PL and quite a versatile PL, supp
62.
▲
by
gary17the
3y ago
Reference-counted[1], just like, say, Swift. [1] https://en.wikipedia.org/wiki/Reference_counting
63.
▲
by
gary17the
3y ago
> what most people would like is rust minus borrowing It's already possible. Use Rust reference-counted smart pointers[1] for shareable immutable references and internal mutability[2] for non-shareable mutable references checked at
64.
▲
by
gary17the
3y ago
> got completely thwarted by the borrow checker IMvHO, Rust Ownership and Lifetime rules aren't really that hard to learn. The only trick is that a programmer cannot learn Rust exclusively by trial-and-error (which programmers love
65.
▲
by
gary17the
3y ago
> I (...) have an AM4 ASUS board No, I never tried GPU passthrough with an AMD CPU, Intel only.
66.
▲
by
gary17the
3y ago
> Good joke, that really made me laugh :) I've been forwarding an AMD GPU to both Windows and macOS for literally years across multiple Asus motherboards and, except for the specific problem of host sleep/wake, had no problems
67.
▲
by
gary17the
3y ago
> See https://looking-glass.io/ to get around directly connecting monitors Interesting, thanks for the link! > Had problems with e.g. a forwarded rx580 I've been forwarding Sapphire Radeon RX 580 Pulse to both Wi
68.
▲
by
gary17the
3y ago
Good point, but I believe that was a serious problem 10 years ago, while these days virtually any decent motherboard properly supports IOMMU, consumer-grade boards included - e.g. any Asus motherboard should work perfectly.
69.
▲
by
gary17the
3y ago
VirGL is definitely an interesting project, but all one has to do to get GPU passthrough working (from a Linux QEMU host to any guest OS) is: 1.) research a cheap, secondary GPU that is natively supported by the guest OS, 2.) plug such a
70.
▲
by
gary17the
3y ago
Yeah, right. If website content and multimedia rendering alone is, demonstrably, not enough to saturate even a 10-year-old CPU/GPU under Linux, then no, it is not possible for "a new Mac" to be even faster at same content and
71.
▲
by
gary17the
3y ago
If you care about having the very latest versions of all apps, tools, compilers, etc. go with a "rolling distro" such as Manjaro (easier to setup) or Arch Linux (more advanced to administer). If you prefer upgrade stability (and a
72.
▲
by
gary17the
3y ago
No, I don't think it's only about "more complex websites", "more taxing multimedia" and so on - it's more likely also macOS and Windows bloat and questionable software quality getting in the way. I recentl
73.
▲
by
gary17the
4y ago
I agree, I think the Rust Gods should think of some ingenious way (which actually seems to be the norm when it comes to the "thoughtfulness" of the Rust ecosystem) to do both library-style error handling (where specific error cond
74.
▲
by
gary17the
4y ago
Ok, let me rephrase: "[without using any instructional materials] the music will take an unusually long time before it happens, even if you're Mozart". Which seems to correspond to the problem that if you keep hacking at a Ru
75.
▲
by
gary17the
4y ago
> when I open a Rust project I cannot understand what the hell is going on (...) > Then you have to learn to map errors, boxing them, dyn dispatching (...) So it's not all "ownership and lifetimes". I definitely see whe
76.
▲
by
gary17the
4y ago
> What’s hard is (...) [building] [code] under the constraints of these rules Good point - I have to admit that, for example, the single-mutable-reference rule in Rust did force me to keep restructuring my code differently than I used to
77.
▲
by
gary17the
4y ago
> Being a member of a super-elitist cabal that knows how to use Rust "properly" is not some point of pride I'm not sure I follow you, since I am saying something exactly opposite: anyone, even a mediocre, 1-year-of-experie
78.
▲
by
gary17the
4y ago
> [Rust's Ownership and Lifetime rules] come with a steep learning curve and have been repeatedly cited as a barrier to adopting Rust Rust Ownership and Lifetime rules aren't really that hard to learn. The only trick is that a
79.
▲
by
gary17the
4y ago
> “Linux is only free if your time has no value” This motto, although actually true in the past, is probably no longer valid. Install the latest Ubuntu/Kubuntu with KDE/Plasma and you get a high performance, GUI-configurable, a
80.
▲
by
gary17the
4y ago
> Rust and Swift have about the same amount of syntax I wouldn't agree, I feel Swift has significantly more surface area than Rust. But even syntax and standard libraries aside, I think that Rust is significantly more "explicit
81.
▲
by
gary17the
4y ago
> [Swift] values expressiveness, and having multiple ways to do things that means you can choose a nice way to express each line, rather than always being forced to write it the same way. There are at least two major problems with this k
82.
▲
by
gary17the
4y ago
> when [all Apple-chosen hardware features] [are] added in, the prices will be within a close margin I do see your point, but even if that's so, the problem of Apple hardware inaccessibility to an average computer hardware buyer can
83.
▲
by
gary17the
4y ago
I don't know about cost effectiveness of Apple laptops, since I never use small-screen devices for daily work, but if you are willing to put together a desktop workstation with your own hands from components you hunt down individually
84.
▲
by
gary17the
4y ago
iOS development has to be performed exclusively under macOS. Effectively, many iOS developers not only do not want to pay for Apple hardware that is usually grossly overpriced for its capabilities, but also strongly desire to use absolutely
85.
▲
by
gary17the
4y ago
Hmmmm, between Jan 2022 and Jan 2023, Rust has made the largest index jump within the Top 20, from 26 to 18 (8 notches), with all other languages making only single- or double-notch movements. Wonder if it means anything, considering the Ch
86.
▲
by
gary17the
4y ago
> Rust code is almost as complex as C or C++ for any non-trivial application. This is also, if not more, true for Swift as well. I've been working with both Swift and Rust (in addition to C++) for some time now and I find real-world
87.
▲
by
gary17the
4y ago
Just my $0.02: start a side project and work on it evenings/weekends, while keeping your day job. Yes, it will be tough, but delaying it is not the best idea, since working overtime without burnout gets harder and harder as you get old
88.
▲
by
gary17the
4y ago
It's possible to run the entire Kubuntu system with `apt` and/or local `deb` packages only - I uninstalled `snapd` a long time ago.
89.
▲
by
gary17the
4y ago
macOS UI capabilities aside, I have to mention that the latest Kubuntu 22.04 Long Term Support (LTS) 2022 release with KDE Plasma 5.24 is a fantastic upgrade. The system is snappy, much more so than under the previous Kubuntu 20.04 2020 rel
90.
▲
by
gary17the
4y ago
Intro/conceptual: "A Firehose of Rust, for busy people who know some C++"[1]. Beginner's: "Rhymu's Videos"[2] and/or "Doug Milford" videos[3], advanced: "Jon Gjengset" videos[4]. F
More ›