companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
rf has quit [Ping timeout: 260 seconds]
rf has joined #ocaml
rf has quit [Read error: Connection reset by peer]
waleee has quit [Ping timeout: 240 seconds]
leah2 has quit [Server closed connection]
leah2 has joined #ocaml
chrisz_ has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
midgard has quit [Server closed connection]
midgard has joined #ocaml
spip has quit [Ping timeout: 240 seconds]
azimut has quit [Ping timeout: 240 seconds]
dh` has quit [Ping timeout: 240 seconds]
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
dh` has joined #ocaml
spip has joined #ocaml
bartholin has quit [Quit: Leaving]
waleee has joined #ocaml
motherfsck has quit [Ping timeout: 240 seconds]
motherfsck has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #ocaml
motherfsck has quit [Ping timeout: 246 seconds]
<adrien> I spotted "bash" and "unit testing" in the history; shell script's error management is too broken, there's no hope
motherfsck has joined #ocaml
bgs has joined #ocaml
motherfsck has quit [Ping timeout: 246 seconds]
motherfsck has joined #ocaml
waleee has quit [Quit: WeeChat 3.8]
neiluj has joined #ocaml
<neiluj> hey! newbie question about objects: so in this code snippet: https://tpaste.us/Xy9e the syntax is not correct in the EllipticCurve module where I try to extend the meth module with a new method random
<neiluj> how to extend classes signatures here?
<neiluj> first it should be inherit t group
<discocaml> <xavierm02> Given several implementations of the same interface given by OCaml modules, it is (often) possible to define a dynamic implementation of that interface by wrapping the corresponding implementation with each value. When some binary operation of the dynamic implementation act differently depending on whether both operand use the same implementation or not, how should the equality between implementations be done?
<discocaml> <xavierm02> Here is a toy example where the interface is monoids and the dynamic implementation is the free product of all monoids : https://pastebin.com/1dEAa2ZP
<discocaml> <xavierm02> Since the polymorphic equality did not seem to work on first-class modules, I added a uid to each of them to be able to test for equality. And I would prefer avoiding the use of `Obj.magic`, but I'm not sure how to do that
<discocaml> <xavierm02> Given several implementations of the same interface given by OCaml modules, it is (often) possible to define a dynamic implementation of that interface by wrapping the corresponding implementation with each value. When some binary operation of the dynamic implementation act differently depending on whether both operand use the same implementation or not, how should the equality between implementations be tested?
<discocaml> <octachron> @xavierm02 , you can use an extensive variant to rediscover identity.
<discocaml> <octachron> neiluj: see the manual object chapter about object types (inheritance is for code reuse in implementation not for types).
<neiluj> thanks octachron!
bartholin has joined #ocaml
trillion_exabyte has quit [Ping timeout: 240 seconds]
azimut has joined #ocaml
neiluj has quit [Quit: WeeChat 3.8]
Tuplanolla has joined #ocaml
wingsorc has quit [Remote host closed the connection]
berberman has quit [Quit: ZNC 1.8.2 - https://znc.in]
berberman has joined #ocaml
wingsorc has joined #ocaml
wingsorc__ has joined #ocaml
wingsorc has quit [Ping timeout: 246 seconds]
wingsorc__ has quit [Read error: Connection reset by peer]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Quit: Leaving]
TrillionEuroNote has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
<companion_cube> damn, I got schooled by nojb 😂
<discocaml> <anmonteiro> dang
<discocaml> <anmonteiro> what an interesting bit of history 😛
<companion_cube> yeah I didn't realize that C99 added several useful things
<discocaml> <Alistair> What does cmm and cmo actually stand for?
<discocaml> <anmonteiro> I _think_ `cmm` is C-minus-minus?
<discocaml> <anmonteiro> and cmo for "caml object"?
bgs has quit [Remote host closed the connection]
Serpent7776 has quit [Ping timeout: 246 seconds]
bartholin has quit [Quit: Leaving]
wagle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wagle has joined #ocaml
wagle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wagle has joined #ocaml