I really don't get how some people can post daily, I barely have enough to say to post this year.
I really don't get how some people can post daily, I barely have enough to say to post this year.
It's suprising how little resources there are online for making rust bindings for a C++ library. It took me about a week and more undefined behaviour then I've ever seen before to get it to a somewhat working state.
I'm done with #AdventOfCode, first time beating all the days within 24 hours!
Good luck trying to get back on it!
Only took me 14 hours to do part 2 of #AdventOfCode today! Clearly not a skill issue at all! :D
Rust
github.com/SAWARATSUKI/...
Just double checked it and it turns out I'm lying my butt off, I got 566th in 2022 day 15 part 1, still the first top 1000 in years lol.
picture of me being cracked at aoc
Just got my first top 1000 placement in #AdventOfCode!
macro_rules! solution { ($day:ident, $part:ident) => {{ let input = read_to_string( ["src", stringify!($day), "input.txt"] .into_iter() .collect::<PathBuf>(), ) .unwrap(); let start = Instant::now(); let result = $day::$part(&input).unwrap(); (result, start.elapsed()) }}; }
Thanks for the help everyone, I should've included this for context, my bad! It is a macro that calls the correct function based on the name of the identifiers given.
comically large match expression
Does anyone know if there is a better way to do this in #rustlang?
I am starting to get tired of waking up before 6am every morning for #AdventOfCode, but currently I'm first on the private leaderboard, but at 15th for deltatime...
Congrats!
I'm done with the first day of #AdventOfCode!
Note to self: do not accidentally paste code into your testcase, it will cause it to fail!
aoc addiction meme
Can't wait to do #AdventOfCode this year in #rustlang. I'm thinking about posting about it here when it's out!
I don't know how I got 20 followers already, I swear I'm not that interesting!
Maybe you could make one of those 'learn to program' games, but instead of teaching you how to code, it's an incomprehensible esolang you need to use
Welp, I just spend one day making the 95635th implementation of brainfuck today.
It's only ~200 lines of code with half of those being the cli parser...
Let me know id there are any issues!
source: github.com/de-grote/Bra...
Why does '<' to pipe a file to stdin work in both linux and cmd.exe BUT NOT powershell??
I am not going to use `Get-Content file | program`
when I know cmd has `program < file`
When I tried twitter the first things I saw were political. When I tried bluesky the first things I saw were cat pictures. I think I know which platform I want to use
currently the working name is 'random_unnamed_chess_game', but I do like that name lol
my chess game :3
guys rate the visual design of my chess game! (made in #rustlang + #bevy btw) #gamedev