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
letoh_ has quit [Ping timeout: 240 seconds]
sh0t has quit [Remote host closed the connection]
sh0t has joined #ocaml
infinity0 has quit [Ping timeout: 240 seconds]
infinity0 has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
sh0t has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
mfp has quit [Ping timeout: 256 seconds]
jao has quit [Ping timeout: 240 seconds]
letoh has joined #ocaml
h11 has joined #ocaml
cbot has joined #ocaml
zlsyx has quit [Ping timeout: 240 seconds]
alphor_ has quit [Ping timeout: 240 seconds]
clockish has quit [Ping timeout: 255 seconds]
clockish has joined #ocaml
alphor has joined #ocaml
pierpa_ has quit [Ping timeout: 260 seconds]
spew has joined #ocaml
jimt has quit [Quit: jimt]
jimt has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
pierpa has joined #ocaml
letoh has quit [Ping timeout: 240 seconds]
spew has quit [Quit: Leaving]
Bronsa has quit [Ping timeout: 256 seconds]
mbuf has joined #ocaml
gtrak has quit [Ping timeout: 240 seconds]
gtrak has joined #ocaml
Bronsa has joined #ocaml
malc_ has joined #ocaml
Bronsa has quit [Ping timeout: 246 seconds]
cbot has quit [Quit: Leaving]
Enjolras has joined #ocaml
MercurialAlchemi has joined #ocaml
jimmyrcom has joined #ocaml
govg has joined #ocaml
<_xvilka_> hi
<_xvilka_> how to convert String buffer to the char* with OCaml Ctypes? I am using "let bufp = CArray.of_list char (String.to_list buf)" as a temporary workaround, but obviously it is a shitty solution
<Enjolras> ohwow
<Enjolras> What is a "string buffer" ? just an ocaml string ?
Haudegen has joined #ocaml
<_xvilka_> Enjolras: yes
<Enjolras> you can directly translate a string into a char *, and there are helpers to copy too
<_xvilka_> Enjolras: can it handle strings with zero character inside?
gtrak has quit [Ping timeout: 276 seconds]
remix2000 has quit [Quit: The Lounge - https://thelounge.github.io]
remix2000 has joined #ocaml
gtrak has joined #ocaml
<Enjolras> _xvilka_: it mostly depends on your C part.
<Enjolras> the link is outdate sorry, it's now here : http://ocamllabs.io/ocaml-ctypes/Ctypes_types.TYPE.html
<Enjolras> if you want to copy char * from C to ocaml including null bytes you can use string_from_ptr
<Enjolras> with a len
<Enjolras> automatic copy from char * will stop at NULL
<Enjolras> in the other direction, your stub probably has to pass a size_t on top of the char * and you can pass that easily
remix2000 has quit [Quit: The Lounge - https://thelounge.github.io]
remix2000 has joined #ocaml
remix2000 has quit [Quit: The Lounge - https://thelounge.github.io]
remix2000 has joined #ocaml
malc_ has left #ocaml ["ERC (IRC client for Emacs 27.0.50)"]
argent_smith has joined #ocaml
tarptaeya has joined #ocaml
zpe has joined #ocaml
remix2000 has quit [Quit: milk]
remix2000 has joined #ocaml
ygrek has joined #ocaml
kakadu has joined #ocaml
Bronsa has joined #ocaml
dhil has joined #ocaml
zolk3ri has joined #ocaml
mfp has joined #ocaml
zpe has quit [Ping timeout: 276 seconds]
jao has joined #ocaml
andreas_ has joined #ocaml
Haudegen has quit [Remote host closed the connection]
dakk has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
mk9 has joined #ocaml
al-damiri has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
zpe has joined #ocaml
jimmyrcom has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
shinnya has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
gtrak has quit [Ping timeout: 256 seconds]
pioneer42 has joined #ocaml
sh0t has joined #ocaml
opios has joined #ocaml
opios has quit [Changing host]
opios has joined #ocaml
pioneer42 has left #ocaml [#ocaml]
Bronsa has quit [Ping timeout: 264 seconds]
orbifx has joined #ocaml
andreas_ has quit [Quit: Connection closed for inactivity]
mbuf has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 240 seconds]
sh0t has quit [Ping timeout: 246 seconds]
gtrak has joined #ocaml
_andre has joined #ocaml
orbifx has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
spew has joined #ocaml
spew has quit [Read error: Connection reset by peer]
onion has joined #ocaml
letoh has joined #ocaml
onion is now known as whoman
whoman is now known as onion
dhil has quit [Ping timeout: 240 seconds]
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #ocaml
govg has joined #ocaml
cthuluh has quit [Ping timeout: 260 seconds]
cthuluh has joined #ocaml
sh0t has joined #ocaml
Enjolras has quit [Read error: Connection reset by peer]
dhil has joined #ocaml
ddosia has joined #ocaml
maxdos has joined #ocaml
<maxdos> Hey there :)
<maxdos> Im trying to file a bug report
<maxdos> but i cant get signed up at the mantis system
<maxdos> so it looks like... your bugtracker has a bug ?
<maxdos> anyone else with that problem
MercurialAlchemi has quit [Ping timeout: 264 seconds]
bbc has quit [Ping timeout: 256 seconds]
ziyourenxiang has joined #ocaml
<kit_ty_kate> maxdos: does it give you any error messages ?
bbc has joined #ocaml
<maxdos> mhhm not really no
<maxdos> its just promising to send me an signup email
<maxdos> but it does not
<maxdos> in the mantis wiki they recomend to update the mantis version
<octachron> Hm, I have not been receiving mantis notification lately, it might be related
<maxdos> mhhm so
<maxdos> how to flag a bug about the bugreport system not working ?
FreeBirdLjj has joined #ocaml
spew has joined #ocaml
ygrek has quit [Ping timeout: 252 seconds]
<kit_ty_kate> maxdos: maybe try to send an email to the caml-list ?
<kit_ty_kate> or directly to damiendoligez
<companion_cube> or on discuss.ocaml.org, which doesn't share infrastructure with the mantis tracker
<maxdos> yes i already posted into the discuss forum
<maxdos> lets see what turns out there
<maxdos> i really hope i can publish my bug request soon then ^^
trochdewei has joined #ocaml
<Armael> I'll ping damien IRL tomorrow, if he hasn't seen your post on discuss in the meantime
<maxdos> ahh great :)
<maxdos> thank you!
<maxdos> i will keep an eye on the post :)
<maxdos> thank you guys !
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
maxdos has quit [Ping timeout: 260 seconds]
mk9 has quit [Client Quit]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
trochdewei has quit [Quit: Leaving]
zpe has quit [Ping timeout: 240 seconds]
Murmele has joined #ocaml
<Murmele> Hello, I'm trying to pack scilab into a flatpak package and for this I need ocaml. After compiled ocaml I try to compile scilab, but there I get the errer, that ocamlopt is missing. When I look into the flatpak install folder I find there only a ocamloptp file. Do anybody know how I can install ocamlopt?
sz0 has joined #ocaml
mbuf has joined #ocaml
BitPuffin has joined #ocaml
<octachron> Murmele, how did you build and install OCaml? "make world.opt" should generate ocamlopt.
<Murmele> Hi octachron,
<Murmele> "./configure -prefix /app", "make world", "make install", "make clean"
<Murmele> so I have to do it twice or just make world.opt?
<kakadu> make world.opt
<Murmele> ok thank you I will try :)
* kakadu is not sure but maybe even world.opt and opt.opt
<Murmele> so make world.opt and then make opt.opt?
<kakadu> and obviously you can put everyting into single make invocation
<Murmele> ok I didn't know. thank you
Haudegen has quit [Read error: Connection reset by peer]
FreeBirdLjj has quit [Remote host closed the connection]
zlsyx has joined #ocaml
<Murmele> Thank you it solved this problem!
Bronsa has joined #ocaml
Murmele has left #ocaml [#ocaml]
zlsyx has quit [Remote host closed the connection]
zlsyx has joined #ocaml
zlsyx has quit [Ping timeout: 276 seconds]
Robdor has quit [Quit: later]
muelleme has joined #ocaml
Robdor has joined #ocaml
muelleme has quit [Ping timeout: 246 seconds]
zlsyx has joined #ocaml
dakk has quit [Remote host closed the connection]
isd has joined #ocaml
tarptaeya has quit [Quit: Byeeeeeee!]
jao has joined #ocaml
jimmyrcom has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
letoh has quit [Ping timeout: 276 seconds]
letoh has joined #ocaml
Bronsa has quit [Ping timeout: 268 seconds]
marsam has quit [Read error: Connection reset by peer]
marsam has joined #ocaml
mbuf has quit [Quit: Leaving]
Haudegen has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
Bronsa has joined #ocaml
bartholin has quit [Read error: Connection reset by peer]
bartholin has joined #ocaml
Sargun_ is now known as Sargun
bartholin has quit [Read error: Connection reset by peer]
bartholin has joined #ocaml
BitPuffin has quit [Remote host closed the connection]
jimmyrcom has quit [Ping timeout: 265 seconds]
ars23 has joined #ocaml
chelfi has quit [Ping timeout: 276 seconds]
chelfi has joined #ocaml
mk9 has joined #ocaml
orbifx has joined #ocaml
muelleme has joined #ocaml
argent_smith has quit [Quit: Leaving.]
Haudegen has quit [Remote host closed the connection]
ars23 has quit [Quit: Leaving]
bartholin has quit [Ping timeout: 264 seconds]
bartholin has joined #ocaml
muelleme has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
jimmyrcom has joined #ocaml
barcabuona has quit [Ping timeout: 256 seconds]
barcabuona has joined #ocaml
barcabuona has quit [Quit: WeeChat 2.0.1]
_andre has quit [Read error: No route to host]
gtrak has quit [Ping timeout: 260 seconds]
littleli has quit [Ping timeout: 264 seconds]
littleli has joined #ocaml
kakadu has quit [Remote host closed the connection]
kino` has joined #ocaml
<kino`> Hi !
<kino`> Can somebody point me to some resources about extending an existing module, please?
<kino`> (I'm trying to extend Stdint's Uint32 module with sexp functions as to use it as Key for a Core Map)
<onion> hmm functors?
<kino`> hmm
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
<kino`> Seems like it could be it
<kino`> I have trouble making sense of RWO's chapter, though. I'll keep trying, thanks c:
<Armael> module MyUint32 = struct include Uint32 let other_function () = ... end ?
<Armael> this will create a MyUint32 module with the contents of Uint32 + the additional functions you declare in it
<kino`> Hm.
mk9 has quit [Client Quit]
mk9 has joined #ocaml
ddosia has quit [Quit: Connection closed for inactivity]
<kino`> In https://discuss.ocaml.org/t/examples-of-using-base-map/1197/11, it is advised to do `include Comparable.Make(T)`.
<kino`> However, I can't do that in the middle of creating my module, right?
Bronsa has quit [Ping timeout: 240 seconds]
<onion> RWO ?
<kino`> Real World Ocaml, sorry
Haudegen has quit [Remote host closed the connection]
<kino`> Ah, I think I've figured it out
<kino`> I ended up doing something like this: https://pastebin.com/QaA6Kq0v
<kino`> Last question: Is it possible to create a module of the same name?
navaja has joined #ocaml
isd has quit [Quit: Leaving.]
al-damiri has quit [Quit: Connection closed for inactivity]
dlebrecht[m] has joined #ocaml
<kino`> Anyway, thanks for the help.
cbot has joined #ocaml
shinnya has joined #ocaml
navaja has quit [Read error: Connection reset by peer]
ziyourenxiang has quit [Ping timeout: 276 seconds]
sh0t has quit [Remote host closed the connection]
cbot has quit [Ping timeout: 240 seconds]
orbifx has quit [Ping timeout: 268 seconds]