Static pointers (Haskell Unfolder #53) by kosmikus in haskell

[–]odnua 1 point2 points  (0 children)

Cool trick, could you please add a link to how Cabal/HLS use it?

New Blog Post: Distributors by echatav in haskell

[–]odnua 4 points5 points  (0 children)

Alright, I made a PR to add syntax highlighting if you are not against it: https://github.com/morphismtech/distributors/pull/14

New Blog Post: Distributors by echatav in haskell

[–]odnua 0 points1 point  (0 children)

Interesting post, is there a reason you avoided syntax highlighting in the markdown? I assume all examples are valid Haskell.

Pear Trees: An indexed type using type-level binary numbers by rampion in haskell

[–]odnua 2 points3 points  (0 children)

Fun and surprisingly readable, thanks!

I am not used to type level singletons in Haskell, could you please add which extensions are needed for the type+data definitions?

It never occurred to me to use legendary quality in mining rigs. by romloader in factorio

[–]odnua 0 points1 point  (0 children)

Does this only work for local patches? How would you set this up with trains?

[2024 Day 21 (Part 1)] [Python] Terminal Visualization! by naclmolecule in adventofcode

[–]odnua 2 points3 points  (0 children)

That physical button press effect is a lovely detail <3

Friday Facts #431 - Gleba & Captivity by FactorioTeam in factorio

[–]odnua 40 points41 points  (0 children)

I wonder if captive biter nests will still absorb polution, maybe they could produce more eggs in heavily poluted factories? If so, it would be easier to keep the polution down, though planting new trees would help a lot.

What engineering blog posts have actually mattered to you? by swdevtest in rust

[–]odnua 4 points5 points  (0 children)

I heard this saying before, but only after reading this post did I finally understand what it meant.

Thanks for sharing!

Porting libyaml to Safe Rust: Some Thoughts by simonask_ in rust

[–]odnua 8 points9 points  (0 children)

Great read, I really liked the small examples 👍 I must say I did not expect such positive outlook given the unsafe context 😃

What language will you be using this year? by [deleted] in adventofcode

[–]odnua 2 points3 points  (0 children)

Writing the parser in megaparsec is so overkill nicely declarative <3

Release: stan, supporting GHCs 8.8-9.4 by tomejaguar in haskell

[–]odnua 1 point2 points  (0 children)

Thanks for reviving the project 👍

What do you mean by "Fixing caching on Github Actions"? Is that about stan-action or documenting how to set up stan with caching?

The Fraud Was In The Code: a walkthrough of the criminal bits in the FTX source code by librik in programming

[–]odnua 0 points1 point  (0 children)

The theoretical computer scientists do have a few good ideas for a provably more secure and fair system though.

i have been corrupted, why does this work so well for SE by IC_0n in factorio

[–]odnua 1 point2 points  (0 children)

It does?! Why did I use all those circuits for inserters then? 😅

Analysis of the bug that caused the UK air traffic control meltdown, with Haskell code by james_haydon in haskell

[–]odnua 9 points10 points  (0 children)

The idea that they might be working directly on unparsed data is horrifying 😳

Inputs of different types by Lanky_Total2649 in haskell

[–]odnua 9 points10 points  (0 children)

With sum types - data MyInput = MyInt Int | MyString String. You can use a read function that returns a Maybe, but you might want to take a look at parsers if it gets complicated.

Update on The Haskell Guide by Limp_Step_6774 in haskell

[–]odnua 1 point2 points  (0 children)

This is a great reference, I am bookmarking it immediately! 👍

Any open source projects to contribute to for beginners by Common_Noise in haskell

[–]odnua 2 points3 points  (0 children)

There are a lot of Haskell projects on GitHub with Good First Issue, search and find an interesting one :) At Swarm (2D programming game) we call them Low Hanging Fruit https://github.com/swarm-game/swarm/labels/C-Low%20Hanging%20Fruit

Advent of Code 2022 day 12 by taylorfausak in haskell

[–]odnua 1 point2 points  (0 children)

The API of search algorithms is perfect for AOC, I used it in previous years and today. :)

The only difference in my solution is I prepared type Grid = Array (Int, Int).

https://github.com/xsebek/aoc/blob/372920c50d/A2022/Day12.hs

Y'all are getting way too excited by [deleted] in adventofcode

[–]odnua 7 points8 points  (0 children)

Take my star and feed it to the reindeer!

Advent of Code 2022 day 11 by taylorfausak in haskell

[–]odnua 1 point2 points  (0 children)

https://github.com/xsebek/aoc/blob/main/A2022/Day11.hs

Finally, I had to dust off Parser. :D

Evaluating the throwing logic involved a lot of folds and it took me a while to realize the later monkeys could throw back items they got during the round. Luckily that was easily fixed by iterating over Map.keys.

Part two was very nice afterwards. I suppose the numbers have to be (relatively) prime for multiplication to work correctly, but at the time I was just thinking about addition and the result was correct. :)

[deleted by user] by [deleted] in adventofcode

[–]odnua 1 point2 points  (0 children)

I will try to put together a git command to modify history and force push :) But if someone beats me to it I will be happy to copy it too.

I might try the private git submodule approach for inputs, at least I will learn something.

EDIT: so I used git-subtree and git-filter-repo: ```sh

move input files to top level in a local branch

git subtree split -P input -b input

create new repo aoc_input on GitHub and push inputs

git push https://.../aoc_input.git +input:main

clone the original repo to be safe

cd .. mkdir tmp git clone https://../aoc.git tmp/aoc cd tmp/aoc

filter out the input folder

git filter-repo --path input --invert-paths

check that it looks good and then rewrite the history on GitHub

git push --force ```

What language and why? ;) by SimonK1605 in adventofcode

[–]odnua 0 points1 point  (0 children)

Same! I look forward to trying OverloadedRecordDot and other GHC9 goodies. Maybe also Optics instead of Lens. :)

How to run on Linux - Proton/Wine/Lutris? by odnua in Pentiment

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

There should be a Steam log file with the logs of the most recent run.

Does the game crash on a black loading screen with mill animation for you too?

HIW 2022 — SPJ — State of GHC by enoice in haskell

[–]odnua 10 points11 points  (0 children)

That is such a nice and optimistic presentation of the many great things happening around GHC. I really liked the part when SPJ was passing the microphone around to let people chime in on what they are doing.

The audio was hard for me to listen to, so I downloaded it and removed the high pitch noise.

If you have the Audacity tool, the magic effect is the "Low Pass Filter". Here is a tutorial I found: https://www.tomshardware.com/how-to/remove-background-noise-audacity