<PaulButler>
unfortunatly the remote machine doesn't have ocaml and i don't have root.. how difficult would it be to install ocaml and compile my app without root?
<PaulButler>
you know, i underestimated the speed difference between bytecode and native code.. i might as well just run this locally
xavierbot has quit [Read error: 110 (Connection timed out)]
Demitar has joined #ocaml
pantsd has joined #ocaml
PaulButler has quit ["Leaving"]
bzzbzz has joined #ocaml
mordaunt has joined #ocaml
[azoic] has joined #ocaml
pantsd has quit ["Leaving."]
[azoic] has quit ["Leaving."]
Cygaal has joined #ocaml
Cygaal has quit [Read error: 110 (Connection timed out)]
olegfink has joined #ocaml
Mr_Awesome has joined #ocaml
ita has joined #ocaml
ygrek has joined #ocaml
pantsd has joined #ocaml
ita has quit [Read error: 110 (Connection timed out)]
darinm has joined #ocaml
darinm has left #ocaml []
delamarche has joined #ocaml
delamon has quit [Read error: 110 (Connection timed out)]
delamarche has quit []
pants1 has joined #ocaml
pantsd has quit [Read error: 110 (Connection timed out)]
Abo-Marwan47 has quit [Remote closed the connection]
screwt846 has quit [Remote closed the connection]
Cygaal has joined #ocaml
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
bluestorm has joined #ocaml
delamon has joined #ocaml
b00t has joined #ocaml
liber has joined #ocaml
<liber>
Can anybody point me to a good tutorial? I am having some problems gripping the "Int of Int" stuff in the type system :)
<liber>
bluestorm: it is when it comes to "variants (qualified unions and enums)" i completely loose track...
<bluestorm>
hum
<bluestorm>
do you know how to use pattern-matching ?
<bluestorm>
(variant construction and pattern matching are kind of symmetric)
<liber>
well. I used it when I trid to learn haskell... :)
<liber>
bluestorm: they havnt explained pattern-matching in that tutorial yet
<liber>
will it become more cler when I come to that part?
<bluestorm>
hm
<bluestorm>
i think so
<bluestorm>
do you have a previous programming experience ?
<liber>
yup
<liber>
but mostly ruby and python.
<bluestorm>
hm
<liber>
no compiled language...
<liber>
except the school course "Programming A"
<liber>
really simple
screwt846 has joined #ocaml
<bluestorm>
you can think of the variant as an enum type, enumerating different possibilities
<bluestorm>
for exampl
<bluestorm>
e
<bluestorm>
type color = Red | Green | Blue | White | Black
<liber>
So you can pattern-match any of the types in the variant?
<bluestorm>
of the "types" ?
<bluestorm>
the uppercase thing between | are "constructors"
<bluestorm>
that is, values of the new type
<liber>
okay
<bluestorm>
(Red) is a value of type color
<liber>
In two rows you explained this better than any other tutorial. Thx :)
<bluestorm>
sometimes you want to encode some information with a constructor
<bluestorm>
then you say "of type_of_the_information"
<bluestorm>
eg. type color = Red | Green | Blue | White | Black | RGB of (int * int * int)
<liber>
ahaaa
<bluestorm>
(RGB (0, 0, 0)) will be a color too
<bluestorm>
pattern matching is the way to "read" a color value, by saying "if it's Red, then i'll do that, and if it's RGB and (r, g, b) is the encoded value, then i'll do that"
<bluestorm>
but you'll see that later
<liber>
Okay. Thank you. I thought I was going to give it all up and learn C++ for real :) Its hard to read tutorials in your third language :D
<bluestorm>
hm
<bluestorm>
when you'll have learned OCaml and be fond of that language, perhaps you'll spend some time translating ocaml-tutorial.org to your native language :-'
<liber>
I might as well :)
<liber>
I have done some trnslating of other tutorials from german. It is really good practise :)
hagman has joined #ocaml
hagman has quit [Client Quit]
delamon has quit [Read error: 113 (No route to host)]
<liber>
bluestorm: Thanks for the help! Im really gripping this now...
liber has left #ocaml []
b00t has quit [Remote closed the connection]
bluestorm has quit ["Konversation terminated!"]
bluestorm has joined #ocaml
pierpa has joined #ocaml
Smerdyakov has quit ["Leaving"]
Smerdyakov has joined #ocaml
Cygaal has quit [Remote closed the connection]
bluestorm has quit ["Konversation terminated!"]
pango has quit [Remote closed the connection]
skal has joined #ocaml
pango has joined #ocaml
buluca has joined #ocaml
PaulButler has joined #ocaml
bluestorm has joined #ocaml
threeve has joined #ocaml
ygrek has quit [Remote closed the connection]
Mr_Awesome has joined #ocaml
skal has quit [Remote closed the connection]
schme has quit [Connection timed out]
PaulButler has quit ["Leaving"]
ygrek has joined #ocaml
skal has joined #ocaml
ygrek has quit ["Leaving"]
pants1 has quit [Read error: 110 (Connection timed out)]
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
pants1 has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
skal has quit [Remote closed the connection]
ita has joined #ocaml
schme has joined #ocaml
schme` has joined #ocaml
skal has joined #ocaml
skal has left #ocaml []
rwmjones has quit [Connection timed out]
ita has quit ["Hasta luego!"]
buluca has quit [Read error: 113 (No route to host)]
schme` has quit [Read error: 104 (Connection reset by peer)]
pierpa has quit [Read error: 113 (No route to host)]