ellisonch has joined #ocaml
Skal has quit [Remote closed the connection]
bd_ has quit ["Reconnecting"]
bd_ has joined #ocaml
batdog is now known as batdog|gone
batdog|gone is now known as batdog
ski_ has joined #ocaml
nicholas has joined #ocaml
<
nicholas>
Hello, what are the constructors available for the option type?
nicholas has quit ["using sirc version 2.211+KSIRC/1.3.12"]
smimou has quit ["bli"]
qknight has quit ["Lost terminal"]
tre has joined #ocaml
pango_ has joined #ocaml
li has joined #ocaml
pango has quit [Read error: 110 (Connection timed out)]
li has quit ["leaving"]
Cody` has joined #ocaml
journey has joined #ocaml
<
journey>
I'm building a custom set of ocaml tools/libs, and I'm having a problem with compiling some code
<
journey>
anyone think they could help?
<
journey>
the error is:
<
journey>
Error while linking /home/jonathan/dst/ocaml/lib/ocaml/stdlib.cma(Pervasives):
<
journey>
Reference to undefined global `End_of_file'
<
journey>
doing ocamlc -output-obj ....
vezenchio has quit ["\\o hutari ga kitto deaeru you na mahou wo kakete - ryoute wo sotto kasanete hora! hohoemu kara - hontou no kimoti kidukanai h"]
<
Smerdyakov>
I bet your name is Jonathan.
<
journey>
whois could tell you that :)
<
journey>
taking a while to get a reply on mailing list...
<
journey>
well, I'm just impatient, and can't progress till I get this figured out
<
Smerdyakov>
I would say that that is a very surprising error.
<
Smerdyakov>
You have managed to avoid linking the standard library, it appears.
<
journey>
I can't figure out where End_of_file symbol comes from either
<
journey>
have I altered the compiler in such a way that it's no longer defined? o_O
<
Smerdyakov>
I don't know what you've done, but that's the name of an exception in the core library.
<
journey>
well, it doesn't appear to be in any of stdlib/*.ml files
<
journey>
so I'm curious how I lost it in the first place
* journey
goes checks primitives thing in byterun
<
journey>
nope, nothing in there..
<
journey>
guess I'll have to wait for someone behind compilers to help, however long that may be =/
batdog is now known as batdog|gone
batdog|gone is now known as batdog
pango_ has quit [Read error: 113 (No route to host)]
pango_ has joined #ocaml
bd_ has quit [Read error: 110 (Connection timed out)]
descender has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
ellisonch has quit ["Leaving"]
faigo has quit [Remote closed the connection]
joshcryer has quit [Connection timed out]
joshcryer has joined #ocaml
m3ga has joined #ocaml
_fab has joined #ocaml
Skal has joined #ocaml
<
bluestorm>
journey:
<
bluestorm>
still here ?
revision17_ has joined #ocaml
<
bluestorm>
do someone know
<
bluestorm>
an easy way to have a good Heap lib ?
<
bluestorm>
Stdlib doesn't provide one
<
bluestorm>
(actually priority queue would be great)
<
ulfdoz>
should be only three to 5 lines of code.
<
ulfdoz>
actually you can implement a priority queue as an half ordered tree.
<
bluestorm>
do stdlib have such trees ?
<
bluestorm>
i looked for something (not very deeply) that could do a pqueue but didn't found it
<
ulfdoz>
Havent looked for one line of code: try "data bin_tree = Empty | Node of bintree * bintree"
<
pango_>
there's a minimal implementation in the reference manual (as first example of using modules)
<
bluestorm>
gonna look that
<
bluestorm>
(because implementig everything from the binary tree is a little bit difficult if i have to do that a lot of times quickly)
<
pango_>
implementing it a lot of times ?
<
ulfdoz>
you should consider, constructing a module from it.
Revision17 has quit [Read error: 110 (Connection timed out)]
<
bluestorm>
this one is ok
<
bluestorm>
it's a functionnal heap implementation
<
bluestorm>
I often have to do some ocaml code with the standart lib only (for example during a contest)
<
bluestorm>
but i may be allowed to c/p code from the manual
<
ulfdoz>
sounds like doing homework. :)
<
bluestorm>
you mean that i might have to implement a priority queue and have founded a derivated way of not doing it myself ?
Bigb[a]ng is now known as Bigbang
<
ulfdoz>
no, I just thought of homework. It is indeed no creative process to write the 1.000.001 implementation of priority-queue in ml.
<
bluestorm>
to read the Cormen book is better :p
* bluestorm
is away: Occupé
smimou has joined #ocaml
bd_ has joined #ocaml
malc_ has joined #ocaml
lkrt has joined #ocaml
lkrt_ has joined #ocaml
lkrt has quit [Read error: 113 (No route to host)]
_JusSx_ has joined #ocaml
demitar_ has joined #ocaml
<
bluestorm>
do you think i could make a priorityqueue from the Set module ?
<
mellum>
bluestorm: yes
<
bluestorm>
it would be efficient ?
<
bluestorm>
(my english is not good enough to understand the exact meaning of the doc Set part)
<
mellum>
It would probably be OK.
<
pango_>
Set use balanced binary trees
lkrt_ is now known as lkrt
Demitar has quit [Connection timed out]
Bigbang is now known as Bigb[a]ng
Bigb[a]ng is now known as Bigbang
_fab has quit [Remote closed the connection]
bluestorm has quit [Read error: 113 (No route to host)]
batdog has quit [Read error: 104 (Connection reset by peer)]
bluestorm has joined #ocaml
batdog has joined #ocaml
lkrt has quit [Read error: 104 (Connection reset by peer)]
vezenchio has joined #ocaml
lkrt has joined #ocaml
<
Cody`>
journey: Get your answer yet?
_fab has joined #ocaml
Cody` has left #ocaml []
qknight has joined #ocaml
<
qknight>
i think i asked this question some time ago but i forgot the answer
<
qknight>
can i see a signature only using bash or script mode of ocaml?
<
qknight>
i'm using ocmalc at the moment
<
qknight>
i would like to see my signatures as
<
qknight>
rev : 'a list > 'a list
malc_ has left #ocaml []
<
dylan>
ocamlc -i foo.ml
<
qknight>
dylan: i love you!
<
qknight>
have to go
qknight has quit ["bye bye ;-)"]
bd_ has quit ["Reconnecting"]
bd_ has joined #ocaml
lkrt has quit ["."]
collatin has joined #ocaml
collatin has quit [Client Quit]
kryptt has joined #ocaml
faigo has joined #ocaml
vodka-goo has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
ellisonch has joined #ocaml
ellisonch has quit [Client Quit]
Raziel has joined #ocaml
mercurylala has quit ["Leaving"]
batdog has quit [Read error: 104 (Connection reset by peer)]
Bigbang is now known as Bigb[a]ng
Raziel has quit ["Yo soy goma. Tú eres cola."]
Raziel has joined #ocaml
rq has joined #ocaml
Raziel has quit [Read error: 110 (Connection timed out)]
Raziel has joined #ocaml
barubary has joined #ocaml
barubary is now known as baru[b
baru[b has quit ["ok"]
smimou has quit ["bli"]
vodka-goo has quit []
Schmurtz has joined #ocaml
Raziel has quit ["Yo soy goma. Tú eres cola."]
_JusSx_ has quit ["leaving"]