adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | 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
dtornabene has quit [Ping timeout: 240 seconds]
alienbot has joined #ocaml
alienbot has quit [Client Quit]
alienbot has joined #ocaml
justicefries has joined #ocaml
richi235 has quit [Ping timeout: 255 seconds]
nomicflux has quit [Quit: nomicflux]
snhmib has joined #ocaml
mfp has quit [Ping timeout: 260 seconds]
snhmib has quit [Quit: WeeChat 1.6]
nomicflux has joined #ocaml
myst|fon has quit [Quit: Connection closed for inactivity]
ygrek has quit [Ping timeout: 240 seconds]
jabroney has joined #ocaml
spew has quit [Ping timeout: 255 seconds]
spew has joined #ocaml
mengu has quit [Remote host closed the connection]
cross has joined #ocaml
spew has quit [Quit: foobar]
silver has quit [Read error: Connection reset by peer]
nomicflux has quit [Quit: nomicflux]
fraggle_ has quit [Ping timeout: 255 seconds]
infinity0 has quit [Ping timeout: 245 seconds]
Orion3k has joined #ocaml
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
nomicflux has joined #ocaml
infinity0 has joined #ocaml
ryanartecona has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
ryanartecona has joined #ocaml
chamar has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
nomicflux has quit [Quit: nomicflux]
ryanartecona has quit [Quit: ryanartecona]
ryanartecona has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
wagle has joined #ocaml
jack5638 has quit [Ping timeout: 240 seconds]
jack5638 has joined #ocaml
AlexDenisov has joined #ocaml
jack5638 has quit [Ping timeout: 240 seconds]
jack5638 has joined #ocaml
jabroney has quit [Quit: Leaving.]
govg has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
MercurialAlchemi has joined #ocaml
average has quit [Ping timeout: 245 seconds]
hannes` has joined #ocaml
alphor has quit [Ping timeout: 260 seconds]
maker has quit [Ping timeout: 260 seconds]
jave has quit [Ping timeout: 260 seconds]
jrslepak has quit [Ping timeout: 268 seconds]
hannes has quit [Ping timeout: 268 seconds]
shon_ has quit [Ping timeout: 268 seconds]
edwin has quit [Ping timeout: 260 seconds]
tobiasBora has quit [Ping timeout: 268 seconds]
dmbaturin has quit [Ping timeout: 268 seconds]
jrslepak has joined #ocaml
cdidd has quit [Ping timeout: 260 seconds]
vishesh has quit [Ping timeout: 260 seconds]
freedrul1 has quit [Ping timeout: 260 seconds]
freedrul1 has joined #ocaml
abeaumont has quit [Ping timeout: 268 seconds]
engil has quit [Ping timeout: 268 seconds]
cdidd has joined #ocaml
dmbaturin has joined #ocaml
Enjolras_ has joined #ocaml
tobiasBora has joined #ocaml
engil has joined #ocaml
john51_ has quit [Read error: Connection reset by peer]
alphor has joined #ocaml
Enjolras has quit [Read error: Connection reset by peer]
john51 has joined #ocaml
edwin has joined #ocaml
vishesh has joined #ocaml
maker has joined #ocaml
shon has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jave has joined #ocaml
zpe has joined #ocaml
moei has quit [Quit: Leaving...]
zpe has quit [Remote host closed the connection]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
rbocquet has quit [Ping timeout: 246 seconds]
nightmared has quit [Ping timeout: 240 seconds]
nightmared has joined #ocaml
rbocquet has joined #ocaml
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
dhil has joined #ocaml
argent_smith has joined #ocaml
AlexDenisov has joined #ocaml
freusque has joined #ocaml
mfp has joined #ocaml
freusque has quit [Quit: WeeChat 1.7]
freusque has joined #ocaml
hannes` is now known as hannes
jack5638 has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
abeaumont has joined #ocaml
hpd_m has quit [Remote host closed the connection]
yetanotherion[m] has quit [Read error: Connection reset by peer]
M-martinklepsch has quit [Remote host closed the connection]
aspiwack[m] has quit [Remote host closed the connection]
smondet[m] has quit [Read error: Connection reset by peer]
Bluddy[m] has quit [Write error: Connection reset by peer]
M-jimt has quit [Write error: Broken pipe]
regnat[m] has quit [Remote host closed the connection]
timclassic has quit [Remote host closed the connection]
M-Illandan has quit [Write error: Connection reset by peer]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ktosiek[m] has joined #ocaml
so has quit [Ping timeout: 260 seconds]
moei has joined #ocaml
AlexDenisov has joined #ocaml
richi235 has joined #ocaml
slash^ has joined #ocaml
mengu has joined #ocaml
zpe has joined #ocaml
freyr has joined #ocaml
silver has joined #ocaml
sphinxo has joined #ocaml
<freyr> Hi there. Is there any useful alternatives to libevent/libev for ocaml?
srenatus[m] has joined #ocaml
regnat[m] has joined #ocaml
aspiwack[m] has joined #ocaml
timclassic has joined #ocaml
M-jimt has joined #ocaml
M-martinklepsch has joined #ocaml
Bluddy[m] has joined #ocaml
M-Illandan has joined #ocaml
smondet[m] has joined #ocaml
yetanotherion[m] has joined #ocaml
hpd_m has joined #ocaml
<freyr> Something that works well with lwt and react
kakadu has joined #ocaml
jbrown has quit [Ping timeout: 264 seconds]
so has joined #ocaml
TheLemonMan has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vmonteco> Hello. I'm trying to implement the sdbm hash function like this : https://dpaste.de/BBPz according to this SO post : http://stackoverflow.com/a/15971/3156085, but I get 48 for "H" which is not the correct value which should be 2b5ed according to https://md5hashing.net/hash/djb2/2b5ed . What could be wrong with my function?
<artart78> well it looks like djb2 is different from sdbm
mengu has quit [Quit: Leaving...]
<orbitz> Drup: Hello! In this little snippet, Furl routes to the default case for the 'goodbye' path, am I doing something wrong? https://bitbucket.org/snippets/orbitz/qAdLr
<orbitz> Drup: they both fail to route if I put "goodbye" before "hello" in the routing list
<orbitz> Drup: actually I take the last claim back. my assert was wrong in goodbye. If I flip the ordering goodbye succeeds and hello fails.
ziyourenxiang has joined #ocaml
_andre has joined #ocaml
<Drup> orbitz: so... what's the issue ?
BitPuffin|osx has joined #ocaml
<Drup> oh, I see
<orbitz> Drup: at least for this example, whatever the second route is gets ignored
Muzer has quit [Ping timeout: 256 seconds]
dhil has quit [Ping timeout: 245 seconds]
AlexDenisov has joined #ocaml
shinnya has joined #ocaml
<freyr> Could somebody explain what does Lwt_engine.event means?
<companion_cube> it's probably dark magic
<companion_cube> writing a backend for lwt is no simple task
<freyr> companion_cube: No, I'm not writing a backend, I want to use some reactive I/O
<companion_cube> how do you mean "reactive IO"?
<freyr> I thought Lwt_engine provides something like event callbacks (like in libev or libuv)
<companion_cube> lwt is already based on nonblocking IO
<Drup> freyr: what is not sufficient in Lwt_io ?
<freyr> I know, I need a lwt compatible event mechanism
richi235 has quit [Ping timeout: 260 seconds]
<Drup> What do you actually want to do ?
mpenet has joined #ocaml
<freyr> Drup: afaik Lwt_io returns promise until say somebody write something into pipe. I want to poll a descriptor in libev style.
<freyr> companion_cube: by reactive I mean reactive polling, with a callbacks and events, like in libev.
<companion_cube> but why would you want to do that? lwt already does it for you
<adrien> to do what afterwards?
<freyr> companion_cube: Maybe, I'm still not well aware of lwt concepts. I have a descriptor, some other process writes something into it from time to time, so I want to do some stuff on each such message
mpenet has quit [Remote host closed the connection]
<freyr> and then write something into db. I used to libev/epoll style I/O so I'm not really understant how to do so in OCaml with lwt
<adrien> basically you'd write it in the same fashion as if you were using blocking calls
<adrien> but you use Lwt I/O functions and >>=
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
alienbot has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<freyr> adrien: You mean read? So I could just bind read_line function with the handler with the bind compinator and the handler would be called each time read_line gets a value?
<freyr> or should I wrap it with the loop?
<Drup> If you want to read all the lines, it's Lwt_read_lines
<Drup> Lwt_io.read_lines*
<Drup> (plural :p)
<orbitz> Drup: any ideas on the Furl thing? If not I'm going to put my heavy-typing-ahead hardhat on and dive in.
Muzer has joined #ocaml
alienbot has joined #ocaml
<Drup> orbitz: I'm looking at it now
dhil has joined #ocaml
<orbitz> drawesome thanks
<Drup> at least, it's not a regular expression problem
<freyr> Drup: Well, it does not seem to work as I've wanted. It seems it reads fd's content only once, after that the promise seems to be always ulfilled. I need to call handler on each update of the FD's context, so is seems I need either a loop or an libev wrapper.
<freyr> adrien:
<freyr> could I do that with a pure Lwt_io?
slash^ has quit [Read error: Connection reset by peer]
<Drup> mfp: ^
<Drup> (freyr: side note, your question on reddit is a very bad case of X/Y problem, you should really explain your original problem)
<freyr> Drup: Ok, I would edit it
<Drup> (I mean, your question is really "how to minitor an fd with lwt to retrieve all the content as soon as it's being written", which probably has a good answer, even if I personally don't know)
myst|fon has joined #ocaml
<freyr> Drup: Thanks, is it better now?
<Drup> Probably :p
<orbitz> Drup: this furl code is a wild ride.
<orbitz> I'm not saying it's over-engineered or something. It's just usage of the type system beyond my day-to-day experience ;)
<Drup> orbitz: pretty sure I now why this is happening
<orbitz> So it's actually quite fun.
<orbitz> Drup: what's the hypothesis?
<Drup> It's due to a change in the indexing of groups in Tyre
<orbitz> ok
* orbitz shakes fist at Tyre
<Drup> (at least I think so)
<orbitz> Drup: is there a version of tyre I can pin to for testing?
<Drup> let me try to fix this in furl first :p
<Drup> orbitz: by the way, I have a wip branch in furl called "onetype" with a simplified API
<Drup> (it has the same bug, though)
<orbitz> Drup: Ok, I can take a look at it if you'd like. So far I don't mind the current api. But I've only written it long enough to find a bug :)
dhil has quit [Ping timeout: 268 seconds]
<orbitz> Drup: the implementation looks a bit simpler at first glance. And the .mli file is much simpler which is pleasant.
<flux> what? furl is nowadays dynamically typed?-)
<orbitz> haha
<orbitz> Drup: btw, I notice you tend to do like `let by_name () = Furl.(...)` Any reason in particular you don't just do `let by_name = Furl.(...)`?
<Drup> orbitz: have you tried ?
<Drup> You can try, you will see that it produces lot's of non-generalized type variables and it's annoying
<orbitz> ahh ok. I have not tried
dhil has joined #ocaml
<orbitz> Drup: Is the fix a big diff?
<Drup> No
<Drup> but as you said, the code is a big tricky :p
<orbitz> heeh
clog has quit [Ping timeout: 260 seconds]
TheLemonMan has joined #ocaml
richi235 has joined #ocaml
zpe has quit [Remote host closed the connection]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chamar has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
spew has joined #ocaml
AlexDenisov has joined #ocaml
richi235 has quit [Ping timeout: 260 seconds]
<Drup> orbitz: fixed
jabroney has joined #ocaml
<Drup> I should add a real test suite for furl. The one for tyre is rather good, but I never did it for furl :/
sh0t has joined #ocaml
<orbitz> Drup: is it in master?
<Drup> no, in onetype
<orbitz> Ok, is onetype the one I should be using from nowon?
<Drup> let's say that when I start working on furl again, I'll start from onetype :p
<orbitz> Ok
* orbitz crosses fingers this git subtree merge works when changing branch
<Drup> oups, wait a sec
<Drup> orbitz: you use a git submodule ?
zpe has joined #ocaml
<orbitz> No, I'm trying to use subtree merge
<orbitz> It's easier for me to just put your code in a subdir of my project and I'm trying to retain histories and git is black magic.
<Drup> I would prefer you to use opam
balod has quit [Remote host closed the connection]
balod has joined #ocaml
<orbitz> Drup: I would too, but given that it's not in opam-repository using open is more problematic with my CI system.
clog has joined #ocaml
<Drup> why ? You can just do "opam pin add furl https://github.com/Drup/furl.git#onetype"
<orbitz> Yes, *I* can, but my CI server doesn't like special cases.
<Drup> hum, ok
<orbitz> This merge baloney isn't goign well anyways so I'll probalby just setup something
<reynir> ooh, furl. I haven't looked at that in a while
<flux> a nice CI would have one list the required opam urls and the rest would work automatically?-)
<Drup> well, not even that. You should be able to run arbitrary pre-build scripts
<orbitz> Drup: I broke down and just made my own furl entry in my opam repo. Much easier.
<Drup> yes, that works too :p
<flux> drup, but then the CI could also detect when the upstream package has changed and trigger a rebuild :)
<Drup> ah, yeah, but that's a bit more complicated
<orbitz> One problem I have with opam, at least on my system, it's crazy slow for use in a CI system
<orbitz> Making sure I have all of the correct things installed is very time consumign
<flux> in fact, it could also automatically downgrade a package if the new one breaks the build!
<flux> and produce a matrix of compatible packages
yomimono has joined #ocaml
<TheLemonMan> good to know that opam is slow for everyone and not just for me, it takes ~30s to do anything
<Drup> are you using the internal solver ?
<TheLemonMan> aspcud
<orbitz> I'm using whatever comes onf reebsd
<orbitz> I think the freebsd port is unfortunately old as well so that might ahve something to do with it
alienbot has quit [Read error: Connection reset by peer]
<orbitz> Drup: yaay works, thank you!
mfp has quit [Ping timeout: 255 seconds]
zpe has quit [Remote host closed the connection]
bronsen has quit [Remote host closed the connection]
bronsen has joined #ocaml
cross has quit [Quit: leaving]
cross has joined #ocaml
<Drup> orbitz: if you want to contribute, I would greatly appreciate a test suite, in the same style as the one in tyre
govg has quit [Ping timeout: 260 seconds]
freyr has quit [Quit: Lost terminal]
shinnya has quit [Ping timeout: 240 seconds]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<orbitz> Drup: I'll add it to my todo-list, no promises! I'm behind enough on my own stuff! ;)
ryanartecona has joined #ocaml
AlexDenisov has joined #ocaml
copy` has joined #ocaml
dhil has quit [Ping timeout: 255 seconds]
tane has joined #ocaml
snhmib has joined #ocaml
jao has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
yomimono has quit [Ping timeout: 260 seconds]
yomimono has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
frefity has quit [Ping timeout: 252 seconds]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zpe has joined #ocaml
dhil has joined #ocaml
mengu has joined #ocaml
jabroney has quit [Quit: Leaving.]
mfp has joined #ocaml
frefity has joined #ocaml
slash^ has joined #ocaml
n4323 has quit [Quit: WeeChat 1.7]
jabroney has joined #ocaml
dtornabene has joined #ocaml
frefity has quit [Ping timeout: 268 seconds]
spew has quit [Quit: foobar]
zpe has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 260 seconds]
TheLemonMan has joined #ocaml
myst|fon has quit [Quit: Connection closed for inactivity]
ziyourenxiang has quit [Quit: Leaving]
tane has quit [Quit: Leaving]
govg has joined #ocaml
ryanartecona has joined #ocaml
ololol has joined #ocaml
<ololol> Hi
<ololol> Does anyone use this chat?
<yomimono> _whitelogger keeps logs at https://irclog.whitequark.org/ocaml/2017-04-12 (click the calendar for other dates), you can judge for yourself ololol
<ololol> Arigatou
sphinxo has quit [Ping timeout: 255 seconds]
average has joined #ocaml
myst|fon has joined #ocaml
ololol has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jabroney has quit [Quit: Leaving.]
malc_ has joined #ocaml
<adrien> hmm
govg_ has joined #ocaml
govg has quit [Ping timeout: 260 seconds]
jlongster has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
silver has quit [Read error: Connection reset by peer]
m4farrel has joined #ocaml
AlexDenisov has joined #ocaml
pilne has joined #ocaml
mengu has quit [Remote host closed the connection]
jabroney has joined #ocaml
govg_ has quit [Quit: Reconnecting]
govg has joined #ocaml
<reynir> that was a nice answer
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jlongster has quit [Quit: Textual IRC Client: www.textualapp.com]
sz0 has joined #ocaml
kakadu has joined #ocaml
yomimono has quit [Ping timeout: 260 seconds]
OCamlFTW has joined #ocaml
<OCamlFTW> What is the #1 book you recommend to learn OCaml? I am not new; coming from other languages.
<OCamlFTW> \o/ TY
mengu has joined #ocaml
<Leonidas> OCamlFTW: RTW, yes.
<average> I just hanged my clothes to dry
<average> they're clean as f***
<average> totally ocaml-relevant btw..
<Leonidas> yep, i can see how having clothes makes you a better programmer
<average> Leonidas: can you elaborate?
<companion_cube> certainly not, the best programmers don't wear pants and keep their alcohol level precisely at the Ballmer's peak
<Leonidas> average: for example, if you code at coffee shops, it is useful to wear clothes to keep the background noise lower, thus making it easier to concentrate
slash^ has quit [Read error: Connection reset by peer]
<average> Leonidas: was that a trial-and-error revelation?
<average> Leonidas: or was it obvious from the get?
<Leonidas> companion_cube: what about underwear? or kilts?
<companion_cube> obviously, toolkilts are ok
OCamlFTW has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kaini has joined #ocaml
vicfred has joined #ocaml
argent_smith has quit [Quit: Leaving.]
kaini has quit [Quit: Leaving]
mengu has quit [Quit: Leaving...]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
tane has joined #ocaml
malc_ has quit [Ping timeout: 268 seconds]
_andre has quit [Quit: leaving]
govg has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
maattdd has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
orbifx has joined #ocaml
myst|fon has quit [Quit: Connection closed for inactivity]
* Leonidas :D
sz0 has quit [Quit: Connection closed for inactivity]
strykerkkd has joined #ocaml
vicfred has quit [Quit: Leaving]
jabroney has left #ocaml [#ocaml]
john51 has quit [Ping timeout: 255 seconds]
john51 has joined #ocaml
john51 has quit [Read error: Connection reset by peer]
john51 has joined #ocaml
dougt_colo has joined #ocaml
orbifx has quit [Ping timeout: 260 seconds]
tane has quit [Quit: Leaving]
richi235 has joined #ocaml
myst|fon has joined #ocaml
kakadu has quit [Remote host closed the connection]
nightmared has quit [Ping timeout: 260 seconds]
nightmared has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 255 seconds]
mengu has joined #ocaml
sh0t has quit [Remote host closed the connection]
richi235 has quit [Ping timeout: 252 seconds]
reynir has quit [Read error: Connection reset by peer]
nomicflux has joined #ocaml
reynir has joined #ocaml
Geekingfrog has quit [Ping timeout: 246 seconds]
Geekingfrog has joined #ocaml
reynir has quit [Read error: Connection reset by peer]
reynir has joined #ocaml
pitastrudl has quit [Ping timeout: 240 seconds]
pitastrudl has joined #ocaml
strykerkkd has quit [Quit: Leaving]