adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.06.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.06/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
failproofshark has quit [Ping timeout: 240 seconds]
jao has quit [Ping timeout: 264 seconds]
sh0t has quit [Remote host closed the connection]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 is now known as Guest45372
infinity0 has joined #ocaml
orbifx has quit [Ping timeout: 264 seconds]
kark has quit [Ping timeout: 252 seconds]
moei has quit [Quit: Leaving...]
cbot has quit [Ping timeout: 256 seconds]
Bronsa` has quit [Ping timeout: 252 seconds]
silver_ has joined #ocaml
silver has quit [Ping timeout: 246 seconds]
dtornabene_ has joined #ocaml
dtornabene has quit [Read error: Connection reset by peer]
silver_ has quit [Read error: Connection reset by peer]
dtornabene_ has quit [Read error: Connection reset by peer]
dtornabene_ has joined #ocaml
dtornabene_ has quit [Client Quit]
dtornabene has joined #ocaml
isd has quit [Ping timeout: 276 seconds]
cbot has joined #ocaml
chatchatt has quit [Ping timeout: 264 seconds]
chatchatt has joined #ocaml
mfp has quit [Ping timeout: 264 seconds]
FreeBirdLjj has joined #ocaml
jimt has quit [Quit: jimt]
FreeBirdLjj has quit [Client Quit]
jimt has joined #ocaml
jimt has quit [Client Quit]
dtornabene has quit [Ping timeout: 260 seconds]
rostero has quit [Quit: Connection closed for inactivity]
jimt has joined #ocaml
pierpa has joined #ocaml
<companion_cube> wow, base requires 4.04.1 ?!
dtornabene has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
mbuf has joined #ocaml
spew has joined #ocaml
spew has quit [Read error: Connection reset by peer]
<onion> arent we at 4.06 ? i wonder why BuckleScript is still stuck at 4.02
<companion_cube> well, supporting more than the last few versions is a virtue, not a sin…
<companion_cube> (only supporting an old version sucks, of course)
<onion> yeah, i dont want to have versions of compilers all over the place.. did some work putting in the latest ocaml and i dont feel like watching opam compile just to try BS =)
<dh_work> because ubuntu long-term-stale is still 4.02, no doubt
<onion> its wierd for it to target web tech which is always latest version as long as internet connection exists
<dh_work> I had to fix my shit a couple weeks ago so it would build on ubuntu :-/
<onion> =/
<dh_work> pursuant to which I wish there was an easier way to add stuff to submodules; dealing with missing map functions is a huge pain
<dh_work> (it's not exactly hard, but there are a lot of forms to fill out and it makes a mess)
The_Mad_Pirate has joined #ocaml
The_Mad_Pirate has left #ocaml [#ocaml]
m4lvin has quit [Remote host closed the connection]
m4lvin has joined #ocaml
MercurialAlchemi has joined #ocaml
pierpa has joined #ocaml
cbot has quit [Quit: Leaving]
pyx has joined #ocaml
pyx has joined #ocaml
chatchatt has quit [Ping timeout: 256 seconds]
pyx has quit [Quit: WeeChat 2.1]
chatchatt has joined #ocaml
moei has joined #ocaml
gtrak has quit [Ping timeout: 248 seconds]
gtrak has joined #ocaml
tarptaeya has joined #ocaml
<_xvilka_> hi
<_xvilka_> is it possible to link with C library in jbuilder/dune application?
<_xvilka_> I cannot use "(c_library_flags (-lmylib))" for the application
<_xvilka_> is there any way to do that without separating the part to a library?
argent_smith has joined #ocaml
<_xvilka_> ctypes is such a common case, how is that possible that dune/jbuilder has such a poor support of it!?
<_xvilka_> more and more I use OCaml I find such huge problems with tools/libraries in its infrastructure
Haudegen has joined #ocaml
<rgr[m]> _xvilka_: i think you're jumping the gun here. dune limiting what you can pass to an executable, is not a measure of how well it supports ctypes
<rgr[m]> This limitation has nothing to do with ctypes either btw. It exists with hand written stubs as well
bartholin has joined #ocaml
ygrek has joined #ocaml
<Armael> _xvilka_: what is your issue exactly? I'm using dune do build ctypes bindings just fine
<Armael> ah, I see
malc_ has joined #ocaml
dtornabene has quit [Quit: Leaving]
chatchat1 has joined #ocaml
chatchatt has quit [Ping timeout: 268 seconds]
moei has quit [Quit: Leaving...]
moei has joined #ocaml
jimmyrcom has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
ollehar has joined #ocaml
malc_ has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
malc_ has joined #ocaml
jao has quit [Ping timeout: 276 seconds]
pierpa has quit [Ping timeout: 260 seconds]
<Enjolras> _xvilka_: dune is hype but if you want to do this kind of stuff it's very lacking indeed
mk9 has joined #ocaml
jimmyrcom has joined #ocaml
pierpa has joined #ocaml
ShalokShalom has joined #ocaml
<ShalokShalom> is there something like object expressions in ocaml?
<Fardale> what is object expression ?
mk9 has quit [Quit: mk9]
Bronsa has joined #ocaml
<ShalokShalom> what fsharp does:
zolk3ri has joined #ocaml
<Leonidas> avsm is not in IRC anymore? A shame! Wanted to say thanks.
<Leonidas> stealing the structure of his yaml bindings wholesale :-)
<ollehar> ShalokShalom: you can use objects without a class, if that's what you're asking.
<Drup> ShalokShalom: "objet inherit foo method x = .. method y = ... end" ?
<ShalokShalom> so yes?
<Drup> You tell us, you know what you are looking for :p
<ShalokShalom> this is a doc page
<ShalokShalom> pretty decent info :D
<Drup> not when you don't know the .NET object system, no.
<Armael> here's an other doc page with pretty decent info! http://caml.inria.fr/pub/docs/manual-ocaml/objectexamples.html
<ShalokShalom> ty
kakadu has joined #ocaml
malc_ has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<Leonidas> Bit of a discussion-question because I can't make up my mind what best to do: I have a C++ header-only library. I want to bind it to OCaml and have some C code with extern C declarations which exposes the interesting parts. Now I am wondering, whether I should use ctypes to interface to it (using stubgen) or convert the wrapper code into cxx-stubs directly which I think could be sort-of simpler.
<Drup> what's the point of a header only library ?
mfp has joined #ocaml
ziyourenxiang has joined #ocaml
<octachron> Drup, template-heavy code maybe?
dhil has joined #ocaml
<Drup> I'm not extremely fluent in C++, but isn't that like talking about an .mli only library ? If it has no computational content, what's the point of binding it ?
<octachron> Drup, if you have template class/code the C++ compiler needs to be able to see your whole code to instance it, so writing your whole code in a h file kind of make some sense (in a C++ variant of common sense)
<octachron> There was an export keyword that was supposed to make it possible to keep some separation of interface and keyword in this case, but it was never supported by compiler; and it seems it was dropped in C++11
<Drup> x)
<Drup> that's javascript level of standardization
<ShalokShalom> very helpful channel :D
Bronsa` has joined #ocaml
<Drup> Leonidas: to offer a more productive answer, ctypes doesn't work on C++
Bronsa has quit [Ping timeout: 240 seconds]
<octachron> Leonidas, both options sound very similar in term of complexity
<_xvilka_> Enjolras: compared to the other building systems in OCaml world it a fresh breeze
zpe has joined #ocaml
Haudegen has quit [Remote host closed the connection]
<ShalokShalom> I read something about a single-command-deployment in the forums, is that a thing?
<ShalokShalom> like in Go and .Net :)
<ShalokShalom> without any build scripts
<_xvilka_> How to create a pointer to pointer with NULL in it? type myptr_t = char ptr; let mydata = allocate myptr_t (from_voidp char null);" does work but crash happened when I pass this pointer to the function, so I guess something is not right
zlsyx has joined #ocaml
<octachron> _xvilka_, there is ptr_opt for this use case
<_xvilka_> octachron: aha, thx
<ShalokShalom> thanks
mbuf has quit [Quit: Leaving]
<Leonidas> Drup: I know, that's why I'd need to write or generate stubs to wrapper code I am writing
<Leonidas> As there is no .so or anything, it might be better to just write the stubs by hand.
_andre has joined #ocaml
kark has joined #ocaml
Haudegen has joined #ocaml
jao has joined #ocaml
sh0t has joined #ocaml
spew has joined #ocaml
zpe has quit [Remote host closed the connection]
sz0 has joined #ocaml
jao has quit [Ping timeout: 264 seconds]
Enjolras has quit [Read error: Connection reset by peer]
AltGr has joined #ocaml
govg has joined #ocaml
butterthebuddha has quit [Max SendQ exceeded]
sh0t has quit [Ping timeout: 268 seconds]
butterthebuddha has joined #ocaml
ollehar has left #ocaml [#ocaml]
spew has quit [Read error: Connection reset by peer]
AltGr has left #ocaml [#ocaml]
spew has joined #ocaml
flux[m] has quit [Ping timeout: 248 seconds]
pierpa has quit [Ping timeout: 260 seconds]
flux[m] has joined #ocaml
AltGr has joined #ocaml
mk9 has joined #ocaml
<kakadu> Folks, how should I run tests https://github.com/janestreet/ppx_hash/tree/v0.10.0/test through jbuidler?
sh0t has joined #ocaml
AltGr has left #ocaml [#ocaml]
<kakadu> `jbuilder build -j1 --root . @DEFAULT` gives some errors about missing rules
<kakadu> I don't know is it my problems or original authors have forgot something?
sh0t has quit [Remote host closed the connection]
mk9 has quit [Client Quit]
sh0t has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Client Quit]
gtrak has quit [Ping timeout: 256 seconds]
gtrak has joined #ocaml
rostero has joined #ocaml
Bronsa` has quit [Remote host closed the connection]
spew has quit [Quit: Leaving]
<kakadu> Also do you know motivation for creating ppxlib? https://github.com/ocaml-ppx/ppxlib.git
Enjolras has joined #ocaml
Enjolras has left #ocaml [#ocaml]
Enjolras has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
kevinqiu has joined #ocaml
mbuf has joined #ocaml
pierpa has joined #ocaml
failproofshark has joined #ocaml
spew has joined #ocaml
al-damiri has joined #ocaml
AltGr has joined #ocaml
zlsyx has quit [Remote host closed the connection]
rostero has quit [Quit: Connection closed for inactivity]
zlsyx has joined #ocaml
Bronsa has joined #ocaml
zlsyx has quit [Ping timeout: 240 seconds]
Haudegen has quit [Remote host closed the connection]
kevinqiu has quit [Remote host closed the connection]
zlsyx has joined #ocaml
kevinqiu has joined #ocaml
ziyourenxiang has quit [Ping timeout: 246 seconds]
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
gtrak has quit [Ping timeout: 260 seconds]
kevinqiu has quit [Ping timeout: 264 seconds]
gtrak has joined #ocaml
Denommus has joined #ocaml
mbuf has quit [Quit: Leaving]
AltGr has left #ocaml [#ocaml]
<rixed_> Am I right to expect `ocamlfind query -predicates native -format '%+a' threads` to list threads.cmxa (ocaml v4.5.0 via opam) ??
<rixed_> Ah actually not. That's part of the magic of -threads. I forgot about that.
stux|RC has joined #ocaml
Haudegen has joined #ocaml
lopex has quit [Ping timeout: 276 seconds]
alphor_ has quit [Ping timeout: 276 seconds]
breitenj has quit [Ping timeout: 276 seconds]
MightyJoe has quit [Read error: Connection reset by peer]
rwmjones has quit [Ping timeout: 276 seconds]
jun has quit [Ping timeout: 276 seconds]
jun has joined #ocaml
cyraxjoe has joined #ocaml
adi_____ has quit [Ping timeout: 276 seconds]
stux|RC-only has quit [Ping timeout: 276 seconds]
rwmjones has joined #ocaml
lopex has joined #ocaml
breitenj has joined #ocaml
alphor has joined #ocaml
adi_____ has joined #ocaml
pierpa has joined #ocaml
<rixed_> Mh, maybe not. From what I can see -threads just adds +threads as include dirs, but does not add threads.cmxa when linking. :-/
ddosia has joined #ocaml
Pierpa_ has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
kakadu has quit [Quit: Konversation terminated!]
kevinqiu has joined #ocaml
onion has quit [Read error: Connection reset by peer]
onion has joined #ocaml
onion is now known as whoman
whoman is now known as onion
jnavila has joined #ocaml
cbot has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
gtrak has quit [Ping timeout: 240 seconds]
kark has quit [Ping timeout: 240 seconds]
gtrak has joined #ocaml
kark has joined #ocaml
GreyFaceNoSpace has joined #ocaml
rbjorkli1 has joined #ocaml
gtrak has quit [Ping timeout: 246 seconds]
zolk3ri has quit [Ping timeout: 245 seconds]
zolk3ri has joined #ocaml
gtrak has joined #ocaml
ShalokShalom has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
malc_ has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
kakadu has joined #ocaml
malc_ has quit [Read error: Connection reset by peer]
malc_ has joined #ocaml
orbifx has joined #ocaml
Denommus has quit [Ping timeout: 260 seconds]
jnavila has quit [Ping timeout: 265 seconds]
bairui_ has joined #ocaml
bairui has quit [Ping timeout: 240 seconds]
Algebr has joined #ocaml
jimmyrcom has quit [Ping timeout: 256 seconds]
Onemorenickname has joined #ocaml
jnavila has joined #ocaml
kevinqiu has quit [Remote host closed the connection]
kevinqiu has joined #ocaml
kevinqiu has left #ocaml [#ocaml]
webshinra has quit [Ping timeout: 256 seconds]
kark has quit [Ping timeout: 256 seconds]
jimmyrcom has joined #ocaml
Algebr has quit [Read error: Connection reset by peer]
webshinra has joined #ocaml
dhil has quit [Ping timeout: 246 seconds]
malc_ has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
rbjorkli1 has quit [Remote host closed the connection]
Haudegen has quit [Remote host closed the connection]
jnavila has quit [Read error: No route to host]
jnavila has joined #ocaml
tarptaeya has quit [Quit: Byeeeeeee!]
Guest40779 has joined #ocaml
_andre has quit [Quit: leaving]
Guest40779 is now known as Haudegen
argent_smith has quit [Quit: Leaving.]
zlsyx has quit [Quit: Leaving...]
jnavila has quit [Remote host closed the connection]
gentauro has quit [Ping timeout: 256 seconds]
gentauro has joined #ocaml
Haudegen has quit [Remote host closed the connection]
zolk3ri has quit [Remote host closed the connection]
sh0t has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 256 seconds]
spew has quit [Quit: Connection closed for inactivity]
Onemorenickname has quit [Read error: Connection reset by peer]
keep_learning has quit [Remote host closed the connection]
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
keep_learning has joined #ocaml