Better HN
topnewbestaskshowjobs
Log inSign up

hexspeaker

11 karma · joined Jan 2, 2018 (8y ago) · 3 submissions

Submissions

comment 7y ago · link · parent

Yes for regular languages but not for higher level ones. For example, deterministic context-free is a subset of context-free. For languages that are turing complete, the question is less about ability to compute and more about the speed at which something can be computed. This is an unsolved problem known as P vs. NP.

https://en.wikipedia.org/wiki/P_versus_NP_problem

comment 7y ago · link · parent

Deterministic Finite Automaton. It's a concept from automata theory which is a concept from theory of computation. Implementations of DFA's are how libraries like google's re2 or golang's regex are implemented. They're not as powerful as regex libs built with a non-regular language model but that's by design.

Fun trivia: DFAs and NFAs are computationally equivalent. Any NFA can be converted into an equivalent DFA.

https://en.wikipedia.org/wiki/Deterministic_finite_automaton

comment 8y ago · link · parent

If this interests you, you'll probably enjoy reading Google's paper on Spanner. Cockroachdb was heavily influenced by it.

https://research.google.com/archive/spanner.html