companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
zpe has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has joined #ocaml
infinity0 is now known as Guest42597
infinity0_ is now known as infinity0
Guest42597 has quit [Killed (weber.freenode.net (Nickname regained by services))]
iitalics has joined #ocaml
ziyourenxiang has quit [Ping timeout: 240 seconds]
keep_learning has joined #ocaml
Guest65934 has quit [Read error: Connection reset by peer]
average has quit [Remote host closed the connection]
sh0t has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
jlam_ has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
iitalics has quit [Quit: /thread]
mfp__ has quit [Ping timeout: 255 seconds]
spew has quit [Quit: foobar]
copy_ has quit [Quit: Connection closed for inactivity]
jao has joined #ocaml
sgronblo has quit [Read error: Connection reset by peer]
nahra has quit [Remote host closed the connection]
nahra has joined #ocaml
_whitelogger has joined #ocaml
jlam__ is now known as jlam
zpe has joined #ocaml
silver has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 240 seconds]
sh0t has quit [Remote host closed the connection]
jao has quit [Ping timeout: 240 seconds]
tienson has joined #ocaml
pyx has joined #ocaml
pyx has quit [Client Quit]
raphaelss has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
pierpa has quit [Quit: Page closed]
lizzin has joined #ocaml
lizzin is now known as Guest30402
sgronblo has joined #ocaml
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 240 seconds]
jlam has quit [Ping timeout: 268 seconds]
jlam has joined #ocaml
johnelse_ has quit [Ping timeout: 240 seconds]
raphaelss has joined #ocaml
cranmax has quit [Quit: Connection closed for inactivity]
zpe has joined #ocaml
MercurialAlchemi has joined #ocaml
sgronblo has quit [Read error: No route to host]
enterprisey has joined #ocaml
sgronblo has joined #ocaml
ghasshee_ has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
ghasshee_ has quit [Quit: leaving]
enterprisey has quit [Remote host closed the connection]
tienson has quit [Ping timeout: 268 seconds]
olibjerd has joined #ocaml
govg has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
cthuluh has quit [Ping timeout: 276 seconds]
zpe has joined #ocaml
Guest30402 has quit [Quit: leaving]
cthuluh has joined #ocaml
MercurialAlchemi has joined #ocaml
freusque has joined #ocaml
olibjerd has quit [Quit: olibjerd]
zpe has quit [Ping timeout: 260 seconds]
enterprisey has joined #ocaml
malkss has joined #ocaml
<malkss> Anyone think they can break my hashing function? (this is just a fun challenge I made): http://ideone.com/nSJa45 Goal: Determine the plaintext of the following hash: d0c0c93dcff308d1
<malkss> This is an attempt to solve it: https://pastebin.com/raw/5cWSdmxe
enterprisey has quit [Remote host closed the connection]
Simn has joined #ocaml
alfredo has joined #ocaml
<malkss> Anyone think they can break my hashing function? (this is just a fun challenge I made): http://ideone.com/nSJa45 Goal: Determine the plaintext of the following hash: d0c0c93dcff308d1
<malkss> This is an attempt to solve it: https://pastebin.com/raw/5cWSdmxe
<malkss> 100USD up for grabs to anyone who manages to solve it :)
vramana has joined #ocaml
barcabuona has quit [Ping timeout: 246 seconds]
<adrien> this is C code, it's not really related to ocaml
<Armael> also, breaking a hash function usually means finding a collision
<Armael> er, being able to generate collisions for arbitrary hashes*
barcabuona has joined #ocaml
zpe has joined #ocaml
<malkss> Armael: preimage attack you mean?
<Armael> err yea
<malkss> Armael: Try find a cool algorithm or mathematical way of breaking it
malkss has quit [Ping timeout: 260 seconds]
rossberg_ has quit [Ping timeout: 255 seconds]
rossberg_ has joined #ocaml
ygrek_ has quit [Ping timeout: 240 seconds]
AltGr has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
olibjerd has joined #ocaml
argent_smith has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
freusque has joined #ocaml
kakadu has joined #ocaml
johnelse has joined #ocaml
olibjerd has quit [Quit: olibjerd]
olibjerd has joined #ocaml
mfp__ has joined #ocaml
cranmax has joined #ocaml
olibjerd has quit [Ping timeout: 260 seconds]
zpe has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 268 seconds]
minn has joined #ocaml
sgronblo has quit [Ping timeout: 240 seconds]
butts_butts has joined #ocaml
foocraft has joined #ocaml
foocraft has quit [Changing host]
foocraft has joined #ocaml
Sim_n has joined #ocaml
olibjerd has joined #ocaml
Simn has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 260 seconds]
hkghkghkghkghk has joined #ocaml
<minn> I'm having trouble with pfff and ocamlgraph on 4.02.0 using OPAM (apparently pfff-commons-graph/lib.cma and ocamlgraph/graph.cma disagree over the interface Graph). I'm not really sure how to resolve the issue (I tried recompiling everything).
hkghkghkghkghk has quit [Client Quit]
<kakadu_> Folks, do you see any obvious issue related to benchmarking in the piece of code https://paste.in.ua/2782/ ?
<kakadu_> I worried about the fact that after switching from /usr/bin/time to Unix.gettimeofday the code that previously was slower became faster
<companion_cube> you might want to use an accurate monotonic clock instead, btw
<companion_cube> for micro benchmarks
<companion_cube> sth like ptime or oclock
<companion_cube> yeah
<companion_cube> or, you know, use an existing benchmark lib like benchmark or core_bench
<octachron> minn, unfortunately, it looks like a cross-library module name conflict. The only solution is to temporarily rename the module (and/or open an issue asking for the libraries to properly namespace their modules)
<reynir> Is there a library or something for micrbenchmarks?
<reynir> (Ok yea `opam search bench` lists a lot of promising packages)
* companion_cube uses benchmark
<minn> octachron: That is unfortunate (and odd, because pfff depends on ocamlgraph as far as I can tell). It's also possible that I'm doing something wrong (i.e., not loading the correct packages or whatever). Thank you :)
frefity has joined #ocaml
<octachron> minn, it looks like pfff is using a vendored version of ocamlgraph, have you tried to use it rather than the properly packaged ocamlgraph?
ziyourenxiang has joined #ocaml
<minn> octachron: It appears that compiling from source and using the version of ocamlgraph they distribute works. So does switching to 4.01.0 from Ocaml > 4.02.0.
<minn> (That, or I just don't know enough about the tools to hook everything together properly - definitely possible).
<octachron> minn, quite possibly the vendored version of ocamlgraph is only compatible with the last version of ocamlgraph available for 4.01 and not with more recent versions of ocamlgraph
zpe has joined #ocaml
jao has joined #ocaml
sgronblo has joined #ocaml
jao has quit [Ping timeout: 246 seconds]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
<kakadu_> okay, I did some measuring with /usr/bin/time and got https://pasteboard.co/1LyPkax4f.png
<kakadu_> and later I used ocaml benchamrk library and got this: https://pasteboard.co/1M1rJE3H3.png
<kakadu_> does this mean that programs measured by /usr/bin/time behave like faster programs?
zpe has quit [Remote host closed the connection]
<kakadu_> The main thing that worries me that most optimized version (purple) is kind of most optimized when I measure with /usr/bin/time. But it is not like it when I measure with a library
<orbifx[m]> how do I open|include an `.ml` file in utop?
<orbifx[m]> ah.. load
<orbifx[m]> ow that is for bytecode files..
<orbifx[m]> #use :)
raphaelss has quit [Ping timeout: 240 seconds]
frefity has quit [Ping timeout: 240 seconds]
dtornabene has joined #ocaml
hashpuppy has quit [Quit: Connection closed for inactivity]
frefity has joined #ocaml
<kakadu_> It seems that a library called 'benchmark' uses wall time which is not very good
<companion_cube> oh, right, I didn't realize
* companion_cube opens an issue
<kakadu_> And dbuenzli uses CLOCK_REALTIME instead of CLOCK_MONOTONIC which is kind of bad too. https://github.com/dbuenzli/ptime/blob/master/src-os/ptime_clock_stubs.c#L129
samrat_ has joined #ocaml
<companion_cube> which one is bad?
<kakadu_> REALTIME
<adrien> man clock_gettime
<companion_cube> oh.
<adrien> iirc
<adrien> you'll have to scroll a bit
<companion_cube> I'm surprised that Bünzli made the wrong choice in this kind of library
<adrien> well, he might have a justification for that :P
<companion_cube> kakadu_: but I kind of recall that ptime gives access to different clocks?
<adrien> hmm
<adrien> wall time is a valid measurement
<companion_cube> ah maybe it's mtime‽
<adrien> but both CLOCK_REALTIME and CLOCK_MONOTONIC are kind of wall clocks
<adrien> are you sure it's not that something uses CPU time instead? i.e. Sys.times
<adrien> sorry: Sys.time
cranmax has quit [Quit: Connection closed for inactivity]
<Drup> yeah, mtime is the monotonic one
<kakadu_> companion_cube: ptime seems not to give access to different clocks
<companion_cube> right, so it's mtime
govg has quit [Ping timeout: 268 seconds]
govg has joined #ocaml
_andre has joined #ocaml
zpe has joined #ocaml
<mrvn> long live CLOCK_MONOTONIC, may she never go back
rdutra has joined #ocaml
rdutra has quit [Client Quit]
rdutra has joined #ocaml
foocraft has quit [Quit: Leaving]
vramana has quit [Quit: vramana]
barcabuona has quit [Ping timeout: 246 seconds]
cranmax has joined #ocaml
nomicflux has joined #ocaml
barcabuona has joined #ocaml
sepp2k has joined #ocaml
raphaelss has joined #ocaml
silver has joined #ocaml
al-damiri has joined #ocaml
samrat_ has quit [Ping timeout: 255 seconds]
jbrown has joined #ocaml
mrvn has left #ocaml [#ocaml]
<orbifx[m]> :P
nomicflux has quit [Quit: nomicflux]
raphaelss has quit [Ping timeout: 240 seconds]
frefity has quit [Quit: Ex-Chat]
shinnya has joined #ocaml
jlam_ has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
vramana has joined #ocaml
jlam has joined #ocaml
sh0t has joined #ocaml
jlam_ has quit [Ping timeout: 255 seconds]
malina has joined #ocaml
alfredo has quit [Quit: Textual IRC Client: www.textualapp.com]
rdutra has quit [Quit: Leaving.]
rdutra has joined #ocaml
jlam_ has joined #ocaml
nightmared has quit [Ping timeout: 246 seconds]
freusque has quit [Ping timeout: 255 seconds]
nightmared has joined #ocaml
jlam has quit [Ping timeout: 260 seconds]
samrat_ has joined #ocaml
freusque has joined #ocaml
<Leonidas> can't figure out what core_bench does
<Drup> pixie magic, mostly
<Drup> and running things in tight loops while taking care of the GC.
<Leonidas> probably. though I have to admit that it is surprisingly nice to use
<companion_cube> what does "taking care of the GC" mean in this context?
dtornabene has quit [Read error: Connection reset by peer]
<Drup> it mesures the amount of garbage, gc run and afaik, it factors in the average cost of the GC when measuring. It also interleaves runs to average things out, and things like that
<companion_cube> ok
<companion_cube> (too bad it still depends on Core…)
<Drup> yeah
vramana has quit [Quit: vramana]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
samrat_ has quit [Ping timeout: 240 seconds]
vramana has joined #ocaml
SpiceGuid has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
vramana has quit [Quit: vramana]
vramana has joined #ocaml
olibjerd has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 268 seconds]
olibjerd has joined #ocaml
kevinqiu has joined #ocaml
samrat_ has joined #ocaml
Sim_n has quit [Quit: Leaving]
copy_ has joined #ocaml
ryanartecona has joined #ocaml
enterprisey has joined #ocaml
Denommus has joined #ocaml
FreeBirdLjj has joined #ocaml
Simn has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
jbrown has quit [Quit: Leaving]
<n4323> orbitfx: i noticed that #use loads any .cmo corresponding to the .ml given in the path, and does not check that it's up to date with the .ml. beware.
MercurialAlchemi has joined #ocaml
tane has joined #ocaml
jbrown has joined #ocaml
vramana_ has joined #ocaml
vramana has quit [Ping timeout: 255 seconds]
MercurialAlchemi has quit [Ping timeout: 268 seconds]
MercurialAlchemi has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
sgronblo has quit [Read error: Connection reset by peer]
SpiceGuid has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.46/20161213183751]]
jnavila has joined #ocaml
zpe has quit [Remote host closed the connection]
AltGr has quit [Ping timeout: 246 seconds]
mfp__ has quit [Ping timeout: 268 seconds]
mfp__ has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
ygrek_ has joined #ocaml
Anarchos has joined #ocaml
jnavila has joined #ocaml
kevinqiu` has joined #ocaml
kevinqiu has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 258 seconds]
kevinqiu` has quit [Read error: Connection reset by peer]
kevinqiu` has joined #ocaml
jnavila has quit [Ping timeout: 255 seconds]
enterprisey has quit [Ping timeout: 268 seconds]
tane has quit [Quit: Leaving]
ryanartecona has joined #ocaml
jlam has joined #ocaml
jlam__ has quit [Ping timeout: 246 seconds]
MercurialAlchemi has quit [Ping timeout: 276 seconds]
enterprisey has joined #ocaml
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 276 seconds]
sgronblo has joined #ocaml
sgronblo has quit [Read error: Connection reset by peer]
samrat_ has quit [Ping timeout: 240 seconds]
raphaelss has joined #ocaml
jao has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 276 seconds]
FreeBirdLjj has joined #ocaml
cschneid has quit [Ping timeout: 246 seconds]
TheLemonMan has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
cschneid has joined #ocaml
jnavila has joined #ocaml
Leonidas has quit [Quit: Debian 9 happened]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
sh0t has quit [Ping timeout: 240 seconds]
jlam has quit [Killed (adams.freenode.net (Nickname regained by services))]
jlam__ is now known as jlam
jlam_ has joined #ocaml
sh0t has joined #ocaml
shinnya has joined #ocaml
Denommus has quit [Quit: rebooting]
MercurialAlchemi has joined #ocaml
sgronblo has joined #ocaml
kakadu_ has quit [Quit: Konversation terminated!]
sgronblo has quit [Read error: Connection reset by peer]
jnavila has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
Anarchos has quit [Remote host closed the connection]
<minn> Is it possible to configure the toplevel to show large values using a pager (e.g., less)?
Anarchos has joined #ocaml
Anarchos has quit [Client Quit]
MercurialAlchemi has quit [Ping timeout: 276 seconds]
sgronblo has joined #ocaml
jbrown has quit [Remote host closed the connection]
sgronblo has quit [Read error: Connection reset by peer]
Leonidas has joined #ocaml
ryanartecona has joined #ocaml
cthuluh has quit [Ping timeout: 255 seconds]
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 240 seconds]
jbrown has joined #ocaml
enterprisey has joined #ocaml
cthuluh has joined #ocaml
kakadu has joined #ocaml
enterprisey has quit [Remote host closed the connection]
jlam__ has quit [Ping timeout: 268 seconds]
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 258 seconds]
Simn has quit [Read error: Connection reset by peer]
jnavila has quit [Remote host closed the connection]
sgronblo has joined #ocaml
TheLemonMan has quit [Quit: Lost terminal]
sgronblo has quit [Read error: Connection reset by peer]
olibjerd has quit [Quit: olibjerd]
olibjerd has joined #ocaml
sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ocaml
mengu has joined #ocaml
kevinqiu` has quit [Ping timeout: 240 seconds]
olibjerd has quit [Quit: olibjerd]
rdutra has quit [Ping timeout: 240 seconds]
sgronblo has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
sgronblo has quit [Ping timeout: 240 seconds]
Soni has quit [Ping timeout: 260 seconds]
minn has quit [Ping timeout: 240 seconds]
pierpa has joined #ocaml
enterprisey has joined #ocaml
kevinqiu` has joined #ocaml
Soni has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
kevinqiu` has quit [Ping timeout: 276 seconds]
nomicflux has joined #ocaml
nomicflux has quit [Quit: nomicflux]
nomicflux has joined #ocaml
sgronblo has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
rdutra has joined #ocaml
sgronblo has quit [Ping timeout: 276 seconds]
sgronblo has joined #ocaml
spew has joined #ocaml
minn has joined #ocaml
sgronblo has quit [Ping timeout: 255 seconds]
spew has quit [Quit: foobar]
ryanartecona has joined #ocaml
nomicflux has quit [Quit: nomicflux]
kevinqiu` has joined #ocaml
argent_smith has quit [Quit: Leaving.]
nomicflux has joined #ocaml
rdutra has quit [Ping timeout: 276 seconds]
nomicflux has quit [Client Quit]
kevinqiu` has quit [Ping timeout: 246 seconds]