
go forth, my statically typed minions. Eval! Apply!
Joined January 2014
- Tweets267
- Following18
- Followers2.6K
- Likes167
Create a Brobdingnagian monstrosity of 1.2m lines of Haskell. That way, the tooling you create to make working on it tolerable will be practically instant on codebases that don’t need 18 lanes for a 3 point turn.
(With love and appreciation, @mercury)
“Semigroup” and “Monoid” are exclusionary terminology. Prefer “smashy-smashy” and “smashy-smashy-with-extra-nothing”.
It's spooky. It's esoteric. It's also the key to understanding the rise and relevance of functional programming. wired.trib.al/qNfcKv9
Tired of probabilistic correctness guarantees?
instance Arbitrary UUID where
…
shrink uuid = case UUID.toWords uuid of
(a,b,c,d) -> [UUID.fromWords a' b' c' d' | a' <- sw a, b' <- sw b, c' <- sw c, d' <- sw d]
where sw w = take 10 $ iterate (`div` 2) w
The great thing about using Haskell with LLMs is that you can be absolutely precise about the nonsense you are ingesting and emitting.
9
796
Testing is for programmers lacking the moral fibre to prove every useful property about their code in the type system.
If you're writing a parser for some type t, one fun thing to omit is a way to turn it back into a string. Easy visualisation, canonicalisation and roundtrip properties are for people who insist on putting bugs in their code and there is no reason to coddle them.
6
683
Be judicious in your character builds: if you dump a lot of points into optics you’ll find it difficult to fit into a hessian-and-sackcloth simple-Haskell adventuring party.
8
If you are having difficulty making your Haskell sufficiently evil, you could give up and go back to Perl, or you could implement @ghc2031 ‘s visionary extensions.
4
Step 1: use a lazy language
Step 2: instead of benchmarking, assume laziness is the problem and rewrite every use of lists into vectors.
Step 3: be amazed when it doesn’t help.
Step 4: profit!
(Step 0 was to assume you were smarter than everybody else about everything.)
Replying to @arachnocapital2 @QuinnyPig
They wanted to be able to adaptively work out how to get a given set of tasks done in minimum time.
This is why I was assigned an optimisation task before the benchmarks were finished, over my strenuous objections. (The optimisation was not faster, you’ll be shocked to hear.)
Ivory towers require gatekeepers. Remember, avoid success, at all costs.















