oils-for-unix/blog-code
View on GitHub ↗ ★ 51 C++
Code for http://oilshell.org/blog/
14 mentions on Hacker News by 1 person: 1 story, 13 comments · first 2017-08-21 · latest 2020-10-11
20082026
-
…ps://news.ycombinator.com/item?id=24738274 except with a shell function rather than a subshell. Demo: https://github.com/oilshell/blog-code/blob/master/errexit /demo.sh#L21 Run ./demo.sh subshell-compare and func-compare. I have seen…
comment by chubot · 2020-10-11 · in Bash Error Handling -
…patched it, not sure about bash): http://www.oilshell.org/blog/2019/01/18.html#a-story-about-a... https://github.com/oilshell/blog-code/tree/master/crazy-old-... The guy who discovered ShellShock in 2014 wrote a few of the StackOverflow…
comment by chubot · 2020-10-09 · in RC – The Plan 9 Shell (c. 1990) [pdf] -
Yeah that is a good example, and I recorded it here: https://github.com/oilshell/blog-code/blob/master/regular-la... I don't mind the rewrite, but I'm not surprised that some would be inconvienced by it. (Though that is part of the reason…
comment by chubot · 2020-07-29 · in The Regular Expression Visualizer, Simulator and Cross-Compiler Tool -
Update: I tested it out a little more here. https://github.com/oilshell/blog-code/blob/master/regular-la... Basically everything you want with regard to greedy-nongreedy can be done through automata-based engines. They jump through a lot…
comment by chubot · 2020-07-29 · in The Regular Expression Visualizer, Simulator and Cross-Compiler Tool -
…tested that theory. ---- OK so I started testing that theory. I collected all the times I used .*? https://github.com/oilshell/blog-code/blob/master/regular-la... With a cursory inspection, most of them are unnecessary in an automata-based…
comment by chubot · 2020-07-29 · in The Regular Expression Visualizer, Simulator and Cross-Compiler Tool -
…Comments on Eggex and Regular Languages http://www.oilshell.org/blog/2020/07/eggex-theory.html https://github.com/oilshell/blog-code/tree/master/regular-la... [1] https://github.com/google/re2 ---- Also, the production quality way of…
comment by chubot · 2020-07-28 · in The Regular Expression Visualizer, Simulator and Cross-Compiler Tool -
…being slow to compile, egrep blowing up, the non-regular heuristics of "grep" playing a role, etc. https://github.com/oilshell/blog-code/blob/master/fgrep-prob... # grep is faster than both fgrep and the "optimal" DFA in native code #…
comment by chubot · 2020-06-27 · in Xi-Editor Retrospective -
No, basically everything is dynamic in Python. Both objects and types are mutable after definition: https://github.com/oilshell/blog-code/blob/master/python-is-... m1 Sub m2 C --- Changed type of object: m1 C m2 C --- m1 Sub m2 C ---…
comment by chubot · 2019-09-12 · in A lighter V8 -
…asked me about the tools, and I dumped them here (but they are not supported, may not be runnable): https://github.com/oilshell/blog-code/tree/master/tools-snap...
comment by chubot · 2019-07-16 · in Let's Build a Compiler -
…time is linear up to matching 47,000 fixed strings in parallel (from /usr/share/dict/words) https://github.com/oilshell/blog-code/blob/master/fgrep-prob... re2c ALWAYS builds a DFA, unlike RE2. (Note: they are completely unrelated…
comment by chubot · 2019-06-29 · in Regular Expression Matching Can Be Simple and Fast (2007) -
▲ 2
Papers and Algorithms in LLVM's Source Codestory by chubot · 2019-03-17 · 1 comment
-
…to be honest. I guess it has to do with the large number of keywords. BTW, this is related: https://github.com/oilshell/blog-code/tree/master/fgrep-prob... I match thousands of fixed strings "in parallel", and compare different regex…
comment by chubot · 2019-01-11 · in Use perfect hashing, instead of binary search, for keyword lookup -
…would get transformed into others. How does asciidoc do it? [1] http://www.oilshell.org/blog/ [2] https://github.com/oilshell/blog-code/tree/master/tools-snap... [3] http://www.oilshell.org/blog/2018/02/14.htm
comment by chubot · 2019-01-08 · in Asciidoctor – A fast, open-source text processor and publishing toolchain -
…: ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$ I copied it into a running example here for anyone curious: https://github.com/oilshell/blog-code/tree/master/dotd
comment by chubot · 2017-08-21 · in A Tutorial on Portable Makefiles