dark_light 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/
malc_ has quit ["leaving"]
llama32 has joined #ocaml
rillig has quit ["exit(EXIT_SUCCESS)"]
<llama32> is ocaml-sdl fairly fast?
<llama32> like, is there much between SDL and you?
<smimou> yes it is
<smimou> I mean the cpu-intensive computations are done on the C side
<smimou> so there shouldn't be that much overhead
chessguy has quit [" HydraIRC -> http://www.hydrairc.com <- The future of IRC"]
smimou has quit ["bli"]
_fab has quit [Read error: 110 (Connection timed out)]
mbishop has joined #ocaml
mbishop has left #ocaml []
<llama32> when could i expect to see dynlink working with native code?
klapmuetz has joined #ocaml
_fab has joined #ocaml
<klapmuetz> hello everyone
<klapmuetz> slightly offtopic (maybe), but can somebody help me with this weird error I'm getting... when I run 'ocamlfind list' I get this: Fatal error: cannot find file list
Chea_5001 has joined #ocaml
<Chea_5001> whats up
<klapmuetz> and any other ocamlfind command doesn't work either... very mysterious
<llama32> hmmm... im just reading about "immediate objects" - does this effectively give ocaml prototype-based OO?
<Chea_5001> do you guys get more then one most to choose from ?
romildo has joined #ocaml
<romildo> Hi.
knobo_ has joined #ocaml
<romildo> I am using ocamllex and ocamlyacc to parse some datafiles on my application. There is something I do not know how to do with ocamlyacc. That is how to print the position of an error in a simple parser?
<romildo> Any clue?
<romildo> The default behaviour is just to say that a syntax error ocurred. But the position is not printed.
<buluca> I don't know wheither there is somebody awake here who could answer :)
knobo has quit [Read error: 113 (No route to host)]
<romildo> Maybe tomorrow I can get an answer :)
<Smerdyakov> I'm sure you need to get your lexer to preserve information for it even to be possible.
<romildo> My lexer already does that, with using something like lexbuf.lex_curr_p
<Chea_5001> how do they expect us to DOWNLOAD of of source forge when the only host they provide is down
<Smerdyakov> Chea_5001, ? Sourceforge has many mirrors.
<klapmuetz> can somebody please run 'ocamlfind' and tell me what the default output is? I think I did something wrong.
<Chea_5001> Smerdyakov: for me it was showing one
chessguy has joined #ocaml
<llama32> is it ok to do a "let mysocket = socket blah blah blah" then use it multiple times later on? will it keep the same value - or will it make a new socket each time i use 'mysocket'?
<Smerdyakov> llama32, I don't understand. Are you partially applying 'socket'?
llama32 has quit [Read error: 110 (Connection timed out)]
Chea_5001 has quit ["Konversation terminated!"]
chessguy has quit [" HydraIRC -> http://www.hydrairc.com <- IRC has never been so good"]
Slack4020 has joined #ocaml
<Slack4020> anyone know what the deal is here ?
<Slack4020> on my old nix system i compiled this thing many times
sponge45 has joined #ocaml
shans_home_ is now known as shans_home
Snark has joined #ocaml
pango_ has joined #ocaml
<Slack4020> dark_light: you up ?
<Slack4020> I leave for Rio De Janerio tomorrow
kisu has quit ["Leaving"]
pango has quit [Remote closed the connection]
Slack4020 has quit ["Konversation terminated!"]
romildo has quit ["Leaving"]
Smerdyakov has quit ["Leaving"]
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
_velco has joined #ocaml
slipstream-- has joined #ocaml
_velco is now known as velco
bluestorm has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
ozzloy has joined #ocaml
buluca has quit [Read error: 104 (Connection reset by peer)]
klapmuet1 has joined #ocaml
love-pingoo has joined #ocaml
<klapmuet1> can somebody please run 'ocamlfind' and tell me what the default output is? I think I did something wrong.
klapmuetz has quit [Read error: 110 (Connection timed out)]
jajs has joined #ocaml
<klapmuet1> are you supposed to use findlib-0.8.1? because it seems like the newer versions have a broken ocamlfind binary
velco is now known as chill
<pango_> ii ocaml-findlib 1.0.4-3 Management tool for OCaml programming language libraries
chill is now known as velco
<pango_> (Sarge version)
<klapmuet1> pango_: thanks, I just noticed that I do something wrong in the make install phase... the binary itself works perfectly from the src/findlib/ directory
shans_home has quit [Read error: 104 (Connection reset by peer)]
smimou has joined #ocaml
<klapmuet1> just FYI, don't strip bytecode... It breaks the thingie :-P
<pango_> yes it does
<pango_> however binaries get *much* smaller ;)
<klapmuet1> interesting caveat though... native don't have that problem, or I would never have figured it out
bluestorm has quit ["Konversation terminated!"]
love-pingoo has quit [zelazny.freenode.net irc.freenode.net]
_fab has quit [zelazny.freenode.net irc.freenode.net]
ppsmimou has quit [zelazny.freenode.net irc.freenode.net]
ulfdoz_ has quit [zelazny.freenode.net irc.freenode.net]
Snark has quit [zelazny.freenode.net irc.freenode.net]
sponge45 has quit [zelazny.freenode.net irc.freenode.net]
katatsumuri has quit [zelazny.freenode.net irc.freenode.net]
gim has quit [zelazny.freenode.net irc.freenode.net]
seafood_ has quit [zelazny.freenode.net irc.freenode.net]
bohanlon has quit [zelazny.freenode.net irc.freenode.net]
stesch has quit [zelazny.freenode.net irc.freenode.net]
love-pingoo has joined #ocaml
Snark has joined #ocaml
sponge45 has joined #ocaml
katatsumuri has joined #ocaml
gim has joined #ocaml
ulfdoz_ has joined #ocaml
stesch has joined #ocaml
seafood_ has joined #ocaml
bohanlon has joined #ocaml
klapmuet1 has quit [zelazny.freenode.net irc.freenode.net]
falconair has quit [zelazny.freenode.net irc.freenode.net]
ikaros has quit [zelazny.freenode.net irc.freenode.net]
mw_ has quit [zelazny.freenode.net irc.freenode.net]
datrus has quit [zelazny.freenode.net irc.freenode.net]
descender has quit [zelazny.freenode.net irc.freenode.net]
zmdkrbou has quit [zelazny.freenode.net irc.freenode.net]
shawn has quit [zelazny.freenode.net irc.freenode.net]
jca_ has quit [zelazny.freenode.net irc.freenode.net]
dbueno has quit [zelazny.freenode.net irc.freenode.net]
Hadaka has quit [zelazny.freenode.net irc.freenode.net]
fremo has quit [zelazny.freenode.net irc.freenode.net]
ozzloy has quit [zelazny.freenode.net irc.freenode.net]
velco has quit [zelazny.freenode.net irc.freenode.net]
Kzzch has quit [zelazny.freenode.net irc.freenode.net]
ayrnieu has quit [zelazny.freenode.net irc.freenode.net]
Wazm_ has quit [zelazny.freenode.net irc.freenode.net]
lde has quit [zelazny.freenode.net irc.freenode.net]
TaXules has quit [zelazny.freenode.net irc.freenode.net]
Demitar has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
flux__ has quit [zelazny.freenode.net irc.freenode.net]
cmeme has quit [zelazny.freenode.net irc.freenode.net]
buggs has quit [zelazny.freenode.net irc.freenode.net]
klapmuet1 has joined #ocaml
ozzloy has joined #ocaml
velco has joined #ocaml
Kzzch has joined #ocaml
falconair has joined #ocaml
ayrnieu has joined #ocaml
ikaros has joined #ocaml
jca_ has joined #ocaml
lde has joined #ocaml
Wazm_ has joined #ocaml
mw_ has joined #ocaml
datrus has joined #ocaml
shawn has joined #ocaml
zmdkrbou has joined #ocaml
Hadaka has joined #ocaml
dbueno has joined #ocaml
fremo has joined #ocaml
TaXules has joined #ocaml
Demitar has joined #ocaml
Oatmeat|umn has joined #ocaml
flux__ has joined #ocaml
cmeme has joined #ocaml
buggs has joined #ocaml
_fab has joined #ocaml
ppsmimou has joined #ocaml
descender has joined #ocaml
jajs has quit [Remote closed the connection]
chris2 has joined #ocaml
<flux__> it@s a bug, I think
<flux__> the bytecode isn't marked as non-strippable
<flux__> there propably is a bug report on that too..
<klapmuet1> where could I check the bug reports? findlib doesn't have a ML either
llama32 has joined #ocaml
jajs has joined #ocaml
chris2 has quit ["Leaving"]
sponge45 has left #ocaml []
Smerdyakov has joined #ocaml
dylan has joined #ocaml
bluestorm has joined #ocaml
llama32 has quit ["Leaving"]
dylan_ has joined #ocaml
AngyBB has joined #ocaml
dylan has quit [Read error: 60 (Operation timed out)]
malc_ has joined #ocaml
setog3 has joined #ocaml
<setog3> can someone explain me what is exactly a token ?
AngyBB has left #ocaml []
<bluestorm> hm setog3
<bluestorm> what token are you exactly talking about ? ^^
<bluestorm> (wich ?)
<setog3> don't know, I have in an exercise decompose a string in tokens :
<bluestorm> hm
<setog3> char like + * - / -> the first token
<setog3> char like int -> integer
<setog3> and make a list with this token ..
<setog3> so I don't understand what is exactly a token
<bluestorm> i'd say a token is the littlest element when you decompose a sentence
<bluestorm> (smallest)
<setog3> ok great .. :D I think we need a french ocaml chan ;D
<bluestorm> hm
<bluestorm> if you don't want to you any of the ocaml special-purpose lexing tools, there is something here : http://www.pps.jussieu.fr/Livres/ora/DA-OCAML/book-ora059.html#toc81
<setog3> thx
dylan_ has quit ["bbl"]
chessguy has joined #ocaml
Skal has joined #ocaml
ikaros has quit [Read error: 60 (Operation timed out)]
ikaros has joined #ocaml
chris2 has joined #ocaml
Demitar has quit [Read error: 104 (Connection reset by peer)]
delamarche has joined #ocaml
<delamarche> If I have a variant type, say type 'option = None | Some of int'
<delamarche> And then I do "let a = (Some 6)"
<delamarche> Is there any way to retrieve the value 6 from 'a' other than via pattern matching?
<delamarche> Trivially I could write a function get_some_value x = match x with | Some(z) -> z
<ayrnieu> sure: with a data structure.
<love-pingoo> there isn't any other way to do that
<love-pingoo> (except dirty black magic)
<delamarche> OK I just wanted to make sure.
<delamarche> Thank you.
<love-pingoo> ayrnieu: what do you mean ?
<love-pingoo> delamarche: get_some_value is better written as get_some_value = function Some z -> z | None -> assert false
<delamarche> Yes thanks :)
<delamarche> I was just being lazy for IRC purposes.
<delamarche> Well, basically I was just being lazy.
<love-pingoo> it avoids a compiler warning, makes sure you thought of that case, and you can get debug info from the exception
<pango_> yes, the drawback of using such function is that you're hiding sources of runtime exceptions
<pango_> pattern matching makes it more obvious that the None case may need some special handling ;)
<pango_> if you find yourself deconstructing option values all the time, it may be possible in your code to use pattern matching once at some "entry point", then to pass the deconstructed value around to the functions that require it to be present anyway... just a thought
<Smerdyakov> delamarche, something is wrong with your code if you want to do that.
mellum has joined #ocaml
<pango_> as in, "the datastructure should probably be broken in 2 (or more)" ?
<pango_> keeping dependant informations together
<Smerdyakov> The answer is very dependent on the program.
<delamarche> Yeah I was doing something stupid.
KzzchX has joined #ocaml
chessguy has quit [" Like VS.net's GUI? Then try HydraIRC -> http://www.hydrairc.com <-"]
Kzzch has quit [Read error: 110 (Connection timed out)]
jajs has quit [Remote closed the connection]
klapmuet1 is now known as klapmuetz
buluca has joined #ocaml
gim_ has joined #ocaml
ruben17 has joined #ocaml
Demitar has joined #ocaml
chessguy has joined #ocaml
KzzchX has left #ocaml []
jajs has joined #ocaml
gim__ has joined #ocaml
gim_ has quit [Read error: 60 (Operation timed out)]
gim__ has quit [Read error: 104 (Connection reset by peer)]
ruben17 has quit ["Leaving"]
gim_ has joined #ocaml
gim__ has joined #ocaml
gim_ has quit [Read error: 54 (Connection reset by peer)]
jajs has quit [Read error: 110 (Connection timed out)]
zamez has joined #ocaml
gim__ has quit []
Snark has quit ["Leaving"]
chessguy has quit [Connection timed out]
malc_ has left #ocaml []
jca_ has left #ocaml []
bluestorm has quit [Remote closed the connection]
bluestorm has joined #ocaml
bluestorm has quit [Remote closed the connection]
_fab has quit []
chris2 has quit ["Leaving"]
love-pingoo has quit [Read error: 145 (Connection timed out)]
dark_light has quit [Read error: 113 (No route to host)]
velco has quit ["I'm outta here ..."]
Skal has quit [Remote closed the connection]
love-pingoo has joined #ocaml
katatsumuri has quit ["Leaving"]
<delamarche> woo pretty much finished my first real ocaml program!
<delamarche> tetris
<delamarche> lablgl is sweet
<delamarche> thanks for all the help over the past couple weeks, all
delamarche has left #ocaml []
delamarche has joined #ocaml
Slack4020 has joined #ocaml
<Slack4020> << is so confused
<delamarche> s so confusedi
<delamarche> i guess that should have been 's so confused0'
<Slack4020> i cant compile lablgtk2
<pango_> delamarche: or s so confused\000\001i