<flux__>
I wonder if type inference would break if ocaml supported implicit downcasting..
Submarine has joined #ocaml
Tachyon76 has joined #ocaml
magnus-- has quit [Read error: 113 (No route to host)]
Tachyon76 has quit ["Leaving"]
pango is now known as pangoafk
Razor-X has joined #ocaml
pangoafk is now known as pango
andreas__ has joined #ocaml
<andreas__>
hi
<andreas__>
Does OCaml have global variables? I would like to have a global configuration record which is accessable from within all my modules.
<flux__>
sure (although you might want to consider it thoroughly before doing it ;)) : let config = ref None
<flux__>
and then Modulename.config is your configuration
<andreas__>
You mean putting the configuration in its own Module?
<flux__>
yes
<flux__>
there are no globals that are automatically opened everywhere, except for Pervasives
<flux__>
s/globals/modules/
<flux__>
if that's what you were looking for
<andreas__>
what do you mean by s/globals/modules ?
<flux__>
I meant modules when I wrote globals
<andreas__>
oh, ok
<flux__>
it is a sed-expression, often seen in (informatin) technically oriented channels
<andreas__>
you mean regular expression ;)
<flux__>
well, a sed-expression may contain a regular expression
<flux__>
and they s-command indeed does, as its first argument
<flux__>
but it's not a regular expression in whole
<andreas__>
thx, for the help concerning globals - I will try it
Skal has joined #ocaml
love-pingoo has joined #ocaml
revision17_ has joined #ocaml
Revision17 has quit [Read error: 110 (Connection timed out)]
love-pingoo has quit [Read error: 110 (Connection timed out)]
andreas__ has quit []
love-pingoo has joined #ocaml
andreas__ has joined #ocaml
Submarine has quit ["Leaving"]
hikozaemon has quit ["Leaving..."]
Demitar has quit [Read error: 110 (Connection timed out)]
mikeX has joined #ocaml
Demitar has joined #ocaml
ketty has joined #ocaml
ramkrsna has quit [Read error: 110 (Connection timed out)]
ramkrsna has joined #ocaml
multani has joined #ocaml
andreas__ has quit []
multani has quit ["Leaving"]
love-pingoo has quit ["Leaving"]
chessguy has joined #ocaml
khaladan has quit [Read error: 104 (Connection reset by peer)]
Smerdyakov has joined #ocaml
ski has quit [Read error: 110 (Connection timed out)]
ski has joined #ocaml
chessguy2 has joined #ocaml
<mikeX>
what's the overhead of wrapping the 'main' function of a program in a 'try .. with' statement? is it significant?
chessguy has quit [Nick collision from services.]
chessguy2 is now known as chessguy
<Schmurtz>
I think it's unsignificant
<mikeX>
i see, thanks
<Schmurtz>
in general, "try“ statements only take time when entering them, and when raising an exceptino
smimou has joined #ocaml
exa has joined #ocaml
love-pingoo has joined #ocaml
Snark has joined #ocaml
chessguy2 has joined #ocaml
chessguy has quit [Nick collision from services.]
chessguy2 is now known as chessguy
pango is now known as pangoafk
pangoafk is now known as pango
_jol_ has joined #ocaml
exa has quit [Remote closed the connection]
_jol_ has quit ["co'o rodo"]
slipstream has joined #ocaml
finelemo1 has joined #ocaml
slipstream-- has quit [Read error: 110 (Connection timed out)]
<mikeX>
This is related to exception checkers that exist at least for OCaml. The external tool for OCaml is both transparent (i.e. it does not require any syntactic annotations) and facultative (i.e. it is possible to compile and run a program without having checked the exceptions, although this is not suggested for production code).
finelemon has quit [Read error: 110 (Connection timed out)]
<mikeX>
i've never seen anything like that, is that true?
Snark has quit ["Leaving"]
<love-pingoo>
pango: the other day you told us about a nice statically typed scripting language
<love-pingoo>
if you still remember the name, I might like to take a look
<love-pingoo>
compiled scripting language.. hmm, I wonder how one may define "scripting"
<zmdkrbou>
hehe
<zmdkrbou>
strange idea
<lde>
there is also no such think as `compiled language'
<love-pingoo>
another thought is that kaya is another user of the boehm GC.. if I'm not mistaken, boehm-gc is a hack :(
<lde>
*thing
<pango>
hack as in "conservative gc" ?
<love-pingoo>
hack as in "guess what's a pointer"
<love-pingoo>
if I'm not mis-informed
<pango>
yes, that's it
<pango>
maybe it's not the correct english term
<love-pingoo>
I guess boehm is quite efficient however, to be so popular
<pango>
or because it's conservative ;) you can use it in C with no modification
<love-pingoo>
yeah.. holy lazinezz
<love-pingoo>
anybody knows whether the Genlex module's lexers are reentrant ?
chessguy has quit [Connection timed out]
<laurence>
love-pingoo: Also, I'm told, because precise collectors don't agree well with GCC's internals. At least that's the reason for Boehm being used in GCJ.
<mellum>
well, there is no reason for the code generated by gcc to have anything to do with the internals of gcc
<mellum>
boehm is probably used because it's easiest. You need to do basically nothing.
<laurence>
mellum: Yes, there is (got this from the lead for GCJX). Using a precise collector with GCC apparently would mean a heavy re-write of the back end.
<laurence>
I'm not talking about GCC's operation. I'm just talking about generated code.
khaladan has joined #ocaml
TaXules has quit [Remote closed the connection]
love-pingoo has quit ["Connection reset by by pear"]
dark_light has joined #ocaml
Skal has quit [Remote closed the connection]
sidewinder has joined #ocaml
chessguy has joined #ocaml
lde has quit [Read error: 104 (Connection reset by peer)]