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
Haudegen has quit [Read error: Connection reset by peer]
spew has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 260 seconds]
infinity0 has quit [Ping timeout: 256 seconds]
infinity0 has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
sh0t has joined #ocaml
Enjolras has joined #ocaml
spew has joined #ocaml
shinnya has joined #ocaml
zolk3ri has quit [Quit: Lost terminal]
FreeBirdLjj has joined #ocaml
sh0t has quit [Remote host closed the connection]
spew has quit [Ping timeout: 260 seconds]
<kino`> Hey again
<kino`> Is is possible to do a conditional include based on the platform?
FreeBirdLjj has quit [Remote host closed the connection]
leah2 has quit [Ping timeout: 255 seconds]
leah2 has joined #ocaml
pierpa_ has quit [Quit: Page closed]
<companion_cube> in jbuilder? probably, yes, look in the doc
<companion_cube> (worst case, delegate to a small OCaml script)
mfp has quit [Ping timeout: 240 seconds]
<kino`> Ah, I see!
<kino`> Thanks.
letoh has joined #ocaml
hdon has quit [Ping timeout: 256 seconds]
silver has quit [Read error: Connection reset by peer]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 248 seconds]
kino` has quit [Quit: WeeChat 2.1]
_13h has joined #ocaml
jimmyrcom has joined #ocaml
charles__ has joined #ocaml
<charles__> Hi! I'm trying to do something pretty crazy: given a filepath to a .cmo, is it possible to load that module and then access it as an Obj.t? Thanks for your help!
jimmyrcom has quit [Ping timeout: 260 seconds]
lopex has quit [Quit: Connection closed for inactivity]
jimmyrcom has joined #ocaml
<Sargun> Should I have to explictly open the module Misc?
<Sargun> companion_cube: Are you the c-cube of CCBlockingQueue?
nullifidian_ has joined #ocaml
<Sargun> Any why I can't find the Misc module? Error: Unbound module Misc
nullifidian has quit [Ping timeout: 264 seconds]
kakadu_ has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
kakadu has quit [Ping timeout: 256 seconds]
gentauro has quit [Ping timeout: 256 seconds]
gentauro has joined #ocaml
kakadu has joined #ocaml
kakadu_ has quit [Ping timeout: 240 seconds]
charles__ has quit [Quit: leaving]
snhmib has joined #ocaml
cbot has quit [Quit: Leaving]
<Enjolras> Sargun: no idea what the Misc module is
<Sargun> > The module Misc define the function restart_on_EINTR which makes it possible to repeat a system call when it is interrupted by a signal, i.e. when the EINTR exception is raised.
<Sargun> companion_cube: If so, I just needed to use CCBlockingQueue instead of event, and it fixed it.
<Sargun> btw, your containers library is awesome
<Enjolras> i've no idea what this book is referring too :/ never heard of a Misc module
<Enjolras> https://caml.inria.fr/pub/docs/manual-ocaml/libref/Unix.html this is the official doc of the Unix module it does not mention it
MercurialAlchemi has joined #ocaml
<Enjolras> Sargun: that's pretty old book you are reading, it's 4 years old :) maybe it's outdated
<Enjolras> (also yes companion_cube is the author of containers)
<Enjolras> i would recommand not using signals anyway, this can lead to nightmares
Mercuria1Alchemi has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 246 seconds]
mbuf has joined #ocaml
<Sargun> Enjolras: What's the alternative?
nicoo has quit [*.net *.split]
nicoo has joined #ocaml
<Sargun> Stupid question (to be fair, I'm using Reason), If I define an object type, a la -- type signal_msg = < sig_val :int >, how do I create it?
<Sargun> or create an instance of it
shinnya has joined #ocaml
<Enjolras> Sargun: alterative : any other rpc mechanic, even http server
<Enjolras> object you can define an object method sig_val = 42 end and it will have type signal_msg
<Enjolras> you can also cast like (object method sig_val = 42 method some_other_method = 43 end :> signal_msg)
<Enjolras> i'm not familiar with reason syntax sorry, hopefully you can figure it out
<Sargun> Enjolras: Ah, no, unfortunately, I'm writing a service supervisor
<Sargun> So, I've gotta deal with our friends Docker, and systemd
<Enjolras> uh oh good lucj
<Enjolras> well i guess you can reimplement this retry_on_eintr function. Also you might want to have a look at ExtUnix library
snhmib has quit [Ping timeout: 256 seconds]
<Sargun> I'm using ExtUnix.
<Sargun> I rolled my own restart_on_EINTR
<Enjolras> :)
orbifx has joined #ocaml
<Sargun> I come from Erlang.
<Sargun> So, the FP bits are mostly at home
<Sargun> The runtime, and syntax..is not
snhmib has joined #ocaml
orbifx has quit [Client Quit]
muelleme_ has joined #ocaml
<Sargun> How did Ocaml come up with these signal numbers? https://github.com/ocaml/ocaml/blob/trunk/stdlib/sys.mlp#L87
<Sargun> They don't seem to jive with real signal numbers: https://elixir.bootlin.com/linux/latest/source/include/uapi/asm-generic/signal.h#L12
<Enjolras> i don't know but this annoys me often
<Enjolras> Sys is a module wich is supposed to be kinf of platform independant
<Enjolras> so it sorta work on windows sometimes
<Enjolras> if you ask me, i think it's just a pile of hack
<Sargun> What's a Windows?
<Sargun> ExtUnix only works on Linux.
<Sargun> its signal handler bits at least
<Enjolras> Wondows, the OS :)
<Enjolras> windows*
<Sargun> :P
<Enjolras> ExtUnix is a separated lib, Sys is in stdlib, and it's here forever
<Sargun> Yeah
<Enjolras> it's probably some legacy from 30 years ago
<Sargun> I wonder if BatSys is any better
<Sargun> Nope
<Enjolras> No it has some runtime support in C and all libs use it
<Enjolras> that's probably indexes in a jump table. This type should probably have been abstracted. Lemme check
<Enjolras> yes, the numbers are index in translation table to C values
muelleme_ has quit [Ping timeout: 240 seconds]
<Enjolras> it really should be abstracted type and not expose that it's an int :/ but compatibitly probably makes it impossible to change now
moolc has joined #ocaml
<Sargun> It probably should have been an enum
snhmib has quit [Ping timeout: 256 seconds]
snhmib has joined #ocaml
mrgrieves has joined #ocaml
Haudegen has joined #ocaml
argent_smith has joined #ocaml
ygrek has joined #ocaml
lopex has joined #ocaml
kdas__ has joined #ocaml
kdas__ is now known as kushal
kushal has quit [Changing host]
kushal has joined #ocaml
kushal has quit [Quit: Leaving]
tarptaeya has joined #ocaml
dhil has joined #ocaml
mfp has joined #ocaml
pierpa has joined #ocaml
muelleme_ has joined #ocaml
muelleme_ has quit [Ping timeout: 248 seconds]
zolk3ri has joined #ocaml
muelleme_ has joined #ocaml
kalio has quit [Ping timeout: 240 seconds]
kalio has joined #ocaml
snhmib has quit [Ping timeout: 276 seconds]
snhmib has joined #ocaml
jao has joined #ocaml
tarptaeya has quit [Ping timeout: 264 seconds]
tarptaeya has joined #ocaml
snhmib has quit [Ping timeout: 256 seconds]
moolc has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
snhmib has joined #ocaml
_13h has quit [Quit: Page closed]
snhmib has quit [Ping timeout: 240 seconds]
gtrak has joined #ocaml
snhmib has joined #ocaml
snhmib has quit [Ping timeout: 246 seconds]
snhmib has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
dhil has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
gtrak has quit [Ping timeout: 256 seconds]
gtrak has joined #ocaml
spew has joined #ocaml
spew has quit [Ping timeout: 256 seconds]
sh0t has joined #ocaml
snhmib has quit [Ping timeout: 255 seconds]
mbuf has quit [Quit: Leaving]
muelleme_ has quit [Ping timeout: 255 seconds]
snhmib has joined #ocaml
sh0t has quit [Remote host closed the connection]
pippijn_ is now known as pippijn
pippijn has quit [Changing host]
pippijn has joined #ocaml
xutux has joined #ocaml
_andre has joined #ocaml
reynir has quit [Ping timeout: 255 seconds]
mrgrieves has quit [Ping timeout: 240 seconds]
mrgrieves has joined #ocaml
xutux has quit [Remote host closed the connection]
xutux has joined #ocaml
reynir has joined #ocaml
jao has joined #ocaml
BitPuffin has joined #ocaml
muelleme_ has joined #ocaml
muelleme_ has quit [Ping timeout: 264 seconds]
gtrak has quit [Ping timeout: 256 seconds]
jao has quit [Ping timeout: 256 seconds]
mk9 has joined #ocaml
jao has joined #ocaml
gtrak has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
zolk3ri has quit [Ping timeout: 264 seconds]
spew has joined #ocaml
xutux_ has joined #ocaml
xutux has quit [Ping timeout: 256 seconds]
zolk3ri has joined #ocaml
sh0t has joined #ocaml
mk9 has quit [Quit: mk9]
snhmib has quit [Ping timeout: 256 seconds]
tarptaeya has quit [Ping timeout: 256 seconds]
tarptaeya has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 246 seconds]
snhmib has joined #ocaml
tarptaeya_ has joined #ocaml
tarptaeya_ has quit [Client Quit]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
muelleme_ has joined #ocaml
snhmib has quit [Ping timeout: 246 seconds]
govg has quit [Ping timeout: 264 seconds]
govg has joined #ocaml
_whitelogger has joined #ocaml
lostman has quit [Ping timeout: 276 seconds]
Fistine has quit [Ping timeout: 276 seconds]
cschneid_ has quit [Ping timeout: 276 seconds]
Fistine has joined #ocaml
cschneid has joined #ocaml
lostman has joined #ocaml
silver has joined #ocaml
mk9 has quit [Quit: mk9]
muelleme_ has quit [Ping timeout: 260 seconds]
snhmib has joined #ocaml
muelleme_ has joined #ocaml
FreeBirdLjj has joined #ocaml
jao has quit [Ping timeout: 264 seconds]
ygrek has quit [Ping timeout: 268 seconds]
pierpa has quit [Ping timeout: 260 seconds]
pierpa has joined #ocaml
xutux_ has quit [Ping timeout: 248 seconds]
pierpa has quit [Ping timeout: 260 seconds]
mk9 has joined #ocaml
mk9 has quit [Quit: mk9]
muelleme_ has quit [Ping timeout: 260 seconds]
pierpa has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
kakadu has joined #ocaml
snhmib has quit [Ping timeout: 276 seconds]
bartholin has quit [Read error: Connection reset by peer]
bartholin has joined #ocaml
snhmib has joined #ocaml
<Sargun> Do Ocaml channels / blocking queues / events have multi-select?
ousado has quit [Ping timeout: 260 seconds]
ousado has joined #ocaml
moolc has joined #ocaml
muelleme_ has joined #ocaml
<dmbaturin> Sargun: You mean select/poll?
<dmbaturin> The standard library has Unix.select, Lwt has its wrapper, there are wrappers for poll in Extunix AFAIR.
hdon has joined #ocaml
muelleme_ has quit [Ping timeout: 256 seconds]
<zozozo> Sargun: a (- i) signal number in sys.ml refers to a signal number at the i-th position in a C array defined elsewhere
moei has quit [Quit: Leaving...]
<zozozo> Specifically in the byterun/signals.c file
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
zolk3ri has quit [Ping timeout: 264 seconds]
zolk3ri has joined #ocaml
jnavila has joined #ocaml
xutux has joined #ocaml
muelleme_ has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
jnavila has quit [Ping timeout: 240 seconds]
zv has quit [Ping timeout: 240 seconds]
moolc has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
kakadu has quit [Quit: Konversation terminated!]
muelleme_ has quit [Ping timeout: 268 seconds]
gpietro has joined #ocaml
jnavila has joined #ocaml
lostman_ has joined #ocaml
fds_ has joined #ocaml
jao has joined #ocaml
bjs_ has joined #ocaml
lostman has quit [*.net *.split]
sh0t has quit [*.net *.split]
shakalaka has quit [*.net *.split]
Bluddy[m] has quit [*.net *.split]
Haudegen[m] has quit [*.net *.split]
isaachodes[m] has quit [*.net *.split]
dlebrecht[m] has quit [*.net *.split]
spectrumgomas[m] has quit [*.net *.split]
thizanne has quit [*.net *.split]
neubyi has quit [*.net *.split]
kit_ty_kate has quit [*.net *.split]
fds has quit [*.net *.split]
bjs has quit [*.net *.split]
bjs_ is now known as bjs
lostman_ is now known as lostman
shakalaka has joined #ocaml
pierpa_ has joined #ocaml
letoh has quit [Ping timeout: 276 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
argent_smith has quit [Quit: Leaving.]
Haudegen[m] has joined #ocaml
thizanne has joined #ocaml
kit_ty_kate has joined #ocaml
dlebrecht[m] has joined #ocaml
isaachodes[m] has joined #ocaml
Bluddy[m] has joined #ocaml
spectrumgomas[m] has joined #ocaml
letoh has joined #ocaml
kino` has joined #ocaml
mrgrieves has quit [Ping timeout: 260 seconds]
mrgrieves has joined #ocaml
mk9 has joined #ocaml
Onemorenickname has joined #ocaml
ygrek has joined #ocaml
kakadu has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
Enjolras has quit [Read error: Connection reset by peer]
mrgrieves has quit [Ping timeout: 240 seconds]
mrgrieves has joined #ocaml
<Sargun> dmbaturin: Select on Event, or on queues
mk9 has quit [Quit: mk9]
<xutux> Hi, Does anyone any good Ocaml Code "Scanner" that would be a good bases for checking things like what functions are Total or if there are any uncaught exceptions or dead code (functions that aren't used in a module and can be removed), etc.
gtrak has quit [Ping timeout: 256 seconds]
gtrak has joined #ocaml
<Drup> xutux: some of those are already provided by compiler warnings
<Drup> for the rest, the name you are looking for is "static analyzer". We don't really have one for unhandled exceptions unfortunately
<Drup> for project-wide dead code, there is dead_code_analyzer on opam
Haudegen has quit [Remote host closed the connection]
jnavila has quit [Remote host closed the connection]
muelleme_ has joined #ocaml
hdon has quit [Changing host]
hdon has joined #ocaml
gtrak has quit [Ping timeout: 264 seconds]
gtrak has joined #ocaml
onion has quit [Ping timeout: 264 seconds]
muelleme_ has quit [Ping timeout: 255 seconds]
fds_ is now known as fds
ygrek has quit [Ping timeout: 256 seconds]
mk9 has joined #ocaml
whonion has joined #ocaml
ygrek has joined #ocaml
neubyi has joined #ocaml
isd has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
gtrak has quit [Ping timeout: 264 seconds]
gtrak has joined #ocaml
whonion has quit [Ping timeout: 255 seconds]
snhmib has quit [Ping timeout: 246 seconds]
galaticstructs has joined #ocaml
_andre has quit [Quit: leaving]
onion has joined #ocaml
onion is now known as whoman
Haudegen has joined #ocaml
whoman has quit [Ping timeout: 255 seconds]
ygrek has quit [Ping timeout: 240 seconds]
hdon has quit [Ping timeout: 240 seconds]
Onemorenickname has quit [Read error: Connection reset by peer]
snhmib has joined #ocaml
hdon has joined #ocaml
zv has joined #ocaml
whoman has joined #ocaml
moei has joined #ocaml
isd has quit [Ping timeout: 256 seconds]
galaticstructs has quit [Ping timeout: 260 seconds]
snhmib has quit [Ping timeout: 256 seconds]
mk9 has quit [Remote host closed the connection]
snhmib has joined #ocaml
isd has joined #ocaml
huglovefan has joined #ocaml
tarptaeya has quit [Quit: Byeeeeeee!]
jao has quit [Remote host closed the connection]
kakadu has quit [Remote host closed the connection]
isd has quit [Quit: Leaving.]
snhmib has quit [Ping timeout: 276 seconds]
shinnya has joined #ocaml
whoman has quit [Quit: WeeChat 1.9.1]
onion has joined #ocaml
onion is now known as whoman
whoman is now known as onion