vezenchio has quit ["Ayn Rand encapsulates the rage that every teenager feels on finding that his first paycheque has had taxes taken out of it"]
ulfdoz has joined #ocaml
ulfdoz_ has quit [Read error: 60 (Operation timed out)]
Nutssh has quit ["Client exiting"]
eyda|mon has joined #ocaml
<eyda|mon>
Can I make any function be used as an infix? if so, how so?
<mauke>
I don't think so
mflux has joined #ocaml
flammy has joined #ocaml
<flammy>
I've got a bunch of gmail invites, lemme know if you wanna one
flammy has left #ocaml []
<eyda|mon>
ok...
eyda|mon has left #ocaml []
maml has quit [Read error: 60 (Operation timed out)]
mlh_ has quit [Client Quit]
mlh_ has joined #ocaml
Herrchen has joined #ocaml
ionOS has joined #ocaml
Snark has joined #ocaml
<ulfdoz>
re
judge has joined #ocaml
<judge>
hi
<judge>
are signals fully supported under ocamlopt?
<Snark>
slt
<judge>
i have issues receiving signals under ocamlopt, but same code works with ocamlc
pango has quit [Remote closed the connection]
Nutssh has joined #ocaml
pango has joined #ocaml
dm has quit [Read error: 110 (Connection timed out)]
shawn has joined #ocaml
_JusSx_ has joined #ocaml
shawn_ has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
<mflux>
judge, do you use threads? (shoorting in the dark here)
haakonn_ has joined #ocaml
haakonn_ is now known as haakonn
<haakonn>
what would you use for a "growable array" in the stdlib? something like Set, but order preserving, and with constant or polynomial lookup time
<Nutssh>
Damn, I can think of the algorithm, but I don't remember what the name is.
<Nutssh>
Do you mean to use, or to implement?
<haakonn>
preferably just use
<Nutssh>
If you want to use, setup a Map or hashtbl from integer keys to the values.
<haakonn>
ah, integer keys, kind of obvious :/
<Nutssh>
np.
<Nutssh>
To implement, there's a cute algorithm that works by having seperate arrays of length 1,2,4,8,16, .... thats O(log n) for push/pop/random-access.
<Nutssh>
Later.
<haakonn>
interesting, thanks
<haakonn>
heh, i meant logarithmic earlier, not polynomial ;)
Nutssh has quit ["Client exiting"]
mlh_ has quit ["who are you people and what are you doing in my computer!?"]
dm has joined #ocaml
MisterC has joined #ocaml
MisterC has quit [Client Quit]
mlh_ has joined #ocaml
MisterC has joined #ocaml
vodka-goo has joined #ocaml
mrpingoo has joined #ocaml
vodka-goo has quit [Read error: 104 (Connection reset by peer)]
<slashvar[lri]>
Hi there
_JusSx__ has joined #ocaml
<mflux>
hm, is there a way to see if the resulting value from a function is undefined, without (or with?) using the io-monad? just interested, not likely to need that ;)
<mauke>
oh, since when is there an io-monad in ocaml?
<mflux>
hmm...
<mflux>
I may have entered the message to the wrong channel.
<mflux>
->
_JusSx_ has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
mlh_ has quit [Client Quit]
<Snark>
smimou: slt
<smimou>
hi
<Snark>
any news of ocaml-gettext in debian?
<smimou>
you're right to periodically remind me that
<smimou>
for now I did not find time to do that
<Snark>
on the one hand I would like to have it because i18n is a major feature
<Snark>
on the other hand, converting to use it will mean reviewing code
<Snark>
and that is a major pain ;-)
_JusSx_ has joined #ocaml
_fab has joined #ocaml
_JusSx__ has quit [Read error: 110 (Connection timed out)]
Snark has quit ["Leaving"]
vodka-goo has joined #ocaml
mrpingoo has quit [Read error: 145 (Connection timed out)]
gim_ has joined #ocaml
gim has quit [Read error: 110 (Connection timed out)]
SLi has left #ocaml []
mrpingoo has joined #ocaml
_fab has quit [Remote closed the connection]
vodka-goo has quit [Read error: 145 (Connection timed out)]
gim_ has quit [Read error: 113 (No route to host)]
gim_ has joined #ocaml
_p has joined #ocaml
MisterC has quit [Remote closed the connection]
Submarine has quit ["Leaving"]
_fab has joined #ocaml
<araujo>
Good morning.
skylan_ has joined #ocaml
skylan has quit [Read error: 110 (Connection timed out)]
vezenchio has joined #ocaml
bk_ has joined #ocaml
TeXitoi has quit [Read error: 104 (Connection reset by peer)]
TeXitoi has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
_JusSx__ has joined #ocaml
_JusSx_ has quit [Read error: 110 (Connection timed out)]
__DL__ has joined #ocaml
Snark has joined #ocaml
<Snark>
re
pango has quit ["Leaving"]
Submarine has joined #ocaml
ionOS has quit ["Leaving"]
mrsolo has joined #ocaml
Banana has quit [Remote closed the connection]
Banana has joined #ocaml
gim_ is now known as gim
<araujo>
Sort of a unix question, if i close the STDOUT,STDIN,STDERR of a process, the children of that process will have them closed also?
Herrchen has quit ["bye"]
<mflux>
yes
<araujo>
Hello mflux
<araujo>
mm.. that would explain my problem...
gim has quit [Remote closed the connection]
_JusSx_ has joined #ocaml
gim has joined #ocaml
<araujo>
mflux, i got sort of a problem here
<araujo>
im writing a daemon, but this daemon needs to run a shell script
<araujo>
now, it seems like when i close the std fd, the script doesn't work, because it does nothing.
<mflux>
araujo, you can open /dev/null for stdin, out and err
<mflux>
araujo, in case the process has a problem with io-errors occurring on read 0/write 1
_JusSx__ has quit [Read error: 110 (Connection timed out)]
Msandin has joined #ocaml
<araujo>
mflux, the things is, taht the program (shell script) works pretty well if i don't close the std fd.
<mflux>
araujo, strace (assuming linux) can be useful at finding out why it doesn't work
<mflux>
araujo, note that shell itself can be instructed to close fd's 0, 1 and 2, this may help when debugging..
<mflux>
I think most shell scripts should work just fine with those fd's closed
<araujo>
Right.
pango has joined #ocaml
<araujo>
mflux, the weird thing, is that the script needs to generate several files, and it generates them but empty , 4.0 kb :-/
<Snark>
good night
Snark has left #ocaml []
<araujo>
brb
araujo has quit ["Programs must be written for people to read, and only incidentally for machines to execute"]
Zaius has joined #ocaml
_JusSx__ has joined #ocaml
pipe has joined #ocaml
<pipe>
hi, is there an ocaml compiler that can generate code for nintendo gameboy advance?
lucian has joined #ocaml
<Zaius>
would you suggest rewriting all my code from object-oriented to modules for the sake of perfomance gained through statical optimizations?
lucian has quit ["Leaving"]
<Zaius>
i am heavily tempted, but afraid of losing the ease of modelling with objects
<pipe>
the less OO code the better :)
<Zaius>
i have absolutely no clue of how much i can gain by doing so. and since premature optimization is the root of all evil, i dont want to optimize anything that cannot gain much from it
<Zaius>
for example: does the compiler eliminate virtual function calls for base classes ( making them non-virtual ) ?
<pipe>
probably, better check just to be sure though
<Zaius>
.... how ?
_JusSx_ has quit [Read error: 110 (Connection timed out)]
<pipe>
check the assembly output
Purice has joined #ocaml
<pipe>
but virtual function calls are pretty much identical to regular function calls, unless you have like thousands of calls in a tight loop
<pipe>
on modern computers of course
<Zaius>
which is the case for me. and my assembly is horrible
Purice has quit ["Leaving"]
Msandin has quit [Read error: 54 (Connection reset by peer)]
_p has quit [Read error: 60 (Operation timed out)]
Gueben has joined #ocaml
Gueben has quit ["plouf"]
Submarine has quit ["Leaving"]
Submarine has joined #ocaml
_JusSx__ has quit ["leaving"]
__DL__ has quit [Remote closed the connection]
Skal has joined #ocaml
araujo has joined #ocaml
Submarine has quit ["Leaving"]
Skal has quit [Remote closed the connection]
skylan_ is now known as skylan
_fab has quit [Read error: 113 (No route to host)]