2016-07-07

<tinamanea> in camlp4, when extending a grammer with rules, is there any way to tell which rule is trying to be executed? I can only put prints in the action part of the rule, and that is useless when the rule fails to match

2016-07-06

<lostman> unfortunately there are some packages that still use camlp4...
<lostman> I tried compiling camlp4 with 4.02.3+32bit on mac os and I'm getting this: "Error: Cannot find file dynlink.cmxa". Couldn't find solutions to this problem. Any ideas?

2016-07-04

<struk|desk> although you probably only need one of camlp4 and type_conv, can't remember which one implements sexplib.syntax
<struk|desk> opam install camlp4 type_conv sexplib aws then ?
<struk|desk> so it won't force type_conv or camlp4 upon you by default
<struk|desk> bruce_r: try something like opam reinstall type_conv sexplib ... or opam reinstall camlp4 sexplib

2016-07-02

<gasche> in your example, Camlp4 gives the right error message :-)

2016-07-01

<gasche> e.g. "version" will be on "version" exactly (exactly like, say, Camlp4 parsers have been able to do for years)
<gasche> unfortunately it relies on a camlp4 extension, which is going out of fashion these days

2016-06-30

<Drup> it's not ppx that was the issue, it's migrating from camlp4 to ppx
<StrykerKKD> Error: While finding quotation "of_sexp" in a position of "expr": There is no quotation expander available. Camlp4: Uncaught exception: Not_found

2016-06-28

<rgrinberg> bruce_r: the source of it is an old way to extend the language called camlp4. The specific plugin here is type_conv

2016-06-24

<Denommus> and I just made a camlp4 project to be sure it would work!

2016-06-23

<Denommus> I was trying to install eliom with my system installation, but I'm getting - camlp4<=4.02+6 is not available because your system doesn't comply with !preinstalled & ocaml-version >= "4.02" & ocaml-version < "4.03". - js_of_ocaml<2.0 is not available because your system doesn't comply with ocaml-version <= "4.01.0".
<Kakadu> something camlp4-related........

2016-06-22

<SenseAmidMadness> mfp: Interesting: the problem only seems to occur with the PPX syntax. I've tried @s{'foo'] with old Camlp4 syntax and it works!

2016-06-21

<mort___> ah! no worries, `opam install camlp4` has woken up :)
<mort___> hi— is there a problem with wherever camlp4 source is hosted?
<Drup> spoc relies quite heavily on a camlp4 syntax extension, you won't be able to use it with reason

2016-06-20

<regnat[m]> pmapmahoney (IRC) I already had some problems with nix & camlp4. It looks like most tools hardcode the fact that it is installed on the same place as caml
<octachron> pmahoney, #require "async" should be fine, and as far as I know #require "camlp4" should work if camlp4 is correctly installed
<pmahoney> both #require "calmp4";; and #camlp4o;; in utop give the same 'Error: Reference to undefined global `Camlp4'
<octachron> pmahoney, naive question: is camlp4 installed?
<pmahoney> trying to use nixpkgs on OSX to run ocaml + utop + async but i'm getting 'Error: Reference to undefined global `Camlp4' https://gist.github.com/pmahoney/11fa855a425462d820fd1754164450b9

2016-06-16

<rgrinberg> seangrove: yes, only the newest version is camlp4 free
<seangrove> rgrinberg: Opium doesn't need camlp4 any more, right? Getting this error trying to install https://gist.github.com/sgrove/f8a386f0d0595be2ce3cb30c538afb5b

2016-06-08

<tormen> Error: Camlp4: Uncaught exception: End_of_file
<def`> Yes. Camlp4 is no longer part of the ecosystem, afaict. Only for legacy stuff.
<rand__> ah - I guess it is general policy that camlp4 is dying?
<def`> sorry =), I mixed the part about 4.03, ppxs and camlp4... No, there is even less support (less hardcoded extensions)
<rand__> works with camlp4??
<rand__> Drup: Nop, I'll be using tyxml from now on so will avoid any camlp4 - have just been on a mission to begin switching everything else to ppx, and I know that the 4.00 version has ppx
<Drup> rand__: you were using the tyxml camlp4 extension ?
<rand__> Cool, sounds good - will be nice to be able to throw camlp4 dependency in more of my code

2016-05-31

* gildor going back to try to remove camlp4 dependency from oasis

2016-05-28

<flux> it depends on camlp4 so I guess it uses some language extensions not converted yet to ppx
<octachron> bronsen, Core has recently switched to ppx based extension, so all examples using camlp4 in RWO need to be updated

2016-05-26

<Drup> ulex uses camlp4, which is not very advisable

2016-05-24

<engil> Drup: might be related to this: error(pkg_camlp4) = "reason is incompatible with camlp4"
<engil> Drup: when I tried to use the reason parser, when using the reason package when compiling, it complained that reason was not compatible with camlp4
<engil> reason won't compile with some camlp4 bits
<Drup> translating from camlP4 to ppx ? What for ?
<engil> Drup: did that, fought a little bit with translating from camlp4 to ppx, haven't used jsoo in ages

2016-05-22

<seangrove> Could be another file with some leftover camlp4
<seangrove> Enjolras_: Yeah, I wonder if there's some camlp4 reference somewhere around
<seangrove> Enjolras_: Not 100%, no. But refmt works now, whereas it was breaking earlier, so I assume there's no camlp4 left
<Enjolras_> seangrove: maybe remove camlp4 extensions too ?
<seangrove> Is try%lwt a straight replacement? Would be great to get camlp4 out of this project
<Algebr> seangrove: its a syntax extension via camlp4
<Tatsh> what is camlp4?
<Algebr> camlp4 error

2016-05-18

<Drup> well, you could have the new syntax extension without the camlp4 overhead
<Drup> (via camlp4)
<octachron> orbifx: I would say that the revised syntax is only relevant for writing camlp4 extensions

2016-05-17

<dsheets> jasiek: need ocaml-camlp4, too
<dsheets> jasiek: you're build a quite old version of core. how did you install ocaml? you are missing camlp4.

2016-05-16

<hannes> flux: I skimmed over the merlin README on GitHub and couldn't find the obvious solution (it still talks about camlp4 thingies)...

2016-05-12

<hannes> maker: ah, the build of x509 currently uses oasis in dynamic mode which requires oasis at build time, which depends on camlp4
<hannes> maker: where is camlp4 needed? which ugly hacks?
<maker> so it's not possible to compile camlp4 with ≤ 512MB of ram

2016-05-06

<maker> they don't use weird language extensions like camlp4 do they?

2016-05-04

<zaquest> now i hope that other `with` things (like `with type <sometype> = <othertype>` thing in functors) arent just camlp4 syntax too :D
<octachron> you can either use janestreet camlp4 extensions, which are used in RWO, or the ppx ones but not both: #camlp4o + #require "ppx_jane" is an error
<zaquest> there were problems with camlp4 though, i had to install it from the system's repository because when i installed it with opam it lacked some binaries camlp4o.opt iirc and because of that some other packages failed to build
<zozozo> zaquest: I think the sintax "type foo = ... with sexp" is a camlp4 syntax

2016-05-03

<gasche> given Jérémie's (understandable) unwillingness to pour efforts into camlp4 maintenance, I would agree that moving away is a reasonable choice
<whitequark> more precisely, i was speaking about the more trivial cases, projects that were never heavy users of camlp4 in first place.
<whitequark> many packages that used camlp4 just for #ifdef are now using cppo
<whitequark> transitive dependencies of utop no longer include camlp4
<whitequark> well, I am entitled to my opinion. camlp4 is bitrotting, and even more so, it has mostly bitrotted
<whitequark> and this only really helps ancient code that wasn't updated to not use camlp4 yet
<_y> so is camlp4 officially discontinued?
<whitequark> camlp4 is a living nightmare
<_y> whitequark, because camlp4 parser has not be updated to newer versions of ocaml?
<whitequark> _y: it effectively is, you can't use any new features with camlp4
<mfp> camlp4 seemed easy to port BUT I haven't really tested the package yet
<whitequark> maybe because I had an especially acute episode of camlp4 hate
<whitequark> mfp: btw have you seen how I ported camlp4 to opam-cross-android?
<mfp> whitequark: do you accept PRs for the opam-cross-windows repository? I've ported a number of packages (atd, batteries, camlp4, cmdliner, cryptokit, csv, extlib, pcre, react, sqlite3, text so far, will tackle curl, ssl and lwt soon)

2016-04-29

<companion_cube> the camlp4 parser was the nice part, the terrible code is before
<hcarty> And the Jane St camlp4 syntaxes are all, as far as I know, locked to pre-4.03.0 versions of OCaml
<Algebr> I guess because conduit -> type_conv -> camlp4
<hcarty> Apparently conduit still needs camlp4 stuff, or opam thinks that's the case

2016-04-27

<hcarty> rgrinberg: Thanks - the upstream library changes from camlp4 to ppx unfortunately caused an opium-using project to break just as I was convincing a group of colleagues to try it out

2016-04-26

<rgrinberg> could also be the preprocessor that comes with camlp4 as well
<companion_cube> and all the camlp4, data-notation and ocamlify and ocamlmod
<companion_cube> oh wow, a full parser in camlp4

2016-04-10

<struk|lap> asghar: it has campl4 has option dependency. so try opam install camlp4 sexplib

2016-04-03

<Algebr`> be aware the bitstring uses a camlp4 syntax extension, aka its using some stuff that isn't part of the ocaml grammar proper

2016-04-02

<Algebr`> dafuk, that's some kind of camlp4 issue i think.
<Algebr`> depopts: camlp4 for pgocaml, it seems you didn't have camlp4 installed when you install pgocaml

2016-03-29

<ygrek> downgrading camlp4 works
<ygrek> hcarty, "camlp4" {= "4.02+7"} (* lacks "camlp4.quotations.o" *)

2016-03-26

<companion_cube> wtf, cohttp depends on camlp4 again?!

2016-03-16

<destrius> camlp4, causing problems even when you don't use it anymore
<Kakadu> don't use camlp4
<destrius> i believe the problem was me loading camlp4 in my .ocamlinit

2016-03-14

<dwwoelfel> Is there a way to tell what might be adding camlp4?
<Drup> sounds like you have one configure with the ppx and the other with the camlp4

2016-03-13

<seangrove> RWO seems to use camlp4
<seangrove> Hrm, any quick examples of de/serializing custom types with Sexplib without camlp4?
<seangrove> whitequark: Meaning I can use sexplib without camlp4? Is there a tutorial for that somewhere?
<Drup> seangrove: .syntax implies camlp4
<seangrove> I can't tell, does *.syntax imply camlp4 or ppx?
<seangrove> Does the sexplib require camlp4?
<whitequark> alternatively, but camlp4 into the dumpster fire where it belongs

2016-03-10

<mort___> (i know EXT sexplib.syntax works for the camlp4 extension)

2016-03-08

<seangrove> aantron: Nah, want to avoid camlp4
<aantron> seangrove: if camlp4 is acceptable, there is that already in tyxml
<aantron> im not sure if there is any "good" way to do it now, except to get an untyped tree using camlp4
<seangrove> Also, will tyxml work with Mirage right now without camlp4?

2016-03-07

<aantron> "access C structures via a camlp4 extension" <--
<orbifx> How can I get cstructs ppx? Opam search only shows cstructs camlp4 extension

2016-03-04

* Kakadu is trying to rewrite jsoo toplevel from Camlp4-based syntax extension to new PPX one and also to add some ocamlbuild instead of Makefile

2016-03-03

<flux> well, ppx syntax extending is much more limited than camlp4 was, but more well-structured as well

2016-03-01

<Drup> seangrov`: you *can* remove camlp4 by adding something -tags "-syntax(camlp4o)"
<Drup> seangrov`: about camlp4 .... report it
<Algebr> what, mirage still uses camlp4?
<Kakadu> andrejbauer: Are you asking how to switch from camlp4 based sexplib to ppx-based one?
<andrejbauer> Does sexplib still require camlp4 or is there a ppx-based version of it?

2016-02-29

<edwin> (was trying to build camlp4 from trunk instead of 4.03 branch)
<edwin> and yeah camlp4 broke, but opam pin fixed that

2016-02-27

<Drup> Oh, this is using the camlp4 lwt syntax extension

2016-02-26

<aantron> i was just surprised to discover late last night that the ppx code is longer than the camlp4 code

2016-02-25

<Drup> camlp4 does a collection of weird things to the OCaml grammar
<Nazral> but it's weird though, it was compiling properly with camlp4
<Nazral> I tried the camlp4-to-ppx utility too
<Drup> Nazral: you should use the ppx, not the camlp4 extension.

2016-02-24

<Drup> j0sh: camlp4 ;)

2016-02-23

<Drup> Don't look at camlp4

2016-02-19

<octachron> camlp4 is far more complex and documentation has always been a problem
<octachron> orbifx, sexplib.syntax became pa_sexp_conv which is the camlp4 version of ppx_sexp_conv
<Kakadu> camlp4*
<Kakadu> Does anybody know why core_kernel requires camlp4?

2016-02-18

<nullcatxxx_> i need to camlp4 to preprocess other files, but not for a specific library
<nullcatxxx_> anyone knows how to disable camlp4 preprocessing when building a library using oasis

2016-02-17

<Drup> seangrove: it's not camlp4, it's ppx, so no
<seangrove> Drup: And that's because it's camlp4?

2016-02-15

<ggole> camlp4 parses code differently from OCaml
<Algebr2> I don't know anything about camlp4 besides the linking -syntax flag.
<infinity0> from camlp4 i think

2016-02-13

<struk|desk> teknozulu: ppx or camlp4 generates bindings to functions like that, typically, with functors

2016-02-12

<sspi> edwin: it fails on camlp4 for me
<Drup> that's for the camlp4 version only

2016-02-11

<Drup> The rest is a kind of inherited from the camlp4 extension, it's a list that associate some tags to the corresponding tyxml types/values
<Drup> but 1) it doesn't parse html 2) It's camlp4 3) It sucks
<Drup> we have a camlp4 extension, in fact

2016-02-09

<infinity0> it's going through camlp4 first because i'm using sexplib

2016-02-08

<Drup> except we still keep binary compat between stuff done with camlp4 and the rest :p
<flux> but I do like that I'm able to pick some old piece of software and it will just comple. mostly except for camlp4...

2016-02-07

<Drup> .syntax is camlp4, yes
<aantron> should be able to drop the .syntax one, that should be camlp4... try it
<yminsky> Bin_prot is the actual library. Pa_bin_prot is the old style (camlp4-based) syntax extension. Ppx_bin_prot is the newer ppx based syntax extension.
<aantron> yeah, this is due to the ongoing transition from camlp4 (packages often named pa_*) to ppx (packages often names ppx_*)
<yminsky> Once it's out, the new version will mostly use Core_kernel (instead of Core, hence more portable), everything should build cleanly and we should be able to keep it up to date pretty easily. This shouldn't be too hard, but we also need to move it to PPX, now that the world has largely moved on from camlp4.
<seangrov`> I'm curious about the ppx syntax as well, trying to avoid camlp4 (since I don't know it, it adds more flags, and seems to be on the way out)
<aantron> and if you need to print JS values, see module Firebug. i dont know how it looks with ppx, but in the older camlp4 syntax, it was Firebug.console##log(..anything..)

2016-02-05

<mrm> Drup: I've seen it and tested it. So far it's not even as good as the one from Camlp4 (which sucks).
<Drup> well, for camlp4, nothing works
<mrm> Yes. My main problem with Camlp4 is that it's impossible to create syntax extensions that would play well with the text editor.
<mrm> Simply quoting languages is possible with Camlp4 as well.
<mrm> I can't do this efficiently with Camlp4, because of the various limitations of this tool (caused by design issues).
<mrm> Camlp4 is an abomination, by the way. Saying this as a very experienced user.
<mrm> Drup: Nope -- a genuine successor that plays with tooling much better than Camlp4 does, by means of tight integration with the IDE/editor backend.
<mrm> aantron: I don't think this can be done with ppx, and also hope that a genuine successor to Camlp4 will soon appear.
<aantron> wonder if there is a ppx version, given that ocaml is arcing away from camlp4..

2016-02-03

<seangrove> I'm not sure on what ppx is able to do, only that it's fundamentally more limited than camlp4 (which is better for lots of tooling)
<flux> cool how things have moved from camlp4 to ppx quite fast

2016-01-31

<hcarty> I haven't used the Jane St camlp4 extensions so I'm not sure what they need in order to work

2016-01-27

<Algebr`> kakadu: I don't think camlp4 is a prereq
<kakadu> btw, can I compile jsoo without camlp4?
<edwin> I usually add ./configure --override ocamlbuildflags '-j\ 0' to make it a bit faster, and avoid camlp4

2016-01-26

<hcarty> Yeah, they're keeping the camlp4 versions (not sure if they'll be actively maintained?) and there's an opam repository PR in place to rename the existing packages to have camlp4-specific names
<xificurC> is janestreet going to move to ppx from camlp4?
<nv_> however, you can use camlp4 or ppx extension points to do that kind of thing

2016-01-16

<Drup> so, something like "ocamlfind c -pp camlp4 -package js_of_ocaml.deriving"

2016-01-15

<Algebr> Lwt.async_exception_hook is getting the exception but it doesn't give me a backtrace. Ppx_lwt says debugging is on by default, not a single mention of that on main page, but then why does camlp4 get the de facto preferential treatment on main lwt page
<Algebr> When using Lwt, exceptions are not recorded by the ocaml runtime, and so you don't get backtraces. However it is possible to get them when using the syntax extension. All you have to do is to pass the -lwt-debug switch to camlp4:$ ocamlfind ocamlc -syntax camlp4o -package lwt.syntax -ppopt -lwt-debug -linkpkg -o foo foo.ml. Not a single mention of oasis or for ppx.

2016-01-05

<please_help> camlp4*

2016-01-04

<lostman> I don't think ppx and camlp4 work well together
<NhanH> lostman: I'm using camlp4
<lostman> are you using lwt.ppx and not camlp4?
<NhanH> Is there a recommend library for websocket? I'm trying to use https://github.com/vbmithr/ocaml-websocket but it seems to have issue with ppx_deriving and camlp4

2016-01-03

<flux> I guess it would be applicaple to meta programming (ie. ppx), but I don't think it's really possible there either (including camlp4, unless you walk the tree yourself?)
<zozozo> well, from what I know there isn't much weird syntax magic (except if you use camlp4, but it should die soon I think)

2015-12-30

<gasche> I've personally experimented with the token-based approach to implement "the whitespace thing" as a camlp4 extension, and that worked well

2015-12-28

<Drup> what you need is a version of RWO without camlp4 :3
<rks`> (but yes, the next release of core will not depend on camlp4)
<rks`> even if core depends on camlp4
<Leonidas> adwhit: there will be a version of Core that doesn't depend on Camlp4
<rks`> you're using camlp4.

2015-12-23

<Drup> ah, I guessed it used some camlp4 stuff

2015-12-22

<kaustuv> Re build dependencies: this is kind of a valid point. Currently to install ocp-indent you need to install ocp-build, which pulls in Camlp4. This seems excessive since ocp-indent itself doesn't use Camlp4! (I may be wrong.)

2015-12-20

<struk|desk> I've also seen it crash when ppx + camlp4 is mixed, but I doubt that is the case for you

2015-12-16

<Algebr> the ppx extension for lwt is so pleasing to work with, a nice improvement over the camlp4

2015-12-13

<reynir> Hm, why is it using camlp4

2015-12-11

<ggole> I don't think camlp4 supports this.
<freehck> ggole: So I need to find the appropriate machanism with camlp4?

2015-12-09

<nullcatxxx_> anyone wants to help me with a camlp4 install problem? https://github.com/yallop/metaocaml-syb/issues/1

2015-12-08

<lostman> no camlp4
<reynir> lostman: are you using camlp4?

2015-11-29

<reynir> I'm trying to move some js_of_ocaml code from camlp4 to ppx. I'm not sure what to do about Deriving(Json), is there a ppx equivalent for that?

2015-11-25

<flux> of course as PGSQL is camlp4-based, the time might get pass it.. with ocaml-sqlexpr perhaps coming to the rescue, but I don't think it has similar functionality at all?

2015-11-22

<Drup> Maelan: that you have camlp4 auto loaded

2015-11-17

<Drup> it's rarelly difficult to produce the exact same code with ppx and camlp4
<j0sh> from my reading, it seems a matter of having the ppx return a statement/expression? is there more camlp4 work beyond that?
<companion_cube> well it would be nice to get rid of camlp4 entirely

2015-11-04

<ygrek> when camlp4 stream parsers were kinda cool

2015-11-01

<isBEKaml> Hi, does ocaml 4.x not include camlp4 anymore? I was trying to build camomile(old, I know - but I need it for ocaml-batteries package) which requires camlp4o library to compile.

2015-10-27

<seliopou> with camlp4 -> ppx transition
<Leonidas> looks like it might be from Camlp4 :-/

2015-10-25

<SomeDamnBody> camlp4 is a complicated nightmare
<SomeDamnBody> yeah I know about ppx vs camlp4
<SomeDamnBody> ah ok, so turns out when I removed lwt, I could then go about upgrading camlp4, in which scenario lwt was blocking thins
<ollehar> most packages are using ppx instead of camlp4 these days.
<SomeDamnBody> in any case, I can't even upgrade camlp4 to try and escape it because it gives me: No package matches lwt.
<SomeDamnBody> so that really really indicates that there's something up with camlp4
<SomeDamnBody> but I've never used camlp4
<ollehar> what camlp4 packages are piq using?
<ollehar> well, it can be camlp4.
<SomeDamnBody> I think it's probably something to do with camlp4, because it's a parser error

2015-10-22

<orbifx> I get `ocamlfind: Package `camlp4.quotations' not found` but I have camlp4 installed?! 0o I'm on Arch. Any thoughts are welcome.

2015-10-21

<apache2> yes; I'm using bitstring now, and it's very useful, but the camlp4 depency and the conflict with -safe-strings is a bit unfortunate :(

2015-10-19

<def`> camlp4, which extends syntax
<def`> a camlp4 one, so the semantics of this with depends on the library

2015-10-18

<empyreany> Drup, if my memory serves me correctly, something was removed from camlp4
<empyreany> Drup, i'm still fairly new to this so forgive my ignorance... i'm trying to get the code for "Handbook of Practical Logic and Automated Reasoning" working and in the past i haven't been able to get it to work with camlp4
<Drup> quotations are supported by camlp4
<empyreany> Drup, i think it supports quotations that are no longer supported by camlp4

2015-10-16

<echo-area> flux: `type f 'a 'b = 'a -> 'b` works in utop with camlp4 loaded
<flux> echo-area, type f 'a 'b itself is a syntax errror in normal ocaml, does camlp4 acept that?

2015-10-15

<Algebr> tried that but was getting crazy type errors, now I'm looking if I screwed up ppx with camlp4 again...

2015-10-14

<Algebr> Drup: because I was reading this page https://ocsigen.org/js_of_ocaml/2.6/manual/library and there is no separate section for camlp4 or ppx.
<Algebr> Drup: I thought the syntaxes were the same between camlp4 and ppx
<Drup> that's because Algebr is using the camlp4 syntax with ppx
<mfp> Algebr: compiles when using camlp4...
<reynir> opam install tyxml camlp4?
<tane> e.g. tyxml with camlp4?

2015-10-13

<apache2> Drup: yes, I have camlp4 loaded. ok :)
<Drup> apache2: you have camlp4 loaded and it's a bug

2015-10-12

<nicoo> No, the ppx vs. camlp4 issue is completely different. Basically, both are mechanisms for implementing language extensions; camlp4 is more powerful, but not-so-nice to work with and camlp4 extensions do not compose well.
<nicoo> apache2: bitstring was written by Richard WM Jones, so you are better off asking him. In any case, porting it to use ppx rather than camlp4 would be more pressing.

2015-10-08

<Drup> because fuck camlp4

2015-10-03

<rgrinberg1> type_conv itself is a camlp4 framework for generating these type driven converters
<rgrinberg1> i switched a medium sized code base from camlp4 to ppx and my build times are even worse

2015-10-02

<ysangkok> i get "ocamlfind: Package `lwt.syntax' not found" when compiling 0install... i used --enable-ppx and --enable-camlp4 for lwt... is that not sufficient?

2015-09-26

<Drup> wait, have you just tried "opam install camlp4" ? :D
<Drup> (camlp4 shoke on some ppx syntax)
<flux> do ppx and camlp4 work together, though? no I think?
<flux> well, I think merlin has some special builtin magic to work in that particular case of camlp4, doesn't it?
<flux> the error messages are more standard without camlp4

2015-09-23

<palomer> companion_cube: the error doesn’t have anything to do with my system camlp4
<companion_cube> try removing the system camlp4 and install it via opam instead
<palomer> can I tell opam to not try ot install camlp4 because I already have it?
<palomer> but I already have a camlp4 through brew
<palomer> and it tries to install camlp4
<palomer> trying to install camlp4 using opam gives me the error: Fatal error: unknown C primitive `caml_alloc_dummy_function'

2015-09-15

<whitequark> well, blame Core for using camlp4 ;p
<magthe> whitequark: do I get the nice `with sexp` without camlp4?
<whitequark> "you don't have to use camlp4 to use Core"
<magthe> whitequark: but I have to use camlp4 to use Core?
<whitequark> er, to use camlp4
<def`> no camlp4 if you want ppx

2015-09-07

<nv_> is anyone here really familiar with camlp4?

2015-09-03

<tautologico> camlp4 and documentation in the same sentence only make sense if it's to say that it's awful
<Wickoo> Drup: Finally, camlp4 has a general way of specifying associativity and precedence (including NONA, non-associativity) -- which scales to the full OCaml. Unlike authors' system, camlp4 deals with the 100% of OCaml. It's better to look at the old camlp4 (now called camlp5). For
<Wickoo> Drup: that's a very good question! actually I'm happy with the compiler parser, but it's sort of research like thingy. A reviewer nagged last time why we don't compare camlp4!!!
<Wickoo> Drup: I could do that, that was rather straightforward, although my knowledge of Ocaml is very limited. Thought may be a similar way via API for camlp4
<dmbaturin> Camlp4 is going to die out soon as well. Well, maybe not very soon, but it's doomed.
<Wickoo> dmbaturin: alternatives? camlp4?

2015-08-31

<mrvn> only way to know what camlp4 does is to read the source.
<mrvn> Wickoo: as said, no idea about camlp4 internas.
<Wickoo> marv: yeah, I know how it works, but does camlp4 work according to that? I mean translating all these info into a table and then running it?
<mrvn> Wickoo: "If the next token is a binary operator and the precedence of that operator is greater or equal to p" is the magic bit. I guess in camlp4 that translates into the lookahead matching a rule in the current level.
<Wickoo> marvn: there is something very cute going on in camlp4 parser, which I suspect should be similar to http://www.engr.mun.ca/~theo/Misc/exp_parsing.htm#climbing but without explicit left recursion removal
<mrvn> Wickoo: well. have fun finding out what that magic is in camlp4.
<Wickoo> mrvn: that's exactly my question. When I look at a camlp4 grammar it has left recursions and there is a declarative way to define operator precedence:
<Wickoo> mrvn: ok, I've never heard of ppx. Thanks for pointing it out. Does it also have the same parsing capabilities as camlp4?
<mrvn> Wickoo: camlp4 is mostly obsoleted by ppx.
<Wickoo> @mrvn you mean obsolete "as a topic" or camlp4? I'm doing research on parsing algorithms (well, I know it's not the hottest PL topic out there, but the scope is also a bit different) Anyway, a reviewer pointed out that camlp4 is good and can parse full OCaml, and I cannot figure it out how it works (with respect to operator precedence)

2015-08-26

<flux> btw, now that camlp4 seems to be falling out of grace, maybe we can start using the $ operator?-)

2015-08-21

<MercurialAlchemi> bbc: uh, camlp4?

2015-08-20

<breadmonster> dmbaturin: The second camlp4 problem I've seen...
<dmbaturin> breadmonster: Are you using camlp4 yourself, or some library you are using does?
<breadmonster> Has anyone been having issues with camlp4 recently?

2015-08-10

<flux> (camlp4, not campl4)

2015-08-06

<bernardofpc> so I have now only 4.02.1, because some stupid package blocks 4.02.3 (something about camlp4)

2015-08-01

<Algebr> how do you pick ppx or camlp4?
<Drup> It was added when I added the ppx, it's documented in the ppx but apparently not in the camlp4 extension :/

2015-07-31

<natrium1970> The advice I found online suggests install a systemwide version of camlp4 instead there is a systemwide version of ocaml. I guess I can try that again, but I thought I already did that.

2015-07-28

<Drup> (and the camlp4_to_js tool does that correctly

2015-07-27

<Drup> and there is a jsoo entry in jst's camlp4 to ppx transformer

2015-07-24

<octachron> otherwise you would have to desactivate the Core camlp4 syntax extension

2015-07-21

<remyzorg> Hi, Anyone knows if it's possible to use in the same file camlp4 syntax for js_of_ocaml and any other ppx extension ?
<flux> or perhaps there's an updated version of camlp4 that fixes this?
<flux> so yes, camlp4 is to be blamed..

2015-07-20

<toolslive> aspcud camlp4 camlp4-extra clasp gcc-4.8-base gringo liblua5.1-0 libtbb2"

2015-07-17

<tennix> opam suggests to install camlp4 by apt-get or yum
<tennix> in fact there's no opam package named camlp4