News for hackers. Stuff that matters.
Re:Advent of Code 2024 by ducdetronquito on Sunday December 01, 2024 @06:53AM (#42287933)
I will try to do it with F# and Gleam this year, but like every year I won’t have time (and brain) to do more than 10/12 days ^^

For the pythonists around here, give F# a try: it can feels very close to scripting and it has a wonderful REPL too :)

Re:Advent of Code 2024 by axpy906 on Sunday December 01, 2024 @07:52AM (#42288207)
I am doing it in bash. Will see how far I can go!
Re:Advent of Code 2024 by andrelaszlo on Sunday December 01, 2024 @07:50AM (#42288204)
How's linux support? :)
Re:Advent of Code 2024 by davidgl on Sunday December 01, 2024 @08:02AM (#42288246)
Perfect, run loads of f# and c# on Linux, and have for years
Re:Advent of Code 2024 by neonsunset on Sunday December 01, 2024 @07:57AM (#42288220)
If almost 9 years were not enough to make this question seem silly, perhaps DuckDuckGo/Kagi/Perplexity could answer this?
Re:Advent of Code 2024 by plagiarist on Sunday December 01, 2024 @08:33AM (#42288366)
Sure those can answer it. That person is perhaps trying to be social on a social network by inviting comments instead?
Re:Advent of Code 2024 by neonsunset on Sunday December 01, 2024 @08:40AM (#42288405)
This specific question posed in this specific way usually implies a negative interaction. I have seen maybe one exception here so far.

And after providing detailed answers for so many times, I don't think it's worth it.

Re:Advent of Code 2024 by samatman on Sunday December 01, 2024 @01:24PM (#42289801)
You guaranteed it would be a negative interaction when you negatively interacted with the post. You're allowed to skip the ones you don't want to reply to.
Re:Advent of Code 2024 by ducdetronquito on Sunday December 01, 2024 @03:15PM (#42290438)
Works like a charm for me with Ubuntu 24.04/VSCode/Ionide (F# extension) !

For AoC I don't use a real project setup, just a `dayX.fsx` file and I run it like a script with `dotnet fsi dayX.fsx`, et voilà :)

Re:Advent of Code 2024 by thaliaarchi on Sunday December 01, 2024 @08:23AM (#42288330)
I'm continuing my tradition of doing AoC in Whitespace[0]. The first year I did it, it was motivation to build out a standard library so things wouldn't be so tedious. Now, I find myself wishing I had finished better tooling. I debug with wsjq[1], a CLI debugger like gdb written in jq, but it's slow.

[0]: https://github.com/thaliaarchi/ws-challenges

[1]: https://github.com/thaliaarchi/wsjq

Re:Advent of Code 2024 by ssernikk on Sunday December 01, 2024 @03:50PM (#42290645)
I've done last two AoCs in F# (well, only the first few days too). For a person without prior functional programming experience, it was fun! Unfortunately I won't have time to participate this year, but if I did, I'd probably chose F# again.
Re:Advent of Code 2024 by codeconscious on Wednesday December 04, 2024 @07:25AM (#42316752)
Nice. I've started picking up F# too and am trying AoC with it this year. I'm still early in my functional journey, but I think AoC has been helpful thus far.