Hacker GitHub

← All repos

clojure/core.match

View on GitHub ↗ ★ 1,220 Clojure

An optimized pattern matching library for Clojure

26 mentions on Hacker News by 25 people: 1 story, 25 comments · first 2012-02-03 · latest 2026-04-30

Mentions per year 26 mentions · busiest year 2013 (4)
20082026
  1. …atoms rather than a predefined type), and I assume many lisps adopt similar patterns as well [1] https://github.com/clojure/core.match
  2. …code, rather than treating it like a cond statement (more info on the match algorithm here: https://github.com/clojure/core.match/wiki/Understanding-the... ). However, when using macros there’s always some trade-offs — for example, you…
    comment by socksy · 2024-12-14 · in Idiomatic Errors in Clojure
  3. …"do-thing failed: %s" msg)} [{:ok true, :value value}] (continue-computation-with value))) meh [1]: https://github.com/clojure/core.match/wiki/Overview
    comment by MathMonkeyMan · 2024-12-14 · in Idiomatic Errors in Clojure
  4. IIRC luc maranget's paper was also a basis to clojure/script core.match ps: checked https://github.com/clojure/core.match/wiki/References
    comment by agumonkey · 2024-02-03 · in Compiling Pattern Matching
  5. I think Clojure has benefited from matching being kept out of the built-in stdlib. https://github.com/clojure/core.match is a plug-in and as a result we've had lots of cool data traversal/matching DSLs come around and evolved user…
    comment by fulafel · 2023-05-09 · in Why Lisp?
  6. You can use this library to get pattern matching in Clojure: https://github.com/clojure/core.match/wiki/Overview
    comment by jrvarela56 · 2022-04-27 · in Tutorial Series to learn Common Lisp quickly
  7. I assume you mean something like clojure.core.match https://github.com/clojure/core.match ? It is available, but not used that often.
    comment by nlitened · 2021-09-26 · in My Janet Story
  8. Why not just use core.match? https://github.com/clojure/core.match
    comment by OliverM · 2021-07-17 · in Elixir protocols vs. Clojure multimethods
  9. …in case the conversation inevitably turns to pattern-matched function definition in Elixir. :) https://github.com/clojure/core.match -- pattern matching as a library https://github.com/killme2008/defun -- using core.match to implement…
  10. …has something like this in clojure.core.match - with a good bibliography by the end of the page. https://github.com/clojure/core.match/wiki/Overview
  11. …so I can't say if clojure's implementation is a complete match in terms of functionality. [0] https://github.com/clojure/core.match
    comment by joncampbelldev · 2016-12-31 · in Why Clojure? (2010)
  12. A few good examples in Clojure would be: core.async https://github.com/clojure/core.async core.match https://github.com/clojure/core.match Compojure https://github.com/weavejester/compojure Midje https://github.com/marick/Midje Korma…
    comment by yogthos · 2016-12-17 · in The Idea of Lisp
  13. Clojure has a pattern matching library https://github.com/clojure/core.match . And I think clojure is the most widely used Lisp dialect now.
  14. …and pattern matching in Clojure. core.logic https://github.com/clojure/core.logic core.match https://github.com/clojure/core.match
    comment by mhluongo · 2016-05-23 · in Clojure.spec – Rationale and Overview
  15. …) 3. Clojure core.logic ( https://github.com/clojure/core.logic ) and core.match ( https://github.com/clojure/core.match ) 4. Yedalog: Exploring Knowledge at Scale ( http://research.google.com/pubs/pub43462.html ,…
  16. …a regular frustration. That aside, clojure.core.match is implemented pretty much as you describe: https://github.com/clojure/core.match/wiki/Extending-match-f... I too was a bit confused about what the article was getting at.
    comment by thom · 2015-03-28 · in Not everything is an expression
  17. …a lot of common FP idioms reasonably well. It's not pretty, but Clojure generally isn't. [1] https://github.com/clojure/core.match [2] https://github.com/lazerwalker/clojurescript-koans/blob/mast...
  18. For Clojure there is core.match [1]. [1] https://github.com/clojure/core.match
  19. …datastructure but it compiles down to inline array access. Controlling binding or control flow eg https://github.com/clojure/core.match adds a pattern matching construct similar to those found in eg haskell or ocaml. Rewriting code eg the…
    comment by jamii · 2013-10-28 · in Lisp for C++ programmers
  20. Not trying to sell you anything, just trying to help you find some things you've been missing: a) https://github.com/clojure/core.match b1) https://github.com/clojure/core.typed b2) I agree that Clojure's facilities for mixins is…
    comment by brandonbloom · 2013-09-05 · in Effective Scala
  21. …as libraries. Not to say Scala probably isn't great too, but I haven't ever really used it. [1] https://github.com/clojure/core.match [2] https://github.com/clojure/core.typed
    comment by bdisraeli · 2013-09-05 · in Effective Scala
  22. …you can pattern match on the result of a select (alt!) with core.match to get Erlang style matching http://github.com/clojure/core.match :) All this from libraries
    comment by swannodette · 2013-06-28 · in Clojure core.async Channels
  23. How does this compare to https://github.com/clojure/core.match ? He mentions that core.match is better at efficiently compiling complicated patterns, but little else is said as to exactly why strucjure was made rather than just using…
  24. …( https://github.com/clojure/core.logic ) to implement a type checker as well as used core.match ( https://github.com/clojure/core.match ) for pattern matching in his compiler projects. As these tools mature - I think over time Clojure…
    comment by swannodette · 2012-02-27 · in LLVM Clojure Bindings
  25. …with macros comes a lot of power. Clojure has a full powered pattern matching library. See this: https://github.com/clojure/core.match
    comment by nickik · 2012-02-03 · in Modern Language Wishlist