dark_light changed the topic of #ocaml to: OCaml 3.09.2 available! Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
danly has quit ["Leaving"]
ulfdoz has quit ["brb"]
ulfdoz has joined #ocaml
ulfdoz has quit [Client Quit]
ulfdoz has joined #ocaml
cypher23 has joined #ocaml
<cypher23> hello
bmiller has quit [" "]
smimou has quit ["bli"]
dark_light has quit [Remote closed the connection]
yondalf has joined #ocaml
yondalf_ has joined #ocaml
sponge45 has joined #ocaml
yondalf has quit [Read error: 60 (Operation timed out)]
<Mr_Awesome> hello
dbueno has joined #ocaml
<dbueno> Is there a way to run functions on variables which are in scope in ocamldebug?
<dbueno> I have a global variable (a set) and I want its size....
<Mr_Awesome> i havent used ocamldebug all that much
<Mr_Awesome> nut iirc no
<Mr_Awesome> *but
<dbueno> Mr_Awesome: You prefer not using debuggers? How do you debug?
<Mr_Awesome> dbueno: i havent done anything substantial with ocaml yet. print statements do me just fine for now
<dbueno> Ah.
joshcryer has quit [Nick collision from services.]
joshcryer has joined #ocaml
<cypher23> just a quick question for this code: http://pastie.caboo.se/22783 Can the first function be replaced with the second one? (i.e., are they equivalent?)
<Mr_Awesome> yes
<cypher23> k. thx.
<Mr_Awesome> dbueno: it doesnt look like it, but you might want to take a look at http://caml.inria.fr/pub/docs/manual-ocaml/manual030.html, particularly section 16.7
<dbueno> Mr_Awesome: I was hoping it lies. =]
<Mr_Awesome> heh
<Mr_Awesome> you can probably get away with just putting that statement in your source
<Mr_Awesome> but i dont really know the situations
<dbueno> Mr_Awesome; Yes, I can. I then have to kill the program, recompile, reset the breakpoint, and re-run. It's a hassle.
<Mr_Awesome> yeah
<dbueno> But certainly no more than a hassle.
yondalf has joined #ocaml
Mr_Awesome is now known as Mr_Anal
Mr_Anal is now known as Mr_Awesome
yondalf_ has quit [Read error: 60 (Operation timed out)]
* cypher23 begins to wonder wether "Practical OCaml" had even a hint of quality control
<Mr_Awesome> did you purchase that book?
<cypher23> unfortunately, yes
<Mr_Awesome> the free one on the net is much better, from what ive heard
<cypher23> free one?
<cypher23> yes, i know that one (that it exists), but I've never read it
<cypher23> however, "Objective Caml for Scientists" is rather good as well
<buluca> cypher23: does it make a somehow deep introduction to the language, programming styles, etc.?
<cypher23> buluca, "Objective Caml for Scientists"?
<Mr_Awesome> buluca: the one i posted is fairly in depth, it covers all parts of the language
<buluca> cypher23: the O'Reilly book is a must-read, although slightly old book...
<buluca> cypher23: yes
<Mr_Awesome> ah ok
<yondalf> yeah...it requires IE or "Communicator"...i don't read french so i don't know exactly what it's saying
<buluca> yondalf: LOL
<cypher23> buluca, i thought that the syntax of ocaml was explained pretty well and in an easy-to-understand-way, if you have already programmed in other (not neccessarily functional) languages
<buluca> cypher23: but I've almost nothing practical programming experience...
<buluca> buluca: and I wish to understand as well as possible the formals
<cypher23> as for programming styles, it doesn't have a chapter or something similar dedicated to it, but the formatting and such is fairly consistent in the book
<cypher23> buluca, hm. I wouldn't recommend it for learning to program, because a) it doesn't tell you anything about the fundamentals of programming and b) it's written in a rather terse, scientific style (which is good if all you want to learn is the syntax itself, otherwise, not so great)
<buluca> cypher23: so it wouldn't be so bad to me
<cypher23> buluca, maybe. I don't know :)
<cypher23> if you want to learn functional programming in general, I've also read "Introduction to Functional Programming using Haskell", which I found rather good, but it's very math-heavy
<cypher23> I'm also sure that there are quite a few books out there that teach FP with Scheme/Lisp
<buluca> I'm weaker in maths than most haskellers, I think :)
<yondalf> SICP is quite famous
<buluca> SICP?
<cypher23> buluca, so am I. by "math-heavy" I meant that they proove things like 'map' and 'foldr/foldl', but you can usually skip those parts
<cypher23> Structured Interpretation of Computer Programs
<Mr_Awesome> ugh, i couldnt handle haskell
<buluca> I will continue to read the ora book anyway... maybe I'll purchase Objective Caml for Scientists
<Mr_Awesome> i *despise* meaningful whitespace
<cypher23> buluca, the only drawback to Objective Caml for Scientists is that it's quite expensive
<Mr_Awesome> yeah what is that, like 160 usd?!
<buluca> cypher23: argh, maybe I might find some 2nd-hand book
<cypher23> 85 British Pound = 125 Euros = 161 USD
<cypher23> that price does include shipping though
<Mr_Awesome> thats still ridiculously expensive
<buluca> :-| 125 euros i definitely too much
<Mr_Awesome> i read the intro, and the guy didnt even use proper grammar some of the time
<buluca> Mr_Awesome: not for a non-informatics student
<cypher23> Mr_Awesome, yes, but I found it to be worth it
<Mr_Awesome> really
<cypher23> yes
<buluca> Mr_Awesome: if you meant not expensive
<cypher23> does anyone know if there is a omnifunc for ocaml (vim7)?
yondalf has quit ["leaving"]
buluca has quit [Read error: 104 (Connection reset by peer)]
yondalf has joined #ocaml
ramkrsna has quit [Read error: 104 (Connection reset by peer)]
postalchris has joined #ocaml
yondalf has quit ["Lost terminal"]
ramkrsna has joined #ocaml
Smerdyakov has quit ["Leaving"]
dibblego has quit [Read error: 113 (No route to host)]
postalchris has quit [Read error: 110 (Connection timed out)]
descender has quit [Read error: 104 (Connection reset by peer)]
dibblego has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
Mr_Awesome has quit ["and the Awesome Level drops"]
Skal has joined #ocaml
sponge45 has quit ["zzzzzzzzzz"]
MisterC has joined #ocaml
Skal has quit [Read error: 104 (Connection reset by peer)]
pango has joined #ocaml
falconair has quit []
dibblego has quit ["Leaving"]
pango_ has quit [Remote closed the connection]
_velco has joined #ocaml
descender has joined #ocaml
seafood has joined #ocaml
<seafood> Hey guys. I'm a Haskell programmer. I'm looking for an introduction to OCaml that would suit me. Any ideas?
yondalf has joined #ocaml
<seafood> cypher23: Thanks, this looks like a good book
llama32 has joined #ocaml
joshcryer has quit [zelazny.freenode.net irc.freenode.net]
shawn__ has quit [zelazny.freenode.net irc.freenode.net]
mbishop has quit [zelazny.freenode.net irc.freenode.net]
piggybox has quit [zelazny.freenode.net irc.freenode.net]
eradman_ has quit [zelazny.freenode.net irc.freenode.net]
batdog|gone has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
jdev has quit [zelazny.freenode.net irc.freenode.net]
joshcryer has joined #ocaml
shawn__ has joined #ocaml
mbishop has joined #ocaml
piggybox has joined #ocaml
eradman_ has joined #ocaml
batdog|gone has joined #ocaml
Oatmeat|umn has joined #ocaml
jdev has joined #ocaml
jajs has joined #ocaml
johnnowak has joined #ocaml
khaladan has joined #ocaml
gene9 has joined #ocaml
pango has quit [Remote closed the connection]
ulfdoz has quit ["rumfrickel"]
ulfdoz has joined #ocaml
pinupgeek has joined #ocaml
pango has joined #ocaml
johnnowak has quit []
gene9 has quit ["Client Exiting"]
gene9 has joined #ocaml
yondalf has quit ["leaving"]
eradman_ has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
piggybox has quit [zelazny.freenode.net irc.freenode.net]
jdev has quit [zelazny.freenode.net irc.freenode.net]
mbishop has quit [zelazny.freenode.net irc.freenode.net]
batdog|gone has quit [zelazny.freenode.net irc.freenode.net]
shawn__ has quit [zelazny.freenode.net irc.freenode.net]
joshcryer has quit [zelazny.freenode.net irc.freenode.net]
joshcryer has joined #ocaml
shawn__ has joined #ocaml
mbishop has joined #ocaml
piggybox has joined #ocaml
eradman_ has joined #ocaml
batdog|gone has joined #ocaml
Oatmeat|umn has joined #ocaml
jdev has joined #ocaml
gene9 has quit ["Client Exiting"]
velco has joined #ocaml
_velco has quit [Read error: 110 (Connection timed out)]
bluestorm has joined #ocaml
ikaros_ has joined #ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
manu3000 has joined #ocaml
gene9 has joined #ocaml
_velco has joined #ocaml
fab_ has joined #ocaml
fab__ has quit [Read error: 110 (Connection timed out)]
gene9 has quit [Remote closed the connection]
gene9 has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
pango has quit [Remote closed the connection]
<bluestorm> hm
<bluestorm> i'm trying to do some Object Oriented Programming
pango has joined #ocaml
<bluestorm> and i'd like to know if there is a difference between
<bluestorm> class a b = let c = ....in object .... end
<bluestorm> and
<bluestorm> class a = let c = .... in fun b -> object ... end
lde has quit [Read error: 110 (Connection timed out)]
jajs has quit [Read error: 104 (Connection reset by peer)]
<gene9> as far as I understand there is no difference
<gene9> like let f1 a = match a with _ as v -> v and let f2 = fun v -> v
<bluestorm> hum
<bluestorm> i tested and it actually makes a difference
<bluestorm> with the second version, "c" is global to all instances of class a
<bluestorm> with the first, "c" is local to each instance
lde has joined #ocaml
<gene9> yes, you're right, it looks like c is in class level for second version
dbueno has quit ["Leaving"]
malc_ has joined #ocaml
pinupgeek has quit []
zak_ has joined #ocaml
llama32 has quit [Read error: 110 (Connection timed out)]
mariano has joined #ocaml
gene9_ has joined #ocaml
falconair has joined #ocaml
velco has quit [Read error: 104 (Connection reset by peer)]
gene9 has quit [Read error: 110 (Connection timed out)]
velco has joined #ocaml
pinupgeek has joined #ocaml
pinupgeek has quit []
gene9_ has quit ["Client Exiting"]
<flux__> hmh, I read that someone else wanted an ocaml call graph generator
<flux__> and he got a response that it was a very difficult problem, because functions may be passed as parameters to functions
<flux__> I would be well satisfied with a more static interpretation of the call flow..
<pango> ack; it's not even a problem purely specific to functional languages (C ?)
<lde> it's specific to languages with first class functions, including C and assembly
ramkrsna has quit [Read error: 104 (Connection reset by peer)]
ruben17 has joined #ocaml
<lde> calling/jumping to unknown addresses is particularly common in assembly, which doesn't stop ida (a dissasembler) from having a call graph
ruben17 has left #ocaml []
zak_ has quit [Remote closed the connection]
khaladan has quit [Read error: 110 (Connection timed out)]
manu3000 has quit [Client Quit]
edwardk has quit ["Trillian (http://www.ceruleanstudios.com"]
ramkrsna has joined #ocaml
postalchris has joined #ocaml
gunark has quit ["Konversation terminated!"]
velco has quit [Remote closed the connection]
mariano has quit [Read error: 104 (Connection reset by peer)]
danly has joined #ocaml
danly has quit [Remote closed the connection]
velco has joined #ocaml
bmiller has joined #ocaml
postalchris has quit [Read error: 110 (Connection timed out)]
danly has joined #ocaml
Smerdyakov has joined #ocaml
shawn__ has quit ["This computer has gone to sleep"]
velco has quit ["Ex-Chat"]
smimou has joined #ocaml
malc_ has quit ["leaving"]
_velco has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
postalchris has joined #ocaml
pinupgeek has joined #ocaml
danly has quit [Read error: 104 (Connection reset by peer)]
eradman_ has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
piggybox has quit [zelazny.freenode.net irc.freenode.net]
jdev has quit [zelazny.freenode.net irc.freenode.net]
mbishop has quit [zelazny.freenode.net irc.freenode.net]
batdog|gone has quit [zelazny.freenode.net irc.freenode.net]
joshcryer has quit [zelazny.freenode.net irc.freenode.net]
danly has joined #ocaml
joshcryer has joined #ocaml
mbishop has joined #ocaml
piggybox has joined #ocaml
eradman_ has joined #ocaml
batdog|gone has joined #ocaml
Oatmeat|umn has joined #ocaml
jdev has joined #ocaml
bmiller has quit [" "]
pango_ has joined #ocaml
gene9 has joined #ocaml
david_koontz has quit ["Leaving"]
pango has quit [Remote closed the connection]
gene9 has quit ["Client Exiting"]
jajs has joined #ocaml
MisterC has quit [Read error: 104 (Connection reset by peer)]