4 ms·
For clojure, there's kern (https://github.com/blancas/kern https://github.com/blancas/kern) for parsec style parser combinators. It's quite easy to use. Ironica
by olenhad 12y ago
For clojure, there's kern (https://github.com/blancas/kern https://github.com/blancas/kern) for parsec style parser combinators. It's quite easy to use. Ironically, I actually understood parser combinators better by reading its wiki (By understood, I mean understood how to _use_ parser combinators). Parsec was initially difficult to grasp because the type system complicated things for me then.
I only got Parsec completely after that eureka moment when I finally understood Monads.
- angerman 12y agoWhile not directly monad related. There's also instaparse (https://github.com/engelberg/instaparse https://github.com/engelberg/instaparse) which has also pretty nice presentation. https://www.youtube.com/watch?v=b2AUW6psVcE https://www.youtube.com/watch?v=b2AUW6psVcE I just wanted to leave this here as if it hadn't been for twitter and the presentation, I would likely never have known about it.
- mrottenkolber 12y agoAlso, nobody cares. Since this comment is not even remotely related anymore.
- mrottenkolber 12y agoNobody was talking about Clojure. Do you also have to hijack CL discussions now? Taking over the term "Lisp" wasn't enough?
- mrottenkolber 12y agoYup downvote me. Because this isn't obviously a CL thread. What a nice display of Clojure propaganda, when in a CL thread, a related library is scored lower than a clojure library.
- S4M 12y agoWhy all this hate about Clojure? I didn't downvote you, but I can see why people would, seems olenhad was mentioning a library similar to Parsec in a language that is very related to Common Lisp. There is definitely no need to get carried away.
- copergi 12y agoIf there's one thing SLWs hate, it is other SLWs.
- jessaustin 12y agoSLW? Single-language... weirdo?
- aerique 12y agoSmug Lisp Weenie
- mrottenkolber 12y agoConsider the fact that I am probably the only one in this thread who is actually getting paid to write Clojure. And yes Clojure is horrible.
- deleted 12y ago[deleted]
- S4M 12y agoI am honestly curious what you have against Clojure. I dabbed with CL and Clojure, not as much as I would have liked to, but for me they felt similar. I would be curious to have a list of things that can easily be achieved with CL but not with Clojure.
- lispm 12y agoCommon Lisp is a multi-paradigm language (imperative, functional, object-oriented) in the Lisp 1 / Maclisp tradition. It has a language spec and multiple different, but very compatible, implementations. Among its goals are portability across different machines/systems, efficiency, power and stability. Thus complex Lisp software can be ported or written in Common Lisp and usually runs on top of several implementations (examples: Maxima, Axiom, ACL2, ACT-R, Common Lisp Music, ...). "Clojure is predominantly a functional programming language, and features a rich set of immutable, persistent data structures. When mutable state is needed, Clojure offers a software transactional memory system and reactive Agent system that ensure clean, correct, multithreaded designs."