adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
iovec has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ocaml
MadcapJake has quit [Ping timeout: 272 seconds]
pierpal has quit [Ping timeout: 240 seconds]
pierpal has joined #ocaml
ziyourenxiang has joined #ocaml
MadcapJake has joined #ocaml
FreeBirdLjj has joined #ocaml
Haudegen has quit [Remote host closed the connection]
silver_ has quit [Read error: Connection reset by peer]
mfp has quit [Ping timeout: 250 seconds]
keep_learning has joined #ocaml
keep_learning has quit [Quit: Ping timeout (120 seconds)]
keep_learning has joined #ocaml
tormen_ has joined #ocaml
h11 has quit [Ping timeout: 250 seconds]
h11 has joined #ocaml
tormen has quit [Ping timeout: 240 seconds]
r3s1stanc3_ has joined #ocaml
r3s1stanc3 has quit [Ping timeout: 240 seconds]
kvda has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
johnelse has quit [Ping timeout: 240 seconds]
johnelse has joined #ocaml
sheijk has quit [Remote host closed the connection]
sheijk has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mhcat has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
themsay has quit [Ping timeout: 240 seconds]
marvin2 has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ocaml
FreeBirdLjj has joined #ocaml
gravicappa has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 272 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
Spetznaz_ has quit [Ping timeout: 244 seconds]
snhmib has joined #ocaml
FreeBirdLjj has joined #ocaml
rymdhund has joined #ocaml
rymdhund has quit [Quit: WeeChat 1.6]
snhmib has quit [Quit: WeeChat 1.6]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
FreeBird_ has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
ravenousmoose has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
_whitelogger has joined #ocaml
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
ravenousmoose has joined #ocaml
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
Serpent7776 has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Haudegen has joined #ocaml
FreeBirdLjj has quit [Read error: Connection reset by peer]
mfp has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
nullifidian__ has joined #ocaml
nullifidian_ has quit [Ping timeout: 240 seconds]
asymptotically has joined #ocaml
jnavila has joined #ocaml
decentpenguin has joined #ocaml
averell has quit [Ping timeout: 252 seconds]
silver has joined #ocaml
FreeBirdLjj has joined #ocaml
iovec has joined #ocaml
averell has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
ravenousmoose has joined #ocaml
themsay has joined #ocaml
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
themsay has quit [Ping timeout: 240 seconds]
themsay has joined #ocaml
<Leonidas> if I can't run perl code in my regular expressions, I am not interested
jnavila has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #ocaml
jnavila has joined #ocaml
nullifidian__ has quit [Ping timeout: 245 seconds]
nullifidian has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
jao has joined #ocaml
FreeBirdLjj has quit [Read error: Connection reset by peer]
iovec has quit [Quit: Connection closed for inactivity]
klntsky has quit [Quit: WeeChat 1.6]
nullifidian_ has joined #ocaml
ravenousmoose has joined #ocaml
jao has quit [Remote host closed the connection]
nullifidian has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
ravenousmoose has quit [Quit: Taking a quick nap...ZZzzz]
decentpenguin has quit [Quit: WeeChat 2.3]
gareppa has joined #ocaml
gareppa has quit [Quit: Leaving]
iovec has joined #ocaml
MadcapJake has quit [Remote host closed the connection]
MadcapJake has joined #ocaml
jnavila has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
mhcat has joined #ocaml
mhcat is now known as Guest61195
Guest61195 has left #ocaml [#ocaml]
<companion_cube> 💯
zolk3ri has joined #ocaml
Ulrar has quit [Ping timeout: 252 seconds]
Haudegen has quit [Remote host closed the connection]
Ulrar has joined #ocaml
tane has joined #ocaml
Jesin has quit [Quit: Leaving]
Haudegen has joined #ocaml
Jesin has joined #ocaml
jnavila has quit [Remote host closed the connection]
kakadu_ has joined #ocaml
pierpal has quit [Ping timeout: 268 seconds]
gravicappa has quit [Ping timeout: 245 seconds]
themsay has quit [Ping timeout: 245 seconds]
<cemerick> Drup: thanks :-)
<cemerick> (also: wow, mantis!)
cantstanya has quit [Ping timeout: 256 seconds]
<Drup> "wow" indeed.
cantstanya has joined #ocaml
<companion_cube> "wow" 🙄🐶
<companion_cube> (anyone knows how to run tests in the docker travis script?)
<Drup> it should run by itself if the tests are in the opam file
<companion_cube> ah there's "Simple.test"
<companion_cube> ok cool there's indeed `dune runtest`, it's silent so I didn't pay attention earlier, cool.
<companion_cube> well that's neat, thanks Drup.
<Drup> companion_cube: hmm, did you remove the sequence2 type ?
<Drup> ('a -> 'b -> unit) -> unit
<companion_cube> it's been a while
<Drup> Oh ? Never used it before
<companion_cube> came in 1.0
<Drup> is the perf diff useless ?
<Drup> (compared to sequence of pairs)
<companion_cube> it's more that it sorely lacked combinators, and with proper inlining pairs should be ok
<companion_cube> but returning a Sequence.t2 from, say, a map, was awfully non-ergonomic
<Drup> true
<companion_cube> (I was always using `zip` to turn `('a,'b) t2` into `('a*'b) t`
<companion_cube> so what's the point?)
<cemerick> can someone shed some light on this error? https://gist.github.com/cemerick/4208e2e5d748c820b21c053c5eec007a
<cemerick> I'm matching through some json, and want to call a function to raise an exception if unexpected things are seen
<cemerick> `let malformed msg json = raise @@ MalformedPayload (msg, json)`
<cemerick> but _some_ calls like `| other -> malformed "saw bad thing in foo" other` produce the above error
<cemerick> meanwhile, other calls (https://gist.github.com/cemerick/de768694a408e5b732aab65204cde819) work just fine
<octachron> cemerick, the error looks like you are lacking an explict coercion
<cemerick> octachron: yeah, even a full coercion (`(other : [< `Assoc of (string * Yojson.Basic.t) list ] :> Yojson.Basic.t)`) just repeats the underlying problem as far as it's concerned (`this expression has type [> `Assoc of ...] but an expression was expected of type [< `Assoc of (string * Yojson.Basic.t) list ]`)
<cemerick> thanks for the keyword though, will do some reading on coercions, etc
<cemerick> it seems that in the problematic cases, the cases above the catch-all end up overspecializing the type of `other`...but I'd expect a fn accepting `Yojson.Basic.t` would accept any of its variants, even a known subset
<companion_cube> maybe subtyping doesn't work through recursion in this case
<companion_cube> although you can cast from Basic to Safe \o/
<cemerick> got it
<cemerick> octachron: thank you for the hint
<cemerick> down two levels, I had a function that explicitly only accepted an `Assoc
eni has joined #ocaml
eni has quit [Quit: Leaving]
iovec has quit [Quit: Connection closed for inactivity]
Serpent7776 has quit [Quit: leaving]
zolk3ri has quit [Remote host closed the connection]
tane has quit [Quit: Leaving]
asymptotically has quit [Quit: Leaving]
<Leonidas> cemerick: are you reinventing ppx_deriving_yojson by any chance?
<companion_cube> hmm mdx for testing a readme is pretty cool
kakadu_ has quit [Remote host closed the connection]
<cemerick> Leonidas: not really. The model on question isn't particularly large, and I don't actually want a point-for-point deserialization. I'd just be writing my own ty_of_yojson funs (almost) everywhere
<cemerick> I went down that road with aeson last year 🙃
themsay has joined #ocaml