adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml MOOC http://1149.fr/ocaml-mooc | OCaml 4.02.3 announced http://ocaml.org/releases/4.02.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
damason_afk has joined #ocaml
badon has quit [Ping timeout: 256 seconds]
badon has joined #ocaml
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ncthom91 has joined #ocaml
madroach has quit [Ping timeout: 246 seconds]
madroach has joined #ocaml
jeffmo has quit [Quit: jeffmo]
sz0 is now known as sz0`
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
damason_afk has quit [Quit: No Ping reply in 180 seconds.]
damason has joined #ocaml
damason has quit [Quit: No Ping reply in 180 seconds.]
lostman has joined #ocaml
damason has joined #ocaml
lewis1711 has joined #ocaml
JacobEdelman is now known as Freud
Freud is now known as JacobEdelman
cody` has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has joined #ocaml
<mahem1> Hmmm, I wonder how to more easily do a:
Algebr has joined #ocaml
Algebr is now known as Guest39152
<mahem1> match my_list with | hd::tl -> List.fold_right fn tl hd | hd::[] -> hd
<mahem1> Use the first list element as the initial value of a fold.
<Drup> and fail if the list is empty ?
Denommus has quit [Quit: going home]
<mahem1> True...
<mahem1> I guess that is why it shouldn't be done that way.
<Drup> :)
Guest39152 is now known as Algebr`
Denommus has joined #ocaml
lambdahands has quit [Ping timeout: 264 seconds]
emmanueloga has quit [Ping timeout: 264 seconds]
lambdahands has joined #ocaml
emmanueloga has joined #ocaml
Denommus` has joined #ocaml
kalzz has quit [Ping timeout: 264 seconds]
Denommus has quit [Ping timeout: 250 seconds]
Denommus` is now known as Denommus
kalzz has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
<nicoo> mahem1: Most of the time, there is a value `zero` for which `collect f l = fold f zero l` (for all l but fixed f)
manizzle has quit [Ping timeout: 240 seconds]
manizzle has joined #ocaml
nojb has joined #ocaml
TBads has joined #ocaml
nojb has quit [Ping timeout: 250 seconds]
TBads has quit [Quit: WeeChat 1.3]
Sorella has quit [Quit: Connection closed for inactivity]
govg has joined #ocaml
govg is now known as Guest95708
<lewis1711> how can I make this compile with corebuild?
<lewis1711> it runs in the repl
<lewis1711> (utop, that is)
antkong has quit [Quit: antkong]
ncthom91 has joined #ocaml
antkong has joined #ocaml
sz0` is now known as sz0
fluter has joined #ocaml
<lewis1711> ugh, it's "open Core.Std". nm
Guest95708 has quit [Ping timeout: 240 seconds]
sz0 is now known as sz0`
FreeBirdLjj has quit [Read error: Connection timed out]
FreeBirdLjj has joined #ocaml
Denommus` has joined #ocaml
Denommus has quit [Ping timeout: 256 seconds]
kansi has joined #ocaml
pierpa has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Denommus` has quit [Quit: Bye]
caml has quit [Ping timeout: 252 seconds]
malc_ has quit [Quit: leaving]
tennix has joined #ocaml
Denommus has joined #ocaml
sz0` is now known as sz0
Denommus has quit [Read error: Connection reset by peer]
<lewis1711> if I have a file a.ml, which implicitly forms the module A, how can I use it in the repl? #use "./a.ml" won't recognise that the file forms a module
<chambart> lewis1711, use #mod_use instead of #use
<lewis1711> awesome, thanks
sgnb` has quit [Ping timeout: 250 seconds]
Denommus has joined #ocaml
kansi has left #ocaml [#ocaml]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mac10688 has quit [Ping timeout: 256 seconds]
chambart has quit [Ping timeout: 256 seconds]
sz0 is now known as sz0`
sz0` is now known as sz0
psy_ has quit [Quit: Leaving]
sz0 is now known as sz0`
darkf has joined #ocaml
f[x] has quit [Ping timeout: 256 seconds]
MercurialAlchemi has joined #ocaml
AlexRussia has quit [Ping timeout: 240 seconds]
Denommus has quit [Ping timeout: 272 seconds]
f[x] has joined #ocaml
antkong has quit [Quit: antkong]
JacobEdelman has quit [Quit: Connection closed for inactivity]
ldopa has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 272 seconds]
tennix has quit [Quit: WeeChat 1.3]
MercurialAlchemi has joined #ocaml
FreeBirdLjj has quit []
FreeBirdLjj has joined #ocaml
Gvidon has joined #ocaml
damason has quit [Ping timeout: 256 seconds]
mangooes has joined #ocaml
sz0` has quit [Quit: Bye.]
ldopa has quit [Ping timeout: 250 seconds]
igoroliveira has quit [Quit: Connection closed for inactivity]
Haudegen has quit [Ping timeout: 250 seconds]
f[x] has quit [Ping timeout: 272 seconds]
sbrouf has joined #ocaml
Haudegen has joined #ocaml
sbrouf has quit [Ping timeout: 256 seconds]
Simn has joined #ocaml
SuperNoeMan has joined #ocaml
mahem1 has joined #ocaml
nojb has joined #ocaml
sbrouf has joined #ocaml
mangooes has quit [Ping timeout: 250 seconds]
Tekilla has joined #ocaml
ely-se has joined #ocaml
Ravana has joined #ocaml
f[x] has joined #ocaml
sbrouf has quit [Ping timeout: 256 seconds]
sbrouf has joined #ocaml
sbrouf has quit [Ping timeout: 250 seconds]
Kakadu has joined #ocaml
kushal has joined #ocaml
kushal has quit [Read error: Connection reset by peer]
kushal has joined #ocaml
mort___ has joined #ocaml
mort___1 has joined #ocaml
mort___ has quit [Ping timeout: 250 seconds]
mort___1 has quit [Read error: Connection reset by peer]
mort___ has joined #ocaml
ely-se has quit [Quit: leaving]
ely-se has joined #ocaml
Mercuria1Alchemi has joined #ocaml
<mort___> morning! (here at least :) quick question — the install docs at http://ocaml.org/docs/install.html#Ubuntu are a little unhelpful — against where do i file an issue?
f[x] has quit [Ping timeout: 250 seconds]
infinity0 has quit [Remote host closed the connection]
sgnb has joined #ocaml
<mort___> rks`: ta!
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
l1x has quit [Ping timeout: 240 seconds]
l1x has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
jonludlam has joined #ocaml
octachron has joined #ocaml
yegods has joined #ocaml
infinity0 has joined #ocaml
rossberg has quit [Ping timeout: 260 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
yawnt has joined #ocaml
qwebirc495685 has joined #ocaml
qwebirc495685 has quit [Client Quit]
rossberg has joined #ocaml
infinity0 has quit [Remote host closed the connection]
elfring has joined #ocaml
infinity0 has joined #ocaml
tg has quit [Ping timeout: 240 seconds]
cody` has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
yegods has quit [Remote host closed the connection]
yegods has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
ely-se has quit [Quit: leaving]
nojb has quit [Ping timeout: 250 seconds]
tg has joined #ocaml
<edwin> Drup: ocsigen currently provides access to the raw/undecoded URL of http requests in the http frame -- which is nice for protocols that sign the request using HMAC -- however cohttp/Uri always normalizes things and doesn't provide acess to the raw Uri anymore. I see that on your cohttp_rebased branch you use Uri.to_string. How do you think access to the raw URL could be restored?
ely-se has joined #ocaml
<edwin> should Uri have the abilty to preserve the raw uri as received from the client, or should cohttp provide that?
Tekilla has quit [Ping timeout: 256 seconds]
sbrouf has joined #ocaml
_andre has joined #ocaml
ceryo has joined #ocaml
ely-se has quit [Quit: leaving]
<Drup> edwin: I have no idea, you should certainly ask the cohttp people
<edwin> k
sbrouf has quit [Ping timeout: 256 seconds]
zpe has joined #ocaml
ely-se has joined #ocaml
Denommus has joined #ocaml
ely-se has quit [Quit: leaving]
AlexRussia has joined #ocaml
raxello has joined #ocaml
Haudegen has quit [Ping timeout: 272 seconds]
ggole has joined #ocaml
zaquest has joined #ocaml
linse has joined #ocaml
Haudegen has joined #ocaml
JacobEdelman has joined #ocaml
toomuchtvrotsurb has joined #ocaml
mort___ has quit [Quit: Leaving.]
<lewis1711> https://gist.github.com/anonymous/6d0ebc928e41978f67e4 why does the end of the try block terminate the whole function?
<lewis1711> if it hits the "with" bit, it will continue and all itself again
<Drup> lewis1711: use an auto-indenter to indent your code
<Drup> (ocp-indent, for example)
<lewis1711> blergh I think I'd rather use the old ";;" syntax than use another tool
chambart has joined #ocaml
<Drup> That's not the issue, and it's going to help you, really.
<Drup> (and avoid any further similar issue)
rand has joined #ocaml
<Drup> which editor are you using ?
<lewis1711> what have I done? the suspense is killing me :P
<lewis1711> vim
<Drup> http://www.typerex.org/ocp-indent.html see the Vim section
<lewis1711> ok instead of using another tool (more complexity to deal with), I should probably just try and learn the indenting rules
<Drup> *sight*
<Drup> https://bpaste.net/show/fe8958dfd975 here is your code, correctly indented
<Drup> the last line of the function is inside the with case
<Drup> you need to wrap it in begin/end
sbrouf has joined #ocaml
<lewis1711> Drup, I don't see how an auto-indenter would have helped if I need a begin/end
<lewis1711> but thanks
<Drup> it would have showed you the problem directly
<MasseR> You really shouldn't indent manually. I always cringe when I see someone doing it :/
sbrouf has quit [Ping timeout: 250 seconds]
<lewis1711> this whitespace crap really isn't worth it to me. oh well.
<MasseR> It is an important part for readability and therefore maintainability
<lewis1711> I could not disagree more strongly. it means I have to use another damn tool. and if you need an automation to indent things for you because the syntactically-meaningful indentating isn't immediately obvious to a human reader, how does that help readability? when what you "read" intuitively is wrong?
ely-se has joined #ocaml
<lewis1711> I also have no idea where to put the begin/end. I'll use the tool I guess
<lyxia> indentation is not part of ocaml syntax
<lewis1711> (tried a few places)
<lyxia> was that not what you meant by "syntactucally meaningful"?
<lewis1711> I really have no clue what distinction you are making
<lewis1711> sorry
<lewis1711> how I am indenting things is effecting compilation
<lewis1711> what do you call that?
<MasseR> lewis1711: https://bpaste.net/show/01d2e897792d sure. indenting has no effect on readability.
<edwin> I think there is some confusion here, indendation doesn't affect semantics like it would in python
<lewis1711> isn't it?
<edwin> indentation only helps you see how the compiler interpretets what you wrote
<lewis1711> then why is the ";;" optional?
<flux> lewis1711, uh it seems like you -hoped- intentation would affect compliation, but it didn't
<lewis1711> isn't that whitespace?
<lewis1711> like in python?
<flux> does it look like whitespace?-o
<flux> whitespace looks like this:
d0nn1e has quit [Ping timeout: 250 seconds]
<flux> the main of purpose of ;; is to allow the ocaml shell to know that you have finished a phrase in the interactive top-level
<lewis1711> well I don't know how the compiler figures out where a function ends without ;;
<zozozo> well that's a fun idea: take a language and replace all whitespaces by semi-colons, :p
<lewis1711> if it is not doing something with whitespace
<lewis1711> that makes it meaningful
<lyxia> it's also necessary if you have a naked expression following a let binding at toplevel
<MasseR> lewis1711: let foo () = print_endline <- no whitespace, yet the compiler sees where the function ends
<lewis1711> doesn't it tell by the new line?
<lewis1711> ... which is whitespace?
<lyxia> it doesn't
<MasseR> No
<lyxia> it tells by the next "let"
<lewis1711> how does it tell it's not a nested let then?
<lewis1711> if not by whitespace?
<MasseR> lewis1711: there isn't an 'in' after it
<lewis1711> oh
<lewis1711> so it skips ahead
<lewis1711> then skips back
<flux> lewis1711, fun fact, here's a valid ocaml program: open Printf let foo a=a+42 let main()=Printf.printf"%d"(foo 42)let _ =main()
<lewis1711> anyway
d0nn1e has joined #ocaml
<lewis1711> I've missed around with the begin/end and I am confused as hell
<MasseR> lewis1711: try foo with _ -> begin bar; baz end
<flux> lewis1711, I guess you know though that begin end is exactly the same as ( and ) (except ( cannot be closed with begin and vice versa)
<lewis1711> oh right
<lewis1711> it needed the ;
<lewis1711> because otherwise it read the whole thing as a function
<Drup> lewis1711: the tooling is here to help you. As a beginner, you are the kind of user that needs helps the most, so I don't understand your opposition to have it. It's very easy to install with opam
<MasseR> And the tooling is there to reduce complexity :)
<lewis1711> I hate tools. I really do. it's just more crap to learn or that can go wrong or that I have to ask about. and it's not as if ocaml is a large enough language that any of the tooling will have good documentation
chambart has quit [Ping timeout: 250 seconds]
<lewis1711> the stuff about polymorphic variants is fascinating. an indenting tool is just yak-shaving
<MasseR> Spend 1 hour setting up a tool / configuration, reap the benefits for the next 50 hours
<lyxia> In any case you're speaking ill of indentation significance but it's what would have prevented the issue you asked about in the first place.
<Drup> I would put link to the good documentation for the various tools, put I won't spend time helping you if you are not willing to help yourself
<Drup> but*
<lewis1711> IDK where you get that I am not willing to help myself.
<lewis1711> thanks for the help
<lyxia> lewis1711: a nested let cannot follow an expression immediately. so in let f x = x let () = f (), it knows immediately that the second let is a toplevel one. There is no backtracking here.
BitPuffin|osx has joined #ocaml
ely-se has quit [Quit: leaving]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
nojb has joined #ocaml
ely-se has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
Denommus has quit [Ping timeout: 256 seconds]
clog has quit [Ping timeout: 260 seconds]
n1ftyn8_ has quit [Ping timeout: 260 seconds]
seako has quit [Ping timeout: 260 seconds]
NhanH has quit [Ping timeout: 260 seconds]
oskarth has quit [Ping timeout: 260 seconds]
seako has joined #ocaml
NhanH has joined #ocaml
n1ftyn8_ has joined #ocaml
oskarth has joined #ocaml
linse has quit [Quit: linse]
linse has joined #ocaml
linse has quit [Client Quit]
seliopou has joined #ocaml
mort___ has joined #ocaml
ely-se has quit [Quit: leaving]
ely-se has joined #ocaml
zaquest has quit [Quit: Leaving]
hannes has joined #ocaml
ncthom91 has joined #ocaml
zaquest has joined #ocaml
yomimono has joined #ocaml
chambart has joined #ocaml
linse has joined #ocaml
jonludlam has quit [Ping timeout: 250 seconds]
pierpa has joined #ocaml
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
linse has quit [Ping timeout: 245 seconds]
jonludlam has joined #ocaml
chambart has quit [Ping timeout: 256 seconds]
kushal has quit [Quit: Leaving]
raphaelss has quit [Ping timeout: 240 seconds]
igoroliveira has joined #ocaml
elfring has quit [Quit: Konversation terminated!]
_habnabit has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
linse has joined #ocaml
ncthom91 has joined #ocaml
raphaelss has joined #ocaml
ely-se has quit [Quit: leaving]
Guest72694 has joined #ocaml
Guest72694 has quit [Client Quit]
ely-se has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 256 seconds]
orbifx has joined #ocaml
yegods has quit [Remote host closed the connection]
govg_ has joined #ocaml
linse has quit [Quit: linse]
Gvidon has quit [Quit: Leaving.]
zpe has joined #ocaml
contempt has quit [Ping timeout: 240 seconds]
contempt has joined #ocaml
clog has joined #ocaml
govg_ has quit [Ping timeout: 272 seconds]
govg_ has joined #ocaml
yegods has joined #ocaml
linse has joined #ocaml
ldopa has joined #ocaml
govg_ has quit [Ping timeout: 256 seconds]
slash^ has joined #ocaml
govg_ has joined #ocaml
yomimono has quit [Quit: Leaving]
octachron has quit [Quit: Leaving]
ely-se has quit [Quit: leaving]
toomuchtvrotsurb has quit [Remote host closed the connection]
chambart has joined #ocaml
rand has quit [Quit: Lost terminal]
psy has joined #ocaml
psy has quit [Max SendQ exceeded]
psy has joined #ocaml
lewis1711 has quit [Ping timeout: 272 seconds]
raxello has quit [Remote host closed the connection]
_habnabit has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
psy has quit [Disconnected by services]
psy_ has joined #ocaml
ldopa has left #ocaml ["rcirc on GNU Emacs 24.5.2"]
yegods has quit []
Algebr` has quit [Ping timeout: 250 seconds]
mort___ has quit [Quit: Leaving.]
mort___ has joined #ocaml
jonludlam has quit [Ping timeout: 240 seconds]
tane has joined #ocaml
jwatzman|work has joined #ocaml
toomuchtvrotsurb has joined #ocaml
ncthom91 has quit [Ping timeout: 240 seconds]
nullcatxxx_ has joined #ocaml
jeffmo has joined #ocaml
contempt has quit [Disconnected by services]
contempt has joined #ocaml
ncthom91 has joined #ocaml
divyanshu has joined #ocaml
raphaelss has quit [Quit: Leaving]
strmpnk has joined #ocaml
d0nn1e has quit [Excess Flood]
d0nn1e has joined #ocaml
orbifx has quit [Quit: AtomicIRC: The nuclear option.]
^elyse^ has joined #ocaml
tane has quit [Ping timeout: 272 seconds]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tane has joined #ocaml
Kakadu has quit [Quit: Page closed]
mort___1 has joined #ocaml
mort___ has quit [Ping timeout: 272 seconds]
f[x] has joined #ocaml
nojb has quit [Ping timeout: 240 seconds]
antkong has joined #ocaml
ggole has quit []
sbrouf has joined #ocaml
^elyse^ has quit [Quit: Leaving]
rand has joined #ocaml
badon_ has joined #ocaml
badon has quit [Disconnected by services]
badon_ is now known as badon
mort___1 has quit [Quit: Leaving.]
^elyse^ has joined #ocaml
tani has joined #ocaml
tane is now known as Guest56157
tani is now known as tane
Kakadu has joined #ocaml
Guest56157 has quit [Ping timeout: 256 seconds]
BitPuffin|osx has quit [Ping timeout: 256 seconds]
govg_ has quit [Ping timeout: 250 seconds]
psy_ has quit [Read error: Connection timed out]
darkf has quit [Quit: Leaving]
JacobEdelman has quit [Quit: Connection closed for inactivity]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chambart has quit [Ping timeout: 272 seconds]
f[x] has quit [Remote host closed the connection]
f[x] has joined #ocaml
ncthom91 has joined #ocaml
nullcatxxx_ has joined #ocaml
Sim_n has joined #ocaml
Algebr has joined #ocaml
Algebr is now known as Guest89497
Simn has quit [Ping timeout: 264 seconds]
divyanshu has quit [Quit: Textual IRC Client: www.textualapp.com]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sz0 has joined #ocaml
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest89497 is now known as Algebr`
ceryo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slash^ has quit [Read error: Connection reset by peer]
yegods has joined #ocaml
yegods has quit [Read error: Connection reset by peer]
yegods has joined #ocaml
antkong has quit [Quit: antkong]
nullcatxxx_ has joined #ocaml
nullcatxxx_ has quit [Client Quit]
nullcatxxx_ has joined #ocaml
govg has joined #ocaml
nullcatxxx_ has quit [Client Quit]
BitPuffin|osx has joined #ocaml
larhat1 has joined #ocaml
ldopa has joined #ocaml
larhat1 has quit [Read error: No route to host]
larhat1 has joined #ocaml
Denommus has joined #ocaml
Sim_n is now known as Simn
Mercuria1Alchemi has quit [Ping timeout: 256 seconds]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
JacobEdelman has joined #ocaml
zpe has quit [Ping timeout: 250 seconds]
ceryo has joined #ocaml
ygrek_ has joined #ocaml
f[x] has quit [Ping timeout: 250 seconds]
ygrek_ has quit [Ping timeout: 240 seconds]
groovy2shoes has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 272 seconds]
groovy2shoes has joined #ocaml
antkong has joined #ocaml
manizzle has quit [Ping timeout: 250 seconds]
manizzle has joined #ocaml
groovy2shoes has quit [Quit: Leaving]
groovy2shoes has joined #ocaml
chambart has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
toomuchtvrotsurb has joined #ocaml
djellemah has quit [Ping timeout: 240 seconds]
mac10688 has joined #ocaml
ygrek_ has joined #ocaml
zpe has joined #ocaml
nullcatxxx_ has joined #ocaml
chambart has quit [Ping timeout: 256 seconds]
jonludlam has joined #ocaml
tane has quit [Quit: Verlassend]
chambart has joined #ocaml
linse has quit [Quit: linse]
rand has quit [Quit: leaving]
^elyse^ has quit [Quit: Leaving]
damason has joined #ocaml
wagle has quit [Ping timeout: 256 seconds]
_andre has quit [Quit: leaving]
Denommus has quit [Quit: rebooting]
Kakadu has quit [Remote host closed the connection]