I opened bluesky, wrote this post and published it before it loaded
I opened bluesky, wrote this post and published it before it loaded
why is GitHub so slow
Rust 1.93.0 has been released! π π¦β¨
This release includes a new musl version for the *-linux-musl targets, adds support for #β[cfg] inside asm!(), and adds [T]::as_array, VecDeque::{pop_front_if, pop_back_if}, Vec/String::into_raw_parts, fmt::form_fn, and more! β¨
blog.rust-lang.org/2026/01/22/R...
just discovered `set -x` which activates debug mode and prints the expanded command before executing, that way enviro variables and aliases are unwrap.
i really liked this talk
How to stick with your projects, even when they're janky https://lobste.rs/s/h5e24r #video #practices #compilers #clojure
getting everything to work took me more time than I anticipated and had never found myself in a situation of losing internet connection in the host because of docker
everything tied up:
sudo modprobe br_netfilter
talosctl cluster create docker --subnet 10.50.0.0/16
while at it I also changed the default cidr of the docker bridge network to something else:
/etc/docker/daemon.json
{ βbipβ: β10.10.0.1/16β}
i had another network interface with the 10.5.0.4/24 range in the host already.
second issue was a context deadline after everything was seemingly ready, with the final log entry being: machine is ready. i had to enable the br_netfilter module in the kernel.
i had some crazy networking issues while trying to run talos linux using docker on my local machine.
the first one was loss of internet connection on the host a few moments after the cluster creation process starts.
by changing the subnet to a different cidr i was able to overcome the issue
this year the goal is to play with technology, first one iβm trying is Talos, which is a Kubernetes OS. so far iβm very impressed.
www.talos.dev
which programming resource changed your career? https://lobste.rs/s/eulydi #programming
the kids, they know how to name libraries.
www.reddit.com/r/rust/comme...
in this case it really doesnβt add much value, but i find it handy most of the time.
also, i believe newcomer like me find value in them as we reason about why our programs are failing.
--minimal would be neat
my goal this year is to finish what I start
rust generics are very powerful:
trait Mystic<T> {
fn mystify(_: T);
}
impl<T, U> Mystify<T> for U {
fn mystify(v: &T) {
// details
}
}
and have mystify(T) available in all your types and the ones from the std lib and to also be able to pass any type to the function is insane.
Happy new year everyone
thanks for the suggestion, as iβm still learning it i tend not to use lsps to get used to the language.
would this get caught by clippy?
oh, this is interesting. this is due to a Vec being dereferenced to a &[T]?
rust is amazing
what i meant is this is what it feels like while declaring the function.
while this only happens when the function is being called
this talk is amazing and very inspiring
www.youtube.com/watch?v=PUv6...
i have to change my thinking from getting a reference to X, to borrowing X. feels dumb to be saying this months after starting to write rust, but it is so tricky.
my function is most definitely getting a pointer, but the semantics are different.
users.rust-lang.org/t/references...
me coming from golang trying to write rust:
fn bs(n: *Vec<i32>)
the compiler screams at me because iβm an heretic.
it still feels weird declaring a function as if iβm getting a reference for an already existing value:
fn bs(n: &Vec<i32>)
Just sent it on your DM. Thanks
Hi @mycroft.mkz.me, can you invite on lobste.rs? I have wanted to be a user for a long time but i donβt have any relationship with anyone that has a lobsters account.
the fact that you can do stuff like this in Rust is incredible.
I bet you also thought it was a negative thing from the title right?
If the goal was for us to click, they surely nailed it
2 weeks ago I had the opportunity of participating in my first interview as an interviewer and I had watched this interview a few days prior.
I have to say that using this strategy worked well. We could easily identify people who said they did something over those that actually did.
SNI is a genius idea. My mind was struggling to answer how can we do routing based on hostnames if everything is supposedly encrypted in TLS communication.
Turns out, some people thought of a solution a long time ago. Just beautiful.
www.cloudflare.com/learning/ssl...
It is funny to me that a 300 page book doesn't seem so big as it used to be the case for me in the past. After reading a few thousand plus books, I feel like I'm about to read a 30 page essay when I see 200/300 pages.