Soul of a mathematician

California, USA
Joined September 2019
Pinned Tweet
Eitan Chatav retweeted
Those who know don’t tweet. Those who tweet don’t know.
3
2
20
Eitan Chatav retweeted
In 1945 Richard Feynman’s wife died. Afterwards he wrote her a love letter. At its end he apologized for not mailing it because he didn’t have her current address. The letter was found among his effects after he died in 1988.
1
5
42
2,536
A `DisjunctiveMonoid` is just a monoid. The only difference is semantic. It means "or" disjunction. One wishes that `Alternative f` implied `DisjunctiveMonoid (f x)`, but we can have the next best thing and use `Alternative` for default methods.
1
3
8
389
JSON tuples are static arrays like Haskell tuples. By allowing array type widening, we can actually give tuples the full `Alternator` combinator set over JSON values.
2
1
33
I should say that tuples are static arrays with JSON value elements which can be required, optional using `optionalP`, or variadic using `manyP`.
13
Everything is abstracted behind typeclasses; that is all that is meant by "tagless final" embedding. You can make new grammar generators (like printers, parsers and typescript types) and new grammars separately but compatibly.
1
1
10
I'm working on getting printing and parsing of Json instances as fast as aeson. Claude is very helpful. This is all work-in-progress.
1
10