lapinou changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | http://www.ocaml.org | OCaml 4.01.0 announce at http://bit.ly/1851A3R | Public logs at http://tunes.org/~nef/logs/ocaml/
tnguyen1 has joined #ocaml
lostcuaz has joined #ocaml
comacat has quit [Quit: Lost terminal]
talzeus has quit [Remote host closed the connection]
ontologiae_ has joined #ocaml
jao` has joined #ocaml
jao` has quit [Changing host]
jao` has joined #ocaml
mcclurmc has joined #ocaml
arjunguha has joined #ocaml
mcclurmc has quit [Ping timeout: 245 seconds]
tristero has joined #ocaml
tlockney has quit [Ping timeout: 245 seconds]
tlockney has joined #ocaml
ontologiae_ has quit [Ping timeout: 260 seconds]
talzeus has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
zpe has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
n0v has quit [Quit: !]
n0v has joined #ocaml
jwatzman|work has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
jwatzman|work has joined #ocaml
Guest49094 has quit [Remote host closed the connection]
michael_lee has joined #ocaml
jwatzman|work has quit [Client Quit]
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 245 seconds]
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mcclurmc has joined #ocaml
zpe has joined #ocaml
mcclurmc has quit [Ping timeout: 245 seconds]
Don_Pellegrino has joined #ocaml
zpe has quit [Ping timeout: 265 seconds]
avsm has joined #ocaml
kyrylo has quit [Ping timeout: 272 seconds]
avsm has quit [Ping timeout: 240 seconds]
csakatoku has joined #ocaml
csakatoku has quit [Remote host closed the connection]
csakatoku has joined #ocaml
ygrek has joined #ocaml
csakatoku has quit [Remote host closed the connection]
csakatoku has joined #ocaml
cesar_ has joined #ocaml
cesar_ is now known as Guest72308
michael_lee has quit [Ping timeout: 240 seconds]
mcclurmc has joined #ocaml
struktured has joined #ocaml
michael_lee has joined #ocaml
<gambogi> hi, I've got a question on #require vs open
struktured has quit [Ping timeout: 245 seconds]
<gambogi> when in toplevel, I can #require some library, and then open the modules I need
<gambogi> but when I compile I get an error
struktured has joined #ocaml
<rgrinberg> gambogi: what command do you use to compile and what package do you #require?
yacks has joined #ocaml
<gambogi> I'm following the ocaml.org tutorial on gtk, so:
<gambogi> ocamlc -g -I +lablgtk lablgtk.cma gtkInit.cmo simple.ml -o simple
<gambogi> this fails to find GMain when I don't #require
<gambogi> and I get a syntax error when I do add a #require
philtor has joined #ocaml
<gambogi> the code for simple.ml is precisely what I'm trying to compile
<rgrinberg> attempt to build with ocamlbuild -use-ocamlfind -pkg lablgtk simple.native
<rgrinberg> also it would help knowing the error
sheijk has quit [Quit: .]
lostcuaz has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
tnguyen1 has quit [Quit: tnguyen1]
struktured has quit [Ping timeout: 245 seconds]
csakatok_ has joined #ocaml
csakatoku has quit [Ping timeout: 252 seconds]
cantstanya has quit [Ping timeout: 260 seconds]
clan has quit [Quit: clan]
csakatok_ has quit [Remote host closed the connection]
csakatoku has joined #ocaml
philtor has quit [Ping timeout: 252 seconds]
csakatoku has quit [Ping timeout: 252 seconds]
Guest72308 has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 265 seconds]
Don_Pellegrino has quit [Quit: Konversation terminated!]
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
csakatoku has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noplamodo has quit [Read error: Operation timed out]
noplamodo has joined #ocaml
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siddharthv_away is now known as siddharthv
axiles has joined #ocaml
zpe has joined #ocaml
siddharthv has quit [Quit: leaving]
siddharthv has joined #ocaml
zpe has quit [Ping timeout: 265 seconds]
ygrek has quit [Ping timeout: 260 seconds]
jao` has quit [Ping timeout: 245 seconds]
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
clan_ has joined #ocaml
lostcuaz has joined #ocaml
ygrek has joined #ocaml
mchqwerty has joined #ocaml
ulfdoz has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yacks has quit [Quit: Leaving]
talzeus has quit [Read error: Connection reset by peer]
dant3 has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
mcclurmc has joined #ocaml
csakatoku has quit [Remote host closed the connection]
mcclurmc has quit [Ping timeout: 260 seconds]
arj has quit [Quit: Leaving.]
lostcuaz has joined #ocaml
yacks has joined #ocaml
tianon has quit [Ping timeout: 252 seconds]
tianon has joined #ocaml
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeArtMan has joined #ocaml
zpe has joined #ocaml
mmachenry has joined #ocaml
zpe has quit [Ping timeout: 245 seconds]
sagotch has joined #ocaml
mmachenry has quit [Quit: Leaving.]
dant3 has quit [Remote host closed the connection]
dant3 has joined #ocaml
tianon has quit [Ping timeout: 245 seconds]
mcclurmc has joined #ocaml
csakatoku has joined #ocaml
Kakadu has joined #ocaml
mort___ has joined #ocaml
Kakadu is now known as Kakadu_
Kakadu_ is now known as kesarev
kesarev is now known as Kakadu
mcclurmc has quit [Ping timeout: 272 seconds]
csakatoku has quit [Ping timeout: 240 seconds]
mchqwerty has quit [Ping timeout: 264 seconds]
ollehar has joined #ocaml
csakatoku has joined #ocaml
zpe has joined #ocaml
talzeus has joined #ocaml
mort___ has quit [Quit: Leaving.]
AltGr has joined #ocaml
<companion_cube> o/
<adrien> \
<adrien> damn it, my head!
<companion_cube> aouch
<companion_cube> be careful adrien
avsm has joined #ocaml
dant3 has quit [Remote host closed the connection]
ggole has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
mchqwerty has joined #ocaml
mch has joined #ocaml
mort___ has joined #ocaml
mika1 has joined #ocaml
mcclurmc has joined #ocaml
<companion_cube> well thanks Drup, hope that will trigger interesting discussions :p
mcclurmc has quit [Ping timeout: 272 seconds]
mchqwerty has quit [Remote host closed the connection]
mch has quit [Remote host closed the connection]
dant3 has joined #ocaml
csakatoku has quit [Remote host closed the connection]
mchqwerty has joined #ocaml
dant3_ has joined #ocaml
dant3 has quit [Read error: Connection reset by peer]
<gasche> companion_cube: I don't see Drup's email in my mailbox, which list was it sent to?
<companion_cube> wow, never mind, he didn't send it yet -_-
<rks`> :)
<companion_cube> I shouldn't talk before coffee acts
<companion_cube> https://github.com/c-cube/ocaml-containers/commit/48ef226efd9babae50bd980725d65e23c6dacce2 <--- anyway, simplet iterators are simple :p
csakatoku has joined #ocaml
<adrien> :D
<adrien> you foresee the future? hmmm, nice
<gasche> (I can attest that companion_cube and Drup are not physically the same person)
* adrien pictures companion_cube and Drup merging like in Dragon Ball
<companion_cube> eww
<companion_cube> anyway, this mail has triggered "interesting" discussions before it was even sent, so my wish is fullfilled.
thomasga has joined #ocaml
zRecursive has left #ocaml []
agnoctone has joined #ocaml
_andre has joined #ocaml
Simn has joined #ocaml
nikki93 has quit [Remote host closed the connection]
<rks`> gasche: question for you
<rks`> merlin users regularly complain about grammar inconsistencies between camlp4 and ocaml − they complain because they're used to camlp4, and merlin has (more or less) the same parser as the compiler −
maufred has quit [Ping timeout: 264 seconds]
maufred_ has quit [Remote host closed the connection]
maufred has joined #ocaml
<rks`> so we started a wiki page recensing these inconsistencies
maufred_ has joined #ocaml
<rks`> some of them look like they could be "arranged" however
<rks`> do you think there's any chance that it will be accepted upstream if I open a PR / propose a patch
<rks`> ?
ontologiae_ has joined #ocaml
_andre has quit [Ping timeout: 260 seconds]
_andre has joined #ocaml
ollehar has quit [Ping timeout: 252 seconds]
mcclurmc has joined #ocaml
gasche has quit [Ping timeout: 248 seconds]
pedagand_ has quit [Ping timeout: 260 seconds]
pedagand has joined #ocaml
ollehar has joined #ocaml
_andre has quit [Ping timeout: 260 seconds]
_andre has joined #ocaml
scherer has joined #ocaml
mcclurmc has quit [Ping timeout: 272 seconds]
scherer is now known as gasche
<gasche> (I'd guess that Jeremy didn't get a word of support while he was writing pa_deriving, but it now turns out it's "widely used")
<gasche> rks`: in general I think that yes, there is no reason not to make a bugreport
<gasche> that said I would not hope that a large portion of those can be fixed on the yacc-grammar side
<gasche> besides
<rks`> sure
<gasche> if you have patches you want to send, consider waiting a few hours to do so
<rks`> ? :D
<gasche> (you'll see)
<rks`> « we're moving to github »
<rks`> ok fine, I don't have any ready anyway :)
<rks`> and gasche, what were you refering too about pa_deriving? (and the widely used)
<gasche> the recent issue on merlin about you not supporting deriving
<rks`> :D
<rks`> I thought soo
<rks`> you're such an amazing statistician :)
avsm has joined #ocaml
csakatok_ has joined #ocaml
<lapinoww> gasche just managed to scare me
lapinoww is now known as adrien_oww
csakatoku has quit [Ping timeout: 260 seconds]
nikki93 has joined #ocaml
Thooms has joined #ocaml
nikki93 has quit [Ping timeout: 272 seconds]
sagotch has quit [Ping timeout: 245 seconds]
cdidd has quit [Ping timeout: 245 seconds]
dant3_ has quit [Remote host closed the connection]
<gasche> kaustuv will be happy to now that his M.{..} patch got ack-ed
<gasche> *know
<bernardofpc> what's it do ?
<rks`> that's nice
osa1_ has joined #ocaml
<rks`> bernardofpc: extends Module.(..) to Module.{} Module.[] Module.[||] Module.[<>]
<osa1_> I can't install opam because "http://caml.infira.fr/pub/distrib/ocaml-4.01/ocaml-4.01.0.tar.gz is not available" error. any ideas on this?
robink has quit [Quit: No Ping reply in 180 seconds.]
robink has joined #ocaml
<adrien_oww> infira?
<adrien_oww> or inria?
<bernardofpc> so any "parenthesis" can add another layer of "scope" ?
<osa1_> adrien_oww: I copied the message from another monitor, that type belongs to me
<gasche> bernardofpc: of local module opening
<osa1_> adrien_oww: I'm using opam shell script downlaoded from opam web page
dant3 has joined #ocaml
<gasche> but the patch may get shot down before the next release, don't consider it a given
<gasche> osa1_: the actual correct URL is definely valid and online
<bernardofpc> well, for the moment, I'm not using that much Module.(), and even I'm not sure if I have use for the others
<osa1_> hm.
<rks`> bernardofpc: once get used to Module.() you often become frustrated when you can't do it for {} and []
clan_ has quit [Quit: clan_]
csakatok_ has quit [Remote host closed the connection]
jonludlam has joined #ocaml
csakatoku has joined #ocaml
<rks`> gasche: haha, the example of inconsistency I pointed out earlier doesn't exist on trunk anymore
<rks`> (easiest contribution ever for me)
csakatoku has quit [Ping timeout: 252 seconds]
mcclurmc has joined #ocaml
skchrko has quit [Ping timeout: 245 seconds]
avsm has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 240 seconds]
mcclurmc has quit [Ping timeout: 272 seconds]
<jpdeplaix> gasche: why there is nobody at gallium today ?
<gasche> jpdeplaix: there is Julien's PhD defense in Paris this afternoon
<gasche> I thought you knew (this was announced on all our mailing-lists)
<gasche> adrien_oww: there is a question for you on the caml-list
ontologiae_ has quit [Ping timeout: 248 seconds]
<gasche> "[Caml-list] any automated FFI bindings generators?
<jpdeplaix> gasche: nope, didn't received. I think I'm not on the mailling-lists :(
<gasche> if you are interested ( http://phd.ia0.fr/defense.html ), you can make it by the noon shuttle
<gasche> asmanur_: ping about the defense, btw.
<jpdeplaix> gasche: nope.
<jpdeplaix> 30 min to take it :/
<jpdeplaix> s/min/sec/
<jpdeplaix> :D
<jpdeplaix> sad :(
<jpdeplaix> I'm going to eat
<rks`> alone.
<jpdeplaix> :'(
dant3 has quit [Remote host closed the connection]
<rks`> haha adrien_oww
<rks`> now you can be scared.
dant3 has joined #ocaml
avsm has joined #ocaml
arjunguha has joined #ocaml
tianon has joined #ocaml
skchrko has joined #ocaml
<companion_cube> so, opam still doesn't use its mirror of packages when the original url is unavailable?
ygrek has joined #ocaml
* companion_cube oO(noon shuttle -> moon shuttle)
siddharthv is now known as siddharthv_away
ontologiae_ has joined #ocaml
kyrylo has joined #ocaml
agnoctone has quit [Ping timeout: 245 seconds]
dant3 has quit [Remote host closed the connection]
Thooms has quit [Quit: WeeChat 0.3.8]
michael_lee has quit [Ping timeout: 252 seconds]
michael_lee has joined #ocaml
avsm has quit [Quit: Leaving.]
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 252 seconds]
<Drup> rgrinberg: are you admin on the batteries ml ? I think my email is waiting for a modo authorization :p
Yoric has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agnoctone has joined #ocaml
Kakadu is now known as Kakadu9
Kakadu9 is now known as Kakadu
ygrek has quit [Ping timeout: 245 seconds]
dant3 has joined #ocaml
<thomasga> would anyone be interested to help curate opam-repository ?
<thomasga> (this involves clicking on green buttons and look in build logs to identify some potential build errors)
<rks`> :D
FreeArtMan has quit [Quit: main.lv]
sagotch has joined #ocaml
<gasche> Drup: subscribe, it's the easiest way
<Drup> gasche: that's done
arjunguha has joined #ocaml
<Drup> oh
<Drup> I get it, I subscribed with an adresse with a +thingy for redirection purposes ...
<Drup> gasche: do I resent ?
<Drup> resend*
<adrien_oww> gasche: thanks for the notice
<adrien_oww> rks`: well, I had already told gasche what my thoughts were on this very channel
<adrien_oww> (and more than ever, I still believe mantis is a valuable and under-estimated tool)
tianon has quit [Ping timeout: 245 seconds]
mort___ has quit [Quit: Leaving.]
mort___ has joined #ocaml
yacks has quit [Quit: Leaving]
mcclurmc has joined #ocaml
tianon has joined #ocaml
sagotch has quit [Ping timeout: 245 seconds]
osa1_ has quit [Ping timeout: 252 seconds]
mcclurmc has quit [Ping timeout: 252 seconds]
tianon has quit [Ping timeout: 240 seconds]
tianon has joined #ocaml
ggole has quit [Ping timeout: 272 seconds]
ontologiae_ has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
Thooms has joined #ocaml
<rks`> AltGr: ocp-indent sometimes output messages on stderr (when the file contains tabs and space for example), vim doesn't like that.
dant3 has quit [Remote host closed the connection]
<AltGr> rks`, can't you redirect ?
ggole has joined #ocaml
<rks`> ... probably :D
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<AltGr> Otherwise I'll add a --quiet
<AltGr> that warning can be quite useful though :p -- remove your tabs ;)
<AltGr> (people add the feeling they got a very weird and difficult to reproduce bug before I added it, I've got a few reports on the tracker)
<AltGr> s/add/had/
<rks`> right
<rks`> makes sense
dant3 has joined #ocaml
<def-lkb> rks`: fixed in ocp-indent-vim :)
<Drup> AltGr: I confirm :D
<AltGr> def-lkb, thanks ! :)
<Drup> I remember asking about it
<rks`> def-lkb: :)
Thooms has quit [Ping timeout: 260 seconds]
mort___ has quit [Quit: Leaving.]
michael_lee has quit [Quit: Ex-Chat]
Thooms has joined #ocaml
Thooms has quit [Ping timeout: 252 seconds]
Thooms has joined #ocaml
dsheets has quit [Ping timeout: 245 seconds]
mort___ has joined #ocaml
FreeArtMan has joined #ocaml
Thooms has quit [Remote host closed the connection]
arjunguha has joined #ocaml
arjunguha has quit [Client Quit]
arjunguha has joined #ocaml
mcclurmc has joined #ocaml
hnrgrgr has quit [Ping timeout: 252 seconds]
vpm has quit [Ping timeout: 248 seconds]
thizanne has quit [Ping timeout: 272 seconds]
thizanne has joined #ocaml
vpm has joined #ocaml
mcclurmc has quit [Ping timeout: 251 seconds]
avsm has joined #ocaml
hnrgrgr has joined #ocaml
arjunguh_ has joined #ocaml
arjunguha has quit [Ping timeout: 245 seconds]
ollehar1 has joined #ocaml
dsheets has joined #ocaml
darkf has quit [Quit: Leaving]
mcclurmc has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
axiles has quit [Ping timeout: 245 seconds]
nlucaroni has joined #ocaml
appleby has joined #ocaml
<appleby> hey there
<appleby> anyone around?
shinnya has joined #ocaml
<bernardofpc> kinda
<Drup> approximately 190 person :p
<appleby> I'm trying to follow this tutorial here
<appleby> I have ocaml installed on my mac but I cannot find the graphics library
<adrien_oww> it's not unlikely it's not installed on mac, maybe it's not ported
<adrien_oww> (it might require X11)
<adrien_oww> can you find other modules like Unix or Str?
<appleby> how do I test that
<bernardofpc> speaking of graphics
<appleby> I'm running ocaml toplevel in eclipse
<bernardofpc> what are the usual/useful GUI libraries for OCaml
<bernardofpc> ?
<Drup> appleby: is "#load "graphics.cma";;" in the repl working ?
<pippijn> bernardofpc: lablgtk
<appleby> when I type that I getError: Unbound value load
<pippijn> appleby: include the #
<Kakadu> bernardofpc: Also you can consider QtQuick
mmachenry has joined #ocaml
<appleby> - : string = "#load \"graphics.cma\";;"
<pippijn> Kakadu: is it usable for medium scale applications, nowadays?
axiles has joined #ocaml
<Drup> appleby: don't use eclipse.
<appleby> ok
<Kakadu> I think so. The problem is that nobody need graphics library for OCaml
<pippijn> appleby: do not include ""
<appleby> just terminal?
<Kakadu> appleby: yep
mmachenry has quit [Client Quit]
<Drup> appleby: run "ocaml" in your terminal, yes
<pippijn> rlwrap ocaml
<bernardofpc> there are no GUI programs in OCaml ?
<appleby> k
<appleby> done
<pippijn> bernardofpc: there are
<appleby> drup should I not at least use eclipse as an editor
<pippijn> bernardofpc: most were done with lablgtk
<appleby> even in terminal I get
<appleby> Error: Unbound value load
<Kakadu> appleby: don't forget about #use "topfind";;
<appleby> I type that and I get Error: Unbound value load
<Drup> I don't think you need topfind for that
<appleby> Error: Unbound value use
<bernardofpc> appleby: use the #
<appleby> so type a hash after the hash prompt?
<bernardofpc> yes
<Drup> yes !
<Drup> x)
<bernardofpc> unfortunately, this is a very bad convention for prompt and commands
<appleby> ok
<appleby> after the load nothing happens
<Drup> it's normal
<bernardofpc> this is probably good sign
<appleby> after #load "graphics.cma";; nothing happens, is that
<appleby> ok
<Drup> then try to use Graphics.open_graph " 640x480";;
<flux> long tradition of unix to shut up if nothing goes wrong :-)
<appleby> sweet, I love this irc
<appleby> so many helpful people
<appleby> how do I find graphics.mli on my filesystem though
<appleby> I can't even find it
<Drup> I know nothing about mac, so can't help you with that part
<flux> appleby, find / -name graphics.mli should find it..
<flux> though there are probably other faster ways
dant3 has quit [Remote host closed the connection]
<flux> technically it's possible you don't have graphics.mli in your mac, depending on how it has been installed. it is not essential for ocaml to function.
<appleby> even though the load was probably successful, it's possible that I don't have it?
<Drup> .mli is the source
dant3 has joined #ocaml
<Drup> you don't need the source, only the compiled file
<appleby> oh okay
<appleby> what are .ml then
<appleby> the compiled files?
<Drup> another source :)
<flux> .mli is the interface, .ml is the code
<ggole> .mli is to .ml roughly as .h is to .c
<flux> so similar, but completely different ;)
<ggole> (Except .mli files are compiled, not included.)
<ggole> I did say roughly. :)
<bernardofpc> http://ocaml.org/learn/tutorials/introduction_to_gtk.html -> why are there "Error: Unbound module GtkButton"in this page ??
<adrien_oww> Kakadu: it's not that most people don't need GUI stuff written in OCaml
<adrien_oww> it's that it's a domain most people doing OCaml will do their best to avoid
<flux> maybe he's using some system that automatically generates the output from his input? and his installation was missing that package..
<appleby> okay
<adrien_oww> Drup: errr
kaustuv has joined #ocaml
<adrien_oww> appleby: no, after '#use "topfind";;', you're supposed to '#require "graphics";;'
<adrien_oww> appleby: "#require", *not* "#use"
<adrien_oww> appleby: how did you install?
<appleby> i got it working a while ago...
<Drup> adrien_oww: calm down, read everything.
<Drup> :)
<adrien_oww> :D
<adrien_oww> still, it's #require! :D
<bernardofpc> what's the difference ?
<Drup> adrien_oww: and look at bernardofpc's link, you are responsible of lablgtk tutorials :p
<adrien_oww> I'm not!
<adrien_oww> well
<kaustuv> Is there a way to check that a source file conforms to the language as of version 3.12.1 without installing 3.12.1 and opam switching? Ideally something that can be added to a commit hook?
<adrien_oww> I'm supposed to make a new one but time has been scarce; should be during february
<Drup> bernardofpc: one is using ocamlfind, the other is praying for all the path to be set up correctly
<Drup> adrien_oww: you should still look at it
Enjolras has quit [Ping timeout: 245 seconds]
<adrien_oww> woah
<adrien_oww> # Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH");;
saml has joined #ocaml
<adrien_oww> yeah, was written before ocamlfind support probably
<adrien_oww> and way too complicated imho
<adrien_oww> (particularly building new widgets)
Enjolras has joined #ocaml
<adrien_oww> bernardofpc: http://notk.org/~adrien/lablgtk_oups_intro.pdf <- this is a presentation I'm supposed to put into a "web" format
<adrien_oww> and somewhere there's something in a web form but I've lost it
<adrien_oww> (will check in roughly one hour)
<Kakadu> bernardofpc: As you are interested in GUI can you make some notes why people are afraid of lablqt after reading http://kakadu.github.io/lablqt/tutorial.html ?
dant3 has quit [Remote host closed the connection]
philtor has joined #ocaml
<bernardofpc> Kakadu: I'm afraid of Qt by nature of KDE, but I'll try my best this afternoon :D
mmachenry has joined #ocaml
<bernardofpc> adrien_oww: you have an overfull \vbox in your Patoline
<bernardofpc> (and your text is not easily selectable in evince :/)
<bernardofpc> (though it IS selectable, only not line-by-line)
mmachenry has quit [Client Quit]
<Drup> it is for me, but I have to be careful. It's a regular evince isssue though, not really a patoline one
mmachenry has joined #ocaml
<bernardofpc> maybe my evince is too old
<bernardofpc> Evince 0.6.0
<Kakadu> It is not evince issue
philtor has quit [Ping timeout: 248 seconds]
<adrien_oww> poppler maybe
appleby has quit [Quit: appleby]
<kaustuv> Is there a way to get ocamlopt to produce a statically compiled binary, or a Linux tool that turns a dynamically linked program into a static one?
dant3 has joined #ocaml
<adrien_oww> errr
<adrien_oww> kaustuv: ocamlopt links statically
<adrien_oww> at least for OCaml libraries
dant3 has quit [Remote host closed the connection]
<flux> well, there's statifier but in my experience it doesn't work
<adrien_oww> and for C libraries it will depend on your C linker flags
<kaustuv> Right, I meant for non-ocaml dependencies
<flux> who knows maybe statifier works nowadays
<mfp> off the top of my head, -cclib -static
<kaustuv> Thanks, I'll try that
dant3 has joined #ocaml
<mfp> not 100% effective with libc though
dant3 has quit [Read error: Connection reset by peer]
<flux> suggested working solution: bundle libraries with your app and either provide a script that sets up LD_LIBRARY_PATH, or use -Wl,-rpath during linking?
dant3 has joined #ocaml
<flux> I think many apps have ended up with that buindling&script wrapper solution..
<flux> (ie. games)
<kaustuv> OK, -ccopt -static worked. Thanks mfp and others.
<flux> nice
mika1 has quit [Quit: Leaving.]
dant3 has quit [Ping timeout: 260 seconds]
cdidd has joined #ocaml
<kaustuv> produces lots of scary warnings about functions like gethostbyname()
<mfp> kaustuv: you might still need to ship libc with the executable and use LD_LIBRARY_PATH or -rpath, though. Some functions (IIRC gethostbyname) need the actual dynlib
<mfp> righto, /me should read while typing
arjunguh_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dant3 has joined #ocaml
<kaustuv> It's a simple text muncher that should not need any of the dynamic functions being complained about. It seems to work in a place that has a different C library version from where I compiled it.
<kaustuv> That's all I needed, basically.
arjunguha has joined #ocaml
dant3 has quit [Ping timeout: 240 seconds]
agnoctone has quit [Quit: Page closed]
axiles has quit [Ping timeout: 272 seconds]
axiles has joined #ocaml
kaustuv has left #ocaml []
lostcuaz has joined #ocaml
mmachenry has quit [Quit: Leaving.]
appleby has joined #ocaml
mmachenry has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
dant3 has joined #ocaml
avsm has quit [Quit: Leaving.]
dant3_ has joined #ocaml
dant3 has quit [Read error: Connection reset by peer]
avsm has joined #ocaml
dant3_ has quit [Ping timeout: 248 seconds]
appleby has quit [Quit: appleby]
mcclurmc has joined #ocaml
appleby has joined #ocaml
watermind has joined #ocaml
ontologiae_ has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
<ygrek> fwiw, it is possible to link everything statically except glibc, but then one has to take care to link against pretty old glibc version
appleby has quit [Quit: appleby]
mmachenry has quit [Quit: Leaving.]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
mmachenry has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
mchqwerty has quit [Quit: Odcházím]
mort___ has quit [Quit: Leaving.]
jpdeplaix has quit [Ping timeout: 252 seconds]
FreeArtMan has quit [Ping timeout: 245 seconds]
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yoric has quit [Ping timeout: 248 seconds]
S11001001 has joined #ocaml
jpdeplaix has joined #ocaml
Kakadu has quit [Ping timeout: 245 seconds]
mmachenry has quit [Quit: Leaving.]
S11001001 has quit [Changing host]
S11001001 has joined #ocaml
appleby has joined #ocaml
dant3 has joined #ocaml
FreeArtMan has joined #ocaml
jao` has joined #ocaml
dant3 has quit [Ping timeout: 252 seconds]
jao` has quit [Changing host]
jao` has joined #ocaml
Yoric has joined #ocaml
kaustuv has joined #ocaml
<kaustuv> Is there a simple example of what changes with this: http://caml.inria.fr/cgi-bin/viewvc.cgi?revision=14382&view=revision
skchrko has quit [Ping timeout: 245 seconds]
Yoric has quit [Ping timeout: 248 seconds]
avsm has quit [Quit: Leaving.]
arjunguha has joined #ocaml
nikki93 has joined #ocaml
appleby has quit [Quit: appleby]
AltGr has left #ocaml []
mreca has joined #ocaml
nikki93 has quit [Ping timeout: 264 seconds]
jonludlam has quit [Ping timeout: 245 seconds]
ygrek has quit [Ping timeout: 272 seconds]
kaustuv has left #ocaml []
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arjunguha has joined #ocaml
AltGr has joined #ocaml
sgnb has quit [Remote host closed the connection]
sgnb has joined #ocaml
mmachenry has joined #ocaml
ontologiae_ has quit [Ping timeout: 272 seconds]
zpe has joined #ocaml
dant3 has joined #ocaml
dant3 has quit [Ping timeout: 252 seconds]
AltGr has left #ocaml []
Kakadu has joined #ocaml
nikki93 has joined #ocaml
nikki93 has quit [Remote host closed the connection]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
mreca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zpe has quit [Ping timeout: 245 seconds]
<ia0> gasche: c'est qui jpdeplaix ?
<adrien> :D
<companion_cube> he's a ocaml programmer :p
<jpdeplaix> :DDDD
<tcpc> :D
nikki93 has joined #ocaml
<ia0> ok c'est bon je sais :-)
<companion_cube> ici c'est anglophone à part ça :p (le francophone est sur -fr)
<thizanne> mais vous vous connaissez en vrai non ? (+ english)
<ia0> oh ok
<ia0> thizanne: yes
<olasd> OCaml's true nature is resurfacing
<olasd> :-)
<ia0> sorry
<companion_cube> :)
mort___ has joined #ocaml
dsheets has quit [Ping timeout: 248 seconds]
Yoric has joined #ocaml
dant3 has joined #ocaml
nikki93 has quit [Remote host closed the connection]
FreeArtMan has quit [Read error: Connection reset by peer]
FreeArtMon has joined #ocaml
dant3 has quit [Ping timeout: 245 seconds]
<bernardofpc> olasd> OCaml's true nature is resurfacing -> on parle pas français au Brésil :D
thomasga has quit [Quit: Leaving.]
Yoric has quit [Ping timeout: 265 seconds]
FreeArtMon has quit [Quit: main.lv]
mmachenry has quit [Quit: Leaving.]
chris2 has quit [Ping timeout: 245 seconds]
<bernardofpc> not sure if it's been reported, but the "hello world" from http://plus.kaist.ac.kr/~shoh/ocaml/lablgtk2/lablgtk2-tutorial/c108.html#SEC-HELLOWORLD gives compilation warnings
mmachenry has joined #ocaml
<adrien> values should have type unit?
* adrien back to his slides
chris2 has joined #ocaml
Eyyub has joined #ocaml
_andre has quit [Quit: leaving]
<bernardofpc> adrien: right
<bernardofpc> all those methods return ids...
<adrien> for #connect methods, yeah
<adrien> in some codes I have: let i = ignore
<adrien> then
<bernardofpc> blah |> i;
<adrien> i (button#connect#clicked ...);
<adrien> for instance
<bernardofpc> why cannot there be -> unit versions of those ?
<pippijn> i % button#co...
<adrien> bernardofpc: that would make lablgtk *much* heavier
<adrien> probably a few hundred KBs more
<adrien> (actually,probably 1MB)
Anarchos has joined #ocaml
<adrien> bernardofpc: you can also disable the warning
zpe has joined #ocaml
comacat has joined #ocaml
<bernardofpc> oh
zpe has quit [Ping timeout: 260 seconds]
dant3 has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dant3 has quit [Ping timeout: 264 seconds]
manizzle has joined #ocaml
appleby has joined #ocaml
sheijk has joined #ocaml
manizzle has quit [Client Quit]
manizzle has joined #ocaml
ggole has quit []
manud has joined #ocaml
clan has joined #ocaml
malo has joined #ocaml
ollehar1 has quit [Quit: ollehar1]
Yoric has joined #ocaml
mfp_ has joined #ocaml
mfp has quit [Ping timeout: 252 seconds]
mfp_ has quit [Read error: Connection reset by peer]
mfp_ has joined #ocaml
mfp__ has joined #ocaml
tcpc has left #ocaml []
mfp_ has quit [Ping timeout: 248 seconds]
<bernardofpc> Error: This expression has type GPack.box
<bernardofpc> but an expression was expected of type
<bernardofpc> < pack : GObj.widget -> unit; .. >
<bernardofpc> Types for method pack are incompatible
<bernardofpc> can someone shed a light on that ?
travisbrady has joined #ocaml
Eyyub has quit [Ping timeout: 272 seconds]
Eyyub has joined #ocaml
<companion_cube> what's the type of the #pack method of GPack.box?
<bernardofpc> tons of ? args :/
<bernardofpc> probably that explains
<companion_cube> hmmm, most likely yes
<bernardofpc> vbox#pack ;;
<bernardofpc> - : ?from:Gtk.Tags.pack_type -> ?expand:bool -> ?fill:bool -> ?padding:int -> GObj.widget -> unit = <fun>
<companion_cube> try to replace box#pack by (fun ()-> box#pack())
<bernardofpc> no deal...
<bernardofpc> I have tried before using let packer wid = vbox#pack wid in ....
<bernardofpc> but it still deduces that vbox#pack is of type widget -> unit
<bernardofpc> which is reasonable
<bernardofpc> it works if I pass vbox#pack directly to the function, though
<bernardofpc> build_row packer ... = ... ~packing:packer ... ;;
Eyyub has quit [Ping timeout: 252 seconds]
Eyyub has joined #ocaml
caseyjames has joined #ocaml
<caseyjames> Hi, I recently used opam to install a new version of OCaml, what command do I use to switch the compiler? opam init --comp 4.01.0 is not working
<bernardofpc> opam switch I gues
<caseyjames> how do I do that?
<companion_cube> opam switch 4.01.0
<caseyjames> oooh. thank you
Thooms has joined #ocaml
<bernardofpc> anyone has any idea on "removing optional arguments from a function" ?
appleby has quit [Quit: appleby]
<companion_cube> you can do it by ?foo:None ?bar:None
<companion_cube> but it's not very handy
<bernardofpc> yeah
<bernardofpc> sad that optional arguments don't generate function subtyping
caseyjames has quit [Ping timeout: 245 seconds]
dant3 has joined #ocaml
<companion_cube> I don't know how tractable that would be
<companion_cube> but indeed, ?foo:'a -> 'b -> 'c may be a "subtype"(?) of 'b -> 'c
<companion_cube> well I guess the call convention isn't the same, actually
<adrien> bernardofpc: hmm, hold on
dant3 has quit [Ping timeout: 252 seconds]
sagotch has joined #ocaml
<adrien> bernardofpc: here's my new and shiny tutorial for lablgtk: http://notk.org/~adrien/lablgtk_tutorial/tutorial.html
arjunguha has joined #ocaml
<adrien> bernardofpc: it's not a translation of a C tutorial but a from-scratch one which starts with the nice lablgtk API instead of the C one
<adrien> and you'll soon love GPack.vbox' ~packing argument
<bernardofpc> adrien: many thanks ;-)
<adrien> it's 10 minutes roughly :)
<bernardofpc> well, I'm having problems with it right now
<adrien> hmm, look at the tutorial and let me know if you're still confused
<bernardofpc> ok
<bernardofpc> I'll re-read it
<adrien> I meant, mine :P
<adrien> it's mostly done but I've been told that the pony in the background was a bit disturbing ='(
<bernardofpc> it is
<bernardofpc> because it's not declared before (at least in an understandable way)
<mmachenry> adrien: Thanks. Do you use Glade in OCaml at all?
<adrien> it's not, the poney comes from my ~/.gtkrc
<bernardofpc> oh dear
<adrien> I need a visual theme with thick window borders actually
<orbitz> Hrm, i'm getting a bucnh of these errors
<orbitz> /tmp/cctsMxHM.o:(.data+0x1498): undefined reference to `mlre2__escape'
<bernardofpc> adrien: also, you should ignore Gtkinit :D
<adrien> (otherwise it's difficult to distinguish between the windojws background and the browser background)
<orbitz> core_extended deepnds on re2, which is a c language bindigns, and it doesn't like me
<orbitz> anyone expereinced this?
<adrien> mmachenry: no, I'm not fond of it; I find it doesn't bring much most of the time
<adrien> mmachenry: at least when you don't derive your GUI from machine-generated data
<adrien> I think I'm going to try to spend more time on lablgtk during february; depends on what happens during fosdem
<companion_cube> what a skillfull wheel-crafter this adrien is!
<companion_cube> he even crafts tutorials with ponies :p
mreca has joined #ocaml
Kakadu has quit [Quit: Page closed]
<adrien> ponies are awesome!
<bernardofpc> WinForms^WLablgtk2 -> intended, I presume, but I see no point in fact of remembering it :D
<adrien> it's merely a string ;-)
<bernardofpc> adrien: box#coerce -> you probably should explain what that does...
<adrien> right
<bernardofpc> (and I see perfectly why you were bothering with tons of arguments to a function :D)
<adrien> for now, just use it as "copy-paste
<orbitz> Hrm, how does -lfoo_stubs get added?
<adrien> (but all it does is give you the underlying gtk object instead of ocaml's and later on in the tutorial, you're encouraged to avoid that)
<adrien> orbitz: ocamlobjinfo foo.cma
<adrien> automagic
<orbitz> argh
<bernardofpc> adrien: I understood in the toplevel :D
<adrien> :)
<bernardofpc> (I wrote the function without the #coerce, bang error)
<bernardofpc> btw, you should add the #use/#require qvb for toplevel testing while reading :D
<orbitz> Is there a good standaloen shell interface for ocaml? core_extended is turnign into a bitch
<orbitz> not sure why it cannot find re2 thouhg...
<bernardofpc> (dunno how to say "qvb" in english :/)
<bernardofpc> "appropriate" does not convey the same idea :D
<adrien> bernardofpc: hmmm, maybe I can #coerce someone like Drup into adding support for GTK+'s HTML5 backend in ocsigen and then use that as inline examples :P
<companion_cube> there's shcaml, but not sure how good it is
<adrien> Drup: come here, don't be scared...
<orbitz> hrm, must be me thouhg
ollehar1 has joined #ocaml
<bernardofpc> http://ocaml.xelpaste.net/9789 -> adrien : do you know any way to make this compile in a sensible way ?
<bernardofpc> I have managed to make with passing vbox#pack as argumen, but that feels wrong in O
<bernardofpc> bject Oriented thinking to pass methods instead of the objects
<adrien> don't focus on object-oriented programming in Lablgtk
<adrien> do the way you want
<adrien> and #packing:vbox#pack is a good way to do it
<bernardofpc> yeah, but this code does not compile
<adrien> the nicer part is that you can do partial application with ~expand
<bernardofpc> (this is the code I wanted it worked...)
<adrien> (checking)
<adrien> you're going to hate the answer
<bernardofpc> I know
<adrien> let build_row (vbox : GPack.box) label initext =
<adrien> annotation
<bernardofpc> oh
<bernardofpc> right
<adrien> I don't have the issue often
<adrien> I think it's because I'm using a different style:
<bernardofpc> that's probably my first needed annotation (other from performance reasons on compare or < )
<adrien> basbasically:
<adrien> let build_row ~packing label initext = let hbox = GPack.hbox ~packing () in
<adrien> argh
<adrien> basically:
<adrien> let build_row ~packing label initext =
<bernardofpc> yeah
<adrien> let hbox = GPack.hbox ~packing () in
<bernardofpc> I did notice that if I passed vbox#pack as argument it worked
<bernardofpc> didn't know that named arguments can be easy to capture-pass
<adrien> I'm unable to tell you about the theory behind this
<bernardofpc> (never used optional args 1h before :d)
<adrien> :)
<bernardofpc> (make it 1h30, I encoutered the problem 21:43, logs don't lie)
mreca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bernardofpc> will use that ~packing, seems the best way forward
<companion_cube> I think the theory is simple: the system needs to be able to make the distinction between "the default value is used" and "this is a partial application"
<companion_cube> ?a:ta -> ?b:tb -> c is mostly useless because it will be a partial application unless all arguments are explicitely provided
<adrien> companion_cube: hmmm, for requiring type annotations when passing objects in arguments
<bernardofpc> companion_cube: as I said, the good theory would subtype functions with optional arguments :D
nikki93 has joined #ocaml
<companion_cube> adrien: I don't think it's ever needed in theory
<companion_cube> in practice you may want it if you don't want to kill yourself because of error messages
appleby has joined #ocaml
mort___ has quit [Quit: Leaving.]
mort___ has joined #ocaml
sillyotter has joined #ocaml
<Drup> "GTK+'s HTML5 backend " <- what ?!
<Drup> adrien ^
sillyotter has quit [Client Quit]
<def-lkb> Drup: broadway
appleby has quit [Quit: appleby]
dant3 has joined #ocaml
dant3 has quit [Ping timeout: 252 seconds]
axiles has quit [Quit: Quitte]
Yoric has quit [Ping timeout: 252 seconds]
<adrien> grrr, lag
<adrien> companion_cube: hmmm, maybe
malo has quit [Quit: Leaving]
clan has quit [Quit: clan]
saml has quit [Quit: Leaving]
Eyyub has quit [Ping timeout: 264 seconds]
travisbrady has quit [Quit: travisbrady]
nikki93 has quit [Remote host closed the connection]
dsheets has joined #ocaml
mmachenry has quit [Quit: Leaving.]
clan has joined #ocaml
Yoric has joined #ocaml
dant3 has joined #ocaml
clan has quit [Ping timeout: 272 seconds]
thomasga has joined #ocaml
dant3 has quit [Ping timeout: 252 seconds]
sagotch has quit [Quit: Page closed]
darkf has joined #ocaml
nikki93 has joined #ocaml
nikki93 has quit [Remote host closed the connection]
nlucaroni has quit [Quit: leaving]
manud has quit [Ping timeout: 252 seconds]
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arjunguha has joined #ocaml
Thooms has quit [Ping timeout: 272 seconds]
ollehar has quit [Ping timeout: 265 seconds]
ulfdoz has joined #ocaml
Eyyub has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonludlam has joined #ocaml
Simn has quit [Quit: Leaving]
Qrntz has quit [Ping timeout: 252 seconds]
dant3 has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
dant3 has quit [Read error: Operation timed out]
clan has joined #ocaml
arjunguha has joined #ocaml
Yoric has quit [Ping timeout: 276 seconds]
clan has quit [Quit: clan]
madroach has quit [Ping timeout: 252 seconds]
madroach has joined #ocaml
S11001001 has quit [Quit: bye bye]
q66 has quit [Quit: Leaving]
q66 has joined #ocaml
q66 has quit [Changing host]
q66 has joined #ocaml
<Drup> gasche: since you are my closes contact to the compiler and stdlib devs, can you explain this to me : https://github.com/ocaml/ocaml/commit/acd469c2206cfbd5a902db74b674ab0d1c6e0599
<Drup> a part of the functions in all those modules are exported but not in the documentation, this has been the case since this commit
<Drup> I hope you will appreciate that I ask before opening an angry bug report. :D