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. …Java, etc. I have done this with a bunch of HTML processors for the Oil blog and doc toolchain: https://github.com/oilshell/oil/tree/master/doctools It works well in practice and is correct and fast. Big caveat: this style is only for HTML…
  2. …about terminals to judge how feasible or easy it is, but if anyone does, please chime in here: https://github.com/oilshell/oil/issues/908
  3. I just added a note at the top that embedded DSLs go here :) https://github.com/oilshell/oil/wiki/Internal-DSLs-for-Shell Rash is already there -- feel free to make the link/description more accurate, and add janet-sh, etc.
    comment by chubot · 2021-02-13 · in Alternative Shells
  4. …maybe hack on the code too :) There is some nacsent / working code out there, linked in this issue. https://github.com/oilshell/oil/issues/738 I also created this #shell-gui Zulip channel in December: https://oilshell.zulipchat.com/#narrow/…
    comment by chubot · 2021-02-13 · in Alternative Shells
  5. It's on the sister page linked at the top, because it's embedded in Scala: https://github.com/oilshell/oil/wiki/Internal-DSLs-for-Shell Feel free to fix up the link/description to be more useful/accurate.
    comment by chubot · 2021-02-13 · in Alternative Shells
  6. It's on the sister page linked at the top, because it's embedded in Elisp AFAIK: https://github.com/oilshell/oil/wiki/Internal-DSLs-for-Shell
    comment by chubot · 2021-02-13 · in Alternative Shells
  7. …stuff! >"Although I think richer pipelines make sense, structured data will probably come first: https://github.com/oilshell/oil/wiki/Structured-Data-in-Oil " Looks like you've been doing your homework! <g>
    comment by peter_d_sherman · 2021-01-29 · in Why Create a New Unix Shell?
  8. …-n } ----- Although I think richer pipelines make sense, structured data will probably come first: https://github.com/oilshell/oil/wiki/Structured-Data-in-Oil
    comment by chubot · 2021-01-28 · in Why Create a New Unix Shell?
  9. Yes there are some ideas discussed here: https://github.com/oilshell/oil/issues/738 I would call the 2 possible solutions an API or IPC, and what you're describing is basically IPC. The devil is in the details though... I'm interested in a…
    comment by chubot · 2021-01-28 · in Why Create a New Unix Shell?
  10. …become clearer, and progress can be made on top. Some notes here about interactive shell ideas: https://github.com/oilshell/oil/wiki/Interactive-Shell Some people might think Oil is sort of a text-only or retro project ... but it really…
    comment by chubot · 2021-01-27 · in Why Create a New Unix Shell?
  11. …a big deal and the runtime is solid now so they can be enhanced. Ideas here, feel free to chime in: https://github.com/oilshell/oil/issues/843 :)
    comment by chubot · 2021-01-27 · in Why Create a New Unix Shell?
  12. …own mechanism for expressing duplication that's not the equivalent of a 70's-style #include. [1] https://github.com/oilshell/oil/blob/master/.travis.yml [2] http://www.oilshell.org/blog/2019/02/07.html
    comment by chubot · 2020-12-20 · in Back to the '70s with Serverless
  13. …I changed my own configs to use .yml.in and .yml and it worked on both Travis CI and sourcehut. https://github.com/oilshell/oil/tree/master/.builds Some brainstorming here on this feature: https://github.com/oilshell/oil/wiki/Config-Dialect…
    comment by chubot · 2020-12-13 · in Become Shell Literate
  14. …using jq for the first time. I used this to easily make a blog post out of a long Zulip thread [1] https://github.com/oilshell/oil/blob/master/services/zulip.s... (oops some tabs snuck in here) Figuring out how to use uftrace (and…
    comment by chubot · 2020-12-12 · in Become Shell Literate
  15. …a slightly tighter but improved abstraction that runs on multiple cloud services. Notes on gg here: https://github.com/oilshell/oil/wiki/Distributed-Shell If anyone wants to help, get in touch! If you are pissed off about Travis then you…
  16. …some experiments in that area here (and anyone should feel free to add more, including their own): https://github.com/oilshell/oil/wiki/Interactive-Shell Many of the articles have nice screenshots / animations to give you a feel for what…
  17. …QSN is fully implemented, but QTSV isn't done yet. Proposal here: https://github.com/oilshell/oil/wiki/TSV2-Proposal However the latest Oil release actually does emit QTSV! The "pp" builtin (for pretty-print) will print a QT
    comment by chubot · 2020-11-08 · in CSVs: The Good, the Bad, and the Ugly
  18. Is this shell actually written in python2 in the year 2020? (see: https://github.com/oilshell/oil/tree/master/Python-2.7.13 )
  19. …A QSN decoder is very easy to write. For example, here's a ~6 line regex that validates all of QSN: https://github.com/oilshell/oil/blob/master/qsn_/qsn.py#L498 True, you need like ~20 lines of code to decode it, but that's very easy too.…
  20. I actually considered that, but it doesn't work. https://github.com/oilshell/oil/wiki/Shell-Almost-Has-a-JSON... Single quoted strings in shell can't represent arbitrary strings either. And the %q format is actually different from the…
  21. …in the Oil repo. There are dozens of shell scripts that invoke custom tools in Python, R, and C++. https://github.com/oilshell/oil/tree/master/benchmarks For example, to generate this report on how much we speed up Python by translating it…
  22. …from a contributor (that has languished -- I need help!) Let's discuss on the issue if interested: https://github.com/oilshell/oil/issues/843 Oil is easy to prototype (it's just Python code), so anyone who wants to make this feature their…
  23. …|| true Or this if I don't need to run with bash anymore: shopt --set oil:basic Example: https://github.com/oilshell/oil/blob/master/test/spec.sh#L9 docs in progress: https://www.oilshell.org/release/0.8.3/doc/oil-options.html Having the…
  24. Yes, I would like for that to happen: Shell as an engine for TUI or GUI https://github.com/oilshell/oil/issues/738 C++ code should be embeddable in another program https://github.com/oilshell/oil/issues/822 I think you can already use bash…
  25. …modify/prototype, and then for the release it's translated into C++ for a 30-50x speedup [2]. https://github.com/oilshell/oil/wiki/Contributing [1] https://lobste.rs/s/qfiki1/four_features_justify_new_unix_sh... [2]…
  26. …strict_errexit in Oil disallows that (a runtime assertion 100% of the time). Feedback is welcome! https://github.com/oilshell/oil/issues/709
    comment by chubot · 2020-10-11 · in Bash Error Handling
  27. …between the amount of fusing that can be done and how expressive the metalanguage is. --- related: https://github.com/oilshell/oil/wiki/Compact-AST-Representat... (compiling programs that operate on trees to operate on packed…
    comment by chubot · 2020-10-10 · in A New Back End for Cranelift
  28. I'm working on fixing errexit / set -e in Oil: https://github.com/oilshell/oil/issues/709 Summary of problems: 1. The "if myfunc" problem -- error checking is skipped. This is specified by POSIX, but it's undesirable. 2. The f() { test -d…
    comment by chubot · 2020-10-10 · in Bash Error Handling
  29. https://github.com/shellcomp/shellcomp.github.io/blob/master... https://github.com/oilshell/oil/wiki/Shellac-Protocol-Propos...
    comment by federico_c · 2020-10-08 · in Tools I use: argparse builder
  30. …with a new builtin that will address the deficiencies of getopt/getopts. You could help design it! https://github.com/oilshell/oil/issues/469
  31. …later. I'm still looking for help too: http://www.oilshell.org/blog/2019/12/09.html#help-wanted https://github.com/oilshell/oil/issues?q=is%3Aissue+is%3Aope... https://github.com/oilshell/oil/issues?q=is%3Aissue+is%3Aope...
    comment by chubot · 2020-09-29 · in New Features in the Fish Shell
  32. …Even though it cleans up many legacy warts, Oil runs thousands of lines of real bash programs: https://github.com/oilshell/oil/wiki/Shell-Programs-That-Run... Posts on the interactive shell: https://www.oilshell.org/blog/tags.html?tag=inter…
    comment by chubot · 2020-09-29 · in New Features in the Fish Shell
  33. …and autoconf offer that, but mostly for different reasons.) This is a real problem that came up in: https://github.com/oilshell/oil/blob/master/Makefile I plan to switch to a generated Ninja script to solve some of these problems.
    comment by chubot · 2020-09-23 · in No script is too simple
  34. …Here's a random example -- some scripts to generate source code as part of the build process: https://github.com/oilshell/oil/blob/master/build/codegen.sh The paths are all hard-coded, which is a good thing. In my mind, the goal is to save…
    comment by chubot · 2020-09-22 · in No script is too simple
  35. …be less tied to the vagaries of bash. If anyone's script doesn't run under Oil, I'm interested. See https://github.com/oilshell/oil/wiki/What-Is-Expected-to-Run...
    comment by chubot · 2020-09-19 · in Use long flags when scripting (2013)
  36. …out as a language. Yet people use it as one and write tens of thousands of lines of code in it. See https://github.com/oilshell/oil/wiki/The-Biggest-Shell-Progr... and https://oilshell.org
  37. A link to some related fun & craziness, for people not too familiar with Oil: https://github.com/oilshell/oil/wiki/The-Biggest-Shell-Progr...
  38. …is / will be worth it. ----- There's an issue to run fzf, which was partially done last year: https://github.com/oilshell/oil/issues/322 I could use help looking into what remains there! And there are more such issues here:…
  39. …the biggest shell scripts in the world. It's the shell that's most compatible with bash by a mile. https://github.com/oilshell/oil/wiki/Shell-Programs-That-Run...
  40. …HTML, and CSV/TSV over pipes, and people do. There are many command line toolkits that do this. https://github.com/oilshell/oil/wiki/Structured-Data-in-Oil However the shell is also missing few things which would help that approach, so I'd…
  41. …the biggest shell program in the world: http://www.oilshell.org/cross-ref.html?tag=ble.sh#ble.sh https://github.com/oilshell/oil/wiki/The-Biggest-Shell-Progr... ---- I did add little hack in the lexer for autocompletion of partial input.…
  42. …and all its sublanguages without any nongreedy repetitions. It's dozens if not hundreds of regexes. https://github.com/oilshell/oil/blob/master/frontend/lexer_d... Though, regular languages are more like a building block for the lexer than…
  43. Oh interesting, I have been thinking about related things for Oil: Shell as an engine for TUI or GUI https://github.com/oilshell/oil/issues/738 That came out of a discussion with someone doing a really ambitious overhaul of terminals and…
  44. …provide an even simpler method that's built in (and it also has readlink builtin to support this) https://github.com/oilshell/oil/issues/587
    comment by chubot · 2020-05-22 · in Good coders borrow, great coders steal
  45. That's the point of Oil: https://github.com/oilshell/oil A new Unix shell. Our upgrade path from bash to a better language. It runs thousands of lines of existing shell scripts unmodified, but there's also a brand new language that will be…
  46. I started down this path last year: https://github.com/oilshell/oil/wiki/Shellac-Protocol-Propos... but cut it out of the Oil project (for the forseeable future). Right now Oil takes the approach of running existing bash completion…
  47. …also suffers from the problem where it doesn't list the commands. I filed a bug for Oil shell here: https://github.com/oilshell/oil/issues/751 I mentioned a couple other "frameworks" there like just, go, Taskfile, etc. But it should really…
    comment by chubot · 2020-05-15 · in Polyglot Makefiles
  48. …That's unfortunately an open problem. As I mentioned here, lexing is "solved" but parsing isn't: https://github.com/oilshell/oil/wiki/Why-Lexing-and-Parsing-... Here are what some recent languages do: Go: Maintain a written spec [1], with…
  49. …be parsed efficiently with particular algorithms. And some people reject CFG in favor of PEG, etc. https://github.com/oilshell/oil/wiki/Parsing-Models-Cheatshe... ---- That is, the recursive grammar issue is not "settled". Whereas regular…
    comment by chubot · 2020-04-23 · in Incremental Regular Expressions (2012)
  50. …of Oil, so you can implement as a library in another language. I'm interested in help too: https://github.com/oilshell/oil/issues?q=eggex+label%3Aeggex One easy contribution is to to translate it back to PCRE syntax, because that's a very…
    comment by chubot · 2020-04-22 · in Incremental Regular Expressions (2012)