Fork me on GitHub
#ldnclj
<
2015-06-23
>
steven09:06:51

@martintrojer: Cool article! I’m not sure if you’re open to suggestions/modifications, but there will be situations when you are forced to do so if you adopt a typed workflow would be even better with an example. As a reader who hasn’t tried core.typed, my imagination can’t decide if these would be meaningful, in-the-end-you’ll-thank-me refactorings like Haskell would shove down my throat, or if they would just expose immaturity in core.typed that I’d have to work around as a user (or both?).

steven09:06:57

Thanks for writing this. simple_smile

martintrojer09:06:11

steven: thanks, its a delicate balance between the length of the post and the number of details you can cram in there.

steven09:06:17

@martintrojer: Totally. simple_smile You could probably write a small book if you wanted to explore details. It actually feels really balanced with the external links.

steven09:06:10

Upvoted. You’re still page 4, fwiw

martintrojer09:06:32

Interestingly is its combination of imperfect annotations in core.typed

martintrojer09:06:14

… and some forms that is not possible to correctly annotate

martintrojer09:06:48

the latter is more a active research area I believe where the Typed Racket ppl needs a brain wave to solve it for us simple_smile

martintrojer09:06:47

So its not exactly a ‘you-should-use-a-state-monad-transformer-here-dumbo’ haskell kind of thing.

steven09:06:57

I’d definitely be interested in an entire article on the latter (in a clj context, at least… not enough hours in my life to start caring about typed racket).

martintrojer10:06:31

The reason I mention Typed Racket is that is provides the theoretical underpinnings of core.typed.

steven10:06:53

Yeah, makes sense. It’s a curmudgeonly position to take, but because I would probably never build production software in TR, I’m unlikely to explore it much. c.t offers only limited appeal on its own, but articles like yours chip away at me, since there’s the “you could retrofit this to your legacy clj codebase” angle. simple_smile

ambrosebs12:06:15

martintrojer: actually I'm in a good position to improve the type inference drastically in Typed Clojure. an XML processing language called CDuce is a goldmine for complete local type inference which I've been studying since January.

ambrosebs12:06:39

it will probably come next after gradual typing, the rationale being type checking transducers

ambrosebs12:06:10

since it's almost always polymorphic functions applied to complicated args, you need to instantiate most transducers.

martintrojer13:06:46

ambrosebs: cool

agile_geek18:06:23

@tcrayford: Tom, been playing with matcha and I like it but I have one comment: the error messages format poorly when run from clojure.test e.g.

expected: "\"{\\\"message\\\":\\\"This is a new message!\\\"}\""
  actual: "nil\n\n    diff:\n       +: \"{\\\"message\\\":\\\"This is a new message!\\\"}\"\n\n       -: nil\n”

agile_geek18:06:01

Am I just misusing it?

xlevus19:06:11

just switched to solarized colourscheme... Holy poop rainbows. http://i.imgur.com/TtvdZo1.png