companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
YuGiOhJCJ has quit [Ping timeout: 264 seconds]
Inline has quit [Remote host closed the connection]
Inline has joined #ocaml
YuGiOhJCJ has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
Tuplanolla has quit [Quit: Leaving.]
Haudegen has quit [Quit: Bin weg.]
mange has joined #ocaml
germ- has quit [Ping timeout: 252 seconds]
germ has quit [Ping timeout: 265 seconds]
_73 has joined #ocaml
germ has joined #ocaml
germ- has joined #ocaml
alfiee has joined #ocaml
bcksl has quit [Quit: \]
end has quit [Quit: end]
bcksl has joined #ocaml
alfiee has quit [Ping timeout: 265 seconds]
end has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 248 seconds]
agentcas- has joined #ocaml
agentcasey has quit [Ping timeout: 264 seconds]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 248 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
ygrek has joined #ocaml
mbuf has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
agentcasey has joined #ocaml
agentcas- has quit [Ping timeout: 246 seconds]
ygrek has quit [Remote host closed the connection]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 276 seconds]
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 272 seconds]
myrkraverk has quit [Remote host closed the connection]
myrkraverk has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
myrkraverk_ has joined #ocaml
mbuf has quit [Read error: Connection reset by peer]
myrkraverk has quit [Ping timeout: 252 seconds]
Inline has quit [Quit: Leaving]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 246 seconds]
Inline has joined #ocaml
igemnace_ is now known as igemnace
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
myrkraverk_ has quit [Ping timeout: 248 seconds]
myrkraverk has joined #ocaml
alexherbo2 has joined #ocaml
Inline has quit [Quit: Leaving]
bartholin has quit [Quit: Leaving]
Inline has joined #ocaml
Haudegen has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
eilvelia has quit [Ping timeout: 252 seconds]
eilvelia has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
alexherbo2 has quit [Remote host closed the connection]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
m5zs7k has quit [Ping timeout: 244 seconds]
m5zs7k has joined #ocaml
alfiee has joined #ocaml
alexherbo2 has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
m5zs7k has quit [Ping timeout: 272 seconds]
m5zs7k has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
<discocaml> <gabyfle> Hi, by any chances, is there any ressources on how to create safe bindings ? I'm wanting to create bindings for Lib rubberband, and in fact I'm wondering what's the propper way of wrapping enums for example ?
myrkraverk_ has joined #ocaml
mange has quit [Quit: Zzz...]
myrkraverk has quit [Ping timeout: 248 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 265 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Everything has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
ygrek has joined #ocaml
<discocaml> <holmdunc> The author of rubberband is an SML aficionado, so maybe there's an SML binding for inspiration
<discocaml> <otini_> Ctypes is typically used for that. RWO has a good starting tutorial for it https://dev.realworldocaml.org/foreign-function-interface.html
<discocaml> <otini_> It doesn’t cover enums but the function to manipulate them seems relatively straightforward compared to structs
<discocaml> <gabyfle> Ok, thanks a lot, I'll take a look at it, thanks for the great ressource
dhil has joined #ocaml
zozozo has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
mbuf has joined #ocaml
myrkraverk has joined #ocaml
myrkraverk__ has joined #ocaml
myrkraverk_ has quit [Ping timeout: 264 seconds]
myrkraverk has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #ocaml
mbuf has quit [Read error: Connection reset by peer]
trillion_exabyte has quit [Ping timeout: 260 seconds]
trillion_exabyte has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
olle has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
LainExperiments has joined #ocaml
Serpent7776 has quit [Ping timeout: 260 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
Haudegen has quit [Quit: Bin weg.]
Everything has quit [Ping timeout: 252 seconds]
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
LainExperiments has quit [Quit: Client closed]
dhil has quit [Ping timeout: 252 seconds]
<discocaml> <kiranandcode> oh, I don't know if the build process for ctypes has gotten better, but one of the biggest pain points I had while writing C bindings was setting up the project and build system. I usually just copy my configs from one C project to another nowadays
<discocaml> <kiranandcode>
<discocaml> <kiranandcode> It's a bit outdated, but here is an example C-binding library (for the swipl prolog language) : https://github.com/kiranandcode/SWIPL-OCaml for which I think I managed to sort out the build system in a nice way which may be helpful as a reference
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
mbuf has joined #ocaml
alexherbo2 has joined #ocaml
LainExperiments has joined #ocaml
_73 has quit [Remote host closed the connection]
alexherbo2 has quit [Remote host closed the connection]
olle has quit [Ping timeout: 272 seconds]
Haudegen has joined #ocaml
luc4 has joined #ocaml
pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
LainExperiments has quit [Ping timeout: 240 seconds]
alfiee has joined #ocaml
Tuplanolla has joined #ocaml
alfiee has quit [Ping timeout: 272 seconds]
bartholin has joined #ocaml
Anarchos has joined #ocaml
LainExperiments has joined #ocaml
Everything has joined #ocaml
LainExperiments has quit [Client Quit]
mbuf has quit [Quit: Leaving]
dukester has joined #ocaml
alfiee has joined #ocaml
<dukester> noob here! Just installed latest ocaml following homepage instructions. All is well, except that in `utop' command exit;; does not exit.
<dukester> It simply tells me that it's a function
<discocaml> <Kali> it is a function
<discocaml> <Kali> you must apply it to an integer
<discocaml> <Kali> which represents the return status of the utop program
<dukester> Utop tells me that if I want to exit - type exit;; or ctrl-D
alfiee has quit [Ping timeout: 276 seconds]
<discocaml> <Kali> where does it say that?
<discocaml> <Kali> > return status of the utop program
<discocaml> <Kali> or, at least, the return status of the program (0 = success, 1 = failure, anything else is context-dependent); `exit : int -> 'a` can be used in any ocaml program, not just utop
<dukester> I can't remember where I saw the exit;; command! I just found #quit;; which is what I was looking for to get out of utop. Thx!
<discocaml> <Kali> there is a `#quit;;` directive but no `#exit;;` directive, only an `exit` function
<discocaml> <Kali> you may have just mixed them up, it happens
<dukester> must have done - thx
dukester has left #ocaml [#ocaml]
YuGiOhJCJ has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
Haudegen has quit [Quit: Bin weg.]
sparr has quit [Quit: WeeChat 3.6]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
Guest62 has joined #ocaml
<Guest62> does anyone use ppx_jane with an opam OCaml 5.3.0 switch? In other words, is ppx_jane ready for 5.3? The opam constraint is ">= 5.1". ppx_jane FTBFS for me. Not a big deal, just checking if my environment is maybe bogus.
<Guest62> Type "Format.formatter" is not compatible with type "Format_doc.formatter"
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 244 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
Everything has quit [Quit: leaving]
ygrek has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
mange has joined #ocaml
bartholin has quit [Quit: Leaving]
luc4 has quit [Quit: Konversation terminated!]