sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
Z4rd0Z has quit []
pants1 has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
joshcryer has joined #ocaml
malc_ has quit ["leaving"]
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
joshcryer has quit [Remote closed the connection]
zarvok has quit ["BitchX-1.1-final -- just do it."]
AWOSDev has joined #ocaml
AWOSDev has left #ocaml []
slipstream has joined #ocaml
slipstream-- has quit [Read error: 113 (No route to host)]
pango has quit [Remote closed the connection]
pango has joined #ocaml
dark_light has quit [Remote closed the connection]
dark_light has joined #ocaml
benny_ has joined #ocaml
<flux->
I heard someone had a principle "if it has side effects, accept a unit argument", but that's purely a stylistic matter.. I personally haven't used that.
benny has quit [Read error: 110 (Connection timed out)]
descender has quit [Remote closed the connection]
bluestorm_ has joined #ocaml
bebui has quit [Read error: 110 (Connection timed out)]
zhllg has quit [Read error: 110 (Connection timed out)]
Z4rd0Z has joined #ocaml
Mr_Awesome has quit ["...and the Awesome level drops"]
asymptote has joined #ocaml
ikaros has quit ["segfault"]
ikaros_ has joined #ocaml
jlouis has quit [Remote closed the connection]
bebui has joined #ocaml
zhllg has joined #ocaml
diffbavis has quit [Read error: 104 (Connection reset by peer)]
david_koontz has quit [Read error: 110 (Connection timed out)]
david_koontz has joined #ocaml
david_koontz has quit ["Leaving"]
swater has joined #ocaml
swater has quit [Remote closed the connection]
swater has joined #ocaml
mikeX has joined #ocaml
jlouis has joined #ocaml
diffbavis has joined #ocaml
malc_ has joined #ocaml
malc_ has quit ["leaving"]
descender has joined #ocaml
zarvok has joined #ocaml
asymptote has quit ["Leaving"]
pstickne_ has joined #ocaml
pstickne has quit [Connection timed out]
zarvok has quit ["BitchX-1.1-final -- just do it."]
pstickne_ has quit [Read error: 104 (Connection reset by peer)]
pstickne_ has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
benny has joined #ocaml
descender has quit [zelazny.freenode.net irc.freenode.net]
diffbavis has quit [zelazny.freenode.net irc.freenode.net]
benny_ has quit [zelazny.freenode.net irc.freenode.net]
slipstream has quit [zelazny.freenode.net irc.freenode.net]
eradman has quit [zelazny.freenode.net irc.freenode.net]
fremo has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
gim has quit [zelazny.freenode.net irc.freenode.net]
descender has joined #ocaml
diffbavis has joined #ocaml
slipstream has joined #ocaml
fremo has joined #ocaml
Oatmeat|umn has joined #ocaml
gim has joined #ocaml
eradman has joined #ocaml
eradman has quit [zelazny.freenode.net irc.freenode.net]
diffbavis has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
descender has quit [zelazny.freenode.net irc.freenode.net]
gim has quit [zelazny.freenode.net irc.freenode.net]
fremo has quit [zelazny.freenode.net irc.freenode.net]
slipstream has quit [zelazny.freenode.net irc.freenode.net]
eradman has joined #ocaml
descender has joined #ocaml
diffbavis has joined #ocaml
slipstream has joined #ocaml
fremo has joined #ocaml
Oatmeat|umn has joined #ocaml
gim has joined #ocaml
diffbavis has quit [zelazny.freenode.net irc.freenode.net]
eradman has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
descender has quit [zelazny.freenode.net irc.freenode.net]
gim has quit [zelazny.freenode.net irc.freenode.net]
fremo has quit [zelazny.freenode.net irc.freenode.net]
slipstream has quit [zelazny.freenode.net irc.freenode.net]
eradman has joined #ocaml
descender has joined #ocaml
diffbavis has joined #ocaml
slipstream has joined #ocaml
fremo has joined #ocaml
Oatmeat|umn has joined #ocaml
gim has joined #ocaml
desc has joined #ocaml
descender has quit ["Elegance has the disadvantage that hard work is needed to achieve it and a good education to appreciate it. - E. W. Dijkstra"]
ikaros_ has quit [Remote closed the connection]
desc has quit [Remote closed the connection]
diffbavis has quit [zelazny.freenode.net irc.freenode.net]
eradman has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
gim has quit [zelazny.freenode.net irc.freenode.net]
fremo has quit [zelazny.freenode.net irc.freenode.net]
slipstream has quit [zelazny.freenode.net irc.freenode.net]
slipstream has joined #ocaml
diffbavis has joined #ocaml
fremo has joined #ocaml
Oatmeat|umn has joined #ocaml
gim has joined #ocaml
gim has quit [Connection timed out]
gim has joined #ocaml
eradman has joined #ocaml
<fremo>
when a channel is out of scope, is it closed automagicaly ?
eradman has quit [zelazny.freenode.net irc.freenode.net]
Oatmeat|umn has quit [zelazny.freenode.net irc.freenode.net]
<fremo>
probably only when it's garbage collected...
Oatmeat|umn has joined #ocaml
diffbavis has quit [Read error: 54 (Connection reset by peer)]
<flux->
infact I wouldn't expect it to
<flux->
atleast you'd better think that way :-)
<flux->
because channels are a limited resource, and garbage collection is really only good for memory management
<tsuyoshi>
iirc channels aren't closed on collection
<pango>
last time I checked, file descriptors weren't released on collection either
<tsuyoshi>
oh that's what I meant
_JusSx_ has joined #ocaml
<tsuyoshi>
the memory is freed, at least
<pango>
well, finalization could make sure the descriptor is freed too... but as flux- said, you'd still have no guarantee about _when_
<fremo>
interresting, thank you :)
imesh has joined #ocaml
<pango>
fremo: if the usage of a resource matches a scope, my favorite trick is to use a HoF to handle the allocation/deallocation: http://nopaste.tshw.de/1175450153b083e/
<mikeX>
what do you mean HoF?
<pango>
high order function
<mikeX>
oh : )
<mikeX>
that looks like lisp's with-open-file right?
<pango>
same idea, yes
<pango>
what's interesting, is that it applies to many cases beside files
<pango>
last thing I used it for: set unix umask locally
<mikeX>
not sure I follow
<pango>
it could be seen as an abuse of that pattern however... The old umask plays to role of the allocated handle, and function parameter usually don't care about it
bluestorm_ has quit [Read error: 104 (Connection reset by peer)]
diffbavis has quit [Read error: 54 (Connection reset by peer)]
Z4rd0Z_ has joined #ocaml
diffbavis has joined #ocaml
Z4rd0Z has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
pstickne has quit [Read error: 104 (Connection reset by peer)]
pstickne has joined #ocaml
mnemonic has quit ["leaving"]
smimou has quit [Remote closed the connection]
smimou has joined #ocaml
_JusSx_ has quit [Client Quit]
malc_ has quit [Remote closed the connection]
magog has joined #ocaml
pstickne has quit ["Leaving"]
smimou has quit ["bli"]
jer has joined #ocaml
<jer>
don't suppose anybody here has cross compiled targetting arm linux ? i've got an armv5 based system (xscale) i'd like to be able to on my osx box compile using ocamlopt to generate an arm-linux binary suitable for running on my device