adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
tsmc__ has joined #ocaml
ollehar has quit [Ping timeout: 240 seconds]
mnxn has joined #ocaml
mnxn has quit [Client Quit]
mnxn has joined #ocaml
ollehar has joined #ocaml
mnxn has quit [Quit: mnxn]
zv has quit [Ping timeout: 244 seconds]
zv has joined #ocaml
mnxn has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
ski has quit [Killed (Sigyn (Stay safe off irc))]
ski has joined #ocaml
mnxn has quit [Quit: mnxn]
delysin has joined #ocaml
chatt has joined #ocaml
chatt has quit [Quit: WeeChat 1.9.1]
mnxn has joined #ocaml
malc_ has joined #ocaml
vicfred has quit [Quit: Leaving]
mnxn has quit [Quit: mnxn]
mnxn has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
mbuf has joined #ocaml
Haudegen has joined #ocaml
drewr has quit [Ping timeout: 260 seconds]
mnxn has quit [Ping timeout: 260 seconds]
mnxn has joined #ocaml
narimiran_ has joined #ocaml
osa1 has joined #ocaml
dborisog has joined #ocaml
mnxn has quit [Quit: mnxn]
ollehar has quit [Ping timeout: 240 seconds]
ollehar has joined #ocaml
malc_ has quit [Ping timeout: 240 seconds]
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #ocaml
brown121407 has quit [Remote host closed the connection]
ollehar has quit [Ping timeout: 246 seconds]
ollehar has joined #ocaml
schlaftier3 has joined #ocaml
schlaftier has quit [Read error: Connection reset by peer]
schlaftier3 is now known as schlaftier
mbuf has quit [Quit: Leaving]
<Leonidas> porchetta_: don't you need ctypes.foreign too?
<porchetta_> The problem I have is how to setup dune for this
<porchetta_> because I don't understand how the c file should be handled by the build system
<Leonidas> porchetta_: last time I looked at it it was unfortunately pretty difficult with dune, here's an example: https://github.com/avsm/ocaml-yaml
octachron has quit [Quit: ZNC 1.7.5 - https://znc.in]
<porchetta_> thanks. I really don't understand how to proceed. Anyway, I think I'll switch to IPC instead of trying to embed ocaml in a C++ codebase
<porchetta_> even though this is very unfortunate because the codebase could use an incremental rewrite
dckc has quit [Ping timeout: 240 seconds]
<Leonidas> the idea is to have dune build the stub generator, run it, and compile the resulting stubs
<Leonidas> here's our project where we copied the approach from the yaml bindings, it might be a bit easier to navigate https://github.com/issuu/ocaml-mmdb
<porchetta_> mmm thanks
<porchetta_> it doesn't seem very straightforward though
<porchetta_> I'll investigate it
dckc has joined #ocaml
malc_ has joined #ocaml
yann-kaelig has joined #ocaml
waleee-cl has joined #ocaml
mbuf has joined #ocaml
vicfred has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
tsmc__ has quit [Quit: Connection closed for inactivity]
malc_ has quit [Ping timeout: 256 seconds]
toppler has joined #ocaml
jco has joined #ocaml
<jco> Hello!
<jco> Is there a function to remove text from a string from index i to index j?
<haesbaert> you can't really modify strings, you would have to make a new one my joining < i and > j
<haesbaert> s/my/by
<jco> haesbaert: yes, return a new string
<jco> ok, just in case it already existed
<jco> thanks
<haesbaert> String.sub and so on
<jco> ah nice one!
jco has quit [Ping timeout: 240 seconds]
rockethead has joined #ocaml
jco has joined #ocaml
robmyers_ has joined #ocaml
robmyers has quit [*.net *.split]
lnxw37d4 has quit [*.net *.split]
bytesighs has quit [*.net *.split]
rdivyanshu_ has quit [*.net *.split]
adi_________ has quit [*.net *.split]
robmyers_ is now known as robmyers
gaussian[m] has quit [Remote host closed the connection]
smondet[m] has quit [Remote host closed the connection]
dash has quit [Read error: Connection reset by peer]
aspiwack[m] has quit [Read error: Connection reset by peer]
stan[m] has quit [Read error: Connection reset by peer]
khady[m] has quit [Remote host closed the connection]
foocraft[m] has quit [Read error: Connection reset by peer]
cgenie[m] has quit [Read error: Connection reset by peer]
camlriot42 has quit [Read error: Connection reset by peer]
swapnilraj[m] has quit [Read error: Connection reset by peer]
Manis[m]1 has quit [Remote host closed the connection]
lubegasimon[m] has quit [Remote host closed the connection]
flux has quit [Write error: Connection reset by peer]
labor[m] has quit [Write error: Broken pipe]
defolos has quit [Remote host closed the connection]
peddie has quit [Write error: Connection reset by peer]
aecepoglu[m] has quit [Read error: Connection reset by peer]
jimt[m] has quit [Read error: Connection reset by peer]
sepp2k has quit [Remote host closed the connection]
damienkrine[m] has quit [Remote host closed the connection]
rdivyanshu_ has joined #ocaml
bytesighs has joined #ocaml
adi_________ has joined #ocaml
jco has quit [Ping timeout: 256 seconds]
jco has joined #ocaml
sepp2k has joined #ocaml
rockethead has quit [Ping timeout: 272 seconds]
malc_ has joined #ocaml
Manis[m] has joined #ocaml
labor[m] has joined #ocaml
defolos has joined #ocaml
flux1 has joined #ocaml
jimt[m] has joined #ocaml
aspiwack[m] has joined #ocaml
aecepoglu[m] has joined #ocaml
smondet[m] has joined #ocaml
lnxw37d4 has joined #ocaml
peddie has joined #ocaml
dash has joined #ocaml
camlriot42 has joined #ocaml
khady[m] has joined #ocaml
stan[m] has joined #ocaml
lubegasimon[m] has joined #ocaml
cgenie[m] has joined #ocaml
foocraft[m] has joined #ocaml
damienkrine[m] has joined #ocaml
gaussian[m] has joined #ocaml
swapnilraj[m] has joined #ocaml
prsafont[m] has joined #ocaml
osa1 has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 244 seconds]
Haudegen has quit [Quit: Bin weg.]
drewr has joined #ocaml
dckc has quit [Ping timeout: 260 seconds]
dckc has joined #ocaml
osa1 has joined #ocaml
sepp2k has left #ocaml ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
dborisog has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
osa1_ has joined #ocaml
osa1 has quit [Ping timeout: 256 seconds]
osa1_ is now known as osa1
narimiran_ is now known as narimiran
Serpent7776 has quit [Ping timeout: 240 seconds]
Serpent7776 has joined #ocaml
spew has joined #ocaml
FreeBirdLjj has joined #ocaml
jco has quit [Quit: WeeChat 2.7]
Serpent7776 has quit [Ping timeout: 260 seconds]
Serpent7776 has joined #ocaml
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
<ollehar> companion_cube: fun fact: PHP has a "yield" keyword that can convert any lambda to a generator you can iterate on - can be used to pass on command objects instead of returning a tuple!
<ollehar> it's a little bit like continuations, because you jump back and continue the lambda on next iteration.
<ollehar> you can also nest them with "yield from <other generator or array>"
<ollehar> Armael: nice!
<ollehar> thanks
<ipavlo> @ollehar I'm not familiar with it that much but using yield keyword Unity game engine achieves something like coroutines
<ollehar> cool
<ollehar> i want to use it for all side-effects in business logic
<ollehar> still arguing online with people ^^
<ollehar> so far I can see two problems:
<ollehar> 1) Nesting might get clumsy, because there's no "yield all the way to the top"
<ollehar> 2) The side-effect factory object becomes a God object that must know about ALL side-effects in the ecosystem: stdout, stderro, curl, streams, sockets, database, etc etc
mbuf has quit [Quit: Leaving]
mnxn has joined #ocaml
yann-kaelig has quit []
Haudegen has quit [Quit: Bin weg.]
octachron has joined #ocaml
cantstanya has quit [Ping timeout: 240 seconds]
gaussian has quit [Quit: Connection closed]
gaussian has joined #ocaml
mnxn has quit [Quit: mnxn]
stux|RC has quit [Read error: Connection reset by peer]
stux|RC has joined #ocaml
malc_ has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
osa1 has quit [Ping timeout: 240 seconds]
mnxn has joined #ocaml
Serpent7776 has quit [Ping timeout: 240 seconds]
Serpent7776 has joined #ocaml
narimiran has quit [Ping timeout: 260 seconds]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
Jesin has quit [Quit: Leaving]
mnxn has quit [Quit: mnxn]
Jesin has joined #ocaml
malc_ has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]