_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)]
<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
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.