Hacker GitHub

← All repos

mike-french/myrex

View on GitHub ↗ ★ 5 Elixir

Match regular expressions using NFA process networks (Elixir)

5 mentions on Hacker News by 1 person: 0 stories, 5 comments · first 2023-08-12 · latest 2024-05-21

Mentions per year 5 mentions · busiest year 2023 (3)
20082026
  1. It is possible to implement NFAs directly, in parallel: https://github.com/mike-french/myrex Just fan-out messages to all downstream states. Let a fair runtime system evaluate all progress, then tally results along all paths, for example:…
  2. Concurrent parallel execution of NFA directly in Elixir: https://github.com/mike-french/myrex It is concurrent in all senses: a single match is split into many concurrent traversals of the network; multiple inputs can be matched…
    comment by mikhailfranco · 2024-02-23 · in Re2c
  3. …How many ways can (a?){m}(a*){m} match the string a{m} i.e. input m repetitions of the letter 'a'. https://github.com/mike-french/myrex#ambiguous-example The answer is a dot product of two vectors sliced from Pascal's Triangle. For m=9,…
  4. You could implement the NFA directly with concurrent exploration of all paths: https://github.com/mike-french/myrex
  5. …has an interesting implementation in Elixir, which converts the NFA directy into a process network: https://github.com/mike-french/myrex The network runs all possible traversals concurrently without back-tracking. It automatically scales…