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?
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