122 karma · joined Feb 8, 2025 (1y ago) · 47 submissions
comment 2w ago · link · parent
I actively use it for most programming, these days (command-line only), and use it every year during Advent of Code.
comment 1mo ago · link · parent
comment 1mo ago · link · parent
fmap f Nothing = Nothing
fmap f (Just x) = Just (f x)
pure x = Just x
Nothing >>= f = Nothing
Just x >>= f = f xcomment 1mo ago · link · parent
comment 1mo ago · link · parent
https://github.com/taolson/Admiran/blob/main/examples/fizzBu...
/s
comment 2mo ago · link · parent
https://en.wikipedia.org/wiki/Saab_35_Draken
Especially the top view:
https://www.flyajetfighter.com/wp-content/uploads/2025/09/Sa...
comment 3mo ago · link · parent
comment 3mo ago · link · parent
gr2 and gr3 were used in the 29050 for FP condition code registers, but otherwise I'm pretty sure accessing the rest caused a trap.
comment 3mo ago · link · parent
Very impressive work -- congratulations!
comment 6mo ago · link · parent
comment 7mo ago · link · parent
isUpperStart : String -> Bool
isUpperStart name =
case String.slice 0 1 name of
"A" ->
True
"B" ->
True
"C" ->
True
... for 23 more cases.
And the corresponding go code in the bootstrap compiler is even worse.comment 8mo ago · link · parent
foldr f z = go
where
go [] = z
go (x : xs) = f x (go xs)
when called with (+) and 0 can be inlined togo xs = case xs of
[] -> 0
(x : xs) = x + go xs
which doesn't have to create a closure to pass around the function and zero value, and can subsequently inline (+), etc.23.
Show HN: Admiran: a pure, lazy functional language and self-hosting compiler(github.com ↗)
2 points · by taolson · 8mo ago · discuss
comment 9mo ago · link · parent
That's what led to Admiran. I originally wrote Admiran in Miranda, then bootstrapped from that to self-hosting when it was stable enough to do so. The original Miranda combinator compiler / interpreter took 20 minutes to compile all of Admiran, while the self-hosted version now takes 20 seconds.
One of the grad students of David Turner has taken up maintenance on the original Miranda source; the repository is now at https://codeberg.org/DATurner/miranda
comment 9mo ago · link · parent
comment 9mo ago · link · parent
https://old.reddit.com/r/talesfromtechsupport/comments/cp48t...