adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
_whitelogger has joined #ocaml
olle has quit [Remote host closed the connection]
iovec has joined #ocaml
hph^ has quit [Read error: Connection reset by peer]
hph^ has joined #ocaml
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ocaml
hph^ has quit [Excess Flood]
hph^ has joined #ocaml
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ocaml
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ocaml
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ocaml
hph^ has quit [Max SendQ exceeded]
hph^ has joined #ocaml
hph^ has quit [Max SendQ exceeded]
spew has quit [Quit: Connection closed for inactivity]
silver has quit [Read error: Connection reset by peer]
mfp has quit [Ping timeout: 244 seconds]
jao has quit [Ping timeout: 250 seconds]
ziyourenxiang has joined #ocaml
MadcapJake has joined #ocaml
Niamkik has quit [Ping timeout: 240 seconds]
ziyourenxiang has quit [Ping timeout: 240 seconds]
Niamkik has joined #ocaml
Niamkik has quit [Ping timeout: 250 seconds]
roygbiv has joined #ocaml
tobiasBora has quit [Ping timeout: 272 seconds]
Spetznaz_ has quit [Ping timeout: 245 seconds]
Niamkik has joined #ocaml
tobiasBora has joined #ocaml
ziyourenxiang has joined #ocaml
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 250 seconds]
roygbiv has quit [Quit: ™]
demonimin has joined #ocaml
saltine has quit [Ping timeout: 268 seconds]
gravicappa has joined #ocaml
salc has joined #ocaml
iovec has quit [Quit: Connection closed for inactivity]
jim7j1ajh has joined #ocaml
jimt has quit [Ping timeout: 272 seconds]
steenuil has quit [Remote host closed the connection]
jim7j1ajh is now known as jimt
<Leonidas> can anyone here rerun single travis builds in ocaml-community? Drup? pmezger?
<Leonidas> https://github.com/ocaml-community/yojson/pull/73 there is a single macOS build which needs to be restarted because of a random failure
flodin has joined #ocaml
powerbit has quit [Read error: Connection reset by peer]
freyr69 has joined #ocaml
mfp has joined #ocaml
iovec has joined #ocaml
JimmyRcom has quit [Ping timeout: 250 seconds]
mildtaste has quit [Ping timeout: 252 seconds]
Birdface has joined #ocaml
jaar has joined #ocaml
ollehar has joined #ocaml
Guest50908 has joined #ocaml
sgnb has quit [Ping timeout: 240 seconds]
mildtaste has joined #ocaml
Guest50908 has quit [Read error: Connection reset by peer]
Birdface has quit [Remote host closed the connection]
Birdface has joined #ocaml
mildtaste has quit [Ping timeout: 252 seconds]
mildtaste has joined #ocaml
mildtaste has quit [Ping timeout: 252 seconds]
mildtaste has joined #ocaml
Haudegen has joined #ocaml
<orbitz> Drup: I wrote my own furl! I couldn't have done it without having your code around.
<orbitz> thank you
<Drup> x)
<orbitz> I took a bit different aproach too, so it's not a complete ripoff
rks` has joined #ocaml
mildtaste has quit [Ping timeout: 252 seconds]
mildtaste has joined #ocaml
<Leonidas> what is a… "furl"?
<zozozo> Leonidas: https://github.com/Drup/furl
<Leonidas> ah, ok, tahnks
<orbitz> I leveled up the name in my version: furi!
<Leonidas> the next one will be 'furn'?
<orbitz> quite possibly!
carlosdagos has quit [Quit: Connection closed for inactivity]
orbifx has joined #ocaml
decentpenguin has joined #ocaml
waleee has joined #ocaml
jaar has quit [Ping timeout: 252 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaar has joined #ocaml
silver has joined #ocaml
Birdface has quit [Remote host closed the connection]
Birdface has joined #ocaml
powerbit has joined #ocaml
status402 has joined #ocaml
Birdface has quit [Remote host closed the connection]
Birdface has joined #ocaml
aec has joined #ocaml
<aec> I have a `let rec foo = ...` to which I want to add a new parameter to be able to make it tail recursive. Should I declare a local function inside `foo` or should I use an optional parameter? What is the recommended way
<theblatte> it's more common to have a local inner function
<aec> Thanks @theblatte :)
<aec> In that case I'll be declaring an extra function every time the outer function `foo` is called, right? Is that a noticable performance penalty?
<aec> *does that have a noticable performance penalty?
<zozozo> aec: if the internal function doe snot capture anything (in the environment), it will be lifted out iirc
<theblatte> yes, better not to capture anything to avoid allocating a closure
<thizanne> that probably won't be noticeable anyway, though
<zozozo> as long as the internal function is used more than once, indeed, its allocation shouldn't be a big cost overall
avr_oc has joined #ocaml
jao has joined #ocaml
ravenousmoose has joined #ocaml
ravenousmoose is now known as ravenousmoose[aw
ravenousmoose[aw has quit [Client Quit]
ollehar has quit [Ping timeout: 268 seconds]
aecepoglu[m] has joined #ocaml
aec has left #ocaml [#ocaml]
aec has joined #ocaml
FreeBirdLjj has joined #ocaml
JimmyRcom has joined #ocaml
Birdface has quit [Remote host closed the connection]
Birdface has joined #ocaml
waleee has quit [Quit: WeeChat 2.3]
FreeBirdLjj has quit [Ping timeout: 246 seconds]
aec has quit [Quit: leaving]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
decentpenguin has quit [Quit: WeeChat 2.3]
Birdface has quit [Ping timeout: 250 seconds]
jao has quit [Ping timeout: 240 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
spew has joined #ocaml
<Ulrar> Hey dumb question, how do I tell Printf.sprintf to display a float without the .000000 at the end ?
<orbifx> Ulrar: take a look at the %x.yf formatting options
<Ulrar> I can convert it as an int before passing it to Printf but is there a way to do that from the format string ?
<orbifx> I think its "%.0f"
<Ulrar> Mh yep
<Ulrar> that works
<Ulrar> thanks !
<octachron> There is also %g
<orbifx> Ulrar: you are welcome. I recommend you use rounding though for better accuraccy
<orbifx> Unless you have a reason not to
<Ulrar> It's a timestamp, I don't actually need a float
<Ulrar> That's just what I'm getting from Unix.time
<orbifx> get top marks for rounding
<orbifx> :)
<orbifx> octachron: does %g not have 2 decimal places?
<orbifx> Ulrar: there is also Pervasives.truncate
<octachron> the precision argument of %.*g controls the number of significant digits, and %g avoids unnecessary trailing zeroes
<orbifx> ah
Birdface has joined #ocaml
ravenousmoose has joined #ocaml
Birdface has quit [Ping timeout: 264 seconds]
ravenousmoose[aw has quit [Client Quit]
FreeBirdLjj has joined #ocaml
freyr69 has quit [Remote host closed the connection]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
Birdface has joined #ocaml
decentpenguin has joined #ocaml
status402 has quit [Quit: status402]
ravenousmoose has joined #ocaml
ravenousmoose is now known as ravenousmoose[aw
ravenousmoose[aw has quit [Client Quit]
sgnb has joined #ocaml
rain1 has quit [Ping timeout: 250 seconds]
mildtaste has quit [Remote host closed the connection]
mico_ has joined #ocaml
ravenousmoose[aw has joined #ocaml
ravenousmoose[aw has quit [Client Quit]
bartholin has joined #ocaml
mico_ has quit [Quit: Textual IRC Client: www.textualapp.com]
twopoint718 has joined #ocaml
ravenousmoose[aw has joined #ocaml
ravenousmoose[aw has quit [Client Quit]
shmibs has quit [Quit: leaving =o]
shmibs has joined #ocaml
pierpal has quit [Ping timeout: 245 seconds]
tg has quit [Ping timeout: 246 seconds]
marvin2 has joined #ocaml
avr_oc has quit [Ping timeout: 245 seconds]
Birdface has quit [Remote host closed the connection]
Birdface has joined #ocaml
jao has joined #ocaml
pierpal has joined #ocaml
Birdface has quit [Ping timeout: 268 seconds]
pierpal has quit [Quit: Poof]
nikivi has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
nikivi has joined #ocaml
twopoint718 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose[aw has joined #ocaml
ravenousmoose[aw is now known as ravenousmoose
ravenousmoose is now known as ravenousmoose[aw
ravenousmoose[aw has quit [Client Quit]
tane has joined #ocaml
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
orbifx has quit [Quit: WeeChat 2.3]
ravenousmoose has joined #ocaml
ravenousmoose is now known as ravenousmoose[aw
ravenousmoose[aw has quit [Client Quit]
recj has quit [Ping timeout: 245 seconds]
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #ocaml
jaar has quit [Quit: Leaving]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
ravenousmoose[aw has joined #ocaml
tg has joined #ocaml
ravenousmoose[aw has quit [Client Quit]
FreeBirdLjj has quit [Ping timeout: 272 seconds]
Serpent7776 has joined #ocaml
orbifx has joined #ocaml
ravenousmoose[aw has joined #ocaml
ravenousmoose[aw has quit [Client Quit]
orbifx has quit [Quit: WeeChat 2.3]
avr_oc has joined #ocaml
r3s1stanc3 has joined #ocaml
r3s1stanc3_ has quit [Ping timeout: 244 seconds]
Pavliana29 has joined #ocaml
Pavliana29 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
decentpenguin has quit [Quit: WeeChat 2.3]
twopoint718 has joined #ocaml
jao has quit [Remote host closed the connection]
twopoint718 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravicappa has quit [Ping timeout: 250 seconds]
SomeDamnBody has joined #ocaml
<SomeDamnBody> Am I right that opam switch command is no longer compatible with the way it used to work?
twopoint718 has joined #ocaml
<SomeDamnBody> I tried doing opam switch 4.05.0
Haudegen has quit [Remote host closed the connection]
<SomeDamnBody> And it says [ERROR] No switch 4.05.0 is currently installed. Did you mean 'opam switch create 4.05.0'?
<SomeDamnBody> Installed switches are:
<SomeDamnBody> This is really annoying
<Drup> That's from 2.0
<Drup> yes, the syntax changed a little bit, that's why it's 2.0 and not 1.3 :)
<Drup> although, in that particular case, I'm pretty sure the 2.0 syntax is backward compatible
jao has joined #ocaml
twopoint718 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kakadu_ has joined #ocaml
twopoint718 has joined #ocaml
anton-trunov has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
anton-trunov has joined #ocaml
runciter has quit [Ping timeout: 268 seconds]
psacrifice has quit [Quit: ZNC 1.7.1 - https://znc.in]
runciter has joined #ocaml
psacrifice has joined #ocaml
<spew> is there a way to get dune to show the full path to a file in error messages?
_whitelogger has joined #ocaml
orbifx has joined #ocaml
<spew> are there any bdd style testing frameworks in ocaml?
<companion_cube> what's bdd style testing?
<spew> behavior driven development
<spew> like cucumber or python's behave
<companion_cube> I don't know, then
<companion_cube> people tend to use unit tests, quickcheck-style property tests, cram tests…
<spew> I need to write tests for a service written in c++
<spew> and typically we would use python
<spew> but I am trying to find more ways to incorporate ocaml
<spew> I'm not trying to test ocaml code
<spew> but c++ code using ocaml
<companion_cube> I'm not sure I understand what this stuff brings, compared to 'classic' unit tests :s
<orbifx> spew: incorporate ocaml by replacing C++ XD
<spew> that would be ideal yes
twopoint718 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Serpent7776 has quit [Quit: leaving]
spew has quit [Quit: going home pizza time]
wilfredh has quit [Quit: Connection closed for inactivity]
Spetznaz_ has joined #ocaml
<orbifx> does dune care if git's version tags are lightweight or annotate when watermarking?
Jesin has quit [Quit: Leaving]
cantstanya has quit [Remote host closed the connection]
kakadu_ has quit [Remote host closed the connection]
cantstanya has joined #ocaml
iovec has quit [Quit: Connection closed for inactivity]
<orbifx> how can I submit a package without a github account?
<companion_cube> I don't think you can
<orbifx> :S
tane has quit [Quit: Leaving]
Jesin has joined #ocaml
<orbifx> companion_cube: can I have two repositories?
<companion_cube> with git, sure, you just need one remote per repository
<orbifx> i mean create a new hierarchy for easy importing of multiple repos
orbifx has quit [Quit: WeeChat 2.3]
steenuil has joined #ocaml