Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
oriba has quit [Ping timeout: 250 seconds]
bgs has quit [Ping timeout: 240 seconds]
bgs has joined #ocaml
rgrinberg has joined #ocaml
bgs has quit [Read error: Connection reset by peer]
bgs has joined #ocaml
vicfred has quit [Quit: Leaving]
sparogy has quit [Remote host closed the connection]
sparogy has joined #ocaml
<d_bot> <cemerick> hey, that looks promising, thanks!
spip has quit [Ping timeout: 240 seconds]
spip has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
mbuf has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
Haudegen has joined #ocaml
<d_bot> <darrenldl> @cemerick Timedesc.Span.For_human.pp does that partially somewhat i think: https://daypack-dev.github.io/timere/timedesc/Timedesc/Span/For_human/index.html#pretty-printing
<d_bot> <darrenldl> missing "ago" and so on
<d_bot> <darrenldl> and no rounding facilities
<d_bot> <darrenldl> (though you can round it before feeding it into the pretty printer
gravicappa has joined #ocaml
mro has joined #ocaml
shawnw has joined #ocaml
dalek-caan has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
humasect has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
dmbaturin has quit [Remote host closed the connection]
Geekingfrog has quit [Quit: ZNC 1.8.2 - https://znc.in]
Geekingfrog has joined #ocaml
dmbaturin has joined #ocaml
mro has quit [Remote host closed the connection]
bobo_ has joined #ocaml
spip has quit [Ping timeout: 250 seconds]
jlrnick has joined #ocaml
olle has joined #ocaml
kakadu has joined #ocaml
mro has joined #ocaml
ouestbillie has quit [Ping timeout: 240 seconds]
ouestbillie has joined #ocaml
ocabot has quit [Ping timeout: 256 seconds]
ocabot has joined #ocaml
Cypi_ has quit [Ping timeout: 256 seconds]
companion_cube has quit [Ping timeout: 256 seconds]
Cypi has joined #ocaml
kandu has quit [Ping timeout: 256 seconds]
kandu has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
companion_cube has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
waleee has joined #ocaml
waleee has quit [Ping timeout: 250 seconds]
mro has joined #ocaml
bartholin has joined #ocaml
olle has quit [Ping timeout: 256 seconds]
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
mro has quit [Remote host closed the connection]
<d_bot> <Et7f3> Can we have local abstract type with tag
<d_bot> <Et7f3> What I try is https://gist.github.com/Et7f3/3b4f09ddf5ac1eacf0f4a360d8154d32 I wanted having timeout: `?(timeout: ('a handler, return) onTimeout option)` so I could return `'a Lwt.t` but it doesn't seem possible
<d_bot> <Et7f3> Other thing I tried is remove local abstract `return` and just use `'return` but I get type constructor would escape it scope
<d_bot> <bnguyenv> No I don't think you can, there are no higher-kinded types in OCaml. You can put the type that you want as one of the GADT parameters to be able to return it though.
<d_bot> <NULL> What you want is a parametric abstract type, or higher-kinded?
<d_bot> <Et7f3> This what I tried with the second type
<d_bot> <Et7f3> I think parametric abstract type
<d_bot> <Et7f3> My goal is to keep timeout optional with default value to NoTimeout but erf
<d_bot> <octachron> If you meant having a higher-kinded local abstract type, this is not possible and not well-defined in presence of type abbreviations . Consider `type 'a t = 'a * 'a option` `type 'a s = int * 'a` is `int * int option` an `int t` or an `int option s`?
<d_bot> <Et7f3> I see `type 'a t = 'a * 'a option` but don't see `type 'a s = int * 'a` in my example.
<d_bot> <octachron> Optional arguments are sugar for the standard option type, they must have the same type in the default case. You can have a gadt enhanced version of option that allows `Default` to have a narrower type, but without the optional argument syntax, it is probably simpler to let users use `NoTimeOut` directly.
<d_bot> <Et7f3> Ok
mro has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
Haudegen has quit [Quit: Bin weg.]
olle has joined #ocaml
mg_ has quit [Quit: WeeChat 3.2.1]
mg has joined #ocaml
mro has quit [Remote host closed the connection]
spip has joined #ocaml
bobo_ has quit [Ping timeout: 240 seconds]
<d_bot> <cemerick> thanks, I'll take a look 🙂
mro has joined #ocaml
Haudegen has joined #ocaml
mro has quit [Ping timeout: 240 seconds]
jlrnick has quit [Ping timeout: 256 seconds]
adanwan_ has joined #ocaml
adanwan has quit [Ping timeout: 276 seconds]
shawnw has quit [Ping timeout: 256 seconds]
bobo_ has joined #ocaml
spip has quit [Ping timeout: 252 seconds]
waleee has joined #ocaml
humasect has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Ping timeout: 250 seconds]
<companion_cube> tarides ∪ ocamllabs, damn
<d_bot> <VPhantom> Wow, did not see that one coming.
<d_bot> <VPhantom> Argh scratch that, I misread Tarides as Tezos. I'll go sit in the corner now. 🤪
gravicappa has quit [Ping timeout: 256 seconds]
<d_bot> <Bluddy> I'm confused. Wasn't OCaml Labs part of Cambridge? I didn't realize it was a separate private entity.
humasect has joined #ocaml
<d_bot> <Bluddy> looks like it became a consultancy. didn't know
humasect has quit [Ping timeout: 260 seconds]
mro has joined #ocaml
ouestbillie has quit [Ping timeout: 240 seconds]
mro has quit [Ping timeout: 256 seconds]
ouestbillie has joined #ocaml
mbuf has quit [Quit: Leaving]
humasect has joined #ocaml
rgrinberg has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
szkl has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
gravicappa has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
mro has quit [Remote host closed the connection]
<sadiq> OCaml Labs was/is a research group in the university and OCaml Labs Ltd was the commercial arm which outgrew it.
<sadiq> (the research group also spun out Tardies and Segfault)
wyrd has quit [Ping timeout: 276 seconds]
wyrd has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
ravella has joined #ocaml
rgrinberg has joined #ocaml
Tuplanolla has joined #ocaml
Haudegen has joined #ocaml
bartholin has quit [Quit: Leaving]
olle has quit [Ping timeout: 268 seconds]
<d_bot> <RegularSpatula> Is ocamlgraph (https://opam.ocaml.org/packages/ocamlgraph/) the most typically used graph library?
<companion_cube> probably, yes
<d_bot> <monk> cross posting from #beginners but i translated linear-arithmetic deletion for persistent redblack trees from this racket paper if anyone is interested
<d_bot> <monk>
<d_bot> <monk>
<companion_cube> if you want to test it thoroughly, you could try crowbar or qcheck, btw
<companion_cube> invariants are tricky
<d_bot> <monk> i really should check out qcheck and see if i can learn to use it for this
<companion_cube> jmid has a lecture on it: https://janmidtgaard.dk/quickcheck/index.html
<companion_cube> > Modules, shrinking, and model-based testing of Patricia trees
<companion_cube> oh well :D
<d_bot> <undu> crowbar was helpful and fast in finding issues when run in qcheck style, I tried it with AFl for fuzzing but didn't find any additional errors. the tests where quite simplistic
<d_bot> <monk> this is an awesome resource, thank you
<d_bot> <zakkor> Any idea how to get rid of these kinds of warnings?
<companion_cube> hmm you might have to recompile your switch
dalek-caan has quit [Quit: dalek-caan]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
vicfred has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
rgrinberg has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
jlrnick has joined #ocaml
shawnw has joined #ocaml
humasect has quit [Remote host closed the connection]
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
olle has joined #ocaml
lispy has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
shawnw has quit [Ping timeout: 250 seconds]
mro has quit [Quit: Leaving...]
gravicappa has quit [Ping timeout: 260 seconds]
cedric has joined #ocaml
<d_bot> <zakkor> trying `opam switch reinstall default` now
<d_bot> <zakkor> that didn't help
cedric has quit [Quit: Konversation terminated!]
cedric has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cedric has quit [Quit: Konversation terminated!]
cedric has joined #ocaml
Serpent7776 has quit [Quit: leaving]
<companion_cube> you might need to reinstall the compiler itself
<companion_cube> `opam reinstall ocaml --unlock-base` probably
lispy has quit [Remote host closed the connection]
ouestbillie has quit [Ping timeout: 260 seconds]
ouestbillie has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
lispy2 has joined #ocaml
lispy2 is now known as lispy
olle has quit [Ping timeout: 240 seconds]