sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
nonpop has quit ["Leaving."]
smimou has quit ["bli"]
Mr_Awesome has joined #ocaml
pango_ has joined #ocaml
pango has quit [Remote closed the connection]
jdev has quit ["Lost terminal"]
jdev has joined #ocaml
swater has quit ["Quat"]
seafood_ has joined #ocaml
<seafood_> Anyone here familiar with the program ocamldebug? I've been using it and sometimes I get the message "No source file for <modulename>". This happens for source files in my project but *not* for standard libraries. I was wondering if someone could tell me how to make the source file available for the ocamldebug program.
johnnowak has joined #ocaml
postalchris has quit [Read error: 113 (No route to host)]
Smerdyakov has joined #ocaml
<seafood_> Okay worked it out. Just specify a -I option appropriately on the command line. That was simple!
johnnowak_ has joined #ocaml
johnnowak has quit [Read error: 145 (Connection timed out)]
johnnowak has joined #ocaml
bluestorm is now known as bluestorm_aw
johnnowak_ has quit [Connection timed out]
pantsd has joined #ocaml
Smerdyakov has quit ["Leaving"]
sponge45 has joined #ocaml
joshcryer has quit [Read error: 104 (Connection reset by peer)]
danly has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
jlouis has joined #ocaml
jlouis has quit [Remote closed the connection]
johnnowak has quit []
sponge45 has quit ["zzzzzzzzzz"]
gim has quit [Read error: 145 (Connection timed out)]
gim has joined #ocaml
ppsmimou has quit [Read error: 104 (Connection reset by peer)]
ppsmimram has joined #ocaml
slowriot has quit []
ppsmimram has quit [Read error: 145 (Connection timed out)]
Eridius has quit []
ppsmimram has joined #ocaml
Eridius has joined #ocaml
Mr_Awesome has quit ["and the Awesome Level drops"]
_velco has joined #ocaml
pango_ has quit [Remote closed the connection]
pango has joined #ocaml
love-pingoo has quit ["Connection reset by pear"]
haelix_ is now known as haelix
Submarine has joined #ocaml
Submarine has quit ["Leaving"]
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
smimou has joined #ocaml
johnnowak has joined #ocaml
dark_light has joined #ocaml
cratuki has left #ocaml []
smimou has quit ["bli"]
pantsd has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
bluestorm_aw is now known as bluestorm
nonpop has joined #ocaml
klapmuet1 has joined #ocaml
postalchris has joined #ocaml
swater has joined #ocaml
klapmuetz has quit [Read error: 110 (Connection timed out)]
dark_light has quit [Remote closed the connection]
ikaros_ has joined #ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
velco has joined #ocaml
gunark has quit [Remote closed the connection]
love-pingoo has quit ["Connection reset by pear"]
gunark has joined #ocaml
gunark has quit [Client Quit]
MrCraps has joined #ocaml
gunark has joined #ocaml
klapmuet1 is now known as klapmuetz
Submarine has joined #ocaml
velco has quit [Client Quit]
johnnowak has quit []
dark_light has joined #ocaml
smimou has joined #ocaml
ikaros_ is now known as ikaros
nonpop has quit ["Leaving."]
nonpop has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
eradman_ has joined #ocaml
eradman has quit [Read error: 104 (Connection reset by peer)]
mbishop has quit [Remote closed the connection]
Skal has joined #ocaml
MrCraps has quit [Remote closed the connection]
pango has quit ["Leaving"]
pango has joined #ocaml
bluestorm is now known as bluestorm_aw
Skal has quit [Remote closed the connection]
joshcryer has joined #ocaml
zmdkrbou_ has joined #ocaml
Gh0stD0g has joined #ocaml
zmdkrbou has quit [Read error: 110 (Connection timed out)]
_velco is now known as velco
postalchris has quit [Read error: 113 (No route to host)]
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
slipstream-- has quit [Read error: 104 (Connection reset by peer)]
slipstream has joined #ocaml
bluestorm_aw is now known as bluestorm
<Gh0stD0g> what is the purpose of passing () to a function? For example, many of the mysql module functions require it.
<mellum> Probably because functions cannot have 0 argumenrs.
<Gh0stD0g> ic
<gunark> i think it's mostly just there to confuse noobs
<Gh0stD0g> yes, well I kept seeing functions that were asking for "unit" as one of the arguments
<Gh0stD0g> I finally figure out that "unit" is ()
<bluestorm> unit is the type
<bluestorm> and () is the value
<bluestorm> i think it was done with consistency with the C "foo bar(void) { ... } [...] bar();" in mind
<Gh0stD0g> most of the docs I've read so far are from ocaml-tutorial.org, but I'm going straight to the reference now
<bluestorm> hmm
<trurl__> Gh0stD0g: that's usually because the other arguments are all optional
<bluestorm> you've only used ocaml-tutorial for now ?
<Gh0stD0g> bluestorm: pretty much
<trurl__> Gh0stD0g: in lablgtk you'll see this all the time
<Gh0stD0g> trurl__: that was the case, so it makes more sense
<bluestorm> Gh0stD0g: do you think it's good for a beginner to learn with ?
<Gh0stD0g> I think so
<Gh0stD0g> I think it's an easier read than the official docs
Deathtiny has joined #ocaml
<bluestorm> of course
<gunark> the tutorial was great for getting me started
<bluestorm> but i thought it was a little too bit difficult for real beginners
<bluestorm> hu
<gunark> the official docs are really not very good for that... especially with all the weird frenglish translation...
<bluestorm> maybe you have a strong programming background
<gunark> yeah i took an ML course in university a few years ago, so that helped... without that i probably would have been totally lost and given u
<gunark> p
<Gh0stD0g> bluestorm: I do have a programming background, so I'm not new to all programming, just ocaml
<gunark> just getting your head around doing things recursively rather than iteratively is hard enough... then throw in the ocaml syntax, which really is anything but elegant...
<bluestorm> (anyway i found a quick introductory course in french that i think is very satisfying for peoples who have some programming background)
<bluestorm> gunark: it's strange because i personally learned ocaml as my first programming language
<Gh0stD0g> I was trying to learn haskell the last couple weeks, but was getting killed by the IO issues, so I thought ocaml might be a better way to get acquainted with more of the functional concepts
<bluestorm> and was never worried about the syntax
<gunark> a lot of europeans do from what i hear
<gunark> the syntax is really really ugly.... i do most of my programming in Ruby, and Ocaml is extermely ugly in comparison :(
<bluestorm> hmm
<gunark> definitely the opposit of the "minimal surprise" and readability-first ideology that Ruby was built around
<bluestorm> what do you think it's ugly ?
<bluestorm> (because i often hear complain from C guys, but maybe what's shocking you is different)
<gunark> i think it's an aesthetic judgement.... Ocaml is just awkward and unintuitive. The trailing () in function definitions that we were just talking about, for example
<bluestorm> hum
<gunark> and i'm not talking about functional languages in general -- I think they can be much more beautiful than iterative. Just the ocaml implementation...
<bluestorm> what would you suggest ?
<gunark> lisp is nice for example, if only for its minimalism. But the nested brackets get out of control real fast
<bluestorm> (not all functions have a trailing (), only a few ones)
<bluestorm> i mean for () specifically
<gunark> --- hah right, which only adds to the confusion
<bluestorm> hum
<bluestorm> why would it add to the confusion ?
<Gh0stD0g> I don't think it's terribly ugly
<Gh0stD0g> erlang is worse
Submarine has quit ["Leaving"]
<gunark> or for example, the way you specify labeled/optional arguments... the use of ~ is inconsistent... sometimes you need it, sometimes you don't... it "logically" makes sense of course, but not intuitively
<bluestorm> hum, i don't really use labeled arguments
<gunark> well
<gunark> ML itself is not that ugly
<gunark> standard ML doesn't have labeled arguments...
<gunark> i'm talking about the Ocaml extensions specifically
<bluestorm> hmm
<bluestorm> so by "syntax" you only mean labels and objects ? ^^
<Gh0stD0g> welp, gotta go - thanks for your help
Gh0stD0g has quit []
jlouis has joined #ocaml
velco has quit ["I'm outta here ..."]
Deathtiny is now known as lud43fr
lud43fr is now known as IwasDeathtiny
IwasDeathtiny is now known as Deathtiny
Deathtiny has left #ocaml []
zmdkrbou_ is now known as zmdkrbou
mbishop has joined #ocaml
mc__ has joined #ocaml
<mc__> hello, im trying to code ocaml on debian. I've installed ocaml,and ocaml-libs but the standard libs(Graphics) in my case are still missing. Cant figure out which package to install next
<bluestorm> hum
<bluestorm> how do you know graphics is missing ?
<smimou> the Graphics module is in the ocaml package
<bluestorm> (first check if /usr/lib/ocaml/graphics* exists)
<bluestorm> i guess you don't link it properly
<smimou> I guess you're not linking correctly
<mc__> bluestorm: it xexists
<bluestorm> :p
<smimou> :)
<bluestorm> hum
<mc__> well i just tried :
<bluestorm> basically
<mc__> open Graphics;;
<mc__> open_graph " 640x480";;
<bluestorm> try adding "graphics.cma" to the compilation
<bluestorm> ocamlc graphics.cma test.ml -o test
<smimou> or "ocaml graphics.cma" if you want the toplevel
<mc__> now it works,thanks!
<bluestorm> (btw, Graphics is not included in the "standard library")
<mc__> oh,ok
shawn__ has joined #ocaml
Smerdyakov has joined #ocaml
shawn__ is now known as shawn
<mc__> What IDE do you recommend? I use emacs-tuareg ATM,are there others ath which i should take a closer look?
<bluestorm> hum
<Smerdyakov> I use Emacs with caml-mode.
<bluestorm> mc__: you may want to take a look at Cameleon
<bluestorm> (but i'm not sure it's really better than emacs+tuareg)
<bluestorm> and if you're an Eclispe guy (not likely but who knows ?) you may want to try the eclipse mode
<bluestorm> (altough it's seems it's a bit dead)
<mc__> eclipse is nice,but it sucks on linux