sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
twobitsprite has quit [Read error: 110 (Connection timed out)]
danly has quit ["Ex-Chat"]
danly has joined #ocaml
pango has joined #ocaml
pango_ has quit [Remote closed the connection]
MisterC has joined #ocaml
rillig has quit ["exit(EXIT_SUCCESS)"]
Skal has quit [Connection timed out]
ChoJin has quit ["This computer has gone to sleep"]
malc_ has quit ["leaving"]
Mr_Awesome has joined #ocaml
danly has quit ["Ex-Chat"]
buluca has quit ["Leaving."]
beschmi has joined #ocaml
danly has joined #ocaml
fridim has joined #ocaml
johnnowak has joined #ocaml
buluca has joined #ocaml
buluca has quit [Client Quit]
buluca has joined #ocaml
<seafood_>
How do I concatenate a character to a string in Ocaml?
fridim has left #ocaml []
<Smerdyakov>
If you're doing it repeatedly, then you've probably made a design mistake, performance-wise.
<Smerdyakov>
Consider the Buffer module instead.
m3ga has joined #ocaml
danly has quit ["Ex-Chat"]
<seafood_>
Smerdyakov: Thanks. Looks just like what I need.
Smerdyakov has quit ["Leaving"]
m3ga has quit ["disappearing into the sunset"]
ChoJin has joined #ocaml
buluca has quit ["Leaving."]
<whatsup103>
what up all my peoples
<whatsup103>
.............blah
<whatsup103>
still havent got that CSV thing done
<whatsup103>
gonna get that done tonight though
<stevan>
whatsup103: well at least your are earning that $$
<whatsup103>
i got occupied wit hanother project
<whatsup103>
and i sold that im client
<whatsup103>
but i got to finish this csv or the guys gonna be pissssed
<whatsup103>
and 700 isnt bad for editing a csv file
<whatsup103>
stevan: its not hard ot earn money ........the harder part is dealing with people that have no idea what they are talking about
<stevan>
whatsup103: tell me about it, I deal with $clients all day long :)
<whatsup103>
yea .........they act like they know what to do and always say this is an "easy" job
<whatsup103>
i hate the word easy
<stevan>
but if the job is so easy, then why are they hiring you ;)
<whatsup103>
exactly
<whatsup103>
where do you live ?
<whatsup103>
like country
<stevan>
us
<whatsup103>
what state ? jw
<stevan>
connecticut... and you?
<whatsup103>
well
<whatsup103>
atm
<whatsup103>
brasil
<whatsup103>
but miami is where i stay in the usa .........and i will be leaving for miami soon
<ChoJin>
man I should do consulting too...
<whatsup103>
stevan: how can you deal with that cold weather
<whatsup103>
consulting ?
<stevan>
whatsup103: I was born here, and spent most of my life in this general area, so I am used to it
<stevan>
I lived in FL for a little while, but didnt really like it,.. no season change :)
<whatsup103>
what part though ?
<stevan>
Boca Raton .. the mouth of the rat :P
<whatsup103>
heh i like miami and only miami and ft dale and some of the sourrounding cities
<whatsup103>
miami is a city of its own .........not another one like it
<stevan>
about as close as I have come to Miami is going down to 14th Street in NYC to this great little cuban resturant :)
<whatsup103>
stevan: thats all a myth sure theres lots of cubans in miami ......but theres alot of everything
<whatsup103>
./ 70 percent of the cubans you woulkdnt evne notice and consider them cuban
<whatsup103>
its only the other 30 percent sterotype kind you can do that with
<stevan>
whatsup103: yes, but I bet you can get some really great cuban food in Miami
<whatsup103>
i wouldnt call it all that great :D
<stevan>
lol
<whatsup103>
its just like when i got to brasil
<whatsup103>
you know the sterotype ........dakr skinned mexican kinda lookign etc etc
<whatsup103>
theirs more blonde hair blue ey'd girls down here then i ever saw in the usa
<stevan>
yes, bikinis, etc etc ;)
<whatsup103>
i came back to miami with my brazillian passport ........and this girl in the lobby was like .......where are you from i said brazil ........i thought she meant like where i came from ./ arrived ...........she goes ohhh yea you look brazillian ..........i laughed
<whatsup103>
<< is 90 percent french
<stevan>
:D
Foxyloxy has quit [Connection timed out]
<whatsup103>
yea i hate sterotypes now
<stevan>
at some point we will all just be a medium shade of brown :)
<whatsup103>
i dont think so
<whatsup103>
it switches up
<stevan>
I am talking severl hundred (maybe thousand) years
<whatsup103>
heh i have to dis agree ........some people say black is prodiment BUT if you are ever in brazil you will see alot of girls with black in thier faily that have blonde hair green eyes .......it also fades
<stevan>
hmm,.. maybe
<stevan>
<< is as white as white can get,.. not enough sun here in the north :)
<whatsup103>
whitie is also very prodiment but racist use that like ooooo the white race wont be around much longer etc etc
<whatsup103>
i am very light skin with a light shade of peach ...........now i am the color of a dark skinned asian that just got out of the rice feild
<whatsup103>
stevan: tanning bed ?
<stevan>
whatsup103: cancer,. what,.. no thanks :P
<whatsup103>
anything can give you cancer
<stevan>
true
<whatsup103>
thats nothing but a move by dermintologist
<whatsup103>
to make you buy skin products they are invested in
<whatsup103>
no lie
<stevan>
:D
<whatsup103>
even up their in boston
<whatsup103>
they say moderate sun exposure is the key to opimum health
<whatsup103>
down here in florida the sun is good for you
<whatsup103>
in new york it will kill you
<whatsup103>
thats the difference in the doctors
<whatsup103>
when my father was a kid they used ot go out and play in the sun for hours .........used to put their kids under sun lamps
<whatsup103>
they used ot say gets looots of sun
<whatsup103>
now pwoplw get scared of the sun and become hermits .............and now skin cancer is on the rise
<stevan>
more ozone then though,.. less CO2, etc etc
<whatsup103>
the FDA has had 30 years ot prove tanning beds casue skin cancer they have YET to prove it
* stevan
attempts to quote Al Gore, but is too tired to bother
<whatsup103>
i dont realy belive in all that either
<whatsup103>
i dont think the ozone can melt in 50 years
<whatsup103>
we just have better technology to see it now
<whatsup103>
i mean yea people are going ot get skin cacner ...........people are going to get lung cancer .........got to die of something
<whatsup103>
the people here in florida and tropical life are much happeir people then people with little sun
<whatsup103>
it affects brain chemistry
<stevan>
ah, but up north we like being bitter and grumpy :)
<stevan>
I actually dont mind the sun, but I always missed the seasons when I was out of hte northeast
<stevan>
there is not much that can compare to autumn in New England
<stevan>
and good snowstorm is cool tool
<whatsup103>
i dont like the fall to much
<whatsup103>
and i hate snow
<stevan>
although snow in NYC was always pretty nasty (turns to grey slush very quickly)
<whatsup103>
palm trees .........tan women .........lovely beaches ........happy people ...........lots of crazy beach parties ...........
<whatsup103>
^^ is what i go for
<stevan>
:0
<whatsup103>
and the sun is great ........skylights make a nice effect in houses
<stevan>
skytlights work in the winter too ;)
slava has joined #ocaml
<whatsup103>
not quite :D
<slava>
does anybody have references for the design of the ocaml gc?
<whatsup103>
stevan: didnt you ever watch Miami VIce :D
<stevan>
whatsup103: sure, Crokett and Tubbs ruled the 80s man :)
<whatsup103>
yea
<whatsup103>
well good show and a nice idsplay of a great city
<stevan>
so wait,.. no good cuban food, but lots of cocaine and people wearing suits with t-shirts under then ??
<whatsup103>
what od you consider cuban food ?
<stevan>
LOL
<stevan>
I am kidding
<whatsup103>
down here we eat lots of rice and beans
<whatsup103>
:D
<beschmi>
slava: there is a short paragraph in the Zinc paper with a reference
<asm>
indeed it is, but when I look to the "original raytracer"(the link) I always miss object orientation to express that all things in the scene have an intersect method
<asm>
err
<asm>
the link was the wrong one
<tsuyoshi>
hm?
<asm>
but *somewhere* on the net there was a raytracer in ocaml which could do more than just spheres
<asm>
and it tended to be a bit ugly when coming to the part where the intersect method of an object is called
<tsuyoshi>
for a few years I did all my programming in scheme
<asm>
since you first have to find out the type of the object
<tsuyoshi>
so it's interesting to me to see scheme compared to ocaml
<asm>
I come from c++/python
<tsuyoshi>
I honestly wouldn't have thought ocaml would be terser than scheme
<asm>
and I am now slowly learning that I really should stop preferring one language too much
<tsuyoshi>
but I guess it makes sense.. because of the parentheses
<tsuyoshi>
hmm.. I guess I am in a stage where I try to do everything in ocaml
<tsuyoshi>
the thing I really miss is macros though
<tsuyoshi>
lisp macros are so much better than anything I've ever seen in another language
<asm>
maybe you should take a look at dylan
<asm>
I dont know lisp or scheme but the dylan macros are quite cool
<tsuyoshi>
gahh.. everything is an object
<asm>
?
<tsuyoshi>
I really don't like that philosophy
<asm>
why the heck whould one not like this?
<tsuyoshi>
I can't help thinking every simple operation is a method call and therefore slow
<asm>
okay, but thats just a mental problem and/or mistrust to the compiler
<tsuyoshi>
well
<tsuyoshi>
method calls are slow on everything I used except c++
<tsuyoshi>
everything I've used
<asm>
in ocaml - I read at least - you have to be careful when writing recursive methods
<asm>
because if you dont do tail-recursion it gets slow too
<tsuyoshi>
hmm.. it could be that methods can't be tail recursive
<tsuyoshi>
I think I remember reading something about that
<asm>
c++ at least is crap
<tsuyoshi>
but I don't tend to create classes unless I'm forced to
<tsuyoshi>
so I haven't really used it in ocaml at all except for using libraries that have an oo interface
<asm>
the best language for me whould be something like python but with a good binary compiler
<tsuyoshi>
python drives me crazy
<asm>
and with static typing
<tsuyoshi>
I can't deal with the syntax
<asm>
hehe
<asm>
I think its the easiest and most consise syntax ever
<tsuyoshi>
the easiest I think is scheme
<tsuyoshi>
or maybe forth
<asm>
well you could come with basic too
<asm>
,-)
<asm>
maybe the word easiest is not the one I searched for
<tsuyoshi>
one thing that is better with oop is e.g. method calls tend to be terser than function calls
<mellum>
"Python with static typing" doesn't make a lot of sense. Dynamic typing is *much* more central to Python as a language than its syntax.
<tsuyoshi>
but it seems like this should only be a syntax issue
<tsuyoshi>
well.. maybe you need something like stalin for python
<tsuyoshi>
stalin is a scheme compiler
<tsuyoshi>
and scheme is a dynamic typed language
<tsuyoshi>
but stalin figures out how much the type of a variable actually changes over the life of a program
<asm>
as said before, dylan is really a thing I tend to like. But its community is too small
<tsuyoshi>
and unboxes variables etc. when it compiles
<asm>
thats cool
<tsuyoshi>
takes forever to compile
<tsuyoshi>
that link I gave.. it described the problem pretty well
<tsuyoshi>
Note that OCaml and SML/NJ compile faster than all of the other languages and Stalin compiles the Scheme implementation three orders of magnitude slower than SML/NJ, taking over 10 minutes to compile this tiny program.
<tsuyoshi>
ocamlopt: 1.25s to compile
<tsuyoshi>
g++: 1.5s
<tsuyoshi>
stalin: 680s
<asm>
whow
<tsuyoshi>
I've tried to compile stalin a few times.. but I've never succeeded
<tsuyoshi>
takes something like an hour or so.. and 2 gigs of ram
tomppa has joined #ocaml
ChoJin has quit ["This computer has gone to sleep"]
love-pingoo has joined #ocaml
johnnowak has quit []
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
hcarty_ has quit [Remote closed the connection]
hcarty has joined #ocaml
ziggurat has joined #ocaml
<flux__>
argh, if I store an exception to a variable and rethrow it somewhere else, backtrace thinks that's the place where the exception originated from
<flux__>
I noticed this after going to great trouble (well, slightly exaggarating) to pass the exception object from a thread to the main function to leak it out of the program..
<love-pingoo>
flux__: I did something similar which works
<flux__>
love-pingoo, hm?
<love-pingoo>
you can have the main thread wait on some lock, which gets unlocked if an auxiliary thread throws anything, which is re-raised (so you get a backtrace)
<love-pingoo>
so you program exits if a thread crashes, and you still get the backtrace
<flux__>
so all I need to do is exit when an exception is sent by any thread, and I'll get a backtrace?
<flux__>
(that seems strange)
<flux__>
what does the rethrowing?
<love-pingoo>
flux__: it produces the backtrace
<love-pingoo>
yeah, it's a bit surprising (but useful) to have a backtrace for any thread throwing an exception
<flux__>
argh, I've been bitten by my "ingeniosity"
<flux__>
an innocent-looking Lazy.force..
<flux__>
which establishes a database query concurrently with another.. boom.
<flux__>
(the function was supposed to defer all actions to a function it returns)
<flux__>
well, atleast I'm sure my program will happily crash when it encounters the situation again ;-)
<flux__>
(it used to do something funky earlier)
<flux__>
wish ocaml had linear types.. although I'm ok with blaming myself on this one ;-)