flux 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!)
seafood has joined #ocaml
coucou747 has joined #ocaml
Associat0r has quit []
tomh has quit ["http://www.mibbit.com ajax IRC Client"]
bzzbzz has quit ["leaving"]
<Jeff_123> yay I fixed my unsigned integer library! It was just a filename conflict during compilation
Morphous_ has joined #ocaml
nuncanada has quit ["Leaving"]
Morphous has quit [Read error: 110 (Connection timed out)]
Ched- has quit [Read error: 110 (Connection timed out)]
Ched- has joined #ocaml
Jeff_123 has quit [Read error: 104 (Connection reset by peer)]
Jeff_123 has joined #ocaml
Jeff_124 has joined #ocaml
Jeff_123 has quit [Read error: 110 (Connection timed out)]
Jeff_124 has quit ["Leaving."]
Jeff_123 has joined #ocaml
coucou747 has quit ["bye ca veut dire tchao en anglais"]
flx has joined #ocaml
flux has quit [Read error: 104 (Connection reset by peer)]
Jeff_123 has quit [Read error: 54 (Connection reset by peer)]
tsuyoshi has quit ["Lost terminal"]
coucou747 has joined #ocaml
flx is now known as flux
Yoric[DT] has joined #ocaml
Snark has joined #ocaml
Jedai has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
Linktim has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
filp has joined #ocaml
asmanur has joined #ocaml
Jedai has quit [Read error: 113 (No route to host)]
jonas_e has joined #ocaml
Associat0r has joined #ocaml
munga_ has joined #ocaml
munga_ has quit [Client Quit]
jonas_e has quit [Remote closed the connection]
jonas_e has joined #ocaml
johnnowak has joined #ocaml
prince_ has joined #ocaml
hkBst has joined #ocaml
prince_ has quit [SendQ exceeded]
prince_ has joined #ocaml
LordMetroid has joined #ocaml
cpfr has joined #ocaml
<cpfr> howdy channel
Yoric[DT] has joined #ocaml
<cpfr> howdy Yoric[DT]
<Yoric[DT]> hi
<cpfr> can i ask why ocaml isnt finding a library i installed in site-libs
<cpfr> ocaml can't seem to find my lib
<Yoric[DT]> ocamlc ?
Linktim has joined #ocaml
seafood has quit []
guillem has joined #ocaml
<cpfr> no ocaml toplevel
<cpfr> like I got extlib
<cpfr> and am trying to load it with ocaml extLib.cma
<cpfr> and getting no results
<Yoric[DT]> No result or an error message ?
<Yoric[DT]> And do you have extLib.cmi, too ?
<cpfr> yep
<cpfr> and extLib.a
<cpfr> interesting i can still load it with findlib
<cpfr> or just being in that directory
<cpfr> or explicitly adding that path with -I
<cpfr> but not normally
<jynxzero> Perhaps strace will reveal some useful info about where ocaml is looking?
hordf has joined #ocaml
filp has quit [Read error: 110 (Connection timed out)]
seafood has joined #ocaml
<cpfr> hmm dont have that installed
<cpfr> is there anyway to update where it is lookking
seafood has quit [Client Quit]
<Yoric[DT]> mph
<Yoric[DT]> It's annoying not to be able to look-up modules and find out if functions exist at Camlp4-time.
Jedai has joined #ocaml
prince_ has quit [Client Quit]
Linktim_ has joined #ocaml
Linktim- has joined #ocaml
Linktim- has quit [Read error: 60 (Operation timed out)]
Linktim has quit [Read error: 110 (Connection timed out)]
flux has quit [Read error: 60 (Operation timed out)]
Linktim_ has quit [Read error: 110 (Connection timed out)]
flux has joined #ocaml
<Yoric[DT]> Does anyone use a 64bits processor around here?
* Yoric[DT] would need some help with benchmarking.
bluestorm has joined #ocaml
<Yoric[DT]> Another, unrelated, question.
<Yoric[DT]> Does anyone know if I'm the only one attempting to push monads (and now monad transformers) into compile-time code-rewriting?
<cpfr> oleg would know
<cpfr> i think metaocaml did things like that
<vixey> Yoric[DT]: what are you doing at compile time?
<Yoric[DT]> I replace "bind" with rewriting.
<Yoric[DT]> So, if I have let bind m k = k m
<Yoric[DT]> instead of calling bind, I have camlp4 replace bind (fun p -> e) with match m with p -> e
<Yoric[DT]> (that's the trivial case, of course)
<Yoric[DT]> Sorry, called for lunch.
<Yoric[DT]> Talk to you later.
helios has joined #ocaml
<vixey> I see, what's the purpose though?
<helios> bjr
<vixey> (and is this not exactly inlining?)
cpfr has left #ocaml []
helios has left #ocaml []
jonafan_ has joined #ocaml
ulfdoz has quit [clarke.freenode.net irc.freenode.net]
jonas_e has quit [clarke.freenode.net irc.freenode.net]
Morphous_ has quit [clarke.freenode.net irc.freenode.net]
Jedai has quit [clarke.freenode.net irc.freenode.net]
guillem has quit [clarke.freenode.net irc.freenode.net]
LordMetroid has quit [clarke.freenode.net irc.freenode.net]
Snrrrub has quit [clarke.freenode.net irc.freenode.net]
ppsmimou has quit [clarke.freenode.net irc.freenode.net]
jeremiah has quit [clarke.freenode.net irc.freenode.net]
ikatz has quit [clarke.freenode.net irc.freenode.net]
pattern has quit [clarke.freenode.net irc.freenode.net]
hordf has quit [clarke.freenode.net irc.freenode.net]
hkBst has quit [clarke.freenode.net irc.freenode.net]
ozzloy has quit [clarke.freenode.net irc.freenode.net]
Associat0r has quit [clarke.freenode.net irc.freenode.net]
asmanur has quit [clarke.freenode.net irc.freenode.net]
r0bby has quit [clarke.freenode.net irc.freenode.net]
det_ has quit [clarke.freenode.net irc.freenode.net]
\banlist has quit [clarke.freenode.net irc.freenode.net]
mbishop has quit [clarke.freenode.net irc.freenode.net]
rhar has quit [clarke.freenode.net irc.freenode.net]
petchema has quit [clarke.freenode.net irc.freenode.net]
munga has quit [clarke.freenode.net irc.freenode.net]
mattam has quit [clarke.freenode.net irc.freenode.net]
Naked has quit [clarke.freenode.net irc.freenode.net]
coucou747 has quit [clarke.freenode.net irc.freenode.net]
Ched- has quit [clarke.freenode.net irc.freenode.net]
gildor has quit [clarke.freenode.net irc.freenode.net]
gim has quit [clarke.freenode.net irc.freenode.net]
haelix has quit [clarke.freenode.net irc.freenode.net]
hcarty has quit [clarke.freenode.net irc.freenode.net]
Sparkles has quit [clarke.freenode.net irc.freenode.net]
vbmithr has quit [clarke.freenode.net irc.freenode.net]
l_a_m_ has quit [clarke.freenode.net irc.freenode.net]
bluestorm has quit [clarke.freenode.net irc.freenode.net]
xevz has quit [clarke.freenode.net irc.freenode.net]
svenl has quit [clarke.freenode.net irc.freenode.net]
cmeme has quit [clarke.freenode.net irc.freenode.net]
orbitz has quit [clarke.freenode.net irc.freenode.net]
flux has quit [clarke.freenode.net irc.freenode.net]
jlouis has quit [clarke.freenode.net irc.freenode.net]
shortc|desk has quit [clarke.freenode.net irc.freenode.net]
dobblego has quit [clarke.freenode.net irc.freenode.net]
bla has quit [clarke.freenode.net irc.freenode.net]
jynxzero has quit [clarke.freenode.net irc.freenode.net]
Smerdyakov has quit [clarke.freenode.net irc.freenode.net]
Oatschool has quit [clarke.freenode.net irc.freenode.net]
Ugarte has quit [clarke.freenode.net irc.freenode.net]
johnnowak has quit [clarke.freenode.net irc.freenode.net]
authentic has quit [clarke.freenode.net irc.freenode.net]
jonafan has quit [clarke.freenode.net irc.freenode.net]
Chile` has quit [clarke.freenode.net irc.freenode.net]
szell has quit [clarke.freenode.net irc.freenode.net]
ertai has quit [clarke.freenode.net irc.freenode.net]
mfp has quit [clarke.freenode.net irc.freenode.net]
thelema has quit [clarke.freenode.net irc.freenode.net]
vixey has quit [clarke.freenode.net irc.freenode.net]
smimou has quit [clarke.freenode.net irc.freenode.net]
acatout has quit [clarke.freenode.net irc.freenode.net]
jdev has quit [clarke.freenode.net irc.freenode.net]
ertai has joined #ocaml
Chile`_ has joined #ocaml
acatout_ has joined #ocaml
johnnowak has joined #ocaml
mfp has joined #ocaml
vixey has joined #ocaml
thelema has joined #ocaml
smimou has joined #ocaml
authentic has joined #ocaml
jonafan has joined #ocaml
szell has joined #ocaml
jdev has joined #ocaml
acatout has joined #ocaml
Chile` has joined #ocaml
hordf has joined #ocaml
hkBst has joined #ocaml
ozzloy has joined #ocaml
jdev has quit [Remote closed the connection]
^authentic has joined #ocaml
r0bby has joined #ocaml
det_ has joined #ocaml
\banlist has joined #ocaml
mbishop has joined #ocaml
rhar has joined #ocaml
petchema has joined #ocaml
munga has joined #ocaml
mattam has joined #ocaml
jynxzero has joined #ocaml
bla has joined #ocaml
Smerdyakov has joined #ocaml
Ugarte has joined #ocaml
Oatschool has joined #ocaml
Jedai has joined #ocaml
guillem has joined #ocaml
LordMetroid has joined #ocaml
Snrrrub has joined #ocaml
ppsmimou has joined #ocaml
jeremiah has joined #ocaml
ikatz has joined #ocaml
pattern has joined #ocaml
Chile` has quit [Read error: 104 (Connection reset by peer)]
jdev has joined #ocaml
asmanur has joined #ocaml
Associat0r has joined #ocaml
szell` has joined #ocaml
ulfdoz has joined #ocaml
Morphous_ has joined #ocaml
jonas_e has joined #ocaml
bluestorm has joined #ocaml
flux has joined #ocaml
coucou747 has joined #ocaml
Ched- has joined #ocaml
xevz has joined #ocaml
jlouis has joined #ocaml
gildor has joined #ocaml
shortc|desk has joined #ocaml
l_a_m_ has joined #ocaml
gim has joined #ocaml
Naked has joined #ocaml
hcarty has joined #ocaml
vbmithr has joined #ocaml
Sparkles has joined #ocaml
haelix has joined #ocaml
dobblego has joined #ocaml
svenl has joined #ocaml
orbitz has joined #ocaml
cmeme has joined #ocaml
<Yoric[DT]> vixey: it's probably exactly inlining.
<vixey> isn't there already a way to do it?
<vixey> (and what's the point?)
<Yoric[DT]> It's just somewhat-manual inlining, in addition to type constraints, in addition to the fact that inlining monad transformers is not completely trivial.
<vixey> oh what type constraints?
<Yoric[DT]> The point is a large gain of performance on my benchmark.
<vixey> oh cool
<flux> yoric[dt], how about doing it, say, in the compiler?
<Yoric[DT]> flux: I don't know how to code monad transformers inside the compiler...
<flux> or would that be too hard-coded and license-encumbered
<Yoric[DT]> I need some modularity.
<flux> oh, that too is a good reason :)
<Yoric[DT]> :)
acatout has quit [No route to host]
szell has quit [Connection timed out]
jonafan has quit [Connection timed out]
<vixey> a monad transformer stack is a monad though
<vixey> so where is the compilation?
ikatz has quit [clarke.freenode.net irc.freenode.net]
LordMetroid has quit [clarke.freenode.net irc.freenode.net]
Jedai has quit [clarke.freenode.net irc.freenode.net]
ppsmimou has quit [clarke.freenode.net irc.freenode.net]
pattern has quit [clarke.freenode.net irc.freenode.net]
Snrrrub has quit [clarke.freenode.net irc.freenode.net]
jeremiah has quit [clarke.freenode.net irc.freenode.net]
guillem has quit [clarke.freenode.net irc.freenode.net]
<Yoric[DT]> vixey: what do you mean?
Jedai has joined #ocaml
guillem has joined #ocaml
LordMetroid has joined #ocaml
Snrrrub has joined #ocaml
ppsmimou has joined #ocaml
jeremiah has joined #ocaml
ikatz has joined #ocaml
pattern has joined #ocaml
<vixey> I mean if you got monads to inline, wouldn't it also work for a transformer stack?
<vixey> or is there more inlining to be done
<Yoric[DT]> Well, at the moment, I have 4 functions.
<Yoric[DT]> return: Ast.expr -> Ast.expr
<Yoric[DT]> fail: Ast.expr -> Ast.expr
<Yoric[DT]> bind: Ast.expr -> Ast.patt -> Ast.expr -> Ast.expr
authentic has quit [Connection timed out]
^authentic is now known as authentic
<Yoric[DT]> phone
<Yoric[DT]> ok, back from phone
<Yoric[DT]> these three functions define the inline monad
<Yoric[DT]> And then I have my transformer function, which take these three arguments with these types and returns...
<Yoric[DT]> Well, I'm not completely sure what it should return, but for the moment, it creates a local module.
<vixey> this is great, I had no idea you could do these things with ocaml
<Yoric[DT]> pre-processing is fun:)
<vixey> I just wish I could have found ocaml earlier
LordMetroid has quit ["Leaving"]
<bluestorm> Yoric[DT]: the problem is that you can't ensure that your monad operations are well-typed
<Yoric[DT]> Indeed.
<bluestorm> from the little i've seen, MetaOCaml might allow one to do that
<Yoric[DT]> I think MetaOCaml could help me there.
<Yoric[DT]> :)
<bluestorm> (but i've never used it and have no idea, it's on my todo-list though :-' )
<flux> is it still being maintained?
<bluestorm> flux: i think so
<bluestorm> there was a rebirth some months ago and i think they offered a job position to maintain it
<flux> did someone take the job?-)
<Yoric[DT]> Oh, and I just had confirmation.
<Yoric[DT]> Oleg did the same thing 3 years ago...
<Yoric[DT]> mmhhhh....
<Yoric[DT]> No, actually not the exact same thing.
<bluestorm> are you speaking of the Gaussian Elimination paper ?
<Yoric[DT]> yep
<bluestorm> i looked at it recently and he actually doesn't stage monads
<Yoric[DT]> In that paper, he uses monads to stage stuff, rather than the opposite.
<bluestorm> they're used to ease CPS-transform wich is useful for staging
<bluestorm> lunch time
hordf has quit ["Bye"]
ikatz has quit [clarke.freenode.net irc.freenode.net]
guillem has quit [clarke.freenode.net irc.freenode.net]
ppsmimou has quit [clarke.freenode.net irc.freenode.net]
Jedai has quit [clarke.freenode.net irc.freenode.net]
jeremiah has quit [clarke.freenode.net irc.freenode.net]
Snrrrub has quit [clarke.freenode.net irc.freenode.net]
pattern has quit [clarke.freenode.net irc.freenode.net]
Jedai has joined #ocaml
guillem has joined #ocaml
Snrrrub has joined #ocaml
ppsmimou has joined #ocaml
jeremiah has joined #ocaml
ikatz has joined #ocaml
pattern has joined #ocaml
seafood has joined #ocaml
guillem has quit [Remote closed the connection]
guillem has joined #ocaml
johnnowak has quit []
Linktim has joined #ocaml
vixey has quit ["* I'm too lame to read BitchX.doc *"]
Linktim_ has joined #ocaml
vixey has joined #ocaml
Linktim- has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
acatout_ is now known as acatout
Linktim_ has quit [Read error: 110 (Connection timed out)]
Linktim_ has joined #ocaml
RobertFischer has joined #ocaml
seafood has quit []
Linktim- has quit [Read error: 110 (Connection timed out)]
Linktim_ has quit [Read error: 110 (Connection timed out)]
struktured has joined #ocaml
tsuyoshi has joined #ocaml
<tsuyoshi> can you compile bytecode programs on linux and run them on windows?
yziquel has joined #ocaml
yziquel has quit [SendQ exceeded]
yziquel has joined #ocaml
<RobertFischer> tsuyoshi: Theoretically, yes. Although I've never tried it
<tsuyoshi> I'm working on getting a cross compiler working and just wondering if I should bother with the bytecode compiler at all
<tsuyoshi> I guess the linking step is different.. the final product is supposed to actually be an executable, right?
<bluestorm> hm
<bluestorm> bytecode are not
<bluestorm> (only if you use -custom, wich is probably not portable)
<yziquel> Quick question: is it possible to declare an enumerated type (type t = Alpha | Beta, for instance) in some module A, and do some stuff in module B so that you can refer to B.Alpha instead of A.Alpha?
<tsuyoshi> put "include A" in B
<yziquel> tsuyoshi: thanks a lot...
Associat0r has quit []
<jynxzero> yziquel: If you don't want everything from A in B you can also do "type t = A.t = Alpha | Beta" in B.
<jynxzero> Though it's a bit of a PITA IMHO coz every time you modify T in A you need to make the same change in B.
<tsuyoshi> oh I didn't know about that
LordMetroid has joined #ocaml
vixey has quit [Read error: 113 (No route to host)]
Jeff_123 has joined #ocaml
RobertFischer has quit []
RobertFischer has joined #ocaml
tomh has joined #ocaml
authentic has quit [Read error: 110 (Connection timed out)]
LordMetroid has quit ["Leaving"]
guillem has quit [Remote closed the connection]
authentic has joined #ocaml
postalchris has joined #ocaml
<postalchris> Is here a way to test if a command foo is in the system path, short of "try Sys.command foo; true with _ -> false"?
<flux> search the path yourself?
johnnowak has joined #ocaml
jonas_e has quit [No route to host]
<postalchris> flux: I meant an easy way...
<postalchris> Also, platform-neutral would be good
<tsuyoshi> autoconf can do it
<postalchris> tsuyoshi: I need a sanity-check at runtime...
<tsuyoshi> searching the path is the only way then
<tsuyoshi> not really the hardest thing in the world to do...
<postalchris> tsuyoshi: agreed...
jonafan_ is now known as jonafan
<postalchris> Well, now... is there a utility for working with Windows vs. Unix-style PATHs?
<flux> there's module Filename
Ched- has quit [Remote closed the connection]
Ched- has joined #ocaml
<postalchris> flux: doesn't handle ':' vs. ';'
Ched- has left #ocaml []
<RobertFischer> postalchris: Sounds like a simple but nifty utility you could put up on OcamlForge.
tsuyoshi has quit ["Lost terminal"]
<flux> postalchris, you could use Sys.os_type and handle it yourself
<postalchris> Hm. Unix filenames can have ':' in them...
<flux> yes, not very pretty, but doable
<postalchris> This is getting complicated, fast.
<flux> I wonder if that's incompatible with PATHs then
<postalchris> flux: No, filenames can have ':', but their presence in PATH confuses the shell...
<postalchris> So I guess it can confuse me too...
<flux> zsh apparently can handle it, sortof
<flux> almost :)
<flux> path=(foo:plap $path) appears to work
<flux> but launching zsh then will mess it up; obviously it uses PATH for that purpose
<flux> I think it's a great idea that file names can contain evreything but /, but it hasn't been pulled through all the way :)
vixey has joined #ocaml
<postalchris> Hm, "does the current user have execute permissions on file foo" isn't such an easy matter either.
<postalchris> Sys.command "test -x foo" may be the easy way out
bluestorm has quit [Remote closed the connection]
<postalchris> (Except that doesn't work?)
bluestorm has joined #ocaml
bluestorm has quit [Remote closed the connection]
<postalchris> Here's the ugly version, in case anyone's interested: http://nopaste.ch/en/fefc2335fe6e1f6.html
<Jeff_123> looks pretty to me!
<flux> postalchris, don't do that.
<flux> pass the filename via environment
<flux> so it becomes Sys.command "test -x \"$FOO\""
<flux> this way you can avoid Bad Filenames
<flux> like "foo/bar/; rm -rf ~"
<flux> actually
<flux> there's Filename.quote also. I suppose it should work.
Ched- has joined #ocaml
<postalchris> flux: Good point
bluestorm has joined #ocaml
<flux> postalchris, btw, isn't using "test" pointless in that it only works in unix?
<flux> how about Unix.access filename [Unix.X_OK]
<flux> (and handling exceptions; not a very pretty interface in my opinion)
<flux> who knows, maybe that works in windows :)
<flux> "does the filename end with .exe .com .bat etc"
<flux> (my point was: using access should be no worse than using Sys.command "test"
Ched- has quit [Remote closed the connection]
<postalchris> Oh, I missed that function. !
<postalchris> That's exactly what I need. It should work on Windows too.
<postalchris> Module .exe, etc
<postalchris> s/Module/modulo/
Jedai has quit [Read error: 113 (No route to host)]
Ched- has joined #ocaml
Ched- has quit [Read error: 60 (Operation timed out)]
Ched- has joined #ocaml
<gildor> postalchris: there is ocaml-fileutils
<gildor> that let you handle win32/unix/default path and also do some test (Is_dir, Exists, Is_file...)
<postalchris> gildor: Perfect!
<flux> the deal keeps on getting better ;)
<postalchris> I am trying to minimize dependencies on external libraries, though... :-(
<flux> why?
<postalchris> Hm, godi-ocaml-fileutils tries to install in /usr/local and not GODI_DIR...
<postalchris> flux: Preparing for a release, want untar-config-make to go as smoothly as possible...
<flux> yeah, there is that..
<flux> I woudln't mind if there was a tool to package a program so that chosen dependencies would go in also
<postalchris> Well.. godi.
<flux> but I heard there are some people that don't run godi!
<flux> actually godi could enable that
<flux> retrieving sources and building a self-contained mini-godi perhaps :)
<flux> hey, that would be an interesting project for someone ;)
<flux> you could package all the way up to the compiler also.. think, easy distribution to people who know nothing of ocaml!
<flux> it would be one big tarball though..
<postalchris> :-D
<gildor> postalchris: you can embed the tarball in ext/ and provide a way to begin building ocaml-fileutils
<gildor> from that directory in you source
<gildor> and you just add the tarball in version you distribute
<gildor> i.e. your source doesn't contains it
<gildor> contain
Chile`_ is now known as Chile`
<postalchris> gildor: That's some software engineering kung fu you've got there...
marmotine has joined #ocaml
guillem has joined #ocaml
Axioplase has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
<flux> can someone explain me how to make use of type + 'a?
<flux> does it mean using classes or polymorphic variants?
<mfp> flux: it's used to indicate that the type is covariant with regard to 'a
nuncanada has joined #ocaml
<mfp> flux: e.g. module A : sig type +'a t val make : 'a -> 'a t end = struct type 'a t = 'a list let make x = [x] end;;
<mfp> let b : [`A] A.t = A.make `A;;
<mfp> # (b :> [`A | `B] A.t);;
<mfp> - : [ `A | `B ] A.t = <abstr>
<flux> hmm.. so 'a list is covariant with regard to 'a also?
<flux> but I suppose mutable types cannot be covariant?
<flux> Queue.t doesn't appear to have +
Associat0r has joined #ocaml
<mfp> flux: 'a list is covariant because the compiler knows that it's type 'a list = Nil | :: of 'a * 'a list
<mfp> if it were abstract, +'a would have been required
<mfp> ref is invariant
<mfp> roughly, something you read from is covariant; something you write to is contravariant
<mfp> when you do both, it's invariant
Jedai has joined #ocaml
jlouis has quit ["Leaving"]
<Yoric[DT]> (unlike Java, where some things are weirdo-variant)
<gildor> postalchris: nope, this is really simple
<gildor> postalchris: you just have to untar/gunzip the tarball and include the *.ml file in your own build
<gildor> it just add some more file to build
<gildor> using ocamlbuild it means just adding directories to look for sources
jlouis has joined #ocaml
<flux> mfp, thank you, that clears things up
<flux> I was wondering why it didn't appear in actual struct part of the modules..
struktured has quit [Read error: 110 (Connection timed out)]
Jeff_123 has quit [Read error: 104 (Connection reset by peer)]
pango has joined #ocaml
<postalchris> It seems there's a conflict in GODI between using Str and using godi-inifiles... The versions of PCRE don't agree? Is this a FAQ?
struktured has joined #ocaml
yziquel has quit ["Leaving"]
struktured has quit [Read error: 110 (Connection timed out)]
RobertFischer has quit []
coucou747 has quit [Read error: 113 (No route to host)]
nuncanada has quit ["Leaving"]
bluestorm has joined #ocaml
johnnowak has quit []
Axioplas1 has joined #ocaml
Axioplase has quit [Nick collision from services.]
Axioplase has joined #ocaml
Axioplase has quit [Nick collision from services.]
Axioplas1 is now known as Axioplase
yallop has joined #ocaml
Axioplas1 has joined #ocaml
Axioplas1 has quit [Client Quit]
<yallop> I'm looking for help with using a custom lexer in Camlp4
<yallop> In particular, I want to use a different lexer for code, not for quotations
<yallop> has anyone done this?
* Yoric[DT] hasn't tried.
<Yoric[DT]> Hi, btw, Patterns 0.4 looks great.
<yallop> thanks!
<Yoric[DT]> I haven't found the time to adapt our code to use Patterns 0.4 instead of our custom stuff for the paper we're currently working on, but that will probably happen before we release anything.
<Yoric[DT]> A bit of documentation for writing new extensions would be appreciated, though.
<bluestorm> yallop:
<bluestorm> talking of patterns, i was thinking
<bluestorm> could you not include the camlp4 AST and do the traverse.ml generation at compile time ?
<bluestorm> i think it would actually be more informative and shorter than distributing the mechanically generated code
<yallop> ah, right
<yallop> that's a good idea
<yallop> Yoric: I'll put some documentation up soon
<yallop> at least, in the next couple of weeks or so
<yallop> if there's anything particular I can help with in the meantime, please let me know
<yallop> incidentally, I've also wondered whether the polymorphic-variants-as-effects-witness idea could be pulled off
<yallop> being able to extend the types of values in that way could be useful for other things as well
<yallop> e.g. possibly for registering some kind of type classes
<bluestorm> Yoric[DT]: i'm not sure patterns would be useful for the exception-pattern parts i've seen
<Yoric[DT]> yallop: that was my second idea :)
<Yoric[DT]> bluestorm: I'm not sure it would be necessary, but it seems to me that it would be interesting for the sake of uniformization.
<bluestorm> from what i understand, the main use is when you need to compute some expressions inside the pattern branching, and it provides no particular facility for pure pattern-to-pattern transformation
<Yoric[DT]> yallop: I've been toying with this kind of ideas for type classes for some time.
<Yoric[DT]> For the moment, I can't think of any better way than Camlp4-style module registration.
<Yoric[DT]> But this would be rather unusable without a main entry point.
asmanur has quit [Remote closed the connection]
bluestorm has quit ["Konversation terminated!"]
Snark has quit ["Ex-Chat"]
postalchris has quit ["Leaving."]
postalchris has joined #ocaml
palomer has joined #ocaml
<palomer> http://ocaml.pastebin.com/m3c8df86a <--does anyone have a clue why the code fails?
<palomer> (it's 12 lines, fairly simple)
dobblego has quit ["Leaving"]
<palomer> the way I see it, Pcre.exec should throw an exception
Jedai has quit [Read error: 113 (No route to host)]
<palomer> thelema, you around?
dobblego has joined #ocaml
<postalchris> Is there a character class for whitespace in Str?
gaja has joined #ocaml
Jedai has joined #ocaml
Axioplase has quit ["leaving"]
hkBst has quit ["Konversation terminated!"]
guillem has quit [Remote closed the connection]
RobertFischer has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
RobertFischer has quit []
arquebus has joined #ocaml
arquebus has left #ocaml []
RobertFischer has joined #ocaml
coucou747 has joined #ocaml