Robin Arys's Avatar

Robin Arys

@zedutch.bsky.social

Computer Science Engineer by day, Indie game developer by night. Sometimes also a musician around dusk. He/him.

656 Followers  |  82 Following  |  43 Posts  |  Joined: 26.12.2023  |  2.0763

Latest posts by zedutch.bsky.social on Bluesky

I mean, I don’t even want to print my own types, just the tuples and random lists I’ve created along the way, you don’t need to derive anything to do that in Rust or Elixir

04.12.2024 19:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Something like elixir’s IO.inspect or Go’s fmt.Print would be ideal

02.12.2024 10:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Dear OCaml people, what is a good way to print the value of any variable, like a list or something? I’m having trouble finding out the value of stuff in the middle of a bunch of List.map or List.filter expressions. Ideally I’d like something simple that I can just pipe the value to to print it

02.12.2024 10:09 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 4    πŸ“Œ 0

Yes! I have the exact same issue. I tried using stdlib last year but everyone kept saying that I should use Base instead as it contains a lot more useful stuff, so that’s what I’m trying this year. But it does make things even more confusing

02.12.2024 08:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

And before someone points it out, I have since learned that Elixir has Enum.frequencies so I didn’t even need to build that frequency map by myself πŸ˜…

01.12.2024 21:01 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - zedutch/aoc-2024: Advent of code in Elixir and/or OCaml Advent of code in Elixir and/or OCaml. Contribute to zedutch/aoc-2024 development by creating an account on GitHub.

Day 1 of #AdventOfCode: check!
First Elixir, went very smooth, then rewrote in OCaml. That was quite a bit harder, but I did manage to get there in the end!
Feedback welcome, especially about making things more idiomatic (or easier in the case of OCaml, I really struggled)
github.com/zedutch/aoc-...

01.12.2024 20:57 β€” πŸ‘ 13    πŸ” 1    πŸ’¬ 3    πŸ“Œ 0

Yes, and I have joined the leaderboard! I will try to only use functional programming languages this time, although the first day was already pretty hard in one of them πŸ˜…

01.12.2024 20:54 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I had the same issue in the Bluesky app but it worked fine when I opened in my default browser (Arc, although I’m not sure if they’re using their own engine or just Safari under the hood right now)

01.12.2024 20:53 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I did it in elixir first and then rewrote in ocaml. The original solution took about 10 minutes, the ocaml version about 2 hours. I had written more ocaml than elixir before today, mind you. OCaml really has an issue with good and clear documentation, there’s so much stuff you β€œjust have to know”…

01.12.2024 20:51 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I went with Elixir for #AdventOfCode day 1 in the end. Will probably try to do the first few days with OCaml as well as I find it a very interesting language. And who knows, I might end up switching to it as the main language for this year’s aoc!

01.12.2024 06:49 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Unofficial Advent of Code 2024 Survey This is a quick (unofficial / not affiliated with) Advent of Code 2024 anonymous (if you don't disclose your identity in "Other..." answers) participant survey. Note that your data will be shared as p...

It's Dec 1st in UTC so time to unleash the Unofficial #AdventOfCode Participant Survey! πŸŽ„

If you participate in AoC, consider filling out the survey (only once!) at forms.gle/iX1mkrt17c6Z...

Feel free to reshare! πŸ’›πŸ’›

01.12.2024 00:04 β€” πŸ‘ 9    πŸ” 5    πŸ’¬ 1    πŸ“Œ 0

Isn’t that just Frogger? πŸ˜…

30.11.2024 10:01 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I’ve tried OCaml for a bit 2 years ago but I found it very hard to find decent documentation for the stuff I needed. Maybe you might be able to provide me with some good resources to look at? I seem to remember there was some external library that everyone basically uses as if it is the stdlib?

30.11.2024 10:00 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

#AdventOfCode starts tomorrow and I haven’t decided yet which language I want to use this year. Currently hesitating between Elixir, Ocaml, and Gleam

30.11.2024 06:50 β€” πŸ‘ 19    πŸ” 0    πŸ’¬ 5    πŸ“Œ 0

They didn’t though, read it again πŸ˜…

18.11.2024 19:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

PRESS IT!

18.11.2024 19:43 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I actually had to force-quit the app to resolve this. Even though the β€œnew message” screen was working correctly, the timeline was still broken after I got back to it

18.11.2024 19:42 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
The iOS official bluesky app after rotating the phone to watch a video. The lay-out is messed up and shifted over to the side

The iOS official bluesky app after rotating the phone to watch a video. The lay-out is messed up and shifted over to the side

Uhm, hello @bsky.app ? Seems there’s some issues with rotating the device on iPhone πŸ˜…

18.11.2024 19:41 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

If you use something like allegro, SFML, SDL, or raylib you can still create games without an engine without having to build all those systems from scratch. They all contain basic versions that you can just use or adapt to your specific game, not hard at all!

18.11.2024 19:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

- Most boring open world
- Worst graphical fidelity to fun ratio

18.11.2024 18:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Falsehoods Programmers Believe About Names | Kalzumeus Software Classic essay about how software routinely bumbles human names.

This reminded me of this great post from a long time ago: www.kalzumeus.com/2010/06/17/f...

17.11.2024 22:23 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Name validation is always stupid and unnecessary 🀨

17.11.2024 22:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

There’s been a very noticeable increase in new followers over the last two days… Hi y’all! πŸ‘‹
I make video games and music and random other stuff. Currently I’m still obsessed the new Factorio expansion but I will be getting back to game development with Odin very soon

17.11.2024 15:27 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Please delete this before they start automatically uploading all 3D models rendered on their gpus πŸ˜…

17.11.2024 15:24 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

That’s me as well! I have to admit that I have used engines before as well, but most of my published games are engine-less and I’m currently working without an engine again ^_^

17.11.2024 15:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@bsky.app is the first Twitter-alternative where I actually completely forget it’s not Twitter while scrolling. None of the others ever had that effect on me, they always felt worse to use for some reason

17.11.2024 11:31 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Have you ever checked if there’s a hitstop duration that does feel okay to you? Or is just 1 frame already too much?

09.11.2024 23:21 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Then again, if there ever was a game that could do with a decent tutorial, it’s probably that one. I learned everything the hard way but not everyone has hundreds of hours to learn how that game works πŸ˜…

09.11.2024 23:18 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I can do the same thing! I’ve never met anyone else that does that as well. Granted, I also haven’t asked a lot of people πŸ˜…

09.11.2024 23:13 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Bad news: I didn’t do any #gamedev work today

Good news: the new #factorio DLC is amazing

Bad news: I probably won’t do much gamedev work in the following days either

These things may or may not be related, no way to tell really…

28.10.2024 23:48 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@zedutch is following 20 prominent accounts