Demitar has quit [Read error: 110 (Connection timed out)]
Demitar has joined #ocaml
<KrispyKringle>
Hmm. So I'm trying to use this little CGI library (http://www.lri.fr/~filliatr/ftp/ocaml/cgi/), and I installed it with the makefile, but what with the lack of documentation and my unfamiliarity with OCaml, I'm unable to figure out how to use it. It doesn't explicitly declare a module; when the cgi.{cmi|cmo|cmx|mli|o} files are in my library path, do I refer to them as CGI.foo? cgi.foo?
<KrispyKringle>
Thanks.
<KrispyKringle>
Or do I just compile against it with camlopt and that's it?
<KrispyKringle>
ah, got it
<KrispyKringle>
So is it not possible to use the Str library at the toplevel?
Smerdyakov has quit [Read error: 110 (Connection timed out)]
teiax has joined #ocaml
<pango>
KrispyKringle: ocaml str.cma
<KrispyKringle>
ah, aha
<KrispyKringle>
thanks
ptolomy has quit [Read error: 110 (Connection timed out)]
foomeister has joined #ocaml
<foomeister>
I can pass a .cma file to ocamlc but not ocamlopt, what is the equivalent for ocamlopt? Do i have to convert the .cma to another format first, or use something else? im confused
<foomeister>
the man pages helped confuse me
<foomeister>
being new to ocaml, i find many new file types... cma,cmi,mli,ml,cmx.cmxa...
<foomeister>
solved it... the library i wanted to build against didnt build a .cmxa and thats what i needed..
foomeister has quit ["Leaving"]
mrsolo has quit [Read error: 104 (Connection reset by peer)]
brx has quit [Remote closed the connection]
brx has joined #ocaml
Smerdyakov has joined #ocaml
vezenchio has quit ["I could see how [James Randi] comes off as a bit abrasive, as he uses terms like "gobbledigook" and "woo-woo" when referring ]
pango_ has joined #ocaml
aegray has joined #ocaml
pango has quit [Read error: 148 (No route to host)]
ramkrsna has joined #ocaml
nowl has joined #ocaml
brx_ has joined #ocaml
brx has quit [Read error: 110 (Connection timed out)]
<aegray>
what is the difference between [x] @ list and x::list ?
<Smerdyakov>
I don't know what you mean by "_the_ difference".
<Smerdyakov>
The first one is a function call and the second is a constructor application.
<aegray>
the first one is a function?
nowl has quit ["Leaving"]
<Smerdyakov>
There are other differences, like the first one starts with the '[' character and the second doesn't.
<aegray>
heh
<Smerdyakov>
No, the first one is a function _call_.
<aegray>
sorry thats what i menat
<aegray>
@ is a function though?
<aegray>
is it recursive?
<Smerdyakov>
I think (@) is non-tail recursive.
<Smerdyakov>
Stack space proportional to 1st argument.
<aegray>
ok
brx_ has quit [Remote closed the connection]
<Smerdyakov>
Same as List.concat
<aegray>
thanks
<Smerdyakov>
Oops. List.concat is fancier.
<Smerdyakov>
Should have said: Same as List.append
<aegray>
whats the difference?
<aegray>
appending and concating are the same aren't they?
<Smerdyakov>
That should be obvious from the manual.
<aegray>
k
Hadaka has quit [zelazny.freenode.net irc.freenode.net]
noj has quit [zelazny.freenode.net irc.freenode.net]
Hadaka has joined #ocaml
noj has joined #ocaml
mflux has quit [Read error: 104 (Connection reset by peer)]
mflux has joined #ocaml
mflux has quit [Read error: 54 (Connection reset by peer)]
gim has quit [Read error: 110 (Connection timed out)]
aegray_ has joined #ocaml
mflux has joined #ocaml
teiax has quit [Read error: 110 (Connection timed out)]
aegray has quit [Read error: 110 (Connection timed out)]
aegray_ has quit []
aegray has joined #ocaml
ramkrsna has quit [Read error: 110 (Connection timed out)]
aegray has left #ocaml []
Snark has joined #ocaml
cmeme has quit [Remote closed the connection]
cmeme has joined #ocaml
pango_ has quit [Remote closed the connection]
Skal has joined #ocaml
pango has joined #ocaml
MisterC has joined #ocaml
Skal has quit [Read error: 110 (Connection timed out)]
Revision17 has quit [Read error: 110 (Connection timed out)]
vodka-goo has joined #ocaml
vodka-goo has quit []
Demitar has quit [Read error: 110 (Connection timed out)]
Demitar has joined #ocaml
KrispyKr1ngle has joined #ocaml
KrispyKringle has quit [Remote closed the connection]
brx has joined #ocaml
threeve has joined #ocaml
quamaretto has quit [Read error: 110 (Connection timed out)]
ChipsterOne has joined #ocaml
vezenchio has joined #ocaml
juri has joined #ocaml
<juri>
any suggestions how to convince the compiler this is ok, i can't see why it wouldn't be:
<juri>
This expression has type (?iflags:Pcre.irflag -> ?flags:Pcre.rflag list -> ?rex:Pcre.regexp -> ?pos:int -> ?callout:Pcre.callout -> string -> string) list but is here used with type (string -> string) list
<Smerdyakov>
Labeled arguments make me cry. :(
<juri>
i went around this by wrapping the calls in anonymous functions of type string -> string, but it seems a bit silly
<juri>
oh, and another thing: i'm fairly certain i had ctags generating tags for ocaml files but now exuberant ctags denies any knowledge of ocaml. was i just dreaming?
_fab has joined #ocaml
<pango>
juri: are you sure you didn't had to use otags ?
<mflux>
juri, aren't you missing one 'string'?
<juri>
pango, maybe i did - i couldn't find it on my machine, but now i realize i had some file system trouble in between and it might have disappeared then
<juri>
let's reinstall
<juri>
mflux, am i? where? :-)
<mflux>
what does your calling code look like?
<mflux>
hmm, actually, never mind
<mflux>
I missed the parenthesis
<mflux>
I think I've seen that problem before, I don't recall how I fixed it though ;)
<pango>
juri: there's something in ocaml manual about labels and HOF
<juri>
ok :-)
<mflux>
..but labeled (and optional) arguments are sooo nice..