Posts

Showing posts from April, 2026

Rust language is sometimes annoying because

 You are working on some rust code and you are ready to debug with either GDB or rust rover debugger and compile with rustc which takes ages to compile. Another quality of how rust functions is the borrow checker which restricts you from writing clean code in rust. Yet another problem is rusts ownership system when it comes to debugging the rs source files and the toml file stops you from compiling constantly. I tried to make a first person shooting game in rust and it was tiresome as well as extremely challenging to create with borrow checker warnings and multiple syntax errors. I gave up on rust for a while and posted the rust-fps source code onto Coderberg after failing miserably with rust. I'm use to getting things done with C++ that I have 10 years experience self taught in C++ and reading multiple books. But Rust has really challenged me and I will try rust again at a later date but not right now. 

what a shared pointer is in C++

 Well a shared pointer is a type of smart pointer. Usually typed like this shared_ptr . That is generally how a C++ std::shared_ptr is on a syntax level.  What a shared pointer generally is a smart pointer that provides ownership dynamically allocated object of type T. Multiple shared_ptr instances can own the same object. The object is destroyed automatically when the last shared_ptr owning it is destroyed or reset.  Key Properties      * Ownership: shared (reference counted).      * Lifetime: deterministic destruction when reference count reaches zero.      * Thread-safety: incrementing/decrementing the control block's count is         atomic (so different shared_ptr objects can be used concurrently),           but accessing the pointed to object is not synchronized by shared_ptr.      *  Controls both pointer and metadata via a control block  ...

Systemd alternatives for Linux

 Because of the recent systemd age verification drama many who don't live in California or Brazil are switching to linux distros with either OpenRC, Sysvinit, Dinit and Runit as an alternative init system for their linux of choice. Runit being the fasted and best option for security, privacy and boot time speed being faster. options of such linux distros include void linux and artix linux currently with most of the user friendly distros using systemd like fedora, ubuntu, linux mint and arch linux keeping systemd without any other init systems because fedora, ubuntu and linux mint are in favour of the age verification measures that are coming into effect on 1st January 2027. There are however many distros that are not in favour of age verification measures being implemented, these distros are void linux, artix linux, parrot os, zorin os, ageless linux, endeavour os, garuda linux, vendefoul wolf linux, slackware linux, devuan linux, omarchy linux and some unix distros like ghostbsd a...