companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
mxns has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
mxns has quit [Client Quit]
mxns has joined #ocaml
steenuil has quit [Read error: Connection reset by peer]
smazga has joined #ocaml
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
smazga has quit [Ping timeout: 264 seconds]
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
mxns has quit [Ping timeout: 240 seconds]
troydm has joined #ocaml
mxns has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
nicoo has quit [Ping timeout: 268 seconds]
nicoo has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
theblatte has quit [Ping timeout: 256 seconds]
mxns has joined #ocaml
theblatte has joined #ocaml
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
amiloradovsky has quit [Remote host closed the connection]
theblatte has quit [Ping timeout: 246 seconds]
inkbottle has joined #ocaml
amiloradovsky has joined #ocaml
zebrag has quit [Ping timeout: 246 seconds]
smazga has joined #ocaml
ygrek has quit [Remote host closed the connection]
rock64 has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
rock64 has joined #ocaml
theblatte has joined #ocaml
smazga has quit [Ping timeout: 256 seconds]
bjorkintosh has joined #ocaml
mfp_ has quit [Ping timeout: 272 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 246 seconds]
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
amiloradovsky has quit [Quit: amiloradovsky]
amiloradovsky has joined #ocaml
smazga has joined #ocaml
mmohammadi9812 has quit [Ping timeout: 260 seconds]
smazga has quit [Ping timeout: 240 seconds]
mmohammadi9812 has joined #ocaml
amiloradovsky has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
catt has quit [Remote host closed the connection]
smazga has quit [Ping timeout: 260 seconds]
smazga has joined #ocaml
inkbottle has quit [Quit: Konversation terminated!]
vicfred has quit [Quit: Leaving]
smazga has quit [Ping timeout: 240 seconds]
smazga has joined #ocaml
mxns has quit [Ping timeout: 256 seconds]
shmibs has quit [Quit: leaving =o]
shmibs has joined #ocaml
mmohammadi9812 has quit [Ping timeout: 260 seconds]
mmohammadi9812 has joined #ocaml
catt has joined #ocaml
metreo has quit [Quit: metreo]
vicfred has joined #ocaml
mxns has joined #ocaml
narimiran has joined #ocaml
smazga has quit [Ping timeout: 264 seconds]
bobren has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
ygrek has quit [Remote host closed the connection]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mgsk has quit [Ping timeout: 260 seconds]
mgsk has joined #ocaml
smazga has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
smazga has quit [Ping timeout: 264 seconds]
amiloradovsky has joined #ocaml
amiloradovsky has quit [Ping timeout: 260 seconds]
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
osa1 has joined #ocaml
osa1_ has quit [Ping timeout: 264 seconds]
bobren has quit [Ping timeout: 265 seconds]
smazga has joined #ocaml
Haudegen has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
Tuplanolla has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 265 seconds]
steenuil has joined #ocaml
smazga has joined #ocaml
benc_ has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
rdivyanshu has joined #ocaml
mxns has quit [Ping timeout: 256 seconds]
smazga has quit [Ping timeout: 264 seconds]
osa1 has quit [Ping timeout: 240 seconds]
olle has joined #ocaml
osa1 has joined #ocaml
shawnw has joined #ocaml
osa1 has quit [Ping timeout: 265 seconds]
osa1 has joined #ocaml
sleepydog has quit [Ping timeout: 244 seconds]
sleepydog has joined #ocaml
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
osa1 has quit [Ping timeout: 260 seconds]
osa1 has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
olle has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
nullcone has quit [Quit: Connection closed for inactivity]
smazga has joined #ocaml
smazga has quit [Ping timeout: 264 seconds]
<benc_> I try to embed the ocaml top-level inside a web app using ocaml-compiler-libs.toplevel, when I compile in bytecode it works in a terminal, but when I compile with js_of_ocaml, the top-level crashes in the browser with the exception TypeError ("runtime.caml_get_section_table is not a function ») I use ocaml 4.10. Anyone know what needs to be done to make the top-level properly initialized ?
<d_bot> <Drup> You should use `js_of_ocaml-toplevel`
ArthurStrong has joined #ocaml
smazga has joined #ocaml
rdivyanshu has quit [Quit: Connection closed for inactivity]
benc_ has quit [Remote host closed the connection]
heredoc has quit [Quit: ZNC - http://znc.in]
smazga has quit [Ping timeout: 272 seconds]
smazga has joined #ocaml
benc_ has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
RalfJ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
RalfJ has joined #ocaml
mfp_ has joined #ocaml
<d_bot> <Et7f3> I do not know if ocaml sf members are here.
<d_bot> <Et7f3> They have participated in outreachy but I have not seen they are aware of it.
<d_bot> <octachron> The OCaml foundation knows about the Gsoc and Gsod. Organizer time is however a scarce resource.
smazga has joined #ocaml
smazga has quit [Ping timeout: 258 seconds]
benc_ has quit [Remote host closed the connection]
benc_ has joined #ocaml
mxns has joined #ocaml
olle has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
Haudegen has quit [Quit: Bin weg.]
smazga has joined #ocaml
smazga has quit [Ping timeout: 272 seconds]
mmohammadi9812 has quit [Ping timeout: 264 seconds]
mmohammadi9812 has joined #ocaml
smazga has joined #ocaml
zebrag has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
benc_ has quit [Ping timeout: 264 seconds]
benc has joined #ocaml
indicator has joined #ocaml
shawnw has quit [Ping timeout: 258 seconds]
<indicator> What's a nice way to combine a list of results into a result of list? In my case, say ('a, string) result list -> ('a list, string list) result? I'm sure I could write a fold, but I suspect there's a shorter/better way?
Haudegen has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
smazga has joined #ocaml
<Fardale> indicator: you cannot, what do you return if you have this list [Ok 1; Error "plop"; Ok 2; Error "some"]
shawnw has joined #ocaml
<Fardale> you can, but it is not standard I would say
<Fardale> The usual thing is to return ('a list, string) result, and return a list if all is Ok and fail with the first Error in the list
smazga has quit [Ping timeout: 265 seconds]
<indicator> Fardale: I want to return Error ["plop"; "some"]
<Fardale> I don't know a function that does this
shawnw has quit [Ping timeout: 272 seconds]
<olle> just fold?
<olle> or map
<olle> or map and then filter
<olle> So OK 1 -> None, then filter 'a option -> 'a
<olle> map and filter and then map again?
vicfred_ has joined #ocaml
<Fardale> For a map filter, you need to decide before hand if there will be a fail or not
vicfred_ has quit [Client Quit]
mxns has joined #ocaml
vicfred has quit [Ping timeout: 256 seconds]
smazga has joined #ocaml
jbrown has quit [Quit: Leaving]
<indicator> I'll try with just a fold, thanks. Would it be the same situation in the 'first error' case that Fardale suggests, or is there a shorter idiom in that case?
jbrown has joined #ocaml
smazga has quit [Ping timeout: 260 seconds]
<Fardale> for this case there is a function to do that in containers CCResult.flatten_l
<companion_cube> ahahahah TIL
<companion_cube> I forgot about that one
<olle> maybe not try to be too smart either ^^
<olle> short code is not necessarily readable code
mxns has quit [Ping timeout: 256 seconds]
bartholin has quit [Ping timeout: 256 seconds]
<indicator> Thanks. I won't have a feel for what's obscure and what's not for some time yet I think (which is fine). Library looks interesting
mxns has joined #ocaml
waleee-cl has joined #ocaml
smazga has joined #ocaml
tane has joined #ocaml
mxns has quit [Ping timeout: 246 seconds]
indicator has quit [Ping timeout: 240 seconds]
benc has quit []
raver has quit [Ping timeout: 264 seconds]
metreo has joined #ocaml
motherfsck has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
indicator has joined #ocaml
steenuil has quit [Read error: Connection reset by peer]
steenuil has joined #ocaml
steenuil has quit [Read error: Connection reset by peer]
steenuil has joined #ocaml
indicator has quit [Read error: Connection reset by peer]
indicator has joined #ocaml
indicator has quit [Remote host closed the connection]
indicator has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
steenuil has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
flux has quit [Ping timeout: 244 seconds]
thizanne has quit [Ping timeout: 244 seconds]
thizanne has joined #ocaml
mxns has joined #ocaml
flux has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
osa1_ has joined #ocaml
osa1 has quit [Ping timeout: 264 seconds]
amiloradovsky has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
nullcone has joined #ocaml
olle has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
smazga has quit [Ping timeout: 246 seconds]
smazga has joined #ocaml
mxns has joined #ocaml
cqc_ has joined #ocaml
chewbranca_ has joined #ocaml
benschza_ has joined #ocaml
jmiven_ has joined #ocaml
greenbagels has joined #ocaml
rpcope- has joined #ocaml
<greenbagels> if let bindings for an object are evaluated before an object is constructed, is it impossible to have a let binding depend on an object's methods?
cqc has quit [*.net *.split]
chewbranca has quit [*.net *.split]
rpcope has quit [*.net *.split]
jmiven has quit [*.net *.split]
Putonlalla has quit [*.net *.split]
benschza has quit [*.net *.split]
cqc_ is now known as cqc
chewbranca_ is now known as chewbranca
mxns has quit [Ping timeout: 264 seconds]
mxns has joined #ocaml
Putonlalla has joined #ocaml
metreo has quit [Ping timeout: 240 seconds]
jmiven_ is now known as jmiven
ArthurStrong has quit [Quit: leaving]
jnavila has quit [Quit: Konversation terminated!]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
<octachron> greenbagels, indeed. If needed, "class c = let f x = x#m in object(self) method n = f self ... end` is possible.
<greenbagels> i see
jbrown has quit [Ping timeout: 272 seconds]
narimiran has quit [Ping timeout: 240 seconds]
metreo has joined #ocaml
jbrown has joined #ocaml
indicator has quit [Ping timeout: 246 seconds]
steenuil has joined #ocaml
metreo has quit [Ping timeout: 256 seconds]
metreo has joined #ocaml
metro has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
metreo has quit [Ping timeout: 246 seconds]
metro is now known as metreo
zebrag has joined #ocaml
metreo has quit [Client Quit]
sleepydog has quit [Quit: ZNC 1.8.2 - https://znc.in]
sleepydog has joined #ocaml
testetest has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
testetest has quit [Quit: Connection closed]
metreo has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mxns has joined #ocaml
tane has quit [Quit: Leaving]
smazga has quit [Quit: leaving]
mxns has quit [Ping timeout: 258 seconds]
<d_bot> <afrosenpai> Api?
steenuil has quit [Read error: Connection reset by peer]
mxns has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml