flux__ 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/
rillig has quit ["exit(EXIT_SUCCESS)"]
hikozaemon has joined #ocaml
dark_light has joined #ocaml
dark_light has quit [SendQ exceeded]
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
<ski> # let foo = object method f x = x + x end;;
<ski> val foo : < f : int -> int > = <obj>
<ski> # foo # f;;
<ski> - : int -> int = <fun>
smimou has joined #ocaml
khaladan has quit [" HydraIRC -> http://www.hydrairc.com <-"]
_shawn has joined #ocaml
Snark has joined #ocaml
shawn_ has quit [Connection timed out]
love-pingoo has joined #ocaml
multani has quit ["Leaving"]
_JusSx_ has joined #ocaml
khaladan has joined #ocaml
pango is now known as pangoafk
pangoafk is now known as pango
mikeX has quit ["leaving"]
_JusSx_ has quit ["leaving"]
_jol_ has joined #ocaml
finelemon has joined #ocaml
slipstream has joined #ocaml
avlondon1 is now known as avlondono
slipstream-- has quit [Connection timed out]
finelemo1 has quit [Read error: 110 (Connection timed out)]
finelemon has quit [Read error: 110 (Connection timed out)]
finelemon has joined #ocaml
Snark has quit ["Leaving"]
mikeX has joined #ocaml
rillig has joined #ocaml
_jol_ has quit ["leaving"]
shawn has quit ["This computer has gone to sleep"]
mikeX has quit ["leaving"]
Skal has quit [Remote closed the connection]
mikeX has joined #ocaml
love-pingoo has quit ["Connection reset by by pear"]
dark_light has joined #ocaml
rillig has quit ["exit(EXIT_SUCCESS)"]
smimou has quit ["bli"]
jcreigh has joined #ocaml