gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
tauntaun has quit [Quit: Ex-Chat]
ikaros has quit [Quit: Leave the magic to Houdini]
Yoric has quit [Quit: Yoric]
Oejet1 has quit [Ping timeout: 276 seconds]
<EM03> Hello
tauntaun has joined #ocaml
munga has joined #ocaml
astory has joined #ocaml
<astory> I'm trying to make a set using a custom-defined type, but I'm getting syntax errors on Set.Make. How am I supposed to do it?
munga has quit [Ping timeout: 276 seconds]
Cyanure has quit [Remote host closed the connection]
wchicken2 has joined #ocaml
<wchicken2> hey guys -- me again
<wchicken2> anybody know of an ocaml-friendly SVD library? it looks like there isn't a native one so I was wondering if anyone had experience with ocaml-gsl or something
Fullma has joined #ocaml
<astory> I'm getting `Error: Unbound module Map.Make' and I can't figure out what I'm doing wrong; another file I have uses it fine; what can I do to debug?
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
wchicken2 has quit [Quit: reboot]
tauntaun has quit [Quit: Ex-Chat]
boscop has quit [Ping timeout: 250 seconds]
mfp has quit [Read error: Operation timed out]
<thelema_> astory: code pastebin?
pheredhel has quit [Ping timeout: 260 seconds]
<astory> although a helper might have just solved it for me
<astory> solved it, another file which I was importing was clobbering the name for Map
mfp has joined #ocaml
tauntaun has joined #ocaml
pheredhel has joined #ocaml
Associat0r has quit [Quit: Associat0r]
lopex has quit []
emmanuelux has quit [Remote host closed the connection]
oriba has quit [Quit: Verlassend]
joewilliams is now known as joewilliams_away
Tianon has quit [Ping timeout: 248 seconds]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
pheredhel has quit [Ping timeout: 250 seconds]
Associat0r has joined #ocaml
pheredhel has joined #ocaml
sepp2k has quit [Quit: Leaving.]
tauntaun has quit [Quit: Ex-Chat]
pheredhel has quit [Ping timeout: 255 seconds]
pheredhel has joined #ocaml
dnolen has joined #ocaml
metasyntax has quit [Ping timeout: 246 seconds]
dnolen has quit [Quit: dnolen]
ulfdoz has joined #ocaml
metasyntax has joined #ocaml
pheredhel has quit [Ping timeout: 255 seconds]
pheredhel has joined #ocaml
lamawithonel has quit [Remote host closed the connection]
metasyntax has quit [Ping timeout: 250 seconds]
metasyntax has joined #ocaml
ulfdoz has quit [Ping timeout: 248 seconds]
Associat0r has quit [Ping timeout: 255 seconds]
lamawithonel has joined #ocaml
ygrek has joined #ocaml
<EM03> how much has ocaml changed since 2004-5 ?
<EM03> can code written for those versions have a good chance at working?
<EM03> also forthe partner roll they need a create event thingy and a logout ....and a login for anon ...i know those are small but the client freaks on crap like that
<EM03> ok writing outlines now
<EM03> oh and drop the footer in as well when you can, all static
<mrvn> if it compiles then it works :)
<EM03> oops super wrong messages above there ^^
<EM03> mrvn: how much stuff has changed there?
<mrvn> There are lots of new things added. Not sure if something serious was removed though. If it doesn't work outright then it shouldn't be hard to fix.
<EM03> mrvn: easy for you to say.....this is 5 years of me gong back to ocaml hehe
<mrvn> If you used external libraries then you probably have to adapt to their newer versions. If you only used the core stuff then I bet it just compiles.
<EM03> its not my code hehe ....its some 06 ocaml code on sf
Snark has joined #ocaml
ikaros has joined #ocaml
<EM03> mrvn: I'm probably crazy for wanting to use ocaml for web dev but i think its aboslutely fantastic for this purpose
Yoric has joined #ocaml
philtor has quit [Ping timeout: 250 seconds]
<mrvn> EM03: you aren't. google even wrote a plugin to run ocaml code in your browser.
<mrvn> ,oO(or if you are then at least you aren't the only one)
edwin has joined #ocaml
ygrek has quit [Remote host closed the connection]
<sgnb`> EM03: http://ocsigen.org/
sgnb` is now known as sgnb
<sgnb> EM03, mrvn: and you can run ocaml code in your browser without any plugin with obrowser, js_of_ocaml, or ocamljs
<sgnb> EM03: what code are you talking about? usually, ocaml source code is not too difficult to "update"
Cyanure has joined #ocaml
<flux> em03, it compiles except for syntax extension system, that has changed a lot. however, a maintained branch of the old version is still available as well, so that shouldn't be a big problem
<flux> otherwise I've found even old ocaml code compiles quite nice. of course, sometimes library upgrades can introduce incompatiblities. an example of this is calendarlib.
<flux> and I think camomile
<flux> em03, what doesn't happen (or I haven't seen happening), though, is that code compiles but somehow breaks down in mysterious ways :)
<flux> and that I value a lot
Yoric has quit [Quit: Yoric]
Cyanure has quit [Remote host closed the connection]
edwin has quit [Quit: Leaving.]
edwin has joined #ocaml
munga has joined #ocaml
arkadir has joined #ocaml
<arkadir> hello
<arkadir> is there a pa_monad package for debian, or should it be built and installed manually?
<gildor> arkadir: I don't think so
<gildor> arkadir: what should be the source of it ?
<arkadir> since the 2008 source for pa_monad is under GPL, I kind of hoped someone would have made it into a package
<arkadir> LGPL*
<gildor> who is the upstream author ?
<arkadir> Jacques Carette, apparently
<arkadir> failing that, is there any monad camlp4 syntax "standard" enough to be included on debian?
<arkadir> I don't have anything against building pa_monad from source, I just wondered if there was a normal way of doing things
<flux> mayb\e with lwt? but the may be lwt-specific
<gildor> arkadir: there is a copy of it in obus, but it is not distributed
<arkadir> I see
<arkadir> thanks for the info, I guess I'll be building it myself then
Yoric has joined #ocaml
<flux> gildor, can ocaml-expect extract substrings for me to access from the process?
vivanov has quit [Ping timeout: 264 seconds]
vivanov has joined #ocaml
<gildor> flux: you can expect a string using a regexp
<gildor> and probably extract a string from it
<gildor> or use fmatches
<gildor> or use un
<gildor> or use `Fun
<flux> gildor, thanks, perhaps I'll give it a shot then
kerx has quit [Read error: Connection reset by peer]
ikaros has quit [Quit: Leave the magic to Houdini]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
avsm has joined #ocaml
mcclurmc has left #ocaml []
_andre has joined #ocaml
Oejet has joined #ocaml
ygrek has joined #ocaml
rup has quit [Ping timeout: 276 seconds]
munga has quit [Read error: Operation timed out]
avsm has quit [Quit: Leaving.]
vivanov has quit [Ping timeout: 255 seconds]
avsm has joined #ocaml
ygrek has quit [Ping timeout: 246 seconds]
vivanov has joined #ocaml
__mattam__ has joined #ocaml
brendan_ has joined #ocaml
brendan_ is now known as Guest58454
mattam has quit [Ping timeout: 240 seconds]
diml has quit [Ping timeout: 240 seconds]
brendan has quit [Ping timeout: 240 seconds]
diml has joined #ocaml
Oejet has quit [Read error: Connection reset by peer]
arkadir has quit [Remote host closed the connection]
Oejet has joined #ocaml
lopex has joined #ocaml
Oejet has quit [Read error: Connection reset by peer]
Oejet has joined #ocaml
coucou747 has joined #ocaml
munga has joined #ocaml
ttamttam has joined #ocaml
ttamttam has left #ocaml []
mal`` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mal`` has joined #ocaml
dnolen has joined #ocaml
explodus has joined #ocaml
boscop has joined #ocaml
coucou747 has quit [Quit: 0x2a]
vivanov has quit [Ping timeout: 250 seconds]
<EM03> rwmjones: What happened to mod_ocaml? I'm thinking about ripping out the template part and adding it to ocamlnet
<rwmjones> EM03: you mean mod_caml I think
<rwmjones> mod_ocaml is a completely different porject
<rwmjones> project
<rwmjones> anyhow
vivanov has joined #ocaml
rup has joined #ocaml
Cyanure has joined #ocaml
tauntaun has joined #ocaml
dgfitch_ has quit [Quit: Lost terminal]
dgfitch has joined #ocaml
Yoric has quit [Quit: Yoric]
cods_ has joined #ocaml
cods has quit [Disconnected by services]
cods_ is now known as cods
rup has quit [Read error: Operation timed out]
rup has joined #ocaml
dnolen has quit [Quit: dnolen]
rup has quit [Ping timeout: 248 seconds]
Yoric has joined #ocaml
avsm has quit [Ping timeout: 252 seconds]
avsm has joined #ocaml
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 246 seconds]
vivanov has quit [Ping timeout: 276 seconds]
philtor has joined #ocaml
ymasory has quit [Quit: Leaving]
Oejet has quit [Read error: Connection reset by peer]
Oejet has joined #ocaml
tauntaun has quit [Quit: Ex-Chat]
ygrek has joined #ocaml
Yoric has quit [Quit: Yoric]
lopex has quit []
joewilliams_away is now known as joewilliams
cods has quit [Changing host]
cods has joined #ocaml
avsm has quit [Ping timeout: 250 seconds]
tauntaun has joined #ocaml
avsm has joined #ocaml
lopex has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
npouillard has quit [Read error: Operation timed out]
npouillard has joined #ocaml
Yoric has joined #ocaml
sepp2k has joined #ocaml
npouillard has quit [Remote host closed the connection]
<EM03> rwmjones: yea I guess I did mean mod_ocaml
<EM03> rwmjones: how far along was the mod_caml? any differences which was more complete
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
npouillard has joined #ocaml
Associat0r has joined #ocaml
<rwmjones> EM03: mod_ocaml is nothing to do with me
<rwmjones> EM03: mod_caml is fine and running several websites
<EM03> ever used it?
<EM03> does it just work with bytecode? or does it work well being natively compiled as well?
npouillard has quit [Ping timeout: 248 seconds]
avsm has joined #ocaml
vivanov has joined #ocaml
Yoric has quit [Quit: Yoric]
agarwal1975 has joined #ocaml
npouillard has joined #ocaml
npouillard has quit [Ping timeout: 260 seconds]
npouillard has joined #ocaml
npouillard has quit [Ping timeout: 264 seconds]
npouillard has joined #ocaml
ikaros has joined #ocaml
yezariaely has joined #ocaml
munga has quit [Read error: Operation timed out]
coucou747 has joined #ocaml
<emias> http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=281 lists mod_caml as mod_ocaml ...
yezariaely has left #ocaml []
<EM03> EM03: yea thats the one i was talking about it has rwmjones as the creator
<EM03> Looks like that company was a leader of ocaml web dev for a long time
ulfdoz has joined #ocaml
<thelema_> EM03: merjis did do a bunch of ocaml web dev
thelema_ is now known as thelema
<EM03> thelema: did they go out of business?
<EM03> the site is now down
<thelema> I dunno, I haven't heard from them in a long time. Their ocaml-tutorial site went down last year sometime
Guest58454 is now known as brendan
<thelema> yes, that one. There's a mirror on the ocamlorg site somewhere
<rproust> k
<rproust> I have a local copy from july 2008
<rproust> I'll try and update it
boscop_ is now known as boscop
<gildor> mirror.ocamlcore.org
<gildor> thelema, EM03: ^^^
<EM03> wayback machine got me the files as welll
Associat0r has quit [Quit: Associat0r]
thieusoai has joined #ocaml
Yoric has joined #ocaml
<EM03> thelema: thats not a good sign
<EM03> hope nothing tragic happened
<agarwal1975> fyi, with Sylvain and Rich's help, I'm trying to port the content of ocaml-tutorial.org to a new website. (early stages, no promises yet.)
<EM03> the way back machine does have it all , i know it not a good solution but still
astory has left #ocaml []
Associat0r has joined #ocaml
ymasory has joined #ocaml
_habnabit is now known as h_______
h_______ is now known as _habnabit
munga has joined #ocaml
_andre has quit [Quit: leaving]
vivanov has quit [Ping timeout: 255 seconds]
ymasory has quit [Ping timeout: 252 seconds]
vivanov has joined #ocaml
enthymeme has joined #ocaml
pheredhel has quit [Read error: Operation timed out]
avsm has quit [Quit: Leaving.]
pheredhel has joined #ocaml
ygrek has quit [Ping timeout: 246 seconds]
<rwmjones> nothing tragic happened except my debian machine broke down ...
<_habnabit> One http://paste.pound-python.org/show/gAt4OxC20r3141VnqaiP/ <- this gives a warning on line 3 for 'unused variable c'. Is there a better idiom for this?
<_habnabit> I changed it from using an if/then because this looked clearer to me.
<rproust> you can use "| Some _" instead of "| Some c"
<_habnabit> Right, but then would I do `when _ = '\n'` ?
<thelema> or if c means something to you, _c
<rproust> only in the last part
<thelema> | Some c when c = '\n" -> ()
<thelema> | Some _ -> ...
<thelema> or | Some _c -> ...
<_habnabit> Okay, so you're saying "don't use when".
<thelema> _habnabit: no
<thelema> well, in this case, you shouldn't: | Some '\n' -> ()
<mrvn> no. just don't give a name to bindings you don't use
<_habnabit> Oh, haha.
<_habnabit> That makes more sense!
<thelema> but in general, use "_" or "_foo" to name bindings you don't use
Snark has quit [Quit: Ex-Chat]
<_habnabit> Okay.
<_habnabit> Well, right, I knew about _.
<mrvn> thelema: does _foo match tuples?
<_habnabit> But it was the `when` part.
<thelema> mrvn: sometimes.
<mrvn> in constructors?
<rproust> you can also replace the Some c when c = '\n' by Some '\n'
<rproust> | Some '\n' -> ...
<thelema> type t = A of int * int --> | A (_,_) ->
<thelema> type t = A of (int * int) --> | A _foo ->
<mrvn> thelema: A _ works too
<thelema> in the second case, yes. Not in the first case
<thelema> (Unless ocamlc disagrees with me, then it's right)
<mrvn> thelema: # type t = A of int * int let () = let x = A (1,2) in match x with A _ -> ();;
<mrvn> type t = A of int * int
<mrvn> Even works with 0-tuples: # type t = A let () = let x = A in match x with A _ -> ();;
<mrvn> type t = A
<thelema> mrvn: 3.12?
<mrvn> Objective Caml version 3.11.2
<mrvn> # let () = let x = A in match x with A _foo -> ();;
<mrvn> Error: The constructor A expects 0 argument(s), but is applied here to 1 argument(s)
<mrvn> Something special about _
<thelema> ah.
ulfdoz has quit [Ping timeout: 250 seconds]
thieusoai has quit [Quit: Leaving]
thieusoai has joined #ocaml
<rproust> I'm trying to compile smthing for js_of_ocaml and I'm running into linker problems (prbly wrong parameters given to ocamlc)
<rproust> I have a stubs.c with a dummy function printing an error
<rproust> I have an external calling this function in a .ml file
<rproust> I compile this .ml into a .cmo fine
<rproust> but I got an error when linking it with another file
<rproust> sombody here has already successfully tricked the linker with dummy C functions?
edwin has quit [Remote host closed the connection]
avsm has joined #ocaml
<rproust> ocamlfind ocamlc -package js_of_ocaml -pp "camlp4o /home/raphael/bin/godi/lib/ocaml/site-lib/js_of_ocaml/pa_js.cmo" -linkpkg -o camltest.byte stubs.o raphael.cmo camltest.ml
<rproust> Error: Error while linking camltest.cmo:
<rproust> The external function `caml_js_raphael' is not available
EM03 has quit [Ping timeout: 240 seconds]
coucou747 has quit [Quit: 0x2a]
ikaros has quit [Quit: Leave the magic to Houdini]
<avsm> you need the raphael bindings too, presumably
Yoric has quit [Quit: Yoric]
<rproust> raphael.ml has external … : … = "caml_js_raphael"
<rproust> and stubs.o is compiled from stubs.c that has void caml_js_raphael () { fprintf(stderr, "Unimplemented Javascript primitive %s!\\n", "caml_js_raphael"); exit(1); }
<rproust> what do you mean by "the raphael bindings"?
Oejet has quit [Ping timeout: 276 seconds]
<sgnb> rproust: you need to create a dummy .c file with the function "caml_js_raphael"... it's documented somewhere...
<rproust> sgnb: it's done
<rproust> the file stubs.c has it
<rproust> and I compile stubs.c with ocamlc -c
<sgnb> rproust: you need to make a dll*.so with it using ocamlmklib
<sgnb> and give that .so to link your js executable
Amorphous has quit [Ping timeout: 255 seconds]
tauntaun has quit [Quit: Ex-Chat]
<rproust> sgnb: thanks it links and compiles
<sgnb> rproust: maybe an easier way would be to "ocamlc -custom -make-runtime -o foo stubs.c" followed by "ocamlc -use-runtime foo raphael.ml"
<sgnb> s/-custom// in the first
<sgnb> I don't know... it still uses an intermediate file, but it doesn't use another command
<rproust> I'd have to check if it doesn't interfere w/ js_of_ocaml runtime, but I try to look into that
<sgnb> "ocamlc [...] raphael.ml" just wants to check that all your externals are defined
<sgnb> you can define them in a dll*.so or an executable runtime, but either way you don't use it since you are actually using the JS runtime
agarwal1975 has quit [Quit: agarwal1975]
<sgnb> but in retrospect, the dll*.so will be much smaller than the executable runtime, so if you want to install your stuff as a library for later reuse, it's probably better to go the dll*.so way
<rproust> ok
ttamttam has joined #ocaml
ttamttam has left #ocaml []
Amorphous has joined #ocaml
avsm has quit [Quit: Leaving.]
tauntaun has joined #ocaml