companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Techcable has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Quit: Leaving.]
keyboard has quit [Ping timeout: 260 seconds]
azimut has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #ocaml
John_Ivan__ has joined #ocaml
John_Ivan_ has quit [Ping timeout: 260 seconds]
hsw_ has joined #ocaml
hsw has quit [Ping timeout: 256 seconds]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
chrisz has quit [Ping timeout: 260 seconds]
chrisz has joined #ocaml
infinity0 has quit [Ping timeout: 252 seconds]
gwizon has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
mbuf has joined #ocaml
Techcable has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
rgrinberg has joined #ocaml
bgs has joined #ocaml
wingsorc has quit [Ping timeout: 240 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pieguy128 has quit [Quit: ZNC 1.8.2 - https://znc.in]
pieguy128 has joined #ocaml
calvnce has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
mro has joined #ocaml
bgs has quit [Remote host closed the connection]
xd1le has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 256 seconds]
bartholin has quit [Quit: Leaving]
Haudegen has joined #ocaml
maiste has joined #ocaml
maiste has quit [Client Quit]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
dnh has joined #ocaml
olle has joined #ocaml
mro has quit [Remote host closed the connection]
Serpent7776 has quit [Quit: WeeChat 1.9.1]
Serpent7776 has joined #ocaml
neiluj has joined #ocaml
<neiluj> Hi! do you know if there is a mock library of domainslib for ocaml4 (same api for multicore ocaml, but sequential computation)?
kakadu has joined #ocaml
<sadiq> not that I'm aware of
<neiluj> all right thanks!
calvnce has quit [Quit: Client closed]
<neiluj> aha! looks like someone worked on it! https://github.com/ocaml-multicore/domainslib/compare/master...4.x
keyboard has joined #ocaml
Techcable has quit [Read error: Connection reset by peer]
infinity0 has joined #ocaml
keyboard has quit [Ping timeout: 240 seconds]
Techcable has joined #ocaml
Techcable has quit [Remote host closed the connection]
Techcable has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Techcable has quit [Read error: Connection reset by peer]
dnh has joined #ocaml
neiluj has quit [Ping timeout: 256 seconds]
neiluj has joined #ocaml
Techcable has joined #ocaml
xgqt has quit [Ping timeout: 260 seconds]
xgqt has joined #ocaml
jao has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
mro has joined #ocaml
mro has quit [Ping timeout: 260 seconds]
John_Ivan__ has quit [Ping timeout: 268 seconds]
gwizon has quit [Quit: Lost terminal]
gwizon has joined #ocaml
Haudegen has joined #ocaml
rgrinberg has joined #ocaml
<neiluj> when would you choose to refactor a bunch of functions with a functor instead of putting some functions as argument
<neiluj> ?
<olle> neiluj: when you need a new type?
<olle> functor allows you to inject type defs
<neiluj> thanks olle! then I don't need a functor
azimut has quit [Ping timeout: 255 seconds]
<neiluj> plus I guess functor instantiation has a cost
<olle> a record can also have functions, I guess
<olle> Not sure how common that is
azimut has joined #ocaml
<neiluj> yeah, trying to write relatively clean code :)
<neiluj> yeah, worked on a project which managed dependency injection with records of functions
<olle> oh, there you go
<olle> "clean code" eh
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
sagax has quit [Ping timeout: 246 seconds]
gwizon has quit [Quit: Lost terminal]
troydm has quit [Ping timeout: 260 seconds]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
gwizon has joined #ocaml
xd1le has quit [Quit: xd1le]
gwizon has quit [Client Quit]
gwizon has joined #ocaml
gwizon_ has joined #ocaml
gwizon has quit [Client Quit]
gwizon_ has quit [Client Quit]
gwizon has joined #ocaml
gwizon_ has joined #ocaml
gwizon_ has quit [Client Quit]
gwizon has quit [Client Quit]
gwizon has joined #ocaml
gwizon has quit [Client Quit]
gwizon has joined #ocaml
<qwr> afaik functor instantation should happen at compile time? so its cost should be static
<companion_cube> it can still create a record at runtime
<neiluj> what kind of record?
<companion_cube> a block with a field for each value in the functor's output
<octachron> functor are ordinary functions in term of semantics. Flambda does try a little harder to inline them however.
<neiluj> is it okay to duplicate a bit of similar code but work with completely different types?
<neiluj> or should strive to refactor as much as possible?
Serpent7776 has quit [Quit: WeeChat 1.9.1]
Serpent7776 has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kakadu has quit [Quit: Konversation terminated!]
Haudegen has quit [Quit: Bin weg.]
keyboard has joined #ocaml
bartholin has joined #ocaml
<neiluj> anyways, if a code works, it works
hackinghorn has quit [Ping timeout: 240 seconds]
Tuplanolla has joined #ocaml
neiluj has quit [Quit: WeeChat 3.6]
emp has quit [Ping timeout: 246 seconds]
hackinghorn has joined #ocaml
mbuf has quit [Quit: Leaving]
keyboard has quit [Quit: keyboard]
emp has joined #ocaml
Haudegen has joined #ocaml
emp has quit [Ping timeout: 256 seconds]
bartholin has quit [Quit: Leaving]
troydm has joined #ocaml
dmbaturin has quit [Remote host closed the connection]
emp has joined #ocaml
dmbaturin has joined #ocaml
Serpent7776 has quit [Ping timeout: 240 seconds]
troydm has quit [Ping timeout: 256 seconds]
mro has joined #ocaml
mro has quit [Ping timeout: 268 seconds]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
dmbaturin has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
dmbaturin has joined #ocaml
waleee has joined #ocaml
wingsorc has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 256 seconds]
bgs has joined #ocaml
random-jellyfish has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
troydm has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #ocaml
mro has quit [Read error: Connection reset by peer]
mro has joined #ocaml
rf has joined #ocaml
<rf> Hey folks, do you guys know how to convert a list of Yojson assocs to a json object?
<rf> Something like Yojson.Safe.t list -> Yojson.Safe.t
bartholin has joined #ocaml
<rf> Figured it out. Just had to step back and realize I can make string * Yojson.Safe.t a `Assoc
bgs has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olle has quit [Ping timeout: 268 seconds]
random-jellyfish has quit [Quit: Client closed]
bartholin has quit [Quit: Leaving]
mro has quit [Quit: Leaving...]
rgrinberg has joined #ocaml