Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.1.1 released: https://ocaml.org/releases/5.1.1 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
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 ?
<discocaml> <yawaramin> yeah several https://ocaml.org/books
jusensei29 has joined #ocaml
jusensei2 has quit [Ping timeout: 255 seconds]
jusensei29 is now known as jusensei2
ocra8 has joined #ocaml
Tuplanolla has joined #ocaml
waleee has joined #ocaml
gentauro has quit [Read error: Connection reset by peer]
jusensei2 has quit [Ping timeout: 272 seconds]
jusensei2 has joined #ocaml
gentauro has joined #ocaml
mbuf has quit [Quit: Leaving]
waleee has quit [Ping timeout: 268 seconds]
tremon has quit [Quit: getting boxed in]
Serpent7776 has quit [Ping timeout: 252 seconds]
waleee has joined #ocaml
jabuxas has joined #ocaml
sadome has joined #ocaml
sadome has quit [Excess Flood]
sadome has joined #ocaml
sadome has joined #ocaml
sadome has quit [Excess Flood]
bartholin has quit [Quit: Leaving]
jabuxas has quit [Quit: oops :p]
jabuxas has joined #ocaml
noddy has quit [Quit: WeeChat 4.2.1]
noddy has joined #ocaml
<discocaml> <omnisci3nt> ocaml.org really do be lookin' pretty nice these days ay
pi3ce has quit [Ping timeout: 268 seconds]
pi3ce_ has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]