mfurr changed the topic of #ocaml to: OCaml 3.08.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/
shawn_ has quit [Connection timed out]
Yorick has quit ["Leaving"]
smkl_ has joined #ocaml
__DL__ has quit [Remote closed the connection]
* tsume drops a pin
vezenchio has quit ["Computer Science is no more about computers than astronomy is about telescopes"]
vezenchio has joined #ocaml
ooo has joined #ocaml
<ooo> hi.
kuribas has quit [""good night""]
ooo is now known as juhammed
mattam has quit [Read error: 110 (Connection timed out)]
zzorn has quit ["They are coming to take me away, ha ha"]
* Nutssh dodges the grenade.
smkl_ has quit [Read error: 110 (Connection timed out)]
mlh has joined #ocaml
smkl_ has joined #ocaml
vezenchio has quit ["Computer Science is no more about computers than astronomy is about telescopes"]
Amorphous has quit [Client Quit]
Amorphous has joined #ocaml
juhammed has quit [Read error: 60 (Operation timed out)]
<mflux> tsume, you've propably run irssi as root at some point..
smkl_ has quit [Read error: 60 (Operation timed out)]
tintin has joined #ocaml
smkl_ has joined #ocaml
gim_ has joined #ocaml
gim has quit [Read error: 110 (Connection timed out)]
smkl_ has quit [Read error: 60 (Operation timed out)]
grirgz_ has joined #ocaml
grirgz has quit [Read error: 110 (Connection timed out)]
__DL__ has joined #ocaml
mlh has quit [Client Quit]
mlh has joined #ocaml
smkl_ has joined #ocaml
Svrog has joined #ocaml
Svrog has quit []
smimou has joined #ocaml
Submarine has joined #ocaml
_fab has joined #ocaml
araujo has joined #ocaml
<araujo> Hello.
capashen has joined #ocaml
<capashen> hi
smkl_ has quit [Read error: 110 (Connection timed out)]
<araujo> Hi
<capashen> can someone help me please ? I'm a noob in caml language and I've a probleme whith a little program. (I'm french)
<capashen> I just want to make a function a calculate 10^p
<capashen> -a +which
<capashen> everybody's sleeping ?
<Submarine> you haven't stated your question
<capashen> I want to make function q -> 10^q
<capashen> let nbr = 10. ;;
<capashen> let puissance = function q -> for i = q downto 1 do
<capashen> nbr == nbr *. 10. ;
<capashen> print_float nbr ;
<capashen> done ;
<capashen> that's what i did.
<capashen> i doesn't work
<Submarine> this is very akward code
<capashen> akward ?
<Submarine> let rec iterate f n x = if n > 0 then iterate f (n-1) (f x) else x
<Submarine> let puissance a n = iterate (fun x -> a *. x) n 1.
<Submarine> something like that
<capashen> thx i'm testing
budjet has joined #ocaml
mattam has joined #ocaml
gim_ is now known as gim
chugga has joined #ocaml
<chugga> is there a good ocaml-mode for emacs?
<mattam> tuareg-mode
<chugga> can i see screenshots, please?
<tintin> ocaml-mode.el
<chugga> i need screenshots
<chugga> im not cypher :-/
<chugga> mattam, i did google, obviously not the same way as you
<chugga> does it also highlight functions?
<mattam> try google images if you want screenshots :)
<chugga> (from that screenshot it seems it doesnt, sadly :(
<mattam> it does
<chugga> no look
<chugga> string_of_int is the same colour as its argument
<chugga> and the same colour as "variables"
<chugga> or whtever they are called in this language
<chugga> and "Values"
<mattam> they're 'indistinguishable'
<chugga> oh please!
<chugga> i can distinguish them
<mattam> so no it doesn't highlight function calls from variable references
<chugga> *sigh* what about ocaml-mode.el does it?
<mattam> oh yes ? the you parse the context
<chugga> mattam, indeed i do
<chugga> mattam, but isnt it a sad indictment on a language/community when it cant even arrange a decent emacs mode? Not to be trolling. but serious lamentment
<mattam> it's a decent emacs mode
<chugga> its synax highlighting sucks
<chugga> i dont care about the other stuff. i can copy paste, indent, thats trivial
<Submarine> wharf
budjet has quit [Remote closed the connection]
<mattam> chugga: in fact there's a simple explanation why it doesn't distinguish, it would involve finding the types of variables, which means coding type reconstruction in lisp. I wonder in which language there is a distinction
araujo has left #ocaml []
<chugga> mattam, yeah, thats what haskell says too. type system blah blah. But the c-mode works beautifully and it isnt written in C - i dont understand that argument
<mrvn_> I'm very pleased with tuareg mode.
<chugga> mrvn_, have you used c-mode, is it as good as that?
zzorn has joined #ocaml
<mrvn_> tuareg is way better
<mrvn_> c-mode sucks.
<chugga> for what reasons? wht about syntax highlighting?
<mrvn_> because C-mode can't indent ocaml code.
<chugga> Oh......
<mrvn_> or highlight ocaml keywords
<chugga> ok, i'll give you indenting. i bet tuareg does a fine job of indenting
<chugga> btw, i didnt mean c-mode for ocaml(?!) - i meant c mode for c
<mrvn_> sure, c-mode for c, c++-mode for c++, latex mode for latex, tuareg for ocaml.
<chugga> ok
<chugga> latex mode, cant remember if that was any good, but anyway .. so apart from highlighitng language keywords
<chugga> does t mode highlight anything else?
<mattam> constants, module paths
<chugga> hmm.
<mrvn_> == <= >= <> != && || and or
smkl_ has joined #ocaml
<chugga> isnt a function a constant?
<mrvn_> a function is a binding like any variable
<chugga> sorry, i dont know what a binding is
<mattam> a constant is a 0-ary function, but i was talking about strings, chars and numbers
<chugga> okay
<mrvn_> true/false
<chugga> thats an improvement on the haskell mode then
<mrvn_> mattam: you mean literals
<mellum> mattam: You probably meant literals.
<mattam> sure, thanks
<chugga> will it highlight any functions at all
<chugga> like say head, cons etc .. what about stuff i define myself ?
<chugga> the application of such functions?
<mattam> nope
<chugga> :(
<chugga> im out of good languages too
<chugga> dont make me go back to C, please :=/
<mattam> that's really an unimportant thing
<chugga> mattam, you can say that, but its really important to me that my code look pretty. i dunno why.
<mellum> distinguishing between variables bound to functions and variables bound to other stuff would also not fit the spirit of Ocaml.
<mellum> And highlighting *every* variable would not be terribly useful.
<chugga> nah, i suppose it wouldnt
<chugga> but at least functions - and their arguments
<mellum> Well, there is basically nothing in Ocaml but keywords, functions, and arguments.
<mellum> So this would also not be terribly useful.
<chugga> mellum, so the mode only seems to distinguish between keywords and everything else. not a very useful distinction either
<mellum> chugga: I think it's useful.
<chugga> mellum, sure its better than nothing. but its not that great
<chugga> oh and literal,s as pointed out earlier
<mellum> After all, you cannot color variables in C either.
<mellum> At least not without ridiculous effort, since C is not context free.
<chugga> nah c mode doe sit
<mrvn_> tuareg does collor variable and function assignments differently.
<mellum> chugga: "A * B;" is A a type or a variable? You cannot tell.
<mellum> You can have heuristics, but if you cannot rely on it, what's the point?
<chugga> mellum, thats ok, im not looking for something 100% - just to make it easier to read most times
<chugga> but you are right, 100% would be good
<chugga> mellum, good example though
<mellum> *shrug* I guess your notion of a useful coloring are just so unusual that nobody implemented them.
<chugga> im not sure how c-mode deals with that
<chugga> mellum, no i dont think so
chugga has quit ["Leaving"]
zzorn has quit [Read error: 104 (Connection reset by peer)]
zzorn has joined #ocaml
mlh has quit ["ni! (heh)"]
Submarine has quit ["Leaving"]
mattam has quit [Read error: 104 (Connection reset by peer)]
shawn_ has joined #ocaml
_shawn has quit [Read error: 110 (Connection timed out)]
tintin has quit ["ERC Version 5.0 $Revision: 1.743 $ (IRC client for Emacs)"]
juhammed has joined #ocaml
vivek has joined #ocaml
vivek is now known as tintin
tintin is now known as tintin_
tintin_ is now known as tintin
<tsume> mellum: nope :)
<tsume> opos
<tsume> mflux: nope :)
grirgz_ is now known as grirgz
mattam has joined #ocaml
capashen has quit [Read error: 110 (Connection timed out)]
capashen has joined #ocaml
capashen has left #ocaml []
Submarine has joined #ocaml
smkl_ has quit [Read error: 110 (Connection timed out)]
smkl_ has joined #ocaml
vezenchio has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
mrvn has joined #ocaml
smkl_ has quit [Read error: 110 (Connection timed out)]
mrvn_ has quit [Read error: 110 (Connection timed out)]
Banana has quit [Read error: 104 (Connection reset by peer)]
Banana has joined #ocaml
smkl_ has joined #ocaml
Submarine has quit ["Leaving"]
smkl_ has quit [Read error: 110 (Connection timed out)]
humasect has joined #ocaml
jave has left #ocaml []
vezenchio has quit ["Computer Science is no more about computers than astronomy is about telescopes"]
vezenchio has joined #ocaml
anyone has joined #ocaml
smkl_ has joined #ocaml
mattam has quit ["zZz"]
smkl_ has quit [Read error: 60 (Operation timed out)]
Skal has joined #ocaml
__DL__ has quit ["Bye Bye"]
Skal has quit ["Client exiting"]
JohnDoe has joined #ocaml
smimou has quit ["?"]
smkl_ has joined #ocaml