Hacker GitHub

← All repos

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

Mentions per year 14 mentions · busiest year 2020 (7)
20082026
  1. …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
  2. …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]
  3. 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…
  4. 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…
  5. …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…
  6. …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…
  7. …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
  8. 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
  9. …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
  10. …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…
  11. …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…
  12. …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
  13. …: ,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