Pixietown

Boosted by thufie Goo Truther contains_thc

I have forked the #haskell magic library after a new maintainer gummed it all up with LLM slop

Compare the LLM generated code with my code. These 77 and 4 lines of code do essentially the same thing, except mine is twice as fast, avoids ifdefs, and doesn't have large nonsense comment blocks about encodings.

https://git.joeyh.name/index.cgi/haskell-libmagic.git/tree/Magic/Operations.hsc#n46

https://github.com/philippedev101/magic-haskell/blob/f52a3628626644d68e1cd1d2c36e98f78693bda5/src/Magic/Internal.hs#L157

In the LLMs's defense, my code contains the first use of System.OsString.coercionToPlatformTypes that I can find on the internet, so it had nothing to steal the good way to do it from.