clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
jiriknesl 2020-11-05T04:21:57.378400Z

Morning

dharrigan 2020-11-05T06:39:01.378600Z

Good Morning!

djm 2020-11-05T07:31:44.378800Z

👋

rlj 2020-11-05T07:50:36.379Z

Mornin

Alex J Henderson 2020-11-05T08:34:16.379200Z

moaning

thomas 2020-11-05T08:41:49.379400Z

mogge

Russ Anderson 2020-11-05T08:59:35.379700Z

Mornin'

alexlynham 2020-11-05T09:10:51.379800Z

morning

2020-11-05T09:13:01.380Z

👋

alexlynham 2020-11-05T09:13:52.380100Z

whoa

alexlynham 2020-11-05T09:13:59.380300Z

okay, won't recommend that book in future then

alexlynham 2020-11-05T09:14:02.380500Z

what an arsehole

alexlynham 2020-11-05T09:14:17.380700Z

well... yeah

alexlynham 2020-11-05T09:14:19.380900Z

kinda

alexlynham 2020-11-05T09:14:22.381100Z

that's what i mean

alexlynham 2020-11-05T09:15:06.381300Z

i think it would be very hard to argue that spec is more simple than monads for ex

alexlynham 2020-11-05T09:15:22.381500Z

and given the selector stuff is going in the direction of lenses too 🤷

alexlynham 2020-11-05T09:15:43.381700Z

"One day I will find the right words, and they will be simple."

alexlynham 2020-11-05T09:15:47.381900Z

the quest continues

yogidevbear 2020-11-05T09:17:23.382200Z

o/

Conor 2020-11-05T09:17:38.382300Z

To be fair, it is a good book. But Julie Moronuki has also written a book with a guy called Chris who probably isn't a knob

mccraigmccraig 2020-11-05T09:20:23.382600Z

måning!

alexlynham 2020-11-05T09:25:54.382700Z

what is it about the haskell community, sheesh

alexlynham 2020-11-05T09:26:28.382900Z

to quote lisa simpson, "this is why we can't have nice things"

2020-11-05T09:40:47.383100Z

Well, I wonder if your feeling is essentially because a large part of mathematics essentially boils down to being a rigorous discipline for decomposing things into small pieces and composing them together. Finding the simplest formulation of an idea etc. Therefore anything sufficiently mirroring mathematical formalisms will almost by definition be simple in the sense Rich means. I think spec meets actually meets a similar theoretical standard to monads. Though monads and spec tackle different problems so it’s a bit apples and oranges, and unfair to say monads are simpler (better or more elegant) than spec, because the complexity of the initial problem is different. Still, spec is based on pretty rigorous foundations (parsing with derivatives) which describes how specs can be composed from simple predicate functions. I also think when you’re comparing monads to spec there; you’re actually comparing the trade offs in the implementations rather than the theoretic underpinnings. spec definitely makes a bunch of easy compromises by complecting certain non-theoretical things. For example being able to reuse specs for generative testing, or having a global registry of specs etc, maybe also the syntax being a bit verbose etc.

jasonbell 2020-11-05T10:28:35.383400Z

Morning

alexlynham 2020-11-05T10:30:04.383500Z

yeah that's fair

alexlynham 2020-11-05T10:30:56.383700Z

i guess i've used both and found monads + plumatic schema to be the most natural fit for what i want to do but maybe the crossover between monads + spec isn't quite as clear cut as it feels to me

alexlynham 2020-11-05T10:31:11.383900Z

they feel like they sit enough in the same space that they don't coexist well

alexlynham 2020-11-05T10:31:49.384100Z

whereas schema is hands-off enough to be a natural build on the essential power of homoiconicity for the kinda serialisation/deserialisation/run time validation i wanna do in a composable way :thinking_face:

2020-11-05T10:50:08.384300Z

there are two Chrises in the story, coauthor of the Haskell Book is Chris Allen, Joy of Haskell is co-written with Chris Martin: https://joyofhaskell.com/

agile_geek 2020-11-05T11:11:18.384800Z

Bore da :welsh_flag:

afhammad 2020-11-05T11:51:00.386Z

Is it just me or do Clojurians tend to slip the words (Juxtaposition, Complect, Reify) into normal conversations more than the average person?

jasonbell 2020-11-05T11:51:11.386200Z

Yes

afhammad 2020-11-05T11:51:59.386600Z

Yes it's just me or Yes they do 😄?

alexlynham 2020-11-05T11:54:15.386700Z

not sure about juxtaposition but the other two yes

alexlynham 2020-11-05T11:54:20.386800Z

no other humans say complect

1😀
2020-11-05T11:55:07.387300Z

Man, I really need to decomplect my sentences sometimes…

dharrigan 2020-11-05T11:57:29.387900Z

I've started to use "I have to go and grab some hammock time" more frequently when talking with fellow cow-orkers.

1😀1😺
alexlynham 2020-11-05T12:01:02.388Z

we say hammock time a lot on my current (typescript) project, but only cos most of us actually have hammocks haha

1👍1
reborg 2020-11-05T12:28:35.388400Z

I’d like to contribute to this thread by “accretion” of this message.

2020-11-05T12:30:56.389100Z

previously I'd only heard 'accretion' used in connection with Black Holes

dharrigan 2020-11-05T13:00:41.389700Z

Oh, that's a word I'm also using more of "accrete"

2020-11-05T13:51:13.389900Z

I don’t think of monads and spec as being particularly related. The closest I can probably put my finger on is that in a strongly type checked language like Haskell, a monad, or essentially any pattern imposed in types, would prevent you from doing a bunch of things (they’d also imply you can do other things of course). Specs I guess are about you preventing certain shapes of data. Also both are compositional systems,… so perhaps similar in those ways; but ultimately I think very different. I’d say spec is more similar to type systems than to monads (which are in Haskell at least an abstraction expressed as types within that type system). Monads enable a specific type of composition; but I’d say the typed lambda calculus is really the thing providing the compositional similarity between monads and spec that I think you’re highlighting.

alexlynham 2020-11-05T14:04:07.390100Z

my dad always used 'accrete' for bathroom grime

alexlynham 2020-11-05T15:03:21.390300Z

hmmm

2020-11-05T15:54:57.391100Z

as in-sane as a Parisian wild-swimmer