CAF is an open source C++11 actor model implementation featuring lightweight & fast actor implementations, pattern matching for messages, network transparent messaging, and more. The easiest way to build CAF is to use the configure script. Other available options are using CMake directly or SNocs.
actor-model caf cpp11 pattern-matching actors asyncPattern matching is an abstraction mechanism that can greatly simplify source code. Commonly, pattern matching is built into a language to provide better syntax, faster code, correctness guarantees and improved diagnostics. Mach7 is a library solution to pattern matching in C++ that maintains many of these features. All the patterns in Mach7 are user-definable, can be stored in variables, passed among functions, and allow the use of open class hierarchies. Next example demonstrates that the library can deal efficiently and in a type-safe manner with non-polymorphic classes like boost::variant as well.
pattern-matching pattern variant visitor visitor-pattern algebraic-data-types adtWhether you are an academic, data scientist, software developer, or time series enthusiast, STUMPY is straightforward to install and our goal is to allow you to get to your time series insights faster. See documentation for more information. Please see our API documentation for a complete list of available functions and see our informative tutorials for more comprehensive example use cases. Below, you will find code snippets that quickly demonstrate how to use STUMPY.
data-science pattern-matching pydata dask numba motif-discovery time-series-analysis anomaly-detection time-series-data-mining matrix-profile time-series-segmentationNote that when() is a catch-all pattern and, if used, should always be the last condition. If you forget it match() will throw a MissingCatchAllPattern exception if nothing was matched.
pattern-matching pattern match whenTiny and extremely fast library to match files and folders using glob patterns. "Globs" is the common name for a specific type of pattern used to match files and folders. It's the patterns you type when you do stuff like ls *.js in your shell or put src/* in a .gitignore file. When used to match filenames, it's sometimes called a "wildcard".
glob globbing glob-pattern filesystem patterns pattern-matching expansion wildcardEgison is the pattern-matching-oriented purely functional programming language. We can directly represent pattern-matching against lists, multisets, sets, trees, graphs and any kind of data types. This is the repository of the interpreter of Egison. For more information, visit our website.
egison programming-language functional-programming pattern-matching computer-algebra-system tensor differential-geometryA tiny functional programming library for Javascript/Coffeescript.
pun functional pattern-matchingA macro to define clojure functions with pattern matching just as erlang or elixir. It supports both clojure and clojurescript. Since 0.3.0-RC, defun namespace is renamed to defun.core .
defun pattern-matching clojure-functionsCounting all words in a block of test. Note that count-words is a variable name, not a subtraction (it is equivalent to the name countWords, if that's the notation you prefer). The each operator accepts multiple clauses, which makes it especially easy to work on heterogenous arrays.
language earl-grey earlgrey macros pattern-matchingSecondString, an open-source Java-based package of approximate string-matching techniques. This code was developed by researchers at Carnegie Mellon University from the Center for Automated Learning and Discovery, the Department of Statistics, and the Center for Computer and Communications Security.
string-matching pattern-matching data-structure algorithmThis project brings some features from functional languages, like pattern matching, collection unfold or partial function application to C# and extends the possibilities of functional programming in C#. It's available as C# library.
functional pattern-matchingBop, an ultra fast Boyer-Moore parser/matcher optimized for string and buffer patterns (<= 255 bytes), then it is ideal for parsing multipart/form-data streams, that have a pattern / boundary length < ~70 bytes.
parser boyer-moore buffer pattern string pattern-matching search ultra-fastcats.match provides pattern matching for the monads in the clojure cats library.It uses the core.match library to do the pattern matching part.
clojurescript pattern-matchingsiringa (meaning syringe in Italian) is a minimalist, idiomatic dependency injection and inversion of control library for Python, implemented in Hy, a homoiconic Lisp dialect for Python.To get started, take a look to the documentation, API, tutorial and examples.
dependency-injection dependency dependency-injection-container injection-container pattern-matching inversion-of-controlThe above function implements a simple factorial function using pattern matching. When you call fact(10) the value ‘10’ is matched against the first pattern ‘0’. This match fails and the next pattern is evaluated. The ‘$’ in the next pattern is an example of a parameter. A parameter matches anything, so the match succeeds and ‘10’ is passed as an argument to the anonymous function. Since this is a recursive function it will match the second pattern until the argument to the function reaches zero and then terminates. Note that this example uses JavaScript ES6 syntax, code in previous JavaScript versions will be slightly more verbose. The fun method takes one or more pattern expressions and returns a function which, when called, will try to match the values passed to the patterns. If a match is found an anonymous function corresponding to the matched pattern is executed, and any extracted values passed to it as arguments.
pattern-matching functionalPattern matching in javascript for asynchronous iteration
pattern-matching pattern flow asyncExpat lets you split any pattern (be it for maps, lists, tuples, etc) into reusable bits, enabling you to combine them or export some patterns for reuse across Elixir libraries. If you are looking to validate Elixir data structures you might want to look at Spec. You can always first conform your data with Spec and then use Expat to pattern match the resulting conformed value and extract some value from it.
elixir pattern-matchingTypeScript does not have any pattern matching functionality built in. This article shows several ways how you can replicate the core of a simple pattern matcher using a few simple structures and functions within TypeScript. Resulting code will have improved maintainability and better runtime type safety when done right.
typescript pattern-matching article maintainabilityMatchete provides a DSL for method overloading based on pattern matching for Ruby. Copyright (c) 2015 Alexander Ivanov. See LICENSE for further details.
gem dsl pattern-matchingErlang-like pattern matching in JavaScript (use at your own risk). Unlike the proposal-pattern-matching, patterns inside the function arguments are quite limited supported. However, it can be extended using when().
pattern-matching
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.