This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (33)
- # announcements (2)
- # beginners (10)
- # boot (200)
- # cider (25)
- # cljs-dev (13)
- # clojure (75)
- # clojure-canada (2)
- # clojure-czech (1)
- # clojure-dev (16)
- # clojure-japan (7)
- # clojure-russia (20)
- # clojurescript (206)
- # clr (1)
- # cursive (24)
- # datascript (1)
- # datomic (1)
- # editors (2)
- # hoplon (136)
- # ldnclj (54)
- # off-topic (9)
- # om (5)
- # onyx (8)
- # re-frame (66)
- # reagent (19)
- # yada (21)
Based on a little mashup of Lua's LPEG library (which has an amazing paper to go along with it) and Scala's Parboiled2 library
TODO: write the VM, write the capturing code, and implement the AST optimizations in the LPEG paper
Have no idea how fast it will be, but if it is 2x slower than a handwritten parser like Jackson I'll be thrilled
Is there a
get like function which will return the map entry in a map, not just the value?
I’m using PEG parsers in Cursive for macro parsing too, although just at the lexeme level, not chars
Ok, my capturing stuff is pretty ghetto. I need to go back and read the paper again.
I’m going to be adding error recovery soon too, so I can mark syntax errors in the editor.
Is there another one I should be reading? It’s been a while since I read all the PEG lit
that one is less accessible to me than this article by Ierusalimschy http://www.inf.puc-rio.br/~roberto/docs/peg.pdf
Nice, I hadn’t seen that, thanks. I’m planning to work on the error recovery stuff soon so I can return partial matches with error info (important during editing since the AST is usually broken).
Nice, I’ll have to watch that. What I ended up with is similar to the Illuminated Macros talk by chouser and Jonathan Claggett
Is there something like rails’ asset pipeline for clojure, that will smudge all css into one, all js into one, maybe do image spriting?
yeah, the idea is that assets needs to be first-class, so that you can write middlewares to transform them
Let’s say there’s a record that exists like:
(defrecord User [id]). What’s the difference between instantiating it with
kushalp: the result is the same.
->User is a clojure function bound to a var while
User. invokes the java constructor of the corresponding class
kushalp: in general I would go with
->User because you can do all things to this var/fn you can do with every other function, e.g. trace in cider, add/extract metadata etc.
anyone using counterclockwise for clojure dev? since upgrading i can’t seem to launch a headless repl for my project or even for a default leiningen project
clojure.lang.Compiler$CompilerException: java.lang.OutOfMemoryError: Java heap space, compiling:(deps/cljfmt/v0v1v10/deps/rewrite_clj/v0v4v12/rewrite_clj/potemkin.clj:59:18)
@sp3n: never had such issue. Usually, when something goes wrong with Eclipse, I swich workspaces, then come back
hey @val_waeselynck thanks for the reply - i hadn’t had this issue before either, only since i updated
i think i was using the old ccw-settings from my previous version which was screwing with things
yeah, although I love CCW (especially the structural editing and the REPL) you definitely want to get used to the usual crash
wondering how many ppl miss proper clj support in atom? would be pretty easy to do an integration with cider-nrepl and/or refactor-nrepl for atom but not sure if it worths the effort...
it is not useable at this point, if this experiment proves itself, it will be clojurescript first, clojure second
this is my one-month old brain dump, at that time, plastic was a fork of LightTable, later I started over as Atom package https://gist.github.com/darwin/d8fc8556e6fbdc7dee11
not very specific, just some thoughts, I’m not a big planner, we’ll see how far I can get
Interesting, how do you solve navigating through references? I think that’s the main point I stick with Cursive
In this gist, how come foo is unbound within the inner function applied by the map? https://gist.github.com/cddr/e8a800cd8d416f5d71d7
@cddr: First guess is that map is lazy. So the mapping fn isn’t actually invoked within the
Does anyone know how to change the text in the REPL prompt in Emacs Cider? When I have a long nested space, it takes a lot of the screen width... So, instead of something.something.something.myns> i would like it to just display the last part, myns>
@blueberry I think you can define your own function and set it as the value cider-repl-prompt-function
@potetm: Thank you! I managed to get a better fix on this by using lightable and in my clojurescript code ended up having to use for, though.