sidewinder has quit [Read error: 110 (Connection timed out)]
bzzbzz has joined #ocaml
JKnecht has quit ["Lost terminal"]
khaladan has quit [Read error: 104 (Connection reset by peer)]
yondalf has joined #ocaml
<yondalf>
is ocaml end-recursive safe if two functions call each other at the end? e.g. let rec even x = match x with 1000000 -> print_endline "End";() | i -> odd (i+1) and odd x = even (x+1);; even 0;;
<yondalf>
i've tried even (-1000000000);; in the ocaml interpreter and there was no stack overflow
mikeX has quit ["zzzZzz"]
dark_light has joined #ocaml
yondalf has quit ["Leaving"]
jcreigh has joined #ocaml
CosmicRay has joined #ocaml
jcreigh has quit [Read error: 110 (Connection timed out)]
khaladan has joined #ocaml
CosmicRay has quit ["Client exiting"]
ski has quit [Read error: 110 (Connection timed out)]
ski has joined #ocaml
fluxx has joined #ocaml
ppsmimou has quit [kornbluth.freenode.net irc.freenode.net]
Hadaka has quit [kornbluth.freenode.net irc.freenode.net]
flux__ has quit [Remote closed the connection]
ppsmimou has joined #ocaml
Hadaka has joined #ocaml
pauldia has joined #ocaml
Skal has joined #ocaml
pauldia has quit [Client Quit]
flux__ has joined #ocaml
fluxx has quit [Read error: 104 (Connection reset by peer)]
dark_light has quit ["Fui embora"]
love-pingoo has joined #ocaml
multani has joined #ocaml
love-pingoo has quit ["Connection reset by by pear"]
pango is now known as pangoafk
pangoafk is now known as pango
finelemo1 has joined #ocaml
hikozaemon has quit ["Leaving..."]
m3ga has joined #ocaml
finelemon has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
Schmurtz has joined #ocaml
mikeX has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
bzzbzz_ has joined #ocaml
bzzbzz has quit [Read error: 110 (Connection timed out)]
girodt has joined #ocaml
<girodt>
bonjour bonjour ...
<girodt>
oops
<girodt>
hi ^_^
<love-pingoo>
salut
<girodt>
ok
<girodt>
j'aurais besoin d'un petit coup de main sur un problème de débutant en caml. c'est pas grand chose, mais ca fait tellement longtemps que j'en ai pas fait que je m'arrache les cheveux
<zmdkrbou>
rhooo
<love-pingoo>
enfin, parle en anglais pour la suite, ce serait qd meme mieux, d'autant que je dois me casser
<girodt>
okey
<love-pingoo>
++
love-pingoo has quit ["Leaving"]
<girodt>
anyone can help me for a really novice question ?
<ketty>
sure :)
<girodt>
okey then. here i come
<girodt>
All I want to do is to create a list filled with a special type i've done. to do so, I'd like to use a for loop, as doing it recursively is going to be qui a pain.
<zmdkrbou>
aaargl
<ketty>
for loops are a pain :)
<zmdkrbou>
recursivity is *not* a pain :)
<girodt>
don't get me wrong, I'm not saying that ! ;) I'm saying for this particular time, it may be quite a pain.
<zmdkrbou>
what do you build your list from ?
<girodt>
my type contains two coordinates xpos an ypos
<girodt>
and my list is supposed to be a grid of this
* dylan
can invision a function make : int -> (int -> 'a) -> 'a list
<girodt>
but i think there is something i forgot about how to use "let"
<dylan>
so, I started using this calendaring program.
<dylan>
it's called wyrd.
<girodt>
i wanted to define an empty list at the beginning and then fill it progressively
<dylan>
and I was reading the docs, and it turns out to be written in ocaml!
<zmdkrbou>
girodt: so what's the problem ?
<ketty>
girodt: if your using loops you probably need to use references as well...
<girodt>
hmmmmm good point
<ketty>
let grid = ref []
<zmdkrbou>
*pouah*
<girodt>
:)
<girodt>
it's stupid but talking about it gave me a few ideas. thanks. i'm gonna check this out now.
<ketty>
ok :)
<girodt>
damn, it would be a shame to be soooo lame on this language and working at the INRIA ...
<dylan>
used as let l = make 100 (fun i -> Point (i, i))
karijes has joined #ocaml
<mikeX>
dylan: so is it any good?
<dylan>
mikeX: yeah! it's an interface to the really cool 'remind' program
<mikeX>
let's check it out then
<dylan>
it has a really nice curses interface.
karijes has quit [Client Quit]
<dylan>
and remind is insanely powerful.
<mikeX>
my memory is quite weak, I hope this helps
<mikeX>
it's really annoying that there aren't any 'standard' ncurses bindings for ocaml (or are there)?
<dylan>
there arn't
<dylan>
but the person that wrote wyrd did a good job.
<dylan>
I wonder if we can convince him/her to extract and library-ize them.
ramkrsna has quit [Connection timed out]
ramkrsna has joined #ocaml
<mikeX>
doesn't look utf8 friendly though :(
<dylan>
hmm, no?
* dylan
still wants a way to make his manpages show up in latin1
<dylan>
mostly because of utf8 terminals not being fast enough for my insane demands, and only needing roman + accented characters. :)
<mikeX>
:O
<mikeX>
what terminals have you tried?
<ketty>
the latest gnome-terminal is accually pretty fast...
<dylan>
urxvt, uxterm, etc.
<dylan>
I figure in a few more years it won't matter.
<mikeX>
urxvt here too, indeed I was surprised at how fast gnome-terminal has turned out
<girodt>
hey. okay it works now. in fact recursive solution wasn't that painful. but now i'm wondering : is it possible to load a script into the interpreter and keep the prompt when it's done, so i can inspect data structures created ?
<mikeX>
but I don't like xft fonts for terminals, and I can't seem to get it to use fixed
<dylan>
girodt: #use "file.ml";;
<girodt>
great.
<dylan>
mikeX: what about terminus?
<mikeX>
greek support is not good :(
<dylan>
wow, you really have a use for utf8. :)
<mikeX>
:)
* ketty
can't live without utf either.. ^^
<ketty>
i am constantly mixing swedish japanese chinese and russian =)
<dylan>
ketty: are you swedish-japanese-chinese-russian??
<mikeX>
wow!
<ketty>
no, i am just swedish
<ketty>
+ insane :)
<mikeX>
hahahha
<dylan>
anime-watching swedish person? :)
<ketty>
indeed :)
<mikeX>
well you have to do more than just watch
<ketty>
yeah, i guess :)
<dylan>
I was trying for a nicer term than otaku
<ketty>
heh :)
<dylan>
swedish and russian makes a small amount of sense, as the Swedish influenced early russian history.
<ketty>
hmm.. yea.. i guess...
<mikeX>
i'd likely to learn russian one day
<dylan>
and the russians and japanese have had conflicts in the past.
* dylan
knows a little russian
<dylan>
very little
<ketty>
and china is kind of between russia and japan :)
<dylan>
but enough to know Smerdyakov means "he who reeks"
<mikeX>
i'd like to learn enough to read russian literature
<ketty>
so it all makes sence :)
<mikeX>
hahahaha
<dylan>
of course, I'm a philistine for not having read the Brothers Karamazov, but beowulf is more accessible and easier to understand. ;)
<mikeX>
hehe
<dylan>
Or the Illiad, even.
<mikeX>
:)
girodt has quit ["leaving"]
Skal has quit [Remote closed the connection]
<ski>
bah ..
<ski>
.. methods doesn't really have arguments at all
Skal has joined #ocaml
<dylan>
they don't?
<ski>
methods can return a functional value, and that function takes an argument
<ski>
simplifying, a method is just a delayed field
<dylan>
Cool
<ski>
when the method is invoked, the field expression is evaluated, and its value returned back