mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
znutar has joined #ocaml
evn has quit []
<jlouis> hah. Try tracking down mnesia bugs in erlang code where chunk was types as chunks in one place. No type system to complain; the error occurs in another place than where it is introduced. 25 minutes, several print statements and grey hairs later, chunks --> chunk and problem is fixed.
<jlouis> was typed in as
<sporkmonger> for the record, there's nothing more valuable than a genius on your cell phone's speed dial
<orbitz> hi jlouis
<orbitz> high five
<jlouis> **5
Mr_Awesome has joined #ocaml
seafood_ has joined #ocaml
<hcarty> ls
<hcarty> Sorry... wrong window
RobertFischer has joined #ocaml
schme has joined #ocaml
eelte has quit ["bye ca veut dire tchao en anglais"]
<RobertFischer> Testing...
<RobertFischer> I think Colloquy is eating up some messages.
ygrek has joined #ocaml
yminsky has quit []
RobertFischer has quit []
yminsky has joined #ocaml
<thelema> mbishop: except for putting an extra ; at the end of a phrase.
<thelema> mbishop: those errors only show up at the beginning of the *third* phrase.
schme has quit [Remote closed the connection]
ygrek has quit [Remote closed the connection]
RobertFischer has joined #ocaml
RobertFischer has quit [Remote closed the connection]
gim has quit [Remote closed the connection]
evn has joined #ocaml
|Catch22| has quit ["To the best of my knowledge, I guess that I'm fresh"]
bluestorm has joined #ocaml
evn has quit []
bluestorm has quit ["Konversation terminated!"]
seafood_ has quit []
Tetsuo has joined #ocaml
ikaros has joined #ocaml
Linktim has joined #ocaml
yangsx has quit [Remote closed the connection]
solrize_ has joined #ocaml
solrize_ has left #ocaml []
shortcircuit has quit [Read error: 110 (Connection timed out)]
mwc has quit ["leaving"]
z[x] has joined #ocaml
petchema has joined #ocaml
OChameau has joined #ocaml
<flx> hm, I have: try Unix.connect socket address with Unix.Unix_error _ -> () - and this line causes this runtime error: Thread 2 killed on uncaught exception Unix.Unix_error(38, "connect", "")
<flx> (EINPROGRESS, as it should)
<flx> I wonder why I get the exception :-o
<flx> I wonder if my test approach can affect things..
<flx> as I do #require "topfind";; #require "foo";; #require "bar";; but the modules already require each other
<petchema> I'd bet the exception comes from another place
<flx> the characters offsers match exactly to the call
<flx> characters 18-45
<flx> tada, properly compiled version works without exceptions
<flx> I think the issue could have been that the unix module was loaded twice somehow
<flx> so the actually loaded module threw different types than the one the connecting module was compiled against
<flx> hm, maybe my actual issue was that instead of #requiring stuff I should -I the proper paths to the toplevel
<petchema> #foo are toplevel ('ocaml') directives only
<petchema> did the problem happen in the toplevel?
<flx> sort of, I have a custom toplevel, and I feed the .ml-file with #-directives to it
<flx> that is, ./toplevel testcase.ml
<petchema> so your analysis must be correct, #require must load again all dependancy modules
<flx> it would be convenient if the .cmi -files was built into the toplevel
<flx> as it is, I cannot simply refer to a module by using its name, I need to add it to the library search path first
<petchema> you mean mktop stuff? yes, it could be interesting if it could embed library path too
<petchema> maybe by linking a small modules that modifies this path? I don't know if it's possible
<petchema> s/modules/module/
<flx> that actually might be possible
<petchema> tried using .ocamlinit file instead?
<flx> I don't think toplevel has a command for adding search paths?
<flx> ah, right
hkBst has joined #ocaml
gim has joined #ocaml
coucou747 has joined #ocaml
Linktim_ has joined #ocaml
OChameau-bis has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
Yoric[DT] has joined #ocaml
LordMetroid has joined #ocaml
OChameau has quit [Read error: 110 (Connection timed out)]
musically_ut has quit [Remote closed the connection]
Linktim_ has quit [Remote closed the connection]
Linktim has joined #ocaml
palomer_ has joined #ocaml
Jedai has quit ["KVIrc 3.2.4 Anomalies http://www.kvirc.net/"]
palomer__ has quit [Read error: 110 (Connection timed out)]
boua has joined #ocaml
coucou747 has quit ["bye ca veut dire tchao en anglais"]
z[x] has quit [Remote closed the connection]
RobertFischer has joined #ocaml
<RobertFischer> Testing...
* RobertFischer is still nervous about Colloquy.
LordMetroid has quit ["Leaving"]
jprieur has joined #ocaml
<rwmjones> RobertFischer, ping
<RobertFischer> rwmjones: pong
<rwmjones> RobertFischer, did you sort it out?
<rwmjones> ^^
<RobertFischer> rwmjones: I think so. I think my APXS path was hosed up.
<rwmjones> yes, looked like a kind of gross failure to find the right include files ...
<rwmjones> btw it compiled fine for me on Apache 1.3
<rwmjones> haven't tried 2.x for quite a long time however
<RobertFischer> That's what I'm doing right now.
<RobertFischer> (1.3)
<RobertFischer> If I could get it to work on 2.2, I'd prefer that. But I'll start with 1.3.
shortcircuit has joined #ocaml
postalchris has joined #ocaml
^authentic has joined #ocaml
bluestorm has joined #ocaml
Linktim_ has joined #ocaml
Linktim- has joined #ocaml
authentic has quit [Read error: 110 (Connection timed out)]
^authentic is now known as authentic
jlouis has quit [Remote closed the connection]
Linktim has quit [Read error: 110 (Connection timed out)]
Linktim_ has quit [Read error: 110 (Connection timed out)]
Linktim- has quit [Read error: 110 (Connection timed out)]
<rwmjones> did someone mention that they had UInt32 & UInt64 libraries?
* rwmjones really needs Int64.of_int32 that doesn't sign-extend
<sporkmonger> yay, finally finished that program
<sporkmonger> many thanks to everyone in the channel who helped me out :-D
jlouis has joined #ocaml
Linktim has joined #ocaml
<sporkmonger> first test run got 95% accuracy, which isn't bad for a first go with only 500 inputs of training data
<sporkmonger> running through a larger dataset now
pango_ has quit [Remote closed the connection]
TheLittlePrince has joined #ocaml
jprieur has quit ["Connection reset by beer"]
Linktim_ has joined #ocaml
jprieur has joined #ocaml
pango_ has joined #ocaml
Linktim- has joined #ocaml
jprieur has quit [Remote closed the connection]
shortcircuit has quit [SendQ exceeded]
jprieur has joined #ocaml
jprieur has left #ocaml []
<flx> has anyone ever used Event.wrap_abort or .guard for something useful?
<flx> I haven't quite figured out what's the use..
Linktim has quit [Read error: 110 (Connection timed out)]
kotarak has joined #ocaml
Linktim_ has quit [Read error: 110 (Connection timed out)]
Linktim- has quit [Read error: 110 (Connection timed out)]
seafood_ has joined #ocaml
Morphous has joined #ocaml
<RobertFischer> rwmjones: ping?
seafood_ has quit [Client Quit]
<rwmjones> RobertFischer, pong
<RobertFischer> rwmjones: No dice. Fixed the APXS stuff, and still getting a problem.
<RobertFischer> rwmjones: Is it normal to have to manually add the Ocaml standard lib headers and apr-1 into CFLAGS?
<rwmjones> what's the first few errors?
<RobertFischer> gcc -I/opt/local/lib/ocaml/std-lib -I/usr/include/apache2 -I/Developer/SDKs/MacOSX10.5.sdk/usr/include/apr-1 -c -o mod_caml_c.o mod_caml_c.c
<RobertFischer> mod_caml_c.c:104: error: syntax error before ‘pool’
<RobertFischer> mod_caml_c.c: In function ‘module_init’:
<RobertFischer> mod_caml_c.c:106: warning: passing argument 1 of ‘ap_add_version_component’ from incompatible pointer type
<RobertFischer> mod_caml_c.c:106: error: too few arguments to function ‘ap_add_version_component’
<rwmjones> ah right .. a Mac.
<rwmjones> i've only ever compiled this on a straight linux machine
<RobertFischer> That's kinda what I suspected. Unfortunately, my straight linux laptops have consistently sucked bad.
<RobertFischer> I know enough C to be dangerous -- any lead on what you think is going on in mod_caml_c?
<RobertFischer> (That error message isn't greatly helpful.)
<rwmjones> well the error messages indicate it isn't including the right header files, as to why is anyone's guess
|Catch22| has joined #ocaml
<RobertFischer> That's the big fun -- what's the header file that it's cranky about?
<RobertFischer> Should I just start hunting down all the #includes?
<rwmjones> the first error indicates that the type server_rec isn't being found
<rwmjones> that comes from one of the apache header files
Linktim has joined #ocaml
<rwmjones> RobertFischer, email me your ssh public key, and IP address (for the firewall) and I'll give you an account on the merjis development machine
<RobertFischer> K.
<RobertFischer> Looks like it's defined in httpd.h
<rwmjones> if you're getting the wrong httpd.h then it won't work -- they renamed everything in apache 2.x iirc
<petchema> flx: I have no direct experience with Event module, but I'd suggest finding documentation on CML (Concurrent ML), it's basically a port of CML for OCaml
<flx> petchema, yeah, that's what got me started on the Event-module and its greatness
<petchema> 'k
<flx> actually I found an old patch that added wrap_guard and it gave a use case for that
<flx> (start thread to implement timeout, cancel thread with wrap_guard)
Amorphous has quit [Read error: 110 (Connection timed out)]
<hcarty> thelema: I have some extra functions for the Bigarray.Genarray library if you are interested for your community branch. map, fold, unsafe_(get|set), iter and cast. Maybe a few others.
<rwmjones> hcarty, I think he's wrong there .. extending a uint32 to a uint64 also needs to be treated specially
<Smerdyakov> flx, if you like Event, you should love Concurrent ML. Lightweight threads are needed to realize most of the benefit of first-class events.
<orbitz> Smerdyakov!!!!!
<Smerdyakov> orbitz, yes?
<flx> smerdyakov, perhaps so, but just the fact that Concurrent ML is rarely heard of would indicate there aren't that many libraries or other tools for it
<orbitz> Smerdyakov: hi
<Smerdyakov> flx, it's available as a library for the major SML implementations, so you can use all SML libraries.
<flx> oh, so I would only need to switch to SML then ;)
<Smerdyakov> flx, yup, a good idea for other reasons, too! :D
<rwmjones> RobertFischer, any preferred username?
<flx> in any case, I'm not particularly happy with the synchronous nature of the library, emulating asynchronous communication with disconnects has seemed difficult
<RobertFischer> rwmjones: "robert" would be nice. "rfischer", otherwise.
<flx> so I have my own version that implements about the same primitives but asynchronously
<flx> the earlier questions were related to that I don't implement wrap_guard or guard, and I was wondering what good are they for
<flx> but, off to the store ->
Demitar has joined #ocaml
schme has joined #ocaml
<rwmjones> RobertFischer, see email
<RobertFischer> rwmjones: +1 to you.
<rwmjones> it works?
<RobertFischer> rwmjones: I'm trying it out right now. I just wanted to give you a +1 for helping. :)
<RobertFischer> Key fingerprint of: 03:c4:e5:a6:c8:36:d1:cb:11:75:e7:ea:ad:5f:62:9a
<RobertFischer> I'm in.
<RobertFischer> Thanks.
<RobertFischer> No httpd/apache2 -- should I just compile those on my own?
Linktim has quit [Read error: 110 (Connection timed out)]
<RobertFischer> Wait -- I lie.
<RobertFischer> There it is.
<RobertFischer> Just hiding from me over in /usr/sbin.
postalchris has quit [Read error: 110 (Connection timed out)]
<rwmjones> RobertFischer, there should be ... I'm going to be off for a bit, so better contact me by email
jonafan_ has joined #ocaml
evn has joined #ocaml
jonafan has quit [Read error: 110 (Connection timed out)]
jonafan has joined #ocaml
jonafan_ has quit [Read error: 110 (Connection timed out)]
TheLittlePrince has quit [Client Quit]
ofaurax has joined #ocaml
|Catch22| has quit ["To the best of my knowledge, I guess that I'm fresh"]
rwmjones has quit [Remote closed the connection]
rwmjones has joined #ocaml
rhar has quit [Read error: 104 (Connection reset by peer)]
<rwmjones> RobertFischer, I'm back on irc now
<RobertFischer> rwmjones: I see you. Dropped you an e-mail.
<rwmjones> replied, I think
thermoplyae has joined #ocaml
<RobertFischer> rwmjones: Just now got it.
<RobertFischer> rwmjones: I'm assuming that you'll need any IP that I'm planning to connect from (or if my dynamic IP address changes).
jlouis has quit [Read error: 104 (Connection reset by peer)]
jlouis has joined #ocaml
<rwmjones> RobertFischer, yes
<rwmjones> I thought you had a static addr actually
<RobertFischer> Nope. Although it's never changed in the history of me having their service.
<RobertFischer> And I tend to work from two to three different places. :)
jlouis has quit [Read error: 110 (Connection timed out)]
<RobertFischer> rwmjones: /usr/sbin/apache doesn't seem to exist, but that's what /etc/init.d/apache is expecting to find. Where's the old Apache 1.3 hiding at?
OChameau-bis has quit ["Leaving"]
<jonafan> i need Str.split to be tail recursive
<RobertFischer> jonafan: We all need things.
<RobertFischer> jonafan: Was there a question in there somewhere, or were you just making an observation?
<jonafan> i guess it was an observation
<flx> even re-entrant would be nice :)
<hcarty> jonafan: Could you use Pcre rather than Str? It may handle large splits better than Str
<jonafan> i noticed that my data file was almost entirely empty lines
<jonafan> which was what was causing the problem
RobertFischer has quit ["Taking off -- check out http://smokejumperit.com and http://enfranchisedmind.com/blog/"]
<rwmjones> RobertFischer: /usr/sbin/apache2
schme has quit [Remote closed the connection]
thermoplyae has quit ["daddy's in space"]
|Catch22| has joined #ocaml
RobertFischer has joined #ocaml
* RobertFischer is back.
<rwmjones> RobertFischer: /usr/sbin/apache2
RobertFischer_ has joined #ocaml
RobertFischer has quit [Read error: 104 (Connection reset by peer)]
<RobertFischer_> rwmjones: That's apache2. I found that one. I was wondering if there was a 1.3 kicking around.
RobertFischer_ has quit [Client Quit]
<rwmjones> RobertFischer, no AIUI you can only have apache-dev or apache2-dev installed so I picked apache 2 coz it'll be more useful to have mod_caml compiling for that
Anarchos has joined #ocaml
<Anarchos> how to checkout a directory missing in the source tree of ocaml ?
wilsonicus has joined #ocaml
<wilsonicus> Would you recommend ocaml as a first fpl?
<jonafan> scheme was my first
<jonafan> sure, why not
<Yoric[DT]> wilsonicus: I would.
<Yoric[DT]> Not the only choice, but definitely a valid one.
<wilsonicus> Ok cool thanks.
wilsonicus has left #ocaml []
nuncanada has quit ["Leaving"]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
mfp has quit [Read error: 104 (Connection reset by peer)]
jlouis has joined #ocaml
mfp has joined #ocaml
boua has left #ocaml []
Linktim has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
Demitar has quit [Remote closed the connection]
postalchris has joined #ocaml
ofaurax has quit ["Leaving"]
ikaros_ has joined #ocaml
Linktim has quit [Remote closed the connection]
RobertFischer has joined #ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
Demitar has joined #ocaml
Demitar has quit [Client Quit]
<rwmjones> RobertFischer, no AIUI you can only have apache-dev or apache2-dev installed so I picked apache 2 coz it'll be more useful to have mod_caml compiling for that
rwmjones has quit ["Closed connection"]
<RobertFischer> rwmjones: Sweet. As long as mod_caml runs on it, I'm happy.
Tetsuo has quit ["Leaving"]
ikaros_ has quit ["segfault"]
Yoric[DT] has quit ["Ex-Chat"]
Demitar has joined #ocaml
kotarak has quit ["Xaide, leka nosht."]
hkBst has quit ["Konversation terminated!"]
postalchris has quit ["Leaving."]
thelema has quit [Read error: 110 (Connection timed out)]
kfor has joined #ocaml
kfor has left #ocaml []