smimou changed the topic of #ocaml to: OCaml 3.08.3 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
TaXules has joined #ocaml
Aradorn has joined #ocaml
mattam has quit [Success]
Banana has quit [Read error: 110 (Connection timed out)]
TaXules has quit [Read error: 110 (Connection timed out)]
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"]
TaXules has joined #ocaml
Banana has joined #ocaml
mattam has joined #ocaml
joeytwiddle has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: 110 (Connection timed out)]
Aradorn has quit ["( www.nnscript.de :: NoNameScript 3.81 :: www.XLhost.de )"]
Herrchen has joined #ocaml
Herrchen_ has quit [Read error: 110 (Connection timed out)]
<ulfdoz_> re
<Demitar> Is there a way to get a traceback when I get a signal?
<ulfdoz_> gdb, but never tried it with ocaml.
<Demitar> Yes, well a C backtrace won't do me much good in this case...
<ulfdoz_> Sorry, I'm not aware of another way.
<Demitar> Well, thanks anyway.
<ulfdoz_> chrchr, the easy things are always near: http://caml.inria.fr/pub/docs/manual-ocaml/manual030.html
<Demitar> It just seems to have the nasty habit of loosing track of my applications...
<ulfdoz_> Probably the optimisations.
<Demitar> What optimizations?
<ulfdoz_> The ones, the compiler usually does.
<ulfdoz_> But it shouldn't at least with "-g".
<Demitar> As far as I know ocaml does (very) little optimizations in the end.
<ulfdoz_> Hm, strange.
<Demitar> Well, it doesn't really need to, it's properly abstracted to begin with.
mlh_ has quit [Client Quit]
<Demitar> Perhaps I should just ignore that sigpipe for now...
<ulfdoz_> But I would doubt that backtrace changes with the debugger. :)
<Demitar> gdb vs ocamldebug ?
<ulfdoz_> Yes
<Demitar> Of course it's different, gdb doesn't know about ocaml code, it can only display the exported C symbols.
<ulfdoz_> Aren't they similar?
<ulfdoz_> ... named similar to the ocaml ones.
<Demitar> When using the native compiler it's closer, since it compiles almost(?) all functions down to C symbols. The bytecompiler on the other hand is a binary containing mostly bytecode.
<ulfdoz_> The bad news: It seems to be known, that the stack frames are only printed partedly - "The command backtrace (or bt) displays parts of the call stack."
<sieni> Demitar: You should always ignore sigpipe ;-)
<Demitar> Well I usually get the backtrace from ocamlrun by setting an environment variable, the problem is that I can't get it out from the signal handler, since it does a code jump.
<Demitar> sieni, in production code yes, but now I want to know who's causing it, since it shouldn't happend.
<sieni> if you ignore sigpipe shouldn't you be getting eof or something from the pipe that got broken?
mlh_ has joined #ocaml
Smerdyakov has joined #ocaml
<Demitar> sieni, sure, but I'm not the one reading from it, it's somewhere in the murky depths of Equeue.
<Demitar> Oooh, but how cleverly, I simply assemble all pipes in a list and lookup which one it is...
<ulfdoz_> What about a breakpoint and an lsof?
<Demitar> ulfdoz_, lsof won't help me figure out where in the code it's happending. :)
<ulfdoz_> Hm, ok. No furhter ideas. :\
Demitar has quit [Read error: 54 (Connection reset by peer)]
Demitar has joined #ocaml
Demitar has quit [Client Quit]
Demitar has joined #ocaml
Smerdyakov has quit [Read error: 110 (Connection timed out)]
<ulfdoz_> lastlog $N hilft
pango_ has quit ["work"]
_shawn has quit [Read error: 110 (Connection timed out)]
_shawn has joined #ocaml
mlh_ has quit [Client Quit]
pango has joined #ocaml
Isumi has joined #ocaml
Isumi has quit ["leaving"]
gim has joined #ocaml
mauke has joined #ocaml
vodka-goo has joined #ocaml
vodka-goo has quit ["ru"]
mlh_ has joined #ocaml
Saulzar has quit [brown.freenode.net irc.freenode.net]
Saulzar has joined #ocaml
Saulzar has quit [brown.freenode.net irc.freenode.net]
Saulzar has joined #ocaml
Saulzar has quit [brown.freenode.net irc.freenode.net]
Saulzar has joined #ocaml
_shawn has quit [Read error: 110 (Connection timed out)]
_shawn has joined #ocaml
kernelsensei has joined #ocaml
<kernelsensei> hi
<kernelsensei> I just installed lablgtk, but ocamlfind doesn't find it ... any idea ?
<Demitar> It helps if you are more specific.
<kernelsensei> Demitar: I installed dev-ml/lablgtk-2.4.0 , and when I do "ocamlfind list" this package isn't listed
<kernelsensei> but I've something in /usr/lib/ocaml/lablgtk2/
vezenchio has joined #ocaml
<Demitar> kernelsensei, either install them in the standard dir or do man findlib.conf
<kernelsensei> ok
mlh_ has quit [Client Quit]
Submarine has joined #ocaml
malc_ has joined #ocaml
Prawntasm has joined #ocaml
more has quit [Remote closed the connection]
Saulzar has quit ["Leaving"]
_JusSx_ has joined #ocaml
ngaylinn has joined #ocaml
<ngaylinn> Is there any good way to get the file name for a module in the debugger?
Prawntasm has quit []
Submarine has quit ["Leaving"]
araujo has quit ["Programs must be written for people to read, and only incidentally for machines to execute"]
MrSmiley has joined #ocaml
malc_ has left #ocaml []
<ngaylinn> Is there any good way to get the file name for a module in the debugger?
Snark has joined #ocaml
Submarine has joined #ocaml
pango has quit ["Leaving"]
_fab has joined #ocaml
_JusSx_ has quit ["leaving"]
mrsolo has joined #ocaml
<ngaylinn> Is there any good way to get the file name for a module in the debugger?
<mrsolo> hi .. newbie question..
<mrsolo> how to one copy files?
<mrsolo> how to copy files even
pango has joined #ocaml
<mrsolo> ...
<mrsolo> no one alive here eh?
<Submarine> moo
<mrsolo> how do you copy file using ocaml?
<Submarine> as in most programming languages
<Submarine> you open the file for reading, the second file for writing
<Submarine> and you read blocks and write them
<Submarine> or you may call system()
<Submarine> or equivalent for invoking cp
<mrsolo> i was hoping for single standard function call..oh well :-)
MrSmiley has quit [Read error: 145 (Connection timed out)]
<sieni> mrsolo: well, you can mmap() the file and write() it on unixoids, it's probably the fastest
<mrsolo> nice!
<mrsolo> except i am on NT but either way it is getting down and dirty
ngaylinn has left #ocaml []
<sieni> mrsolo: Win32 has something similar, it seems: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/reading_and_writing_from_a_file_view.asp
Skal has joined #ocaml
<mrsolo> yea
<mrsolo> i am more interest in low cpu utliziation though
<mrsolo> most of this application will do is network copy
<Demitar> mrsolo, look at Equeue.
<mrsolo> nice!
<mrsolo> great! so i can do less work :-)
* Demitar is just getting into the interface and cannot really judge if it's brilliant or a bit clunky just yet (in the second case it's mostly a matter of a few wrapper classes).
<mrsolo> i am starting to learn ocaml seriously this time
<mrsolo> so i don't know eithr way :-)
<mrsolo> this project calls for high performance high rebility software.. so not whole lot of choices in term of implementation languages go..
<Submarine> define "high reliability" :-)
* Snark really find it stupid that xchat colors "Submarine" as blue... yellow would be a much better choice!
vodka-goo has joined #ocaml
<sieni> Snark: :-)
Aradorn has joined #ocaml
<pango> mrsolo: recent Linux kernels have sendfile() that avoid some useless copies (from file system cache to userland, then from userland to socket buffer...)
<pango> mrsolo: probably Win32 has something similar
<Submarine> sendfile() looks like the way to implement file servers
<Snark> good night
Snark has left #ocaml []
Yorick has joined #ocaml
<mrsolo> corruption hmm that is no no
<mrsolo> oh it is IPv6
kernelsensei has left #ocaml []
joeytwiddle has quit [Read error: 145 (Connection timed out)]
<ulfdoz_> bye
vodka-goo has quit []
<Aradorn> this chan is always dead lol
bk_ has joined #ocaml
Skal has quit ["Client exiting"]
araujo has joined #ocaml
Submarine has quit ["Leaving"]
Yorick has quit ["Leaving"]
bk_ is now known as tschakka
<erg> #sml is more dead
_fab has quit [Read error: 113 (No route to host)]
vincenz has quit ["leaving"]
mlh_ has joined #ocaml