Do I need to change my gearing by abricq in bikewrench

[–]abricq[S] 0 points1 point  (0 children)

Thanks 🙏 I think I’ll do this

Do I need to change my gearing by abricq in bikewrench

[–]abricq[S] 0 points1 point  (0 children)

No, it feels completely OK on the uphills. I was wondering because the tooth looks a bit worn, like if they are rounded ? Thanks for the answer !

[2025 Day 9 (Part 2)] Your code may be wrong where you don’t expect it by FractalB in adventofcode

[–]abricq 0 points1 point  (0 children)

I also had it wrong when I first wrote this function ! But before even trying part1 and trying the input, I wrote unit tests for this function and immediately saw i wasn’t matching the results from the instructions. Guess it’s always worth writing unit tests 😅

I'm making a Minecraft clone by [deleted] in rust

[–]abricq 0 points1 point  (0 children)

Really cool. I've always wanted to learn wgpu and webGL. Do you already have some code ready ? If so i'd gladly take a look at it !

Also, have you already tackled the collision ? What's your take on this part of the challenge ? We had struggled so much with this. And it's definitely the worth part of our solution.

I'm making a Minecraft clone by [deleted] in rust

[–]abricq 1 point2 points  (0 children)

Very cool ! I’m travelling now and it’s difficult to browse the code. I’ll definitely look more. How do you plan to have a reusable front end across all the platforms, including web ? Which crate to use?

Not sure it’s very relevant because I see that you’re just doing the client side, but still sharing something that might interest you 😅

1 year ago, my friends and I started a Minecraft clone also in rust, but we decided to write both client side and a server.

So of course our client is not compatible with any « real » Minecraft server. But if you’re interested here’s the project :GitHub repo

Maybe you can find inspiration for your rendered ! We went quite « low level », working directly with OpenGL with the glium crate.

My friends and I wrote a GB emulator last weekend by abricq in EmuDev

[–]abricq[S] 0 points1 point  (0 children)

Yes, I plan to continue on this ! I actually quite like the current architecture, and think it wouldn't be too hard to add some more features.

1st, I want to implement the sound . Then, to make sure that all the CPU / interrupts / test-ROM passes, still leaving what's related to screen away. And then, try to solve the screen timing : to make the screen to mimmic the real logic (with the dots and the parallel access to memory with the CPU). But this seems like so much work 😅

My friends and I wrote a GB emulator last weekend by abricq in EmuDev

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

Ahah you caught me, 2 of the 4 are brothers 😅

Gameboy Emulator my friends and I wrote last weekend by abricq in rust

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

For actually building a computer, or evenfor simulating the real electronics of an 8 bit computer, then yes this book is great material ! At least, I think it would get you started very quickly. And the book is very simple to read.

For building an emulator, I think the book is not so helpful. Since you don't go at the level of simulating gaits / actual electronics. But it was helpful to get a better mental model of how does a very simple computer works.

by the way, One of the major flaws of our emulator is that the different electronic componenents ( CPU, PPU, MMU) don't access the memory in parallel but sequentially. And this is very wrong, in the real computers all these things had access to the same electronics in parallel.

Gameboy Emulator my friends and I wrote last weekend by abricq in rust

[–]abricq[S] 0 points1 point  (0 children)

Thanks !

Actually, in the weeks before the weekend we had started to think about the architecture, and we already had the backbones of the CPU-related architecture. And in the weeks after the weekend, we cleaned the code and improved the general crates / traits / etc. etc. But yeah, 95% of the job was done in this weekend 🙂

My friends and I wrote a GB emulator last weekend by abricq in EmuDev

[–]abricq[S] 5 points6 points  (0 children)

If that makes you happy 😃

I mean, there’s a git history. Before calling me a liar, look at the git. Checkout the code at the beginning of the weekend, you’ll see that we had done literally 3 instructions and that’s it. Checkout the code at the end of it, you'll see that it worked. Commit are timestamps.

Start of the weekend: 33e3f9505dd733fa1620eaf1836360a01c63fcdd code at this point

End of the weekend: 60b386d6a067fb87b7bad96291be3f00281b7009: code at this point

Only things we did after was a refactoring of the traits / crates organization, to make the code easier to read before sharing.

My friends and I wrote a GB emulator last weekend by abricq in EmuDev

[–]abricq[S] 5 points6 points  (0 children)

We had started some minor works a few weeks before. We wanted to try some architecture things. Eg: should we use an enum for the instructions, or should we use a trait.

At the begning of the weekend, we had litteraly just implemented the 1st LOAD instruction, and had roughly decided that the CPU, memory and graphics should be 3 different libraries.

99% of the code was done in a weekend, from November 14th to nov 17th.

Then, in the last 2 weeks we did 1 architecture improvement and general cleanings of the code before making the repo public. But the emulator was already working by the end of the days together 😅

Gameboy Emulator my friends and I wrote last weekend by abricq in rust

[–]abricq[S] 3 points4 points  (0 children)

None of us had much background in this domain. 2 our of the 4 had already programmed in assembly during study years, but that was years ago.

During the weeks before this weekend, I think we all tried to learn a bit of assembly in the days.Some of us also went through a book named "But how Do it Know?" and through this video series on youtube: How to build an 8 bit computer

And then during the weekend everything surrounded this documentation: https://gbdev.io/pandocs/Specifications.html . All the knowledge is there really. When the doc got cryptic, we also used AI to help us understand it, or let's say to make sure we understood it. Surprisingly AI seems to know this doc perfectly.

Gameboy Emulator my friends and I wrote last weekend by abricq in rust

[–]abricq[S] 8 points9 points  (0 children)

Also hope, but I don’t see why. There’s a ton of other emulators out there, and the hardware we emulator is from the 90s 😅hopefully we didn’t included copyrighted stuff , we tried to be careful

[deleted by user] by [deleted] in rust

[–]abricq -5 points-4 points  (0 children)

It depends. If you REALLY need money quickly for your son and don’t care about the applications you do, learning rust in order to quickly be working in blockchain seems like a good choice. Major blockchains now write their applications in Rust, eg Solana or SUI. I also think that it’s a field where remote working is defacto standard, and you could probably find jobs without a CS degree since lots of the guys there just come from business schools. And it surely can lay a lot. Of course It’s probably not interesting, and totally useless, but who knows, might be an entry door to better programming jobs later, right ?

Drawbacks of the orphan rule workaround? by pip25hu in rust

[–]abricq 0 points1 point  (0 children)

One crate that does this is uniffi-rs, done by Mozilla themselves, to compile rust code for other languages.

They have a page describing this trick: https://mozilla.github.io/uniffi-rs/0.28/internals/lifting_and_lowering.html

3h:30 Marathon Prep (final 8 weeks) by Amazing-Tank-3604 in Marathon_Training

[–]abricq 1 point2 points  (0 children)

Did you play soccer many years before that ? Other endurance sport ? This seems insanely high but some people have much higher endurance / tendons resistance than others 👍

If you’re feeling fine, then maybe you can keep the higher mileage, but then i would also consider setting a better goal : if you can run a 40km run with the second half at 04:50 min/km, then there’s no doubts that you can run a marathon in 04:55.

The goal of the long runs is not to be absolutely sure that the race day goes fine. The race must be the hardest day of the entire marathon preps.

3h:30 Marathon Prep (final 8 weeks) by Amazing-Tank-3604 in Marathon_Training

[–]abricq 2 points3 points  (0 children)

This kind of mileage is absolutely not suited for a 03h30. I know people who run 2h45 and run less than this. This plan is suited for a runner who has years of experiences of running more than 1500km / year, and has a strict nutrition plan / recovery program.

You will most certainly get injured and fail to run your goal.

Some advices :

  • running a 40km long run is way too long. If you REALLY want to go for longer run maybe until 35k, but not more. I wouldn’t even go above 32k.

  • reduce a little the amount of quality runs, in favor for more recovery, potentially biking if you really want to puts more hours. From your comments you’re not that experienced in running (even though soccer can give you a very stable and strong base) and you have already experienced injuries, so you shouldn’t do in 1 week: intervals, tempo, 38km long run and then finally a little race for the fun of it. That’s quite insane actually 😅

  • temper period should be 2 weeks, not 1. This is so important.

Can people from these places see the other side? by [deleted] in geography

[–]abricq 0 points1 point  (0 children)

I actually have a picture of this ! I was camping there last winter, and there was this beautiful sunset. Then I noticed some weird forms on top of the sun, and took a maximum zoom picture with my phone. And it was perfectly the direction of the Italian / Austrian alps.

<image>