2015-07-17

<tennix> camlp4 has to be installed by system package manager as opam says
<struk|desk> eh without a mac hard to help you at this point...thats an error with core though right? not camlp4
<tennix> Ok, i uninstalled camlp4 from brew and removed ~/.opam and re-init opam
<struk|desk> *camlp4
<tennix> this time `Package camlp4 not found`
<tennix> and i also upgraded camlp4 and now can't install other libraries

2015-07-12

<struktured> or because camlp4 did something sneaky

2015-07-10

<Drup> still crappy with the camlp4 version of jsoo
<Maelan> I guess this kind of things can be achieved with a camlp4’s alternative syntax.

2015-07-09

<zoetus> it's kind of lame that we have to do that, especially if we don't know anything about writing camlp4 extensions
<flux> it's documented, but perhaps not very well, and it has some other issues, the most important being that the campl4 parser needs to be kept in sync with the language to allow all programs to be compiled - and sometimes when it lags a bit behind, it can prevent new programs from being compiled with camlp4 extensions
<flux> camlp4 is 'the old' (not very old) way of providing syntax extensions; from slight extensions to completely rewriting the language
<Maelan> Oh, I did not know about the camlp4 syntax.
<flux> I guess the OCaml camlp4-based scheme syntax is going to die along with camlp4 - not that I would have ever used it

2015-07-03

<whirm> Drup: I'll read about camlp4 then. I assume I'll have to modify the makefiles to tell eliomopt to use a different ocamlopt & co?
<Drup> (you need camlp4, though)

2015-06-30

<struktured> I suspect utop is sucking in camlp4 by default with ocaml 4.02.2 ..hm

2015-06-29

<Algebr> I can't seem to find a simple answer on how to turn on camlp4 in oasis.

2015-06-28

<Drup> adrien: the camlp4 effect

2015-06-26

<nullcat> ``parser'' is a keyword because of camlp4?

2015-06-25

<AltGr> flux, "how do I tell opam that camlp4 is installed, don't bother?" -> `opam install --fake`
<flux> how do I tell opam that camlp4 is installed, don't bother? it seems it has somehow picked it by itself earlier.. or maybe I didn't quite manually properly install it yet, but still I would like to know if that can be done :)
<flux> meh. camlp4 doesn't install because at some point it does cp -p and that network file system gives permission denied - though it seems to me it's not really modifying any permissions..

2015-06-17

<Algebr> so I did opam update and then opam upgrade and it wants to do a downgrade...which means what, there was a regression in camlp4?
<Algebr> why is this a downgrade? ↘ downgrade camlp4 4.02.1+2 to 4.02+6
<rgrinberg> j0sh: yeah there's no good solution while we're still in this camlp4 limbo b/c of type_conv :/
<j0sh> is there any way to use a camlp4 syntax extension alongside a ppx syntax extension in the same compile unit?
<fds> Regarding what you said about syntax extensions being syntactically correct with PPX, are there any well-known projects using camlp4 that would get bitten by that?
<fds> I was going to ask, because my only experience of camlp4 is with <<>> quoted expressions.
<flux> so as there were some big projects (Coq) depending on the old camlp4 and not very happy to rewrite the code, it was not short after the original camlp4 was forked into camlp5
<flux> so somewhere along the campl4 series it was decided that camlp4 would get a major overhaul
<flux> so if you add a new language feature to the compiler, you need matching support in camlp4
<fds> Noob question: What's the story with camlp4? It seems the new version hasn't really taken hold, but is there a replacement? Or is the general feeling that a tool like that shouldn't even exist? :-s
<flux> I wonder if not the right name for the OCaml that has modular implicits, multicore and flambda would be OCaml 5.0 instead of 4.xsomething. a chance to drop camlp4 as well maybe ;-)

2015-06-10

<octachron> What is the status of camlp4 in regards of the 4.02.2 version? Testing the rc version while avoiding all the package that depends on camlp4 seems ... impractical.

2015-06-08

<Tekk_> the openbsd ocaml package doesn't pull camlp4

2015-06-01

<dmbaturin> rgrinberg: Hhm, support for camlp4 but not PPX?

2015-05-27

<smondet> do you have any camlp4 extension loaded?
<Drup> get rid of camlp4

2015-05-25

<Drup> that's the syntax of the jsoo camlp4 extension :/
<companion_cube> flux: they have camlp4 if they want

2015-05-20

<companion_cube> gah, camlp4

2015-05-19

<reynir> ollehar1: regarding syntastic and [@@deriving], IIRC it uses camlp4 for its syntax checker by default. I recommend using the merlin checker instead

2015-05-18

<xificurC> seeing how some of the questions & mistakes are being repeated I was thinking of throwing together a small github page/wiki intended for newcomers. I think it would be nice to have in 1 place stuff like: installation, recommended starting material, general tips (e.g. avoid camlp4, use utop), recommended libraries to start with etc. Does this seem to you like a good idea?

2015-05-16

<nojb> but my suggestion is to forget about camlp4 ... it is on its way out
<nojb> ocamlfind ocamlc -syntax camlp4o -package camlp4 -c lexer.ml will do the trick
<ncthom91> dora-molly ocamlc -pp "camlp4o pa_extend.cmo" -I +camlp4 -c lexer.ml is what I'm trying
<reynir> oh, camlp4..
<nojb_> camlp4 syntax for constructing/deconstructing streams
<adrien> this might have been a camlp4 stuff that then got implemented directly inside Pervasives after camlp4 was split from the main tree

2015-05-14

<xificurC> noone is using camlp4 anymore though
<Drup> there is a camlp4 extension for that

2015-05-10

<reynir> it was a camlp4 + oasis rant
<rgrinberg> gaah at that big "camlp4" blob on your graph

2015-05-07

<Drup> 2) camlp4 screw up comment locations, badly
<apache2> that is the output of `strace -f make |& fgrep dllbigarray` in a directory with a project that uses camlp4
<apache2> I do have camlp4 installed in debian, apparently, I'll try getting rid of that and see if it helps
<apache2> camlp4 -v says 4.02.1 which is also my opam switch. which camlp4 points to my .opam/4.02.1/bin/camlp4
<smondet_> apache2: are you sure the camlp4 you are using is at the same version as the ocaml compiler?
<apache2> happens every time I try to compile something that uses camlp4. I've tried on two different linux install running different distributions now
<apache2> anyone got any advice for debugging problems like this: [13832.866728] camlp4[4657]: segfault at 41 ip 00002b8b42fb9bd0 sp 00007fffb90d4670 error 4 in dllbigarray.so[2b8b42fb7000+5000]
<Drup> osa1: ./configure --enable-camlp4
<nojb> yep, camlp4-extra
<nojb> try installing camlp4-extra (or something like that) with apt-get
<raboof> 'Package camlp4 is already installed (current version is 4.01.0).'
<nojb> opam install camlp4
<nojb> did you install camlp4 ?
<nojb> camlp4 is on its way out

2015-05-06

<xificurC> nojb: ah, the camlp4 extension, my bad
<flux> there are camlp4-based syntax extensions for regular expression 'match', but I guess since it's camlp4 it's no longer favored ;)

2015-05-04

<avsm> for some reason, there are two camlp4 packages in many distributions
<avsm> orbitz: install camlp4-extra i believe
<orbitz> Is there a fix for things that depends on camlp4 failing on ocaml 4.02.1? things like findlibe cannot find camlp4.extends

2015-05-02

<Drup> I think it's not using findlib by default and ocamlfind is retro-fitting findlib information when it sees camlp4 is there
<ilia> camlp4

2015-04-30

<flux> so to be clear I mean opam doing this: Processing 20/34: [batteries: make all] [camlp4: make all] [re: ocaml setup.ml] [ssl: ./configure]

2015-04-25

<rgrinberg> is to get rid of camlp4 asap rather than switch to anything

2015-04-24

<companion_cube> I'd have no objection to replace stdlib with Core in ocaml5 if: 1/ footprint was small 2/ no camlp4 3/ better doc
<Leonidas> now if core get's rid of camlp4… :)

2015-04-22

<struk|work> kmicinski: why are you adding camp4o w/o a camlp4 syntax extension?

2015-04-19

<Drup> (especially considering camlp4 is not compatible with ppx ...)
<Drup> you can't except all the camlp4 user to change their codebase overnight to use ppx :)

2015-04-18

<Drup> flux: if you give -lwt-debug to camlp4, it will enable the debug mode and improve backtraces
<Drup> it's just not enabled by default in the camlp4 syntax extension (it is in the ppx)

2015-04-13

<munga> yes yes ... no objections ... I'm using camlp4 at the moment. anything will be a better build time dependency.

2015-04-11

<Drup> you haven't given me compelling arguments that would make me prefer your solution with all it's camlp4 bloat over this one. ;)
<Drup> (also, camlp4, meh)

2015-04-10

<zoetus> anyone know how to send '-pa-ounit-lib foo' through to camlp4 using ocamlbuild?

2015-04-09

<djellemah> Hey all. I'm trying to get ocaml and friends installed on a gentoo box. Quite a story so far, I won't bore you with the details. Is there a way to tell ocamlfind about packages I've compiled myself? Currently it can't find camlp4. TIA.
<zoetus> my _tags file does not have anything about camlp4 in it

2015-04-06

<rgrinberg> cppo + optcomp + ppx + camlp4 + revised syntax
<rgrinberg> Drup: optcomp + ppx + camlp4 \o/
<rgrinberg> Drup: so for now we have to be in this camlp4 type conv limbo unfortunately
<smondet> Drup: it breaks for people who use the to_sexp functions :) (I do, but I would be happy to change my code when Cohttp gets rid of Camlp4)
<rgrinberg> Well more like camlp4 doesn't work with ppx
<rgrinberg> But ppx doesn't work with camlp4 :/

2015-04-05

<rgrinberg> Drup: constant time if you use camlp4 i bet ;)

2015-04-03

<rgrinberg> Drup: can't see any ppx, i can see a little camlp4 though
<rgrinberg> Drup: does ocsigen use camlp4?

2015-04-02

<nojb> cstruct has a camlp4 extension to define field getters/setters as well ...
<Drup> camlp4 is incompatible with most ppx, you can't do anything about it
<Drup> use lwt.ppx instead of the camlp4 syntax extension
<Leonidas> I wish it were updated to use ppx insteat of camlp4

2015-03-31

<dsheets> so now camlp4 and no xml trees... should be much faster

2015-03-26

<whitequark> camlp4 can go fucking burn so hard
<whitequark> and if I depend on it, I pull in camlp4

2015-03-24

<Drup> (not even mentioning the camlp4 aspect of jsoo code)
<seangrove> whitequark: I'll keep poking at it for now, but camlp4
<whitequark> ppx or camlp4?

2015-03-21

<companion_cube> I don't like camlp4 so the first is out for me, and ppx_test requires my code t be >= 4.02, so right now I tend to use qtest (tests in comments, pretty hackish)
<zoetus> (i mean camlp4-ish error, not "type error")
<zoetus> i thought that looked a lot like a camlp4-type error
<Drup> camlp4 doesn't recognise @@ ppx attributes
<Drup> I assure you, it's a camlp4 error message
<Drup> yeah, you have camlp4 ...
<Drup> do you have camlp4 loaded ?

2015-03-20

<tobiasBora> Leonidas: But I load camlp4. Every times camlp4 is present it's getting to be complicated ^^
<Leonidas> this problem was presented you by: camlp4.
<zoetus> i think it's coming from camlp4?
<zoetus> this seems to be an error that camlp4 is giving me
<companion_cube> ggole: well, a ppx (or camlp4 extension) can do it

2015-03-19

<Leonidas> I think it is useful, but if I had to chose between camlp4 and no-camlp4 it would be the latter almost always.
<Leonidas> xificurC: I use the syntax extension, but not the camlp4-one but rather the ppx-one

2015-03-18

<ia0> ok so I should look in camlp4
<companion_cube> it's a camlp4 extension for stream parsers

2015-03-17

<_obad_> companion_cube: re JST, does that mean they'll release a version of sexp that's camlp4-free?
<companion_cube> I think yminsky mentionned that JST was moving away from camlp4, too
<companion_cube> anyway, things like Coq will continue using camlp4
<companion_cube> I don't think it's dead yet; however ppx was introduced specifically to replace camlp4 for some usages
<zoetermeer> wait, so camlp4 is dying?
<apache2> is camlp4 a dying project or?

2015-03-15

<yminsky> Drup: What’s the FUD? That camlp4 introduces doc generation bugs? That the doc system doesn’t cope well with all module system features?
<Drup> yminsky: camlp4 add a lot of issues, yes
<yminsky> Drup: camlp4 I believe introduces some of the problems. Soon we’ll be rid of both camlp4 (for ppx) and packed modules (for module aliases), and a bunch of things will get simpler.
<Anarchos> and i have both camlp4 and camlp5

2015-03-12

<scythe-> i literally typed "opam install camlp4" three seconds before "ocamlfind query camlp4"
<tcpc> scythe-: did you check the versions? (maybe ocamlfind 1.X is installed as a dependency of camlp4 1.X' and ocamlfind 1.Y doesn't find camlp4 1.Y')
<scythe-> despite this ocamlfind inevitably insists that it cannot find camlp4
<scythe-> ocamlfind is installed as a dependency of camlp4

2015-03-11

<whitequark> adrien_znc: camlp4 does not use mmap
<whitequark> adrien_znc: i'd wager camlp4 would be free of bigarray bugs for now
<whitequark> try doing `which camlp4` and `echo CAML_LD_LIBRARY_PATH`
<apache2> whitequark: I'll try removing camlp4 and reinstalling
<whitequark> or system camlp4
<whitequark> apache2: most likely you are trying to use opam with camlp4 from a different switch
<apache2> [ 1125.114750] camlp4[4634]: segfault at 41 ip 00007f505b8b7bd0 sp 00007fff24a3f610 error 4 in dllbigarray.so[7f505b8b5000+5000]
<apache2> [ 764.398152] camlp4[1446]: segfault at 41 ip 00007f05c704ebd0 sp 00007fff52ad1290 error 4 in dllbigarray.so[7f05c704c000+5000]
<apache2> [ 661.647274] camlp4[1416]: segfault at 41 ip 00007fb0f3719bd0 sp 00007fff9d4cd080 error 4 in dllbigarray.so[7fb0f3717000+5000]

2015-03-10

<MetalWolf> Hi, I am having issues installing gsl in opam on a scientific linux 6 based server. It complains about camlp4 not being installed but it is. I have put the output here: http://pastebin.com/EZaxJFse can anyone please tell me what I'm missing? Opam was installed from the centos 6 repository
<MetalWolf> Hi, I am having issues installing gsl in opam on a scientific linux 6 based server. It complains about camlp4 not being installed but it is. I have put the output here: http://pastebin.com/EZaxJFse can anyone please tell me what I'm missing? Opam was installed from the centos 6 repository

2015-03-09

<xificurC> I'm getting an error on opam installing camlp4 - ./check-camlp4.sh: line 3: camlp4orf: command not found . Anyone knows what might I be doing wrong? I see an issue open on github with this but they are discussing homebrew, I'm on arch
<rgrinberg> well i remember with oasis 0.2 camlp4 wasn't really integrated so there was some black magic involved

2015-03-04

<companion_cube> I'd like an overlay without camlp4, but really, it's more emotional than rationnal

2015-03-02

<TheLemonMan> Leonidas, `opam install camlp4` doesn't seem to like my system ocaml too
<companion_cube> whitequark: I has trouble with camlp4+system, a long time ago
<whitequark> opam install camlp4
<magthe> whitequark: yupp, the error messages were not as helpful as with camlp4, so I gave up and switched to letting opam compile ocaml too
<magthe> the first complaint was when compiling camlp4 -- I was told to install it system wide, so after grabbing that from extra too I got a little further

2015-02-28

<Drup> if you build with core *and* camlp4, it will bring uninvited syntax extension that may not be compatible with other (namely, deriving), even if you don't use the core syntax extensions
<yminsky> Drop: So, what’s the concrete problem? Do you believe that if I build with ocamlfind against Core, that it will force you to build with camlp4?
<Drup> so, it forces you to use camlp4 even if you don't need it
<companion_cube> well, you have to install camlp4
<yminsky> Yeah, it is nice that you can mix and match. We build all of our libraries using camlp4, but you don’t have to use camlp4 yourself to use them.
<yminsky> camlp4 provided absolutely critical functionality. There were no alternatives.
<ggole> How did camlp4 ever get to the state its in? Vast, undocumented, and relied on are a bad combination.
<yminsky> We’re going to drop camlp4 like a hot rock.
<ousado> oh no.. since when are camlp4 and ocaml no longer in sync?

2015-02-27

<haesbaert> what is camlp4 exactly ? the language ?
<Drup> camlp4 is, let's say, falling out of grace
<Drup> (the first rule of #ocaml, "there is no camlp4")
<whitequark> like the rest of camlp4
<whitequark> there is still no camlp4
<whitequark> there is no camlp4
<Drup> there are no camlp4 developers
<companion_cube> it's annoying that camlp4 doesn't give a useful error message

2015-02-23

<whitequark> camlp4 is a disaster
<pippijn> camlp4 is/was an awesome piece of software
<pippijn> I think this article is unfair to camlp4
<pippijn> camlp4 had *vastly* better syntax error messages than ocamlc
<pippijn> Last but not the least, using camlp4 prevents OCaml compiler from printing useful suggestions in error messages like File "ifdef.ml", line 17: This '(' might be unmatched. Personally, I find that very annoying.
<Drup> _obad_: yes, that's why camlp4 will die slowly, legacy code :)
<_obad_> drup: well that's the thing. I have decided last year to freeze on lwt, sexplib and the camlp4 syntax extensions for the current project.
<_obad_> and camlp4 itself?

2015-02-22

<dmbaturin> What may cause "OCaml and preprocessor have incompatible versions" if versions of ocaml and camlp4 are actually the same?

2015-02-20

<Drup> so, ppx is *partially* implemented in camlp4
<whitequark> I think camlp4 actually has [@@@ attributes
<Drup> whitequark: if core is loaded, camlp4 is probably too

2015-02-17

<Drup> (the only major opposition to core for a server is camlp4 because :<)
<smondet> indeed cohttp without camlp4 would be great

2015-02-16

<bernardofpc> I (hope) that the new (=web) code can be compiled by eliom with all camlp4, but reference code built with -ppx

2015-02-15

<adrien> now camlp4 isn't built with ocamlbuild anymore
<adrien> ocamlbuild was used to build camlp4
<Drup> wasn't it used at some point to build camlp4 ?

2015-02-10

<ggole> That's camlp4 for you
<Leonidas> http://www.podval.org/~sds/ocaml-sucks.html states that camlp4 and the toplevel disagree on the validity of List.map [1;2;3] ~f:fun x -> x

2015-02-09

* chris2 hopes core runs without camlp4 soon
<Drup> but you should try to do your thing with extunix before trying to worry about removing camlp4 from it.
<Drup> it should be rather easy to make camlp4 optional

2015-02-06

<bernardofpc> but installing utop forces camlp4
<whitequark> bernardofpc: utop does not require camlp4 as of 1.17
<Drup> as I said, remove camlp4.
<bernardofpc> I hope utop's compilation works with camlp4+system
<bernardofpc> so I'd *really* like to disable camlp4 compilation for lwt
<bernardofpc> Drup: yeah, somehow camlp4 is "required" by lablgtk and utop
<bernardofpc> because lwt cannot compile with my camlp4+system
<Drup> remove camlp4
<bernardofpc> how can I tell it not to use cmalp4 if camlp4 is already installed for some reason ?
<Drup> camlp4*
<bernardofpc> (trying to install utop from opam, it requires camlp4)
<bernardofpc> does anyone know of a hack to disable camlp4 inside lwt ?

2015-02-03

<Algebr> I'm having an annoying time getting ocaml stuff up and running on archlinux. trying to install core via opam but I get the error that camlp4orf is not found. installing camlp4 via pacman or opam doesn't fix it either

2015-02-02

<ggole> Those turn the thread support and camlp4 on

2015-02-01

* ggole has fond memories of waiting for the camlp4 interface to print out

2015-01-29

<whitequark> in a nutshell, ppx_deriving plugins now works much like camlp4 used to
<whitequark> yminsky: any plans to get rid of camlp4 dependency?

2015-01-28

<blech___> ingsoc, that preprocessor does exist. Look at camlp4

2015-01-24

<Leonidas> justinfront: or you could just install caml 4.02.1 and camlp4 4.02.1 and it would just work.
<Drup> justinfront: camlp5 is the *ancestor* of camlp4 (yes, it's confusing)
<justinfront> so if camlp4 is dying why is there http://camlp5.gforge.inria.fr/
<Drup> or go and fetch camlp4
<Leonidas> camlp4 was separated out so it can be safely be dumped and deprecated :)
<justinfront> seems separating ocaml and camlp4 means that they are not unit tested together?
<justinfront> Justins-MacBook-Pro:camlp4
<ggole> Did you install camlp4?
<whitequark> my personal view is that m17n is not worse, and indeed probably better (as it reuses the parser) than camlp4, and camlp4 was found acceptable

2015-01-22

<adrien_znc> it only needs a couple hundred MBs of disk space if you disable camlp4
<blech_> I'm trying to compile with ocamlfind ocamlc with the bitstring, camlp4, and unix packages
<blech_> I'm having some trouble working with bitstring. At this point I'm trying to compile one of the example files from the official repo (I've previously installed bitstring and camlp4 through OPAM)

2015-01-21

<mcc> whitequark: i never fixed my ranlib problem, so i can write ocaml, but only as long as i don't need to use containers, camlp4, or anything that uses ranlib/ar in compiling itself D:
<ingsoc> so considering "ppx" or whatever is the new way of doing what camlp4 does. Is it wise to do what i did to get list comprehensions working. are list comprehensions not used as much in ocaml compared to other languages ?
<companion_cube> containers has no need for camlp4, indeed
<Drup> I don't think containers need camlp4.
<ingsoc> oh ok camlp4 is some kind of preprocessor ?
<def`> easy, so usually, you don't touch #camlp4…;; settings
<ingsoc> #camlp4o;; to load camlp4 (standard syntax)
<ingsoc> #camlp4r;; to load camlp4 (revised syntax)
<ingsoc> #camlp4r;; to load camlp4 (revised syntax)
<ingsoc> #camlp4o;; to load camlp4 (standard syntax)
<def`> (so "opam pin remove camlp4" to get back to normal setup, and then… maybe gnu ranlib is being shadowed?! try to find which ranlib binaries are on your system)
<def`> mcc: maybe pinning camlp4 to the version that was working? opam pin add camlp4 4.02.1+1
<companion_cube> bah, it's kind of really useful, and less ugly than camlp4

2015-01-20

<Denommus> hm, ocamlfind can't find camlp4

2015-01-17

<whitequark> opam install camlp4
<jneen> ok that still doesn't bring in camlp4 though
<jneen> dang it i always forget what's the magic things i have to do to get ocamlfind to find camlp4

2015-01-15

<tobiasBora> It's camlp4 for the moment ?
<MercurialAlchemi> (for camlp4)
<tobiasBora> *camlp4
<def`> tobiasBora: mixing camlp4 and ppx is not allowed, I think

2015-01-14

<whitequark> ppx code is usually much simpler than camlp4 code
<tobiasBora> Buy simple I mean that I don't wan't to parse the code like in camlp4
<tobiasBora> Because it's very interresting to be able to auto-create several functions from a single type (and camlp4 is just horrible and dirty)

2015-01-13

<j0sh> is it possible to specify multiple preprocessors in a single ocamlfind pass? eg, camlp4 and cppo ?
<MercurialAlchemi> Leonidas: does anybody like camlp4?
<def`> I hate camlp4… I am just thinking out loud :)
<Leonidas> you can get your 'where' if you like camlp4, there's an pa_ for that

2015-01-10

<Drup> badkins: camlp4 manual.
<Drup> yeah, there is a list compression camlp4 extension

2015-01-09

<whitequark> but using camlp4 is discouraged
<whitequark> there's camlp4, which allows you to do that, although there is a grammar conflict with ",", so it's not trivial

2015-01-05

<Drup> or the camlp4 syntax extension :D

2015-01-03

<mrvn> In ocaml that can be a problem. Sources can be generated from mly/mll (or other tools), need ppx or camlp4. The compiler might not be able to understand the depended on file.

2014-12-30

<whitequark> camlp5 is an old version of camlp4
<whitequark> please don't use camlp4 parsers.
<whitequark> so here's the thing, the OCaml tutorial recommends you use camlp4 parsers
<kido1412> hey, guys. I'm reading LLVM's OCaml example right now. http://llvm.org/docs/tutorial/OCamlLangImpl1.html I find the lex_comment is hard to understand, and lex_comment = parser | [< ' ('\n'); stream=lex >] -> stream | [< 'c; e=lex_comment >] -> e | [< >] -> [< >] I've read the camlp4 document: http://caml.inria.fr/pub/docs/manual-camlp4/manual003.html, it says 'The component pattern = expr applies the function denoted by expr to the

2014-12-28

<larhat> Drup: what's the syntax for literal objects in camlp4 version? Btw, I've made syntax extension for react.js to desrcibe virtual DOM. http://paste.in.ua/10217/#3 — here is what I use for object options
<Drup> larhat: camlp4 doesn't work with ppxs
<larhat> Is it possible to use both camlp4 and ppx extensions?

2014-12-22

<pippijn> camlp4 already has an ast dumper
<Drup> it's camlp4 based
<def`> yep, camlp4 was built for 4.02.0, while ocaml is 4.02.1
<def`> otherwise, you probably need to recompile camlp4

2014-12-21

<Drup> whitequark: camlp4 was built using ocamlbuild
<whitequark> are you ok with camlp4 too, eh?!
<whitequark> packages often hardcode paths to camlp4 as being under compiler library path
<whitequark> camlp4
<whitequark> I prefer to measure time *not* spent compiling camlp4
<whitequark> ew, camlp4
<gasche> whitequark: if you are in a benchmarking mood, an experiment I would find interesting is to measure the compilation time of camlp4 (or some other project that is slow to compile) using trunk and using the flambda branch (bootstrapped, of course)
<adrien> but back then there still was camlp4 to build

2014-12-20

<hugomg> jabroney: glad that worked. if it didn't then I'm a total camlp4 and mirage noob :P
<jabroney> New to OCaml. Trying to run mirage demos on OSX (yosemite). Running into issues with getting camlp4 install (ocaml = 4.02.1). Can someone point me in right direction (eg other irc channel, url, keywords to search)? Go to 4.00? Thx.

2014-12-19

<Drup> smondet: utop doesn't load camlp4 by default
<smondet> travisbrady: have you tried the same thing with the normal/vintage ocaml toplevel? I think utop loads camlp4, so when you #require "core" the syntax extensions get in use
<Drup> so that core should not load camlp4
<travisbrady> flux: thank you. So if I’d like to use ppx I need to find a way to use Core sans the camlp4 bits?
<flux> but you don't need the camlp4 syntax extension for using core
<flux> but in this case it has been configured that requiring core will also require the camlp4 syntax extension
<travisbrady> Many of my projects use between ~3-12 libraries, so the presence of camlp4 is likely
<travisbrady> Does that mean a project with a dep that uses camlp4 won’t work at all with ppx?
<rgrinberg> travisbrady: ppx isn't compatible with camlp4
<ygu> Does someone know about htcaml ? When I try to compile, I get: "While finding quotation "html" in a position of "expr": There is no quotation expander available. Camlp4: Uncaught exception: Not_found"

2014-12-18

<MercurialAlchemi> isn't the camlp4 genocide well underway?
<ygrek> hm, does camlp4 understand ppx attributes?

2014-12-16

<George___> camlp4 is installed, but not sexplib.syntax
<whitequark> George___: install camlp4 too

2014-12-15

<rgrinberg1> Drup: i wonder how long it would take you guys to purge the camlp4 lwt syntax from eliom/ocsigenserver :D
<Drup> except camlp4 is buggy and currently crash on ppx syntax
<Drup> you can't use ppx and camlp4 simultanously