Yurik changed the topic of #ocaml to: http://icfpcontest.cse.ogi.edu/ -- OCaml wins | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/ | SWIG now supports OCaml| Early releases of OCamlBDB and OCamlGettext are available
matkor has quit [Remote closed the connection]
merriam has quit [leguin.freenode.net irc.freenode.net]
Rhaaw_ has quit [leguin.freenode.net irc.freenode.net]
asqui has quit [leguin.freenode.net irc.freenode.net]
async has quit [leguin.freenode.net irc.freenode.net]
Zadeh has quit [leguin.freenode.net irc.freenode.net]
xkb has quit [leguin.freenode.net irc.freenode.net]
mellum has quit [leguin.freenode.net irc.freenode.net]
smkl has quit [leguin.freenode.net irc.freenode.net]
xtrm has quit [leguin.freenode.net irc.freenode.net]
asqui has joined #ocaml
Zadeh has joined #ocaml
xkb has joined #ocaml
async has joined #ocaml
Rhaaw_ has joined #ocaml
merriam has joined #ocaml
mellum has joined #ocaml
xtrm has joined #ocaml
smkl has joined #ocaml
polin8 has quit [Read error: 54 (Connection reset by peer)]
polin8 has joined #ocaml
Smerdyakov has joined #ocaml
cm has quit ["[14:50:25] <@blutorgel> Kinoreeve: GEHE NUN TOT BIOTTE"]
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
foxster has quit [Read error: 54 (Connection reset by peer)]
foxster has joined #ocaml
mattam has joined #ocaml
__mattam__ has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
docelic is now known as docelic|away
det has joined #ocaml
det has quit ["ircII EPIC4-1.1.2 -- Are we there yet?"]
__mattam__ has quit [Read error: 110 (Connection timed out)]
lament has joined #ocaml
pattern has joined #ocaml
karryall has quit []
Rhaaw_ is now known as Rhaaw
TachYon26 has joined #ocaml
asquii has joined #ocaml
asqui has quit [Read error: 110 (Connection timed out)]
asquii is now known as asqui
asquii has joined #ocaml
asqui has quit [Read error: 110 (Connection timed out)]
asquii is now known as asqui
lament has quit [Read error: 60 (Operation timed out)]
mattam has joined #ocaml
Rhaaw has left #ocaml []
karryall has joined #ocaml
mellum has quit [Read error: 60 (Operation timed out)]
mellum has joined #ocaml
skylan has quit [Read error: 104 (Connection reset by peer)]
skylan has joined #ocaml
TachYon26 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
docelic|away is now known as docelic
systems has joined #ocaml
systems has left #ocaml []
TachYon26 has joined #ocaml
det has joined #ocaml
det has quit [Client Quit]
mattam has quit [Read error: 60 (Operation timed out)]
cm has joined #ocaml
mattam has joined #ocaml
<mellum> I want to have a data structure that I will only access with C functions. It should have 260 bits. WHat Ocaml type should I choose?
<Smerdyakov> Why not create it in C? =)
<mellum> Smerdyakov: because C memory management sucks.
<cm> umm
<Smerdyakov> I don't know much about OCaml FFI.
<Smerdyakov> In SML/NJ, you can declare C arrays of fixed sizes.
<mellum> Ah, I think I found something in the manual
phubuh has quit [Remote closed the connection]
foxster has quit [Read error: 54 (Connection reset by peer)]
TachYon26 has quit [Remote closed the connection]
Zadeh has quit [Read error: 113 (No route to host)]
Zadeh has joined #ocaml
karryall has quit ["tcho"]
TachYon has joined #ocaml
TachYon has quit ["Client Exiting"]
TachYon has joined #ocaml
TachYon has quit [Client Quit]
TachYon has joined #ocaml
TachYon has quit ["Client Exiting"]
phubuh has joined #ocaml
<phubuh> hello
foxster has joined #ocaml
__mattam__ has joined #ocaml
mattam has quit [Read error: 54 (Connection reset by peer)]
TachYon has joined #ocaml
mrvn_ has joined #ocaml
mrvn has quit [Read error: 60 (Operation timed out)]
<pattern> i've just started teaching myself o'caml from the "introduction to the objective caml programming language" tutorial by jason hickey
<pattern> in chapter 3, in the "Higher order functions" section i come across this example for a derivative:
<steele_> any question about that code?
steele_ is now known as steele
<pattern> yeah... is it deliberately obscure?
<pattern> or is this just a bad tutorial?
<pattern> is there a clearer way to write that in ocaml?
<pattern> or is that as clear as it gets?
<pattern> because it's not clear... and there are no comments
<steele> =) IMHO the only important thing is the deriv function and that is pretty clear to me
<pattern> and the 'f' and 'x' variables don't seem to have been chosen for clarity
<pattern> variable names, i mean
<pattern> i guess it's just me, then
<steele> you get used to it
lament has joined #ocaml
<pattern> i have another question, then
<pattern> he follows this example up with the note: "Remember, the arrow associates to the right, so another way to write the type is (float -> float) -> (float -> float). That is, the derivative is a function that takes a function as an argument, and returns a function.
<pattern> he's referring to this line: val deriv : (float -> float) -> float -> float = <fun>
<pattern> now, what in that says that it's a function?
<pattern> is it the parenthesis?
<pattern> i mean, what it's a function that takes a function as an argument and returns a function
<steele> the first parenthesis is needed
TachYon has quit ["Client Exiting"]
<phubuh> the arrow operator makes it a function definition
<steele> eg it takes a function
<pattern> i see
<steele> the second is implicit because of right associativity
<pattern> it's the arrow operator that says it's a function... and the fact that it takes a function as an argument is inferred from what?
<phubuh> (t1 -> t2) is a function
<phubuh> or rather, is the type of a function
<pattern> yes, i see that the right associativity makes you put parenthesis around the float -> float
<pattern> oh, ok
<pattern> i was somehow missing the -> inside the parenthsis :)
<pattern> selective blindness :)
<pattern> now it makes utterly clear sense
<pattern> clearer than clear... thank you!
<pattern> i guess those are the kinds of things that need to be spelled out and repeated for an utter novice: "remember the arrows mean 'function'... see, there are three of them? the first means the argument is a function, and the second means the whole statement is a function, and the third means the result is a function"
<pattern> :)
<pattern> i'm still havning a problem wrapping my mind around the deep recursion, though
<pattern> i'm too used to plain iteration
<pattern> i can understand how recursion works if i sit down and work out what happens in the function, step by step, for certain given values... but how i would ever think of writing such a function is beyond me, at this point
<pattern> do any of you know of a text that explores the why's and wherefores of recursion in a clear manner?
<mellum> "Structure and Interpretation of Computer Programs" by Abelson, Sussman and Sussman
<pattern> cool, thank you, mellum
<phubuh> it's available for free, search for sicp on google
<Zadeh> There's a free online version if you don't mind reading on the computer
<steele> there is something about recursive vs iterative in the ocaml book:
<pattern> free is good... :) on amazon they sell if for $70 !!
<lament> note that when reading SICP you will also learn Scheme as a side-effect
<pattern> i've heard good things about scheme
<lament> For a reason.
<lament> SICP is not a scheme book, but it uses scheme for the examples
<cm> SICP gonna ship tomorrow :)
<cm> i read parts of the online version, but i prefer the book version for reading
<lament> heh
<cm> plus it looks cool in the shelf :P
<pattern> me too.. but i can't splurge $70 on yet another computer book
<lament> SICP is one of the few books i'd like to have in dead-tree
<pattern> maybe i can get it used, though... i'll put it on my half.com wish list for $10 :)
<pattern> hey, a 1985 edition is available on half.com for $8.95
<pattern> great :)
<cm> :)
<pattern> is there a big difference between the '85 and '96 editions?
<pattern> heh... i just found the "Skeptical Software Engineering Bibliography"
mattam has joined #ocaml
__mattam__ has quit [Read error: 54 (Connection reset by peer)]
<pattern> "Software engineering (SE) has probably largest concentration of snake oil salesmen. Even object-oriented design cannot compete with SE ;-). Such "dynamic" figures as Yourdon, Ben Shneiderman and partially Gerard Weinberg (at least the latter authored one interesting book and a couple of decent tutorials on PL/1), could probably compete with any woman fashion designer :-). These guys are really can change their own position twice a week, as t
<pattern> sense that something new becomes fashionable."
mattam has quit [Read error: 104 (Connection reset by peer)]
Kinners has joined #ocaml