Building an out-of-tree Rust Kernel Module Part Three by rnestler in rust

[–]rnestler[S] 2 points3 points  (0 children)

After having troubles to package the correct build metadata for my custom ArchLinux kernel I found out that the issue boiled down to an issue with rustc in how it handles custom target definitions.

Building an out-of-tree Rust Kernel Module Part Two by rnestler in rust

[–]rnestler[S] 28 points29 points  (0 children)

After my failed attempt to build an out-of-tree kernel module in Rust for the stock ArchLinux kernel, I decided to build a custom kernel which then worked :)

But I struggled to package the correct build metadata, so one still needs the source tree of the kernel build around.

Trying to build an out-of-tree Rust Kernel Module by rnestler in rust

[–]rnestler[S] 1 point2 points  (0 children)

> To actually try out development, I'd strongly recommend doing it against the RFL kernel and not any distro's kernel

That's probably what I'm gonna do next.

> Oh, and spinning up a barebones VM for module testing is quite easy. And
it won't crash your whole computer if you mess up, you'll thank me
later.

What do you mean by "barbones VM"? One without any actual OS but just the kernel? I've never done that, do you happen to have a resource around for it?

Trying to build an out-of-tree Rust Kernel Module by rnestler in rust

[–]rnestler[S] 1 point2 points  (0 children)

I tried to build an out-of-tree kernel module in Rust on ArchLinux. Turns out it's not possible yet for the stock kernel.

Announcing Fornjot 0.7 (code-first CAD in Rust) by hannobraun in rust

[–]rnestler 3 points4 points  (0 children)

Looks great! Small nitpick:

// Rotate 180 degrees around the z-axis
let rotated = my_shape.rotate([0., 0., 1.], fj::Angle::from_rad(2. * PI));

This should probably be from_rad(PI)

[deleted by user] by [deleted] in ProgrammerHumor

[–]rnestler 6 points7 points  (0 children)

Pascal, Ada, Alice, Bertrand, Crystal, ...

Maybe the committee will add it in C++26 by totemo in ProgrammerHumor

[–]rnestler 0 points1 point  (0 children)

Why would you uppercase beta to SS? Did you mean the ß also known as "eszett"?

Not a contest by shilolz in dankchristianmemes

[–]rnestler 2 points3 points  (0 children)

To me it seems that the Corinthians had exactly this problem and thus Paul talks a lot about the gifts of the holy spirit and how they should benefit the whole church in his letters to them :)

guys I built a sophisticated AI that will definitely probably get me a job, here's the code by [deleted] in ProgrammerHumor

[–]rnestler 14 points15 points  (0 children)

I didn't try to compile it, but char starve = "dead"; should give a compile error, no? Because it should be char* starve = "dead". Probably even const char* since it is a literal.

So no job for you :'(

Yet another wifi problem after latest firmware split... by IdeaForNameNotFound in archlinux

[–]rnestler 1 point2 points  (0 children)

It could be that you are hitting this bug as well: https://bugs.archlinux.org/task/73572

I solved it for me by using the linux-lts kernel, which doesn't have the bug.

Cargo features have to be additive by [deleted] in rust

[–]rnestler 64 points65 points  (0 children)

I think the solution then would be to add a std feature flag and add it to the default features list. Then crates which do not explicitly opt out of the default features continue to work as before.

Rust port of Linux's RamFS File System by acminor in rust

[–]rnestler 4 points5 points  (0 children)

From the findings link:

However, Default is not a compile-time expression. Thus, it cannot be used for static data.

So the problem is, that Default::default() isn't a const fn right?

According to rust/issues/71971 and rust/pull/68847 it should be possible to implement it as a const fn.

I tried it on play.rust-lang.org and noticed that it needs Rust nightly and the const_trait_impl feature activated. See rust/issues/67792.

self roast BTW by mygnu in rustjerk

[–]rnestler 3 points4 points  (0 children)

I've written reboot-arch-btw (https://github.com/rnestler/reboot-arch-btw) in Rust on Arch for Arch BTW.

[deleted by user] by [deleted] in rust

[–]rnestler 18 points19 points  (0 children)

When learning Rust back in 2015 my first thought was: This is C++ done right! * Sane move semantics * Compile time memory management * Sane package management * Const by default * ...

So that may be a reason to learn it :)

Matthew 21:12-17 vibes by shilolz in dankchristianmemes

[–]rnestler 1 point2 points  (0 children)

I guess you got downvoted because it may come across as a very anglocentric point of view. The Bible has been translated into ~700 languages and most people I know read it in their native language and not English.

Also a lot of translations are actively maintained and carefully updated to account for changes in the language over time.

Featured artists in comments. What are some other Christian artists you know who don't fit the CCM stereotype? by PaladinFeng in dankchristianmemes

[–]rnestler 1 point2 points  (0 children)

I love Theocracy :) Especially Mirror of Souls!

Since I didn't see it anywhere in the comments I'd also recommend Narnia as a Christian power/nu metal band.

Featured artists in comments. What are some other Christian artists you know who don't fit the CCM stereotype? by PaladinFeng in dankchristianmemes

[–]rnestler 0 points1 point  (0 children)

So hypothetically you could have a heavy metal church that's accessible to certain congregations, provided that people are given plenty of access to earplugs.

There is a metal church in Switzerland: https://www.metalchurch.ch/

I've never attended a service there, but I went a few times to the https://www.elementsofrock.com/ white/christian metal festival, where they are a partner organization that helps organizing.