TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Which language for Advent of Code in 2024?

29 pointsby usgroup6 months ago
I’ve considered Mercury and Picat this year but I don’t want to go without regex and&#x2F;or associative arrays. Also Mercury seems moreso about performance than semantics.<p>I think it’s Prolog for me again this year but with an effort to complete the problems in a more “Prologesque” way.

22 comments

tonyedgecombe6 months ago
Last year I had just started learning Rust so used that. That turned out to be a mistake, I was spending most of my time figuring out what the borrow checker was complaining about rather than looking at the actual problems.<p>Hopefully that&#x27;s behind me now so I will use Rust again.
评论 #42227209 未加载
Leftium6 months ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;betaveros&#x2F;noulith">https:&#x2F;&#x2F;github.com&#x2F;betaveros&#x2F;noulith</a><p>Designing a programming language to speedrun Advent of Code: <a href="https:&#x2F;&#x2F;hw.leftium.com&#x2F;#&#x2F;item&#x2F;38255808" rel="nofollow">https:&#x2F;&#x2F;hw.leftium.com&#x2F;#&#x2F;item&#x2F;38255808</a><p>&gt; I did not design and implement a programming language for the sole or even primary purpose of leaderboarding on Advent of Code. It just turned out that the programming language I was working on fit the task remarkably well.<p>-- &quot;betaveros, the guy who won 1st place in Advent of Code every single year since 2019&quot;
评论 #42229811 未加载
croo6 months ago
Python. I want to focus on having fun with the puzzles instead of decrypting unfamiliar syntax errors.
gardenhedge6 months ago
Typescript for me, although I only ever do the first few days. I don&#x27;t have the time to spend on it after that.
评论 #42225250 未加载
radeusgd5 months ago
I&#x27;m working on the Enso programming language (<a href="https:&#x2F;&#x2F;github.com&#x2F;enso-org&#x2F;enso">https:&#x2F;&#x2F;github.com&#x2F;enso-org&#x2F;enso</a>), so I will be trying to solve the challenges in the Enso Analytics tool, as our team has been doing for the last two years.<p>It&#x27;s always fun to see how we progressed since the previous challenge, making it more pleasant to work with (and also see where the rough corners still are).
cdaringe6 months ago
I’m ready to give zig another try.<p>gleam was a lot of fun last year, for those who are gleam curious.<p>For those who are doing something like protocol hackers, instead of adventure code, ocaml 5+ with effects was super fun
haakonhr6 months ago
I didn&#x27;t do it last year, but the years before I used Racket and Common Lisp. I might try Common Lisp again since I really want to rediscover the experience of programming w&#x2F; Sly (a fork of SLIME).<p>I&#x27;m also considering trying to solve everything with Z3.
middayc5 months ago
I will this year try to be the &quot;support team&quot; for those that will try to do AoC in <a href="https:&#x2F;&#x2F;ryelang.org" rel="nofollow">https:&#x2F;&#x2F;ryelang.org</a>. At least one person said on X.com that he will use it, so we will see :)
ed22666 months ago
I’ve been wanting to play with Kotlin or Ruby.<p>Kotlin&#x2F;Closure are more attractive because of their multi-platform support, but Ruby has RoR, but the code looks cleaner which is nice.
评论 #42253058 未加载
jjice6 months ago
I&#x27;ve experimented over time with the AoC with different languages, but I&#x27;ve found that it made the actual problem solving a lot more difficult for me.<p>I&#x27;ve done Rust, Go, Python, and TypeScript, and I&#x27;ve preferred Python and TS because I can just crank out some code and get something going. Rust was actually pretty good too, but Go was a bit more verbose than I wanted for something quick and dirty.
Jtsummers6 months ago
I used Common Lisp as my primary language for 2015-2022 and Python for 2023. I&#x27;ve used a few other languages along the way, in parallel to my main effort: Rust, Ada, Python, C++.<p>I&#x27;ll probably just use Python this year, so many things are &quot;baked in&quot; to the language that it&#x27;s the most straightforward. Only downside really is performance, but if you need high performance compiled code for Advent of Code problems you&#x27;ve generally not solved the problem efficiently.
评论 #42234250 未加载
neonsunset6 months ago
Will be doing it in F# this year. Last year I did C#&#x2F;Rust split until real life took over and they ended up being too similar to each other at solving AoC type of challenges.
评论 #42225983 未加载
GeneralMaximus6 months ago
I watched somebody on YouTube solve some AoC problems in Excel, so I’m going to try that this year. Not sure how far I’m going to get, but it’ll be a fun challenge!
评论 #42227219 未加载
kaamkiya6 months ago
Python. I like to code in Go, but I find Python the easiest for small things I&#x27;ll only use once.<p>I used C to do some of the old ones. That was painful (I was a complete C beginner).
ilvez5 months ago
Decided that I&#x27;m going for Elixir this year. Did few last years puzzles and the experience was really good.
johnofthesea6 months ago
This year I will go with Nushell.<p>(Maybe will cheat with making Nushell plugin in Rust).
mlhpdx6 months ago
C# again. I aspire to get back to C++ but this isn’t the year for me.
sargstuff6 months ago
?? turn &lt;language of choice&gt; into api over prolog ??
Sateeshm6 months ago
Typescript because that&#x27;s all I know.
hulitu6 months ago
BASIC. In memoriam
horsellama6 months ago
Julia
joshagilend6 months ago
math :)