Hacker News new | ask | show | jobs
by olenhad 4435 days ago
For clojure, there's 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.
2 comments

While not directly monad related. There's also instaparse (https://github.com/engelberg/instaparse) which has also pretty nice presentation. 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.

Also, nobody cares. Since this comment is not even remotely related anymore.
Nobody was talking about Clojure. Do you also have to hijack CL discussions now? Taking over the term "Lisp" wasn't enough?
Yup 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.

Why 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.
You meant "hype about Clojure" right?
If there's one thing SLWs hate, it is other SLWs.
Consider 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.
I 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.
SLW? Single-language... weirdo?
Smug Lisp Weenie
very related = fully incompatible
Things can be both incompatible and related. For any given thing, the set of things related to that thing will typically be bigger than and encompassing of the set of things compatible with that thing.
Absolutely true. Lisp is related to Fortran, though both are not compatible to each other. Just like Clojure.
More food for the downvoters: Clojure has been carefully designed such that ZERO code sharing with any other Lisp dialect is possible. That's its definition of 'very related'.
I just saw your aprils fools joke. Epic?
You're being downvoted for displaying a primitive tribal attitude about proglangs, not because there's a grand Clojure conspiracy working against you.