wingsorc has quit [Remote host closed the connection]
jabuxas has joined #ocaml
gzar has quit [Quit: WeeChat 4.2.2]
jabuxas has quit [Ping timeout: 256 seconds]
wingsorc has joined #ocaml
williewillus` has joined #ocaml
williewillus` has quit [Changing host]
williewillus has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
wingsorc has quit [Quit: Leaving]
sadome has joined #ocaml
sadome has quit [Excess Flood]
sadome has joined #ocaml
sadome has quit [Excess Flood]
sadome has joined #ocaml
sadome has quit [Excess Flood]
sadome has joined #ocaml
sadome has quit [Excess Flood]
mbuf has joined #ocaml
sadome has joined #ocaml
sadome has quit [Excess Flood]
sadome has joined #ocaml
sadome has quit [Excess Flood]
myrkraverk has joined #ocaml
Serpent7776 has joined #ocaml
williewillus has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
m5zs7k has quit [Ping timeout: 246 seconds]
m5zs7k has joined #ocaml
myrkraverk has quit [Ping timeout: 255 seconds]
myrkraverk has joined #ocaml
tremon has joined #ocaml
bartholin has joined #ocaml
domq has joined #ocaml
jabuxas has joined #ocaml
<companion_cube>
Look for open_process_out in Unix, I think
jabuxas has quit [Ping timeout: 268 seconds]
domq has quit [Quit: domq]
gzar has joined #ocaml
myrkraverk_ has joined #ocaml
myrkraverk has quit [Read error: Connection reset by peer]
domq has joined #ocaml
domq has quit [Quit: domq]
domq has joined #ocaml
jabuxas has joined #ocaml
domq has quit [Quit: domq]
jabuxas has quit [Ping timeout: 246 seconds]
<discocaml>
<ansiwen> I want to call a C function that requires me to provide a small 16-byte aligned opaque ctx blob (just 256Byte). Is there an easy way to create aligned memory? I know about Bigarray, but it uses malloc, but I want it avoid that overhead and want it to be in the Ocaml managed. I also know about Cstruct.allocate_n, but IIUC it also uses calloc. I wondered if I can just create Bytes.t with 16bytes extra space and check the alignment and use a poin
<discocaml>
<ansiwen> I want to call a C function that requires me to provide a small 16-byte aligned opaque ctx blob (just 256Byte). Is there an easy way to create aligned memory? I know about Bigarray, but it uses malloc and I want to avoid that overhead and want it to be in the Ocaml managed. I also know about Cstruct.allocate_n, but IIUC it also uses calloc. I wondered if I can just create Bytes.t with 16bytes extra space and check the alignment and use a point
<discocaml>
<lowlowcode_96272> Hello everyone, how can I write a multiline string ?
<discocaml>
<ansiwen> With
<discocaml>
<ansiwen> ```ocaml
<discocaml>
<ansiwen> let s = {|multi
<discocaml>
<ansiwen> line
<discocaml>
<ansiwen> string|}
<discocaml>
<ansiwen> ```
<discocaml>
<ansiwen> for example.
<discocaml>
<._null._> You can even use the regular quotes, newlines don't break strings
<discocaml>
<lowlowcode_96272> thanks !!!
<discocaml>
<lowlowcode_96272> any good books on ocaml ?