3

Doing some daily questions leading up to the event to encourage some activity here, starting off with language selection

top 10 comments
sorted by: hot top new old
[-] soulsource@discuss.tchncs.de 3 points 2 years ago* (last edited 2 years ago)

I'm going to try Lean4. It's interesting for us at work, for gamedev, and I'm personally interested in it too.

It's not only a programming language, but also a theorem prover, and the boundaries between those two aspects are rather blurry. For instance, if does not take a Boolean as argument, but a Decideable logical proposition. if also does not only choose which branch to evaluate, but also offers a proof that the proposition is True or False in the respective branches, that one can later use to argue with the compiler if a certain function call is allowed or not (for instance, one can make a type that only contains natural numbers that are prime - and making an instance of that type requires a proof that the passed in number is indeed prime - and such a proof can be materialized using if).

I'm still learning the language though, and am not certain if I can finish reading the book Functional Progrmaming in Lean till AoC starts... If I can't manage, I'm just going to start AoC in Lean anyhow, and see how far I get.

[-] russmatney@programming.dev 1 points 2 years ago

Dang, haven’t heard of this, looks pretty cool!

[-] hardaker@programming.dev 2 points 2 years ago

I often pick languages or modules to learn for the easier puzzles, or even languages that should be hard too challenge myself. 2 years ago I used bash and CLI apps for the first five levels. And I've forced myself to get better at numpy and pandas too before I knew then as well.

TLDR: user it as an opportunity to learn.

[-] russmatney@programming.dev 2 points 2 years ago

I’m going for zig and gerbil this year! Love AOC for learning new langs a day at a time :)

[-] Jummit@lemmy.one 2 points 2 years ago

I'm going to use https://harelang.org to get more comfortable in it, and maybe my own languages, Otomescript and Hase.

[-] b_van_b@programming.dev 2 points 2 years ago

Probably rust, so I can push myself to do some real practice with it.

[-] Andy@programming.dev 1 points 2 years ago

Factor, for sure. But I'll be surprised if I get though the whole first week without falling behind.

[-] morrowind@lemmy.ml 1 points 2 years ago
[-] Ategon@programming.dev 1 points 2 years ago

starts december 1st

[-] Hammerheart@programming.dev 0 points 2 years ago

Python since its the only language im half decent at

this post was submitted on 14 Nov 2023
3 points (100.0% liked)

Advent Of Code

1243 readers
1 users here now

An unofficial home for the advent of code community on programming.dev! Other challenges are also welcome!

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

Everybody Codes is another collection of programming puzzles with seasonal events.

EC 2025

AoC 2025

Solution Threads

M T W T F S S
1 2 3 4 5 6 7
8 9 10 11 12

Visualisations Megathread

Rules/Guidelines

Relevant Communities

Relevant Links

Credits

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

console.log('Hello World')

founded 3 years ago
MODERATORS