Hacker GitHub

← All repos

oils-for-unix/oils

View on GitHub ↗ ★ 3,398 Python

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!

225 mentions on Hacker News by 35 people: 15 stories, 210 comments · first 2016-11-26 · latest 2025-11-06

Mentions per year 225 mentions · busiest year 2020 (52)
20082026
  1. …I'm not sure how much this will help, but here is 12K+ lines of code I wrote with zero globals: https://github.com/oilshell/oil The main directories to look at are core/ and osh/. The main program imports a lot of stuff and wires it…
    comment by chubot · 2017-06-10 · in A theory of modern Golang
  2. …to see your shell. There are a bunch of alternative shells and POSIX shell implementations here: https://github.com/oilshell/oil/wiki/ExternalResources EDIT: I saw the sibling comment linking to https://github.com/lmorg/murex . Taking a…
    comment by chubot · 2017-05-30 · in Writing a Unix Shell
  3. FWIW I wrote a pretty complete shell in ~11K lines of Python: https://github.com/oilshell/oil (osh/ and core/ directories): Right now the goal is to clone bash but have better parse time and runtime errors. I hope to make an initial…
    comment by chubot · 2017-05-29 · in Writing a Unix Shell
  4. …a very rich representation of the code. The C# front end does similar things. More links here: https://github.com/oilshell/oil/wiki/Lossless-Syntax-Tree-Pa... In other words, I would say that integrating the compiler front end into the IDE…
  5. …implementations, and found that they use something like a Lossless Syntax Tree (not an AST or CST): https://github.com/oilshell/oil/wiki/Lossless-Syntax-Tree-Pa... Examples: Clang, Microsoft's Roslyn platforms, RedBaron/lib2to3 for Python,…
    comment by chubot · 2017-03-08 · in ANTLR Mega Tutorial
  6. Hi xiaq I mentioned your shell here: https://github.com/oilshell/oil/wiki/ExternalResources If there is a better summary, let me know, or feel free to edit the wiki page yourself. (I think it should be editable.) I've been in contact with…
    comment by chubot · 2017-01-25 · in Shell Has a Forth-Like Quality
  7. …You can also see a list of other shells on the GitHub wiki page titled ExternalResources: https://github.com/oilshell/oil/wiki/ExternalResources I'm focusing on the shell as a programming language at first, in contrast to TermKit.
    comment by chubot · 2017-01-25 · in Shell Has a Forth-Like Quality
  8. …abstractions! C++ has a lot of problems, but it appears to be the best tool for this job. [1] https://github.com/oilshell/oil/
    comment by chubot · 2016-12-06 · in Write a Shell in C (2015)
  9. …to see a pretty complete shell in a higher level language (Python, 11K lines of code), check out: https://github.com/oilshell/oil/ And a blog here: http://www.oilshell.org/ (index: http://www.oilshell.org/blog/2016/11/20.html ) This…
    comment by chubot · 2016-12-06 · in Write a Shell in C (2015)
  10. …map from the 13 modes to a list of regexes, which is a lot of logic that is kept out of the parser. https://github.com/oilshell/oil/blob/master/osh/lex.py The parser just calls lexer.Read(lex_mode), which hides the complexity of all these…