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/
rgrinberg has joined #ocaml
vicfred has quit [Quit: Leaving]
klu_ has quit [Quit: .]
Sankalp has quit [Ping timeout: 258 seconds]
Sankalp- has joined #ocaml
klu has joined #ocaml
klu has quit [Changing host]
klu has joined #ocaml
Sankalp- is now known as Sankalp
waleee has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 244 seconds]
raskol has joined #ocaml
chrisz has quit [Ping timeout: 252 seconds]
chrisz has joined #ocaml
nated has quit [Ping timeout: 248 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
zebrag has quit [Client Quit]
rgrinberg has joined #ocaml
trev has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravicappa has joined #ocaml
raskol has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
marlinski has quit [Ping timeout: 260 seconds]
dstein64 has quit [Excess Flood]
dstein64 has joined #ocaml
aspe has joined #ocaml
aspe has quit [Ping timeout: 244 seconds]
saltrocklamp[m] has quit [Quit: You have been kicked for being idle]
aspe has joined #ocaml
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
bartholin has joined #ocaml
chrisz has quit [Ping timeout: 260 seconds]
chrisz has joined #ocaml
trev has quit [Remote host closed the connection]
gentauro_ has quit [Changing host]
gentauro_ has joined #ocaml
neiluj has joined #ocaml
<neiluj> Hi, trying to serialize a tuple containing an array and get this error: https://tpaste.us/Yr0M . Do you have an idea what went wrong?
szkl has quit [Quit: Connection closed for inactivity]
Haudegen has quit [Quit: Bin weg.]
Everything has joined #ocaml
Everything has left #ocaml [#ocaml]
<octachron> Neither the tuple nor the array is causing this error. The marshaller is complaining that you are trying to marshall a custom block (aka a type with its own C-side primitive) which doesn't have a marshall primitive.
<octachron> Also why are you serializing a bytes containing the serialized representation of a value?
<neiluj> ah yeah to_channel suffices, thanks!
<neiluj> thanks, so some type contained in the one that is serialized doesn't have a C serialize function? such function needs to be implemented?
<neiluj> perfect, thanks!
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
<d_bot> <darrenldl> do people commit opam files generated by dune?
<d_bot> <leviroth> Personally I do
<d_bot> <leviroth> If I didn't, then I think you'd have to manually install dune in order to pin one of my packages
<d_bot> <leviroth> Which I mean, normally you are going to have dune installed anyway, but in principle it's nice to be able to do `opam switch create...; opam pin...`
Haudegen has joined #ocaml
szkl has joined #ocaml
<neiluj> hmm, is it possible to get the length of a file in bytes with Stdio.In_channel?
<neiluj> Stdio.In_channel.length returns the length in terms of characters
<neiluj> basically I try to load all the content of the file in a byte sequence
<vsiles> val input_all : t -> Base.string ?
<vsiles> otherwise a very slow loop around `val input_byte : in_channel -> int
<vsiles> ? :p
<octachron> The number of characters is the number of bytes.
<neiluj> ah! nice! thanks!
<neiluj> yeah input_all is okay but returns a string and converting it back to bytes would cost an extra allocation
gravicappa has quit [Ping timeout: 256 seconds]
spip has joined #ocaml
bobo_ has quit [Ping timeout: 256 seconds]
rgrinberg has joined #ocaml
olle has joined #ocaml
gravicappa has joined #ocaml
<d_bot> <darrenldl> ahh
<d_bot> <darrenldl> thanks leviroth
<d_bot> <leviroth> Thinking about it more, I guess pin wouldn't work at all without committing the opam files.
aspe has quit [Remote host closed the connection]
nated has joined #ocaml
Tuplanolla has joined #ocaml
neiluj has quit [Quit: Leaving]
Haudegen has quit [Quit: Bin weg.]
xgqt has quit [Ping timeout: 272 seconds]
xgqt has joined #ocaml
mro has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
mro has quit [Remote host closed the connection]
deadmarshal has joined #ocaml
Haudegen has joined #ocaml
raskol has joined #ocaml
bartholin has quit [Quit: Leaving]
mro has joined #ocaml
mro has quit [Ping timeout: 240 seconds]
zebrag has joined #ocaml
raskol has quit [Ping timeout: 276 seconds]
mro has joined #ocaml
waleee has joined #ocaml
gravicappa has quit [Ping timeout: 260 seconds]
<sleepydog> i'm working with ctypes and trying to model an API (netlink) with "header" structs that are expected to be adjacent in memory to a payload. I'm not sure what is the best way to do that with ctypes
<sleepydog> usually in C you would declare a struct with a final, squishy char[MAXBUF] field and write your payload into that
<sleepydog> but Ctypes.CArray and Bigarrays are uniform
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raskol has joined #ocaml
rgrinberg has joined #ocaml
omegatron has quit [Quit: Power is a curious thing. It can be contained, hidden, locked away,and yet it always breaks free.]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
mro has quit [Quit: Leaving...]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raskol has quit [Ping timeout: 246 seconds]
rgrinberg has joined #ocaml
olle has quit [Ping timeout: 246 seconds]
pgiarrusso has quit []
pgiarrusso has joined #ocaml
raskol has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CalimeroTeknik has quit [Quit: バイバイ]
CalimeroTeknik has joined #ocaml
vicfred has joined #ocaml