de_grote's Avatar

de_grote

@degrote.bsky.social

Computer Science student he/him/whatever gaming

74 Followers  |  29 Following  |  20 Posts  |  Joined: 27.10.2024  |  1.6664

Latest posts by degrote.bsky.social on Bluesky

I really don't get how some people can post daily, I barely have enough to say to post this year.

04.04.2025 21:06 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

05.01.2025 18:31 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

I'm done with #AdventOfCode, first time beating all the days within 24 hours!

25.12.2024 05:26 โ€” ๐Ÿ‘ 8    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Good luck trying to get back on it!

18.12.2024 10:39 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Only took me 14 hours to do part 2 of #AdventOfCode today! Clearly not a skill issue at all! :D

17.12.2024 21:09 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Rust
github.com/SAWARATSUKI/...

29.11.2024 11:06 โ€” ๐Ÿ‘ 128    ๐Ÿ” 22    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1

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.

12.12.2024 05:42 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
picture of me being cracked at aoc

picture of me being cracked at aoc

Just got my first top 1000 placement in #AdventOfCode!

12.12.2024 05:39 โ€” ๐Ÿ‘ 8    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
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())
    }};
}

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.

10.12.2024 05:35 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
comically large match expression

comically large match expression

Does anyone know if there is a better way to do this in #rustlang?

09.12.2024 21:03 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 0

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...

04.12.2024 18:34 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Congrats!

03.12.2024 17:33 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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!

01.12.2024 05:32 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
aoc addiction meme

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!

27.11.2024 22:03 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I don't know how I got 20 followers already, I swear I'm not that interesting!

24.11.2024 21:46 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

19.11.2024 06:40 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
GitHub - de-grote/Brainfuck-int Contribute to de-grote/Brainfuck-int development by creating an account on GitHub.

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...

16.11.2024 22:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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`

16.11.2024 19:36 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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

16.11.2024 11:42 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

currently the working name is 'random_unnamed_chess_game', but I do like that name lol

14.11.2024 18:43 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
my chess game :3

my chess game :3

guys rate the visual design of my chess game! (made in #rustlang + #bevy btw) #gamedev

14.11.2024 17:55 โ€” ๐Ÿ‘ 13    ๐Ÿ” 2    ๐Ÿ’ฌ 6    ๐Ÿ“Œ 0

@degrote is following 20 prominent accounts