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. …shell parsers, like ShellCheck in Haskell and shfmt in Go. [1] https://bost.ocks.org/mike/make/ [2] https://github.com/oilshell/oil/wiki/ExternalResources
    comment by chubot · 2018-12-29 · in Anatomy of a shell
  2. …author: https://github.com/magicant/yash I mentioned it here (and just added a proper link): https://github.com/oilshell/oil/wiki/ExternalResources I wrote some notes about POSIX here: http://www.oilshell.org/blog/2018/01/28.html#limit-to-p…
    comment by chubot · 2018-12-28 · in Anatomy of a shell
  3. …recursive-descent parser I recently wrote in Python (that recognizes certain C data definitions). https://github.com/oilshell/oil/blob/master/build/cpython_de... I think your structure is bit odd because Nodes are "smart". That is, the…
  4. …new completion system AND THEN write 3000+ lines of git completion in that hypothetical system. https://github.com/oilshell/oil/issues/175 FWIW git is also the biggest completion script in the zsh source tree by a factor of 2 -- ~7000…
    comment by chubot · 2018-09-24 · in Creating a bash completion script
  5. …now as well: https://github.com/PowerShell/PowerShell Then of course, there is oil shell: https://github.com/oilshell/oil which is more like a subset of bash (and somewhat close to the idea of stripping away all the legacy stuff) Then…
    comment by no_wizard · 2018-05-15 · in Shell Style Guide
  6. …unify the two languages. Like you can use STL with constexpr at compile time. Link on this page: https://github.com/oilshell/oil/wiki/Metaprogramming I think your suggestion is exactly what I've been thinking, so if you want to talk more…
  7. …-c "..." ! I'm going to write a blog post about this. I also do this with find -exec $0 myfunc ';' https://github.com/oilshell/oil/blob/master/test/spec-runner... However I think Oil will have something built-in to make this parallel…
    comment by chubot · 2018-02-01 · in Why Create a New Unix Shell?
  8. FWIW I have your project on my wiki page :) https://github.com/oilshell/oil/wiki/ExternalResources I guess what you mean by embedded is that it should be an embedded DSL in a full-fledged programming language? I don't quite agree, since…
    comment by chubot · 2018-02-01 · in Why Create a New Unix Shell?
  9. …Vi or Emacs -- it can write to a terminal, or have its own UI. I have been keeping a wiki page: https://github.com/oilshell/oil/wiki/Interactive-Shell Although honestly I won't get to any of this in the near future.
    comment by chubot · 2018-01-31 · in Why Create a New Unix Shell?
  10. I made a comprehensive list of shells here: https://github.com/oilshell/oil/wiki/ExternalResources Of course I think my own project, Oil, could be a "21st century shell", or I wouldn't be working on it :) It's designed in a principled way,…
  11. …I'm designing a shell which will feature data frames (eventually, probably not for a year or more): https://github.com/oilshell/oil/wiki/Oil-and-the-R-Language SQL is a very limited language, with essentially no capabilities for…
  12. …where it's not necessary.) For example, all the instructions here are of the form 'foo.sh ACTION': https://github.com/oilshell/oil/wiki/Contributing Pretty much every shell script in the repo uses "the argv dispatch pattern"... I've been…
    comment by chubot · 2017-08-18 · in Afraid of Makefiles? Don't be
  13. …“zero-latency typing” in IntelliJ IDEA. [1] https://news.ycombinator.com/item?id=14798211 [2] https://github.com/oilshell/oil/wiki/Interactive-Shell
    comment by chubot · 2017-07-26 · in Typing with Pleasure
  14. …build a Python program into a single file (stripped-down Python interpreter + embedded bytecode): https://github.com/oilshell/oil/blob/master/Makefile Although generally I prefer shell to Make. I just use Make for the graph, while shell…
  15. …instance of runtime parsing of arithmetic expressions inside strings, AFTER variable substitution: https://github.com/oilshell/oil/issues/3 (all shells I tested implement this, not just bash) Also there is one issue that would require…
    comment by chubot · 2017-06-14 · in Writing a Unix Shell – Part II
  16. …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
  17. …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
  18. 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
  19. …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…
  20. …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
  21. 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
  22. …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
  23. …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)
  24. …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)
  25. …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…