rpcope has quit [Remote host closed the connection]
user___ has quit [Ping timeout: 240 seconds]
rpcope has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
mal`` has quit [Quit: Leaving]
mal`` has joined #ocaml
spew has joined #ocaml
mal`` has quit [Ping timeout: 240 seconds]
mal`` has joined #ocaml
RalfJ has quit [Ping timeout: 246 seconds]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 246 seconds]
RalfJ has joined #ocaml
Denommus has joined #ocaml
vyorkin has quit [Ping timeout: 246 seconds]
analogue has quit [Quit: Leaving]
Denommus has quit [Remote host closed the connection]
zolk3ri has quit [Quit: leaving]
zolk3ri has joined #ocaml
zolk3ri has quit [Ping timeout: 260 seconds]
jao has quit [Ping timeout: 276 seconds]
gravicappa has joined #ocaml
terrorjack__ has quit [Read error: Connection reset by peer]
pgiarrusso has quit [Ping timeout: 252 seconds]
robmyers has quit [Ping timeout: 276 seconds]
pgiarrusso has joined #ocaml
terrorjack__ has joined #ocaml
robmyers has joined #ocaml
user___ has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
<ross_pure>
pino|work: thanks again for your help yesterday, I managed to get everything working - after fixing the issue with not using caml_register_global_root() properly, the remaining problem was a dumb c mistake
spew has quit [Quit: Connection closed for inactivity]
narimiran has joined #ocaml
<pino|work>
ross_pure: oh ok, glad everything was solved :)
dmiles has quit [Ping timeout: 245 seconds]
dmiles has joined #ocaml
vyorkin has joined #ocaml
ggole has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
keep_learning has joined #ocaml
malina has quit [Remote host closed the connection]
mbuf has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ygrek has joined #ocaml
kvda has joined #ocaml
bartholin has quit [Ping timeout: 244 seconds]
Haudegen has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
barockobamo has joined #ocaml
ross_pure has quit [Quit: leaving]
gravicappa has quit [Ping timeout: 244 seconds]
gravicappa has joined #ocaml
laudecay has joined #ocaml
laudecay has quit [Changing host]
laudecay has joined #ocaml
laudecay has quit [Ping timeout: 276 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
vyorkin has quit [Ping timeout: 240 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
vyorkin has joined #ocaml
mfp has joined #ocaml
pino|work has quit [Quit: brb]
pino|work has joined #ocaml
nullifidian_ has quit [Read error: Connection reset by peer]
nullifidian_ has joined #ocaml
nullifidian_ is now known as nullifidian
jaar has joined #ocaml
<adrien>
is there an easy way to get the output of a given ppx?
<Khady>
otherwise when you are compiling with dune you can run _build/default/.ppx/SOMEHASH/ppx.exe your_file.ml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
malina has joined #ocaml
<adrien>
good to know, thanks
<adrien>
I'm using the Makefile generated by ocsigen-start so kind of stuck
<adrien>
and on that note, it seems msgpck isn't compatible with js_of_ocaml
<adrien>
:'(
<adrien>
(truncated values)
gareppa has joined #ocaml
ygrek_ has joined #ocaml
ygrek has quit [Ping timeout: 246 seconds]
vyorkin has quit [Read error: Connection reset by peer]
zolk3ri has joined #ocaml
ygrek_ has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
vyorkin has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
Haudegen has quit [Quit: Bin weg.]
zolk3ri_ has joined #ocaml
zolk3ri has quit [Ping timeout: 260 seconds]
zolk3ri_ is now known as zolk3ri
ygrek has joined #ocaml
crichoux has joined #ocaml
crichoux has joined #ocaml
crichoux has quit [Changing host]
jao has joined #ocaml
nullifidian_ has joined #ocaml
Haudegen has joined #ocaml
nullifidian has quit [Ping timeout: 240 seconds]
ravenous_ has joined #ocaml
silver has joined #ocaml
q9929t has joined #ocaml
crichoux has quit [Ping timeout: 240 seconds]
ravenous_ has quit [Ping timeout: 246 seconds]
gareppa has quit [Quit: Leaving]
Bahman has quit [Remote host closed the connection]
q9929t has quit [Quit: q9929t]
spew has joined #ocaml
Haudegen has quit [Ping timeout: 245 seconds]
vyorkin has quit [Ping timeout: 246 seconds]
wilfredh has joined #ocaml
<wilfredh>
hey folks :)
<wilfredh>
I've been wondering about .mlt files
<wilfredh>
what's the convention for these? I understand they're best for #use "foo.ml" syntax?
<wilfredh>
what does the t stand for?
vyorkin has joined #ocaml
user___ has quit [Ping timeout: 240 seconds]
<octachron>
wilfredh, the best use of mlt files is to never use them at all.
<octachron>
Nowadays, you should just use .ml files.
<octachron>
I am not sure what was the historical use case of mlt files
ygrek has quit [Ping timeout: 258 seconds]
gareppa has joined #ocaml
user___ has joined #ocaml
pino|work has quit [Quit: brb]
pino|work has joined #ocaml
malina has quit [Read error: Connection reset by peer]
malina has joined #ocaml
mbuf has quit [Quit: Leaving]
<wilfredh>
are they described anywhere? Sounds like they used to be used
<wilfredh>
and I hear ocamlformat will only format `#use` inside foo.mlt files
dmiles has quit [Ping timeout: 246 seconds]
dmiles has joined #ocaml
<smondet[m]>
octachron: I think .mlt where introduced by janestreet and picked-up by facebook for ocamlformat (since the toplevel is a ⌿ language ⇒ different extension). I don't think it is historical, AFAIK it's a quite recent thing? Why not use them, it's a good thing to separate them from "normal" ocaml files?
<octachron>
smondet[m], the mlt files already existed in 1995 ... I don't think that you can call that recent
<octachron>
But yeah, I didn't pick that ocamlformat has chosen to reuse this extension
malina has quit [Remote host closed the connection]
AtumT has joined #ocaml
tane has joined #ocaml
<octachron>
wilfredh, so it seems that mlt files were an undocumented file extensions for intermediary files that were produced by some of the ocaml tools. And ocamlformat choose to reuse this extension (without explanation?).
Haudegen has joined #ocaml
ziyourenxiang has quit [Ping timeout: 276 seconds]
malina has joined #ocaml
anton-trunov has quit [Ping timeout: 244 seconds]
anton-trunov has joined #ocaml
Serpent7776 has joined #ocaml
jnavila has joined #ocaml
malina has quit [Ping timeout: 244 seconds]
q9929t has joined #ocaml
jnavila has quit [Ping timeout: 276 seconds]
ggole has quit [Quit: Leaving]
q9929t has quit [Quit: q9929t]
barockobamo has quit [Remote host closed the connection]
crichoux has joined #ocaml
crichoux has quit [Changing host]
crichoux has joined #ocaml
leah2 has quit [Remote host closed the connection]
crichoux has quit [Ping timeout: 245 seconds]
leah2 has joined #ocaml
gareppa has quit [Quit: Leaving]
leah2 has quit [Remote host closed the connection]
leah2 has joined #ocaml
ravenous_ has joined #ocaml
something_else has joined #ocaml
mal`` has quit [Ping timeout: 245 seconds]
something_else has left #ocaml [#ocaml]
high_shoes has joined #ocaml
<high_shoes>
Hi, I've been using Format and tried Fmt but noticed that they both have state. Is there a state free alternative?
<high_shoes>
As in I don't like having non total pretty printing functions because if you run flush_str_formatter () it won't be the same every time necessarily.
sagax has quit [Quit: Konversation terminated!]
sagax has joined #ocaml
<companion_cube>
mostly you should use only Format.fprintf when writing printers
<companion_cube>
and then you go from a value to a channel/string in one go
<companion_cube>
(and without str_formatter)
mal`` has joined #ocaml
<companion_cube>
instead you could use `Format.asprintf "%a" my_pp x`
<companion_cube>
(where my_pp is a pretty printer of the required type)
nullifidian_ is now known as nullifidian
<high_shoes>
Hi, I got it work but I think I might be missing the point. Is there an alternative when I just need formatter -> unit?
<high_shoes>
Thanks for your help, I tried something like this `let b = asprintf "%a" (fun fmt _ -> fprintf fmt "Hello world!") "nothing" ;;` though that seems redundant.
<companion_cube>
I mean you can also do `asprintf "Hello world"` if you just want a string
gravicappa has quit [Ping timeout: 246 seconds]
<high_shoes>
I wanted to pass through boxes and stuff you see. I'll just write my own function `\desc. -> (fun fmt _ -> fprintf fmt desc)` then, I see that this is the minimal function to be useful for passing to fprintf.
<high_shoes>
Sorry ^^ I just mixed OCaml and Haskell in the same program
kakadu_ has joined #ocaml
<companion_cube>
not sure exactly what you want
<companion_cube>
I typically write printers for my type
<companion_cube>
of the form `let pp_foo out foo = fprintf out "…"`
<companion_cube>
and then when i want to print something I use Format.printf or asprintf
<high_shoes>
Ahh I was trying to have a recursive pretty printer so I thought it would be useful to pass through the boxes