systems has joined #ocaml
maihem has quit ["Client exiting"]
mimosa has quit [Remote closed the connection]
systems has quit ["Client Exiting"]
olczyk has joined #ocaml
<
olczyk>
I'm having trouble with tuareg-mode in emacs.
<
olczyk>
For some reason just opening a file causes it to hang.
<
olczyk>
I've pasted the code here:
<
olczyk>
can someone try to open it in their emacs and see if it hangs?
<
mellum>
olczyk: works for me[tm]
<
olczyk>
mellum: It doesn't hang after a couple of seconds.
lus|wazze has quit ["Copyright is a temporary loan from the public domain, not property"]
Kinners has joined #ocaml
<
mellum>
olczyk: yes?
<
olczyk>
Does it hang after a few minutes? What version of tuareg are you using? What version of emacs?
<
mellum>
doesn't seem to hang. Tuareg Version 1.40.5, xemacs 21.5 (beta11)
<
mellum>
sorry, need to go now... see you
<
olczyk>
Thanks for trying.
g1m has quit ["++"]
The-Fixer has quit [Read error: 54 (Connection reset by peer)]
The-Fixer has joined #ocaml
buggs is now known as buggs|afk
brwill_zzz is now known as brwill
Kinners has left #ocaml []
Smerdyakov has quit [calvino.freenode.net irc.freenode.net]
Maddas has quit [calvino.freenode.net irc.freenode.net]
Riastradh has quit [calvino.freenode.net irc.freenode.net]
brwill has quit [calvino.freenode.net irc.freenode.net]
Smerdyakov has joined #ocaml
Maddas has joined #ocaml
brwill has joined #ocaml
Riastradh has joined #ocaml
liyang has quit [calvino.freenode.net irc.freenode.net]
Maddas has quit [calvino.freenode.net irc.freenode.net]
Smerdyakov has quit [calvino.freenode.net irc.freenode.net]
Riastradh has quit [calvino.freenode.net irc.freenode.net]
brwill has quit [calvino.freenode.net irc.freenode.net]
smkl has quit [calvino.freenode.net irc.freenode.net]
The-Fixer has quit [calvino.freenode.net irc.freenode.net]
olczyk has quit [calvino.freenode.net irc.freenode.net]
mattam_ has quit [calvino.freenode.net irc.freenode.net]
cm has quit [calvino.freenode.net irc.freenode.net]
mw has quit [calvino.freenode.net irc.freenode.net]
wax has quit [calvino.freenode.net irc.freenode.net]
lam_ has quit [calvino.freenode.net irc.freenode.net]
themus has quit [calvino.freenode.net irc.freenode.net]
buggs|afk has quit [calvino.freenode.net irc.freenode.net]
rox has quit [calvino.freenode.net irc.freenode.net]
drlion has quit [calvino.freenode.net irc.freenode.net]
teratorn has quit [calvino.freenode.net irc.freenode.net]
det has quit [calvino.freenode.net irc.freenode.net]
Riastradh has joined #ocaml
brwill has joined #ocaml
Maddas has joined #ocaml
Smerdyakov has joined #ocaml
The-Fixer has joined #ocaml
olczyk has joined #ocaml
mattam_ has joined #ocaml
buggs|afk has joined #ocaml
liyang has joined #ocaml
rox has joined #ocaml
teratorn has joined #ocaml
drlion has joined #ocaml
cm has joined #ocaml
lam_ has joined #ocaml
det has joined #ocaml
wax has joined #ocaml
smkl has joined #ocaml
mw has joined #ocaml
themus has joined #ocaml
brwill is now known as brwill_zzz
themus has quit [Read error: 60 (Operation timed out)]
themus has joined #ocaml
<
olczyk>
Any Corba people out there?
mimosa has joined #ocaml
Kinners has joined #ocaml
mattam_ is now known as mattam
Demitar has joined #ocaml
srv has joined #ocaml
__buggs has joined #ocaml
srv has quit ["Lost terminal"]
buggs|afk has quit [Read error: 110 (Connection timed out)]
Kinners has left #ocaml []
The-Fixer has quit ["Goodbye"]
__DL__ has joined #ocaml
The-Fixer has joined #ocaml
lus|wazze has joined #ocaml
beleg has joined #ocaml
__buggs has quit [Read error: 104 (Connection reset by peer)]
__buggs has joined #ocaml
srv has joined #ocaml
lus|wazze has quit ["Copyright is a temporary loan from the public domain, not property"]
__buggs is now known as buggs
owll has joined #ocaml
owll has left #ocaml []
__DL__ has quit ["Bye Bye"]
beleg has left #ocaml []
karryall has joined #ocaml
brwill_zzz is now known as brwill
CybeRDukE has joined #ocaml
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
g1m has joined #ocaml
karryall has quit [Remote closed the connection]
srv has quit ["leaving"]
<
CybeRDukE>
can anyone tell me where to find information about the history of obaml?
brwill is now known as brwill_out
brwill_out is now known as brwill
Maddas has quit [calvino.freenode.net irc.freenode.net]
Smerdyakov has quit [calvino.freenode.net irc.freenode.net]
Riastradh has quit [calvino.freenode.net irc.freenode.net]
brwill has quit [calvino.freenode.net irc.freenode.net]
CybeRDukE has quit [calvino.freenode.net irc.freenode.net]
liyang has quit [calvino.freenode.net irc.freenode.net]
The-Fixer has quit [calvino.freenode.net irc.freenode.net]
Demitar has quit [calvino.freenode.net irc.freenode.net]
mimosa has quit [calvino.freenode.net irc.freenode.net]
drlion has quit [calvino.freenode.net irc.freenode.net]
det has quit [calvino.freenode.net irc.freenode.net]
teratorn has quit [calvino.freenode.net irc.freenode.net]
buggs has quit [calvino.freenode.net irc.freenode.net]
smkl has quit [calvino.freenode.net irc.freenode.net]
themus has quit [calvino.freenode.net irc.freenode.net]
mw has quit [calvino.freenode.net irc.freenode.net]
wax has quit [calvino.freenode.net irc.freenode.net]
cm has quit [calvino.freenode.net irc.freenode.net]
mattam has quit [calvino.freenode.net irc.freenode.net]
lam_ has quit [calvino.freenode.net irc.freenode.net]
rox has quit [calvino.freenode.net irc.freenode.net]
Hadaka has quit [calvino.freenode.net irc.freenode.net]
Hipo has quit [calvino.freenode.net irc.freenode.net]
g1m has quit [calvino.freenode.net irc.freenode.net]
wrunt has quit [calvino.freenode.net irc.freenode.net]
CybeRDukE has joined #ocaml
buggs has joined #ocaml
The-Fixer has joined #ocaml
Demitar has joined #ocaml
mimosa has joined #ocaml
themus has joined #ocaml
Riastradh has joined #ocaml
brwill has joined #ocaml
Maddas has joined #ocaml
Smerdyakov has joined #ocaml
mattam has joined #ocaml
liyang has joined #ocaml
rox has joined #ocaml
teratorn has joined #ocaml
drlion has joined #ocaml
cm has joined #ocaml
lam_ has joined #ocaml
det has joined #ocaml
wax has joined #ocaml
smkl has joined #ocaml
mw has joined #ocaml
Hipo has joined #ocaml
Hadaka has joined #ocaml
g1m has joined #ocaml
wrunt has joined #ocaml
<
CybeRDukE>
another question: can zou tell me how to access an element of a tupel by position?
brwill is now known as brwill_out
maihem has joined #ocaml
tomasso_ has joined #ocaml
<
tomasso_>
is ocaml objective and functional at the same time????
<
tomasso_>
it has type inferring pattern matching and all that stuff??
<
tomasso_>
hoooooooooooooooooo
<
tomasso_>
and how do you think???
<
tomasso_>
in objects and functional at the same time??
<
CybeRDukE>
i think object oriented when stucturing the source-code and functional when implementing algorithms
<
tomasso_>
is it interpreted only or it can be compiled
<
mellum>
I've never actually used the OO part... ignoring it works quite well
<
CybeRDukE>
can be interpreted or compliled as byte-code or native code
<
tomasso_>
its great..
<
tomasso_>
and how it runs? fast?
<
tomasso_>
compared to a c program?
<
CybeRDukE>
could s.o. please help me with an infinite list? i know let l = 1::l is possible, but can i also create e.g. natural numbers that way?
<
mellum>
It's one of the fastest programming languages around. Speed of course depends on the application.
<
CybeRDukE>
and on the programmer
*g*
<
tomasso_>
yeah haha
<
mellum>
CybeRDukE: actually, I don't think you can create infinite lists with Ocaml
<
mellum>
CybeRDukE: at least not with the builtin lists
<
CybeRDukE>
but the above example works. so how would you call it?
<
mellum>
CybeRDukE: what do you mean by "works"?
<
mimosa>
CybeRDukE: your example is due to a hack
<
mimosa>
but in general you can't make infinite lists
<
Maddas>
CybeRDukE: You can use streams for something like that.
<
mimosa>
because the evaluation is not lazy
<
mellum>
mimosa: I think he means "circular". But you cannot do that, either.
<
mimosa>
yes I think streams are what you are looking for (they are close in some ways to haskell's lists)
<
tomasso_>
vect: OK
<
mimosa>
mellum: # let rec l = 1 :: l;;
<
mimosa>
val l : int list =
<
mimosa>
[1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1;
<
mimosa>
but it's immoral
<
mellum>
mimosa: Okay, but you can create them pretty much only that way, there's no set-cdr
<
mimosa>
yes, of course
<
mimosa>
that's why I said this was "immoral"
<
Maddas>
type 'a enum = { mutable i : 'a; f :'a -> 'a } ;; let next e = let x = e.i in e.i <- (e.f e.i) ; x ;; let nat = { i=0; f=fun x -> x + 1 };;
<
CybeRDukE>
yeah, know that example
<
Maddas>
Not really what you want, probably :)
<
mellum>
Maddas: now write the predecessor-function :)
* Maddas
dances while pretending not to hear mellum
<
CybeRDukE>
i need all that stuff for a report about ocaml and when i reference to experienced programmer, my prof will believe in my words
*g*
<
Maddas>
I wish I had O'Caml installed on this machine.
<
Maddas>
recursive data structures and streams are fun fun fun!
* Maddas
goes back to writing boring stuff in C
<
tomasso_>
how can it be so fast being functional...
<
mellum>
tomasso_: why do you think functional languages should not be fast?
<
CybeRDukE>
BLASPHEMY
*g*
<
Maddas>
tomasso_: That only C and C++ can be fast is a very wide misconception
<
tomasso_>
in my fp course they use haskell and they complain all the time saying its slow but excellent language hahaha
<
Maddas>
Haskell sure is a fine language
<
CybeRDukE>
haskell was never designed to be fast
<
Maddas>
tomasso_: Not all languages are fast and for many things, speed doesn't matter
<
CybeRDukE>
it depends on the technique... or did i mix sth up
*g*
<
Maddas>
I think speed is really overrated in general.
<
Maddas>
(As in micro-optimization)
<
Maddas>
But then, what do I know :)
<
Maddas>
Anyway, I'm off, later.
systems has joined #ocaml
chris3 has joined #ocaml
chris3 has left #ocaml []
lus|wazze has joined #ocaml
mattam_ has joined #ocaml
lus|wazze has quit ["Copyright is a temporary loan from the public domain, not property"]
mattam has quit [Read error: 110 (Connection timed out)]
lus|wazze has joined #ocaml
<
phubuh>
tomasso_: Haskell is very different from OCaml.
<
phubuh>
For one, it's lazily evaluated.
<
phubuh>
And I/O is done using monadic composition, which when unoptimized is rather slow.
<
phubuh>
OCaml is impure, so you just use print_string whereever you want.
<
phubuh>
And indeed, OCaml is -very- fast.
<
phubuh>
Faster than C++ in many cases.
systems has quit ["Client Exiting"]
lus|wazze has quit ["Copyright is a temporary loan from the public domain, not property"]
CybeRDukE has quit ["Life's unfair - but root password helps!"]
mattam_ is now known as mattam
lus|wazze has joined #ocaml
jonka has joined #ocaml
rox has quit [Read error: 104 (Connection reset by peer)]
lus|wazze has quit ["Copyright is a temporary loan from the public domain, not property"]
lus|wazze has joined #ocaml
<
det>
tomasso_: look at clean for an example of a fast lazily evaluated purely functional language
maihem has quit ["Client exiting"]
clam has joined #ocaml
mimosa has quit ["I like core dumps"]
clam has quit ["no reason"]
g1m has quit ["dodo"]