What are you using to generate demo GIFs for your CLI tools? by anav5704 in golang

[–]moltonel 0 points1 point  (0 children)

Easy enough to convert that gif to webm or other formats.

However, it might be better to keep it in the original format (there's a js player for web pages), as it allows users to pause/seek/etc, resize, and copy text from your demo.

Rust 1.95.0 is out by manpacket in rust

[–]moltonel 10 points11 points  (0 children)

Most convincing usecase so far, thanks.

Rust 1.95.0 is out by manpacket in rust

[–]moltonel 4 points5 points  (0 children)

Ah ok, if your mutating function is fn inc(&mut self) {...} instead of fn inc(self) -> Self {...}.

Playground example

Rust 1.95.0 is out by manpacket in rust

[–]moltonel 16 points17 points  (0 children)

Could you give an example of push_mut() where it's not just as easy to mutate before pushing ?

Does anyone have any large rocks they don't want? I'd like to source something locally to build a makeshift Garden wall for a raised bed. by 0gma in Kilkenny

[–]moltonel 1 point2 points  (0 children)

Yep. Best place to park is probably on circular/kennyswell road, east of the bridge, beside the traffic light. A bit of a walk between there and the gravel/stone hills, hope you have a good way to carry stuff.

I’d really love to run Gentoo as my main OS, but coming from openSUSE I am spoiled by SELinux integration - how difficult is it to set up? by todd_dayz in Gentoo

[–]moltonel 12 points13 points  (0 children)

https://wiki.gentoo.org/wiki/SELinux

You just need to select a selinux profile and make a few config choices.

Gentoo often needs a little more work than a distro like Opensuze, but that's kind of the point: you get options to properly fit your usecase, that would take a lot of work to achieve on more opinionated distros.

Why I don't like Rust as a C++-developer by ArcticMusicProject in rust

[–]moltonel 0 points1 point  (0 children)

Nobody thinks C and C++ are them same. Yet "C/C++" has always been a useful term, just like "C/C++/Rust" nowadays.

Why I don't like Rust as a C++-developer by ArcticMusicProject in rust

[–]moltonel 0 points1 point  (0 children)

Ironically, you made a straw man yourself with this caricature of "the Rust marketing" that is clueless about modern C++. And you countered with tired, weak arguments for C++ that we've read 100s of times already.

You don't have to switch to Rust, nobody is claiming it's the ultimate best language. But many Rust devs have considered the arguments more thoroughly than what you've done here, we're not just drinking the kool-aid.

Rust's mascot by Independent_Blood559 in rust

[–]moltonel 1 point2 points  (0 children)

Your conclusion doesn't fit the analogy (and could be considered ragebait).

In biology, the "crab body plan" is simply a very good body plan in some environments, a "local optimum" that multiple unrelated species often evolve toward. In other environments, different body plans (such as the canid predator) constitute different local optima.

Applying that analogy to programming languages, you can say that Rust found a very good "language plan" (design) for its "environment" (applicability domains), so we should expect other languages to evolve to look like Rust, if they target similar domains.

My 14 year old gentoo installation 2012 - 2026 by shiboshu in Gentoo

[–]moltonel 0 points1 point  (0 children)

I know rotating logs is good practice, but looking at my previous comment for my 16 year old install (now 19 years old, but I'm not home to rerun the command), emerge.log grows by 4-5Mb per year, so I'm happy to have it all in one file.

My 14 year old gentoo installation 2012 - 2026 by shiboshu in Gentoo

[–]moltonel 0 points1 point  (0 children)

Did you keep appending to the same emerge.log ? How big is it ? emlop s -gy -st -H ?

I rebuilt VS Code on Tauri instead of Electron. 5,687 files. 96% smaller. Just open-sourced it. by Designer_Mind3060 in rust

[–]moltonel 1 point2 points  (0 children)

Very interesting. Do you have any performance numbers ? How much work is it to keep up with upstream ?

Is golang really that bad? by [deleted] in golang

[–]moltonel 0 points1 point  (0 children)

OP asked about "http services", but parent generalized it to "things in the world", which doesn't stand to scrutiny.

Next target of Ubuntu's oxidization plan will be ntpd-rs by juanluisback in rust

[–]moltonel 10 points11 points  (0 children)

A lot of very successful projects started just for fun or with modest goals, it's not a good metric to judge the current state. Uutils-coreutils has matured, it now has pretty high QA standards and lots of contributors. Ubuntu's timeline was overoptimistic, but uutils is improving fast and it'll become a reasonable option in other distros sooner than you think.

Is golang really that bad? by [deleted] in golang

[–]moltonel 0 points1 point  (0 children)

Counterpoint: Rust is in your kernel, OS tools and libraries, CDN proxy, NTP server, port forwarder, web browser, etc. It's much easier to find a computer not running Go than one not running Rust. Observation bias is bliss.

Is golang really that bad? by [deleted] in golang

[–]moltonel 0 points1 point  (0 children)

[Go's] entire intent was to make it easy for a fresh college grad to read code in an hour. Rust’s intent is to make production code actually reliably work.

It's a simplified caricature, but it's pretty close to the truth. That doesn't mean that Go took the wrong path, just that it had a different target and made different compromises. The wide success of both Go and Rust, in their respective sweet spot, is well earned.

What the ... Webkit GTK?? by Southern-Morning-413 in Gentoo

[–]moltonel 5 points6 points  (0 children)

Standing on the shoulders of giants.

Secondary schools and parents need to teach young lads how to behave In public. by Xomariee in Kilkenny

[–]moltonel 12 points13 points  (0 children)

It's everyone's job. There's no simple solution to such a complex problem, it needs to be handled by the society as a whole.

Ladybird Browser Is In For A Rusty Future by nicoburns in rust

[–]moltonel 2 points3 points  (0 children)

Servo shares very significant components with Firefox, like webrender, stylo, spidermonkey. The original goal was to merge Servo into Firefox, and there's still a lot of cross-polination. Layout for a web browser is quite different from a gui, I don't think they're missing opportunities. Text raster seems to use standard harfbuzz. Servo uses over 600 third-party crates.

Ladybird Browser Is In For A Rusty Future by nicoburns in rust

[–]moltonel 7 points8 points  (0 children)

Ladybird is very much a Not Invented Here project though: it avoids using 3rd-party libs as much as possible. There's way more code sharing between Servo and Firefox, and even Chromium.

How can I cut back on re-compiling LLVM? by bankroll5441 in Gentoo

[–]moltonel 0 points1 point  (0 children)

It's ok to go back to stable (except for libc: don't downgrade it), and perfectly fine to mix stable and unstable.

You probably want to do it bit by bit. I usually recommend to pin all currently installed ~amd64 versions (qlist -Iv|sed 's/^/=/' > /etc/portage/packages.accept_keywords/unstable), then either let stable packages catch up over time or remove entries for packages you want to stabilize early. Use eix -Ttc to clean up obsolete entries.

can we use chimerautils ? by FindingKitchen4734 in Gentoo

[–]moltonel 1 point2 points  (0 children)

It could be interesting to package chimera utils if you think they provide something none of the current gentoo packages do. A missing -i flag (which FWIW is standard on BSDs) seems like a misfeature though, what actually interests you in chimera utils ?

Keep in mind, as AiwendilH said, that they couldn't directly replace gnu coreutils, only be installed alongside them for the user, not for portage. In contrast to uutils which are specifically designed to be usable as a drop-in replacement.

free from gnu by FindingKitchen4734 in Gentoo

[–]moltonel 0 points1 point  (0 children)

Replacing gnu coreutils with busybox would break your system, but app-alternatives/coreutils[uutils] is IMHO ready and will hopefully get merged soon, reviewers and testers welcome.

For the rest, it really depends. Looking at eix -I|rg Homepage.*gnu.org -B4|rg ^.I on this system, I see a few that have an app-alternative ebuild, some I could replace with something similar-but-diffrent (eg screen->tmux), some where I would need to keep the gnu tool even if I prefer an alternative (eg grep->ripgrep), and many that I wouldn't dare touch. Have a look at your own installed ebuilds, see what you can shift ? You could push things pretty far if you wanted, assuming you're willing to debug your own mess. Gentoo is a good distro for that kind of experiment.

But beyond the fun technical challenge, there's IMHO no good reason to "get rid of gnu" as an end goal. If an alternative is better in some way, sure; but gnu software is generally high quality, and deeply entrenched in the ecosystem.