<apache2>
how do I supply a ('a, unit, string, unit Lwt.t) Pervasives.format4 type to Lwt_log_core?
rgrinberg has joined #ocaml
jyc has quit [Quit: WeeChat 0.4.3]
jyc has joined #ocaml
jyc has quit [Client Quit]
jyc has joined #ocaml
darkf has joined #ocaml
jfntn has joined #ocaml
jfntn has quit [Ping timeout: 260 seconds]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Algebr has joined #ocaml
ygrek has quit [Ping timeout: 272 seconds]
nullcatxxx_ has joined #ocaml
nullcatxxx_ has quit [Client Quit]
mac10688 has quit [Ping timeout: 246 seconds]
nullcatxxx_ has joined #ocaml
kushal has joined #ocaml
psy_ has joined #ocaml
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ocaml
jfntn has joined #ocaml
nullcatxxx_ has quit [Read error: Connection reset by peer]
ygrek has joined #ocaml
jfntn has quit [Ping timeout: 246 seconds]
nullcatxxx_ has joined #ocaml
struktured has joined #ocaml
MercurialAlchemi has joined #ocaml
jimt has quit [Ping timeout: 265 seconds]
rgrinberg has quit [Ping timeout: 250 seconds]
jimt has joined #ocaml
nullcatxxx_ has quit [Read error: Connection reset by peer]
Algebr has quit [Remote host closed the connection]
jimt_ has joined #ocaml
nullcatxxx_ has joined #ocaml
jimt has quit [Ping timeout: 265 seconds]
AltGr has left #ocaml [#ocaml]
jimt_ is now known as jimt
antkong has quit [Quit: antkong]
psy_ has quit [Ping timeout: 255 seconds]
__uu__ has joined #ocaml
jimt_ has joined #ocaml
nullcatxxx_ has quit [Read error: Connection reset by peer]
__uu___ has quit [Ping timeout: 244 seconds]
jfntn has joined #ocaml
swgillespie has joined #ocaml
jimt has quit [Ping timeout: 250 seconds]
jfntn has quit [Ping timeout: 240 seconds]
MercurialAlchemi has quit [Ping timeout: 272 seconds]
nullcatxxx_ has joined #ocaml
kushal has quit [Remote host closed the connection]
kushal has joined #ocaml
rgrinberg has joined #ocaml
jimt_ is now known as jimt
rgrinberg has quit [Ping timeout: 268 seconds]
__uu___ has joined #ocaml
urs_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
urs_ has joined #ocaml
__uu__ has quit [Ping timeout: 268 seconds]
larhat2 has quit [Quit: Leaving.]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MercurialAlchemi has joined #ocaml
jfntn has joined #ocaml
contempt has quit [Disconnected by services]
jfntn has quit [Ping timeout: 255 seconds]
contempt has joined #ocaml
urs_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mengu has joined #ocaml
mengu has quit [Client Quit]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<companion_cube>
apache2: this is a regular format string
mobius-eng has joined #ocaml
jimt has quit [Ping timeout: 268 seconds]
rossberg has quit [Ping timeout: 246 seconds]
jimt has joined #ocaml
__uu__ has joined #ocaml
johnf has quit [Read error: Connection reset by peer]
__uu___ has quit [Ping timeout: 260 seconds]
rossberg has joined #ocaml
keen________ has joined #ocaml
__uu__ has quit [Ping timeout: 268 seconds]
keen_______ has quit [Ping timeout: 240 seconds]
__uu__ has joined #ocaml
jfntn has joined #ocaml
zpe has joined #ocaml
jfntn has quit [Ping timeout: 264 seconds]
antkong has joined #ocaml
AltGr has joined #ocaml
Kakadu has joined #ocaml
__uu__ has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 246 seconds]
__uu__ has joined #ocaml
ely-se has joined #ocaml
<companion_cube>
arg, there is not Format.pp_print_sub_string
jfntn has joined #ocaml
jfntn has quit [Ping timeout: 240 seconds]
<reynir>
I wish there was a Merlin for java
<reynir>
(I wish I was writing OCaml)
<def`_>
:DDD
ollehar has joined #ocaml
<MercurialAlchemi>
reynir: Merlin is too limited for working with Java
<MercurialAlchemi>
it would need automatic importants and project-wide renaming to start being useful
<MercurialAlchemi>
s/importants/imports/
<MercurialAlchemi>
not that I would mind the rename part for OCaml too
freehck has joined #ocaml
mort___ has joined #ocaml
<reynir>
Yea, that would be nice to have, too
lolisa has joined #ocaml
<reynir>
Intellij got support for inspecting the return type of a call only recently (~few weeks ago). That surprised me.
rand__ has joined #ocaml
mort___ has quit [Quit: Leaving.]
jfntn has joined #ocaml
infinity0 has quit [Ping timeout: 268 seconds]
mrvn has quit [Ping timeout: 272 seconds]
jfntn has quit [Ping timeout: 256 seconds]
mrvn_ has joined #ocaml
mrvn_ is now known as mrvn
rgrinberg has joined #ocaml
_andre has joined #ocaml
sepp2k has joined #ocaml
infinity0 has joined #ocaml
rgrinberg has quit [Ping timeout: 265 seconds]
infinity0 has quit [Remote host closed the connection]
dsheets has joined #ocaml
infinity0 has joined #ocaml
AltGr has left #ocaml [#ocaml]
Haudegen has quit [Ping timeout: 260 seconds]
ely-se has quit [Quit: leaving]
lopex has joined #ocaml
Haudegen has joined #ocaml
eni has joined #ocaml
<freehck>
hello people
<freehck>
I don't understand why strings in module String are described as immutable.
<freehck>
I can do: let str = "abc" in str.[0] <- Char.uppercase str.[0]; str;;
<freehck>
And get: - : string = "Abc"
<freehck>
So it seems string are mutable.
<freehck>
What do I get wrong?
ceryo has joined #ocaml
<Drup>
there is a new option, -safe-string, that makes them immutable
<Drup>
(and Bytes is the mutable version)
<Drup>
it's not enable by default yet, but will be
<def`_>
They used to be mutable, they might become immutable
<def`_>
and you can get warnings when mutating them
<freehck>
I understood. Thanks a lot.
ceryo has quit [Client Quit]
ceryo has joined #ocaml
jfntn has joined #ocaml
jfntn has quit [Ping timeout: 252 seconds]
antkong has quit [Quit: antkong]
kushal has quit [Quit: Leaving]
rgrinberg has joined #ocaml
ely-se has joined #ocaml
rgrinberg has quit [Ping timeout: 272 seconds]
damason has quit [Ping timeout: 240 seconds]
damason has joined #ocaml
SomeDamnBody has quit [Ping timeout: 255 seconds]
<freehck>
hm... `opam install conf-pkg-config' fails with an error: "pkg-config": command not found.
<freehck>
Isn't pkg-config a part of conf-pkg-config package?
octachron has joined #ocaml
<Drup>
No, conf-pkg-config, as all the other conf-* packages just assert that you have the thing available on your system
<freehck>
but `opam search' has shown the only conf-pkg-config: there's no pkg-config package.
<freehck>
Where should I look for pkg-config?
<freehck>
hm... apt-get install pkg-config?
<Drup>
yes
<freehck>
Drup: thank you, it helped.
profan has quit [Remote host closed the connection]
profan has joined #ocaml
profan has quit [Client Quit]
profan has joined #ocaml
toomuchtvrotsurb has joined #ocaml
jfntn has joined #ocaml
jfntn has quit [Ping timeout: 260 seconds]
kushal has joined #ocaml
Kakadu has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
jave has quit [Ping timeout: 255 seconds]
lolisa has quit [Quit: meow]
kushal has quit [Ping timeout: 260 seconds]
dsheets has quit [Ping timeout: 240 seconds]
jave has joined #ocaml
jabesed has joined #ocaml
kushal has joined #ocaml
igstan has joined #ocaml
igstan has quit [Quit: igstan]
averell has joined #ocaml
jfntn has joined #ocaml
dsheets has joined #ocaml
jfntn has quit [Ping timeout: 244 seconds]
shinnya has joined #ocaml
jabesed has quit [Ping timeout: 240 seconds]
rgrinberg has quit [Ping timeout: 268 seconds]
jabesed has joined #ocaml
rgrinberg has joined #ocaml
jabesed has quit [Client Quit]
jabesed has joined #ocaml
travisbrady has joined #ocaml
mort___ has joined #ocaml
darius93 has joined #ocaml
jabesed has quit [Ping timeout: 240 seconds]
BitPuffin has joined #ocaml
BitPuffin has quit [Read error: Connection reset by peer]
BitPuffin has joined #ocaml
struktured has quit [Ping timeout: 240 seconds]
Kakadu has joined #ocaml
blik71 has joined #ocaml
<blik71>
hey is anyone on here, I had a question about List.mem
<def`_>
just ask
<MercurialAlchemi>
what about it?
<blik71>
so im trying to use it in an if statement but i keep getting the error the expression has type 'a list -> bool but what was expected was bool. How can I use it in the if statement? I'm about to put code paste up now
<jmasseo>
are you providing enough arguments?
<jmasseo>
does it need to be enclosed in parens?
<blik71>
(if List.mem(s0 list) then list else s0::list)
<jmasseo>
ah
<jmasseo>
(List.mem s0 list)
<jmasseo>
instead of List.mem(so list)
<blik71>
really, whats the difference, i thought parenthesis was more for precidence
<jmasseo>
parens are not for enclosing arguments.
<jmasseo>
you're calling s0 with the argument of list, as the argument to List.mem
<jmasseo>
Week 1 of the OCaml MOOC begins today woot woot
dsheets has quit [Ping timeout: 240 seconds]
<blik71>
ahh okay thank you, so use to OOP lol
<jmasseo>
yeah ocaml is a lot different than anything i've done before
<jmasseo>
i like it
<blik71>
yes its really efficient for the amount u have to write
<dmbaturin>
jmasseo: Well, no parens around arguments is pretty common in ML-style languages (SML, Haskell, ...).
dsheets has joined #ocaml
agjohnst1 has left #ocaml [#ocaml]
<fds>
The OCamlPro video from the MOOC is great
<dmbaturin>
github.com/ocaml/ocaml is no longer a read-only mirror of SVN, it's the primary repository now!
<fds>
Exactly the incomprehensible French accents I was hopng for :-D
<fds>
(No offence intended. I wish I could speak French as well as they speak English.)
jeffmo has quit [Read error: Connection reset by peer]
ely-se has quit [Quit: leaving]
<theblatte>
do you need to register to see the videos?
<Drup>
I think so, yes
<reynir>
blik71: »List.mem s0 list« is the same as »(List.mem s0) list« or »(List.mem(s0))(list)« if you prefer
govg has joined #ocaml
jfntn has joined #ocaml
<dmbaturin>
theblatte: Yes, but registration is still open.
johnf has joined #ocaml
ely-se has joined #ocaml
travisbrady has quit [Quit: travisbrady]
travisbrady has joined #ocaml
jfntn has quit [Ping timeout: 250 seconds]
travisbrady has quit [Client Quit]
jeffmo has joined #ocaml
darkf_ has joined #ocaml
kakadu_ has joined #ocaml
darkf has quit [Ping timeout: 240 seconds]
jeffmo has quit [Ping timeout: 256 seconds]
travisbrady has joined #ocaml
jeffmo has joined #ocaml
<jmasseo>
dmbaturin: i've not done Haskell or SML or F#. Lisp and Scala are as close as I've come.
<jmasseo>
i'll do this weeks mooc stuff tomorrow. taking it with the wife and we're both super busy today
tane has joined #ocaml
psy_ has joined #ocaml
psy_ has quit [Max SendQ exceeded]
orbifx has joined #ocaml
psy_ has joined #ocaml
darkf_ is now known as darkf
MercurialAlchemi has quit [Ping timeout: 250 seconds]
<dmbaturin>
jmasseo: If you like ocaml, it's pretty likely that you will at least read them at some point. SML and Haskell are both common in articles.
toomuchtvrotsurb has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ely-se has quit [Quit: leaving]
rand__ has quit [Quit: leaving]
ggole has joined #ocaml
marsam has quit [Read error: Connection reset by peer]
kakadu_ has quit [Quit: Konversation terminated!]
swgillespie has joined #ocaml
slash^ has joined #ocaml
orbifx has quit [Quit: WeeChat 1.3]
zpe has quit [Remote host closed the connection]
ncthom91 has joined #ocaml
rgrinberg has quit [Ping timeout: 240 seconds]
ollehar has quit [Ping timeout: 255 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anniz has joined #ocaml
Guest38 has joined #ocaml
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<anniz>
current ocaml does not build on solaris/sparc.. errors when linking libasm_shared.so; solution: link with ld -G instead of gcc (as an added detail, if linking with solaris studio cc it works but produces binaries that segfault...)
jwatzman|work has joined #ocaml
ncthom91 has joined #ocaml
blik71 has quit [Ping timeout: 268 seconds]
nullcatxxx_ has joined #ocaml
<adrien>
anniz: could you put that on the bug tracker?
<anniz>
k will do when i'm back at work where my sparc lives