rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
quernd802 has quit [Quit: Ping timeout (120 seconds)]
quernd80 has joined #ocaml
f[x] has joined #ocaml
<discocaml>
<leviroth> I mean. In that specific case the compiler (going by the Godbolt default) doesn't allocate anything in the first place. It just compiles to `movl $3, %eax; ret`
delyan_ has quit [Ping timeout: 264 seconds]
delyan_ has joined #ocaml
f[x] has quit [Remote host closed the connection]
bartholin has joined #ocaml
bartholin has quit [Quit: Leaving]
casastortaAway has quit [Quit: ZNC 1.9.1 - https://znc.in]
casastorta has joined #ocaml
agentcasey has quit [Quit: ZNC 1.10.x-git-27-bfd731cf - https://znc.in]
dnovem has joined #ocaml
Serpent7776 has joined #ocaml
dnovem has quit [Ping timeout: 276 seconds]
Haudegen has joined #ocaml
dnovem has joined #ocaml
dnovem has quit [Remote host closed the connection]
dnovem has joined #ocaml
agentcasey_ has joined #ocaml
dnovem has quit [Ping timeout: 276 seconds]
<discocaml>
<muqiuhan> I want to Marshal a `Core.Hashtbl`,I use `Core.In_channel.with_file` with `Marshal.to_channel` to write it to a file, and then read it out in a new utop session using `Marshal.from_channel`,Everything is OK. But when I do the same thing in the file I get an error, why?
<discocaml>
<muqiuhan>
<discocaml>
<muqiuhan> My environment is: x64-linux ocaml-5.2.1
<discocaml>
<otini_> Presumably marshaling a Core hash table implies marshalling functions, and reading back functions can only be done in the same process or in a process running exactly the same program
<discocaml>
<otini_> > If flags does not contain Marshal.Closures, marshaling fails when it encounters a functional value inside v: only 'pure' data structures, containing neither functions nor objects, can safely be transmitted between different programs. If flags contains Marshal.Closures, functional values will be marshaled as a the position in the code of the program together with the values corresponding to the free variables captured in the closure. In this c
<discocaml>
<muqiuhan> oh
<discocaml>
<otini_> it would work if you ran the same program twice with different command line arguments to select the behavior for instance. But I don’t recommend using Marshal for more than prototyping.
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
Anarchos has joined #ocaml
<discocaml>
<deepspacejohn> I assume the GC doesn't see any difference between `let foo () = let module M = struct let x = 1 end in M.x` and `let foo () = let r = { x = 1 } in r.x`?
<discocaml>
<deepspacejohn> (RE: the GC and module conversation earlier)
<discocaml>
<octachron> Indeed, modules and functors are records and functions once the typechecking phase is done.
euphores has quit [Quit: Leaving.]
* Anarchos
thought modules and functors were very specials....
<discocaml>
<otini_> typing-wise, they are :p
<Anarchos>
but i never grasp how the linker works with .cmo / .cmi files
euphores has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
Haudegen has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
bartholin has joined #ocaml
alexherbo2 has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
YuGiOhJCJ has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
dnovem has joined #ocaml
agentcasey_ has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
Tuplanolla has joined #ocaml
<discocaml>
<functionalprogramming> @aantron does Dream interact with / have anything to do with / have support for server-sent events?