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/
v0idpwn has quit [Ping timeout: 240 seconds]
jyc has quit [Ping timeout: 240 seconds]
conjunctive has quit [Ping timeout: 240 seconds]
v0idpwn has joined #ocaml
jyc has joined #ocaml
conjunctive has joined #ocaml
rgrinberg has joined #ocaml
<Corbin> Does OCaml do peephole optimization for bytecode? I'm reading through whitepapers about the CAM and want to compare their explanations to what is actually implemented decades later.
grobe0ba has quit [Quit: ZNC 1.8.2 - https://znc.in]
grobe0ba has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
wingsorc has joined #ocaml
namkeleser has joined #ocaml
namkeleser has quit [Quit: Client closed]
Haudegen has quit [Ping timeout: 260 seconds]
namkeleser has joined #ocaml
zebrag has joined #ocaml
average has joined #ocaml
waleee has quit [Quit: WeeChat 3.3]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xiongxin has joined #ocaml
rgrinberg has joined #ocaml
spip has quit [Ping timeout: 245 seconds]
ns12 has joined #ocaml
ralu has quit [Ping timeout: 250 seconds]
ralu has joined #ocaml
ns12 has quit [Quit: bye]
ns12 has joined #ocaml
b0o has joined #ocaml
namkeleser has quit [Quit: Client closed]
xiongxin has quit [Ping timeout: 240 seconds]
xiongxin has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
average has quit [Quit: Connection closed for inactivity]
klu has joined #ocaml
klu has quit [Changing host]
klu has joined #ocaml
average has joined #ocaml
mbuf has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravicappa has joined #ocaml
b0o has quit [Quit: WeeChat 3.3]
average has quit [Quit: Connection closed for inactivity]
Tuplanolla has joined #ocaml
Haudegen has joined #ocaml
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
<Drup> Corbin: barely. The design of the bytecode hasn't significantely evolved since then, there are a bunch of new instructions to handle new language constructs, but that's it
olle has joined #ocaml
<d_bot> <Continuation Calculus> From `Format` docs: "within a vertical box, break hints always split the line,". But sometimes, I have `@;` break hints in `@[<v>@]` boxes that don't break the line. Is there something that I am missing?
<d_bot> <octachron> As long as the current active box is a vertical box, as far as I can see, break hints should always break the line?
<d_bot> <Continuation Calculus> Not the case here. I only have `<v>` boxes, and only use `@;` (checked with a grep), 😦
<Drup> can you show a minimal piece of code ?
<d_bot> <Continuation Calculus> I'll try to, once the current modification typechecks
<d_bot> <Continuation Calculus> which it now does, woooo
<d_bot> <Continuation Calculus> still producing the minimal example. just-in-case-because-one-never-knows, there is no easy/hackish way to produce a trace of fprintf calls, and just translate it into regular ocaml code that only prints stuff, isn't it?
<d_bot> <Continuation Calculus> So the problem was: at some point, I used a `to_string` function (I'm converting a code that is `to_string` based to a code that is `formatter` based), which used a format. and so there were two different format execution contexts
<d_bot> <Continuation Calculus> The additional thing that I should have grepped for was `asprintf`
bartholin has quit [Ping timeout: 268 seconds]
ymherklotz has quit [Read error: Connection reset by peer]
namkeleser has joined #ocaml
hyphen_ has quit [Ping timeout: 265 seconds]
hyphen has joined #ocaml
bartholin has joined #ocaml
lagash has quit [Ping timeout: 268 seconds]
waleee has joined #ocaml
cedric has joined #ocaml
lagash has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
<companion_cube> Given your nick, you might also like kasprintf ;)
mro has joined #ocaml
mro has quit [Remote host closed the connection]
salkin has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 268 seconds]
bartholin has quit [Ping timeout: 260 seconds]
rgrinberg has joined #ocaml
xiongxin has quit [Remote host closed the connection]
mro has joined #ocaml
bartholin 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
average has joined #ocaml
gahr has quit [Quit: leaving]
gahr has joined #ocaml
bartholin has quit [Ping timeout: 260 seconds]
salkin has quit [Ping timeout: 240 seconds]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bartholin has joined #ocaml
mro has quit [Quit: Leaving...]
bartholin has quit [Ping timeout: 265 seconds]
SquidDev has quit [Quit: Bye!]
SquidDev has joined #ocaml
bartholin has joined #ocaml
<d_bot> <Continuation Calculus> Hahaha, the first time I read the entire format mli, I was like "why use anything else??"
<d_bot> <let Butanium = raise Not_found;;> Would it be possible to make my program running until the user enter something in the terminal ?
<d_bot> <NULL> `SIGINT`-style ?
<d_bot> <let Butanium = raise Not_found;;> `SIGINT` is more for emergency stop no ? I was more thinking about something like that :
<d_bot> <let Butanium = raise Not_found;;> ```ocaml
<d_bot> <let Butanium = raise Not_found;;> let () = while (*user didn't manually stop*) || time_spent > max_time do compute_solution() done; (*create some log file and display the best solution found during the search*)
<d_bot> <let Butanium = raise Not_found;;> ```
<d_bot> <NULL> It is, but you can write bad-style code to still catch it
<d_bot> <let Butanium = raise Not_found;;> In python it seems that it can be done by using some threading lib (https://stackoverflow.com/questions/65595027/how-to-interrupt-python-program-on-user-input)
<d_bot> <NULL> OCaml's Thread lib is probably the good way to do this
chrisz has quit [Ping timeout: 245 seconds]
chrisz has joined #ocaml
bartholin has quit [Ping timeout: 256 seconds]
bartholin has joined #ocaml
mbuf has quit [Quit: Leaving]
Everything has joined #ocaml
hyphen has quit [Read error: Connection reset by peer]
hyphen has joined #ocaml
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
hyphen has quit [Ping timeout: 256 seconds]
hyphen has joined #ocaml
Everything has quit [Ping timeout: 268 seconds]
jsoo_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
average has quit [Quit: Connection closed for inactivity]
gravicappa has quit [Ping timeout: 268 seconds]
jsoo has joined #ocaml
romildo has joined #ocaml
romildo has quit [Quit: Leaving]
<d_bot> <arbipher> May I ask what is the exact library conating `Parse` module? I tried `#require` all `compiler-libs` but I still have the error on `Parse`.
<d_bot> <arbipher> `utop-full` works for me.
<d_bot> <Et7f3> I let other answer
<d_bot> <arbipher> I also have a newbie question on clangml: `Clang.Ast.parse_file` works with setting `Cxx17`
<d_bot> <arbipher>
<d_bot> <arbipher> ```ocaml
<d_bot> <arbipher> let ast =
<d_bot> <arbipher> Clang.Ast.parse_file
<d_bot> <arbipher> ~command_line_args:[ Clang.Command_line.standard Cxx17 ]
<d_bot> <arbipher> "a.cpp"
<d_bot> <arbipher> (* works *)
<d_bot> <arbipher> ```
<d_bot> <arbipher>
<d_bot> <arbipher> however `Clang.Ast.parse_string` always reports `Fatal error: exception (Failure "an AST deserialization error has occurred")` if adding any standard.
<d_bot> <arbipher>
<d_bot> <arbipher> ```ocaml
<d_bot> <arbipher> let ast =
<d_bot> <arbipher> Clang.Ast.parse_string
<d_bot> <arbipher> {| int i = 1; |}
<d_bot> <arbipher> (* works *)
<d_bot> <arbipher>
<d_bot> <arbipher> let ast =
<d_bot> <arbipher> Clang.Ast.parse_string
<d_bot> <arbipher> ~command_line_args:[ Clang.Command_line.standard Cxx17 ]
<d_bot> <arbipher> {| int i = 1; |}
<d_bot> <arbipher> (* Fatal error: exception (Failure "an AST deserialization error has occurred") *)
<d_bot> <arbipher> ```
rgrinberg has joined #ocaml
zebrag has joined #ocaml
hyphen has quit [Ping timeout: 250 seconds]
hyphen has joined #ocaml
hyphen has quit [Ping timeout: 256 seconds]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
wingsorc has quit [Quit: Leaving]
Serpent7776 has quit [Quit: leaving]
<kronicmage> can anyone help me trouble shoot my failure to setup an ocaml environment?
<kronicmage> trying to opam install ocaml-lsp-server but it says there's a conflict with ocaml-system
<kronicmage> i'm on arch linux with opam installed via pacman and every other ocaml package installed via opam
<d_bot> <NULL> Did you update pacman's ocaml ? If so, do `opam upgrade --update-invariant` or create a switch with an opam-installed compiler
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
bartholin has quit [Quit: Leaving]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
olle has quit [Ping timeout: 260 seconds]
cedric has quit [Quit: Konversation terminated!]
salkin has joined #ocaml