6 ms·
Oil 0.9.4 – User Feedback
- encryptluks2 5y agoIt is refreshing to see an open source project that uses other open source components for their community, like Zulip. It is frustrating when you go to an open source project page and their entire community is designed around SaaS and proprietary solutions, like Slack, Discord, Twitter, etc.
- yeetaccount2 5y agoI got out of the software world a long time ago but when I dip my toe in and see FOSS projects with proprietary software/SaaS used for dev coordination I lose my shit. Email, forums, and IRC will take you a very long way. Can’t say I’ve ever needed trademarked services to coordinate. You only lock yourself into the limitations somebody else sets for you.
- mongol 5y agoDo you count Github as proprietary software/SaaS?
- dotancohen 5y agoOr asking and answering questions on StackOverflow, for that matter?
- 404mm 5y agoThe name is a bit unfortunate.
- zeckalpha 5y agoBecause of the overlap with French languages? https://en.m.wikipedia.org/wiki/Langues_d'oïl https://en.m.wikipedia.org/wiki/Langues_d'oïl
- temerson 5y agoJFC, how dense are you?
- remexre 5y agoI think more because of potential confusion with the Shell Oil Company.
- chubot 5y agoFAQ about the name: http://www.oilshell.org/blog/2019/06/17.html#why-is-the-project-named-oil http://www.oilshell.org/blog/2019/06/17.html#why-is-the-proj... I kinda want to make a funny web page that insists that Oil Shell != Shell Oil just like Breakfast (meal) != Fast Break (basketball play) Blackjack (game) != Jack Black (actor) Bookcase != Casebook (type of textbook for law students) Backdrop (a kind of picture) != Drop back (football play apparently) upturn (improvement) != turn up (to be found) More examples appreciated :)
- istjohn 5y agocall out != outcall call in != incall insight != sight-in in turn != turn in instill != still in upend != end up
- EdwardDiego 5y ago* Breakwater (coastal protection against erosion) != water break (sports protection against dehydration) * love-in (peaceful public gathering focused on meditation, love, music, sex and/or use of psychedelic drugs) != in love * takeout (North American word for food intended to be consumed away from a restaurant's premises) != outtake, a scene or song not included in the final film/album, although sometimes funny ones appear in the credits. Great takeout: https://m.facebook.com/ninsbin https://m.facebook.com/ninsbin Great outtake: https://m.youtube.com/watch?v=bOpePo5Lx_I https://m.youtube.com/watch?v=bOpePo5Lx_I
- chubot 5y agoI like takeout / outtake :) Also thought of overturn (reverse a decision) / turnover (accounting or employees)
- chubot 5y ago(author here) If you've been following the project and are interested in getting involved, now is a good time as I'm helping new contributors get up to speed. This post describes recent efforts, which I want to expand on. If you know Python and shell, or C/C++ and shell, you can almost certainly contribute something! I should add that if you've gone through Crafting Interpreters (https://craftinginterpreters.com/ https://craftinginterpreters.com/) like I've seen so many people do, Oil is nearly identical architecturally to the first interpreter in Java, even though it's written in (statically typed) Python. The ideas apply directly, but this is a bit more "real world", with more detail, and with the addition of about 20 syscalls to implement a shell!
- EdwardDiego 5y agoQuestion for Oil users who've also used Fish, how would you compare the two? I'm greatly enjoying Fish, I really appreciate `history merge` and fish_add_path, and only hit the occasional muscle memory issue with things like $(expr) should be written as (expr), but Oil looks far more like Bash++, which I'm in favour of also.
- chubot 5y agoFor the forseeable future, Oil won't overlap with fish very much. That is, unless someone gets in touch and makes a big effort! I talked about that here: https://news.ycombinator.com/item?id=28547185 https://news.ycombinator.com/item?id=28547185 (also linked at the end of this blog post) Oil has the architecture and possibility to be something like fish (a great interactive shell). It has a nascent headless shell mode, e.g. for being driven by GUIs, which no other shell I know of has. As far as I recall, the Warp terminal that appeared here has to parse the stdout of a shell session in a weird way to deliver some nice UI features. The headless shell provides a clean API for that (or at least it should; people need to test it). And Oil uses a principled and accurate parser is for autocompletion. No other POSIX shell does this. But personally I'm putting that as a low priority in favor of the "batch" use case. I think the "killer use case" will probably be to have a better language for continuous builds and "cloud automation", which on current platforms like Github, Gitlab, and sourcehut use a lot of YAML and shell. I use a lot of this automation myself, and I expect it to dramatically increase in the software world in the next decade. And I expect new platforms to appear. There a lots of people complaining about playing whack-a-mole and with YAML and shell errors, waiting for a "git push" every time, etc. Also, these systems are profoundly inefficient. A better language could be the foundation for much better systems. Over the last year, the blog has hinted at this kind of thing pretty frequently. Get in touch if you're interested :)
- EdwardDiego 5y agoThat's a great niche to focus on actually - there's a looot of Bash in a lot of systems.
- jwdunne 5y ago
- mongol 5y agoI think Oil is really interesting as a concept, and seems to evolve in a slow but determined fashion. Have people started to use it though?
- pydry 5y agoI've tried fish / zsh and I've found them both a bit underwhelming. They were prettier and a bit more convenient, but IIRC in both cases the thing that made me pack it in after a trial was trying to run bash scripts written by other people. They would interpret them differently (once in a subtle, really annoying way) and give weird error messages. I am curious about oil but I found the "why use oil shell" explanation also slightly underwhelming. I'm also a bit concerned that its sales pitch seems to be almost entirely about "fixing" bash so that it is a better/stricter language. This is setting off alarm bells in my head coz it sounds like the exact same merry go round as last time. Like the author I heartily agree bash is a shit language and I'll never use it to script anything over 25 SLOC, but the shell is so embedded at this point that I'm loath to switch unless there are some really big wins and/or the transition is seamless. I'm unconvinced of either in this case. I do get the sense that there's some depth to this shell that isn't readily apparent from a surface glance and there is a lot that has been very carefully thought out, but whether that translates into some notion of "abstract language purity" or something that will actually benefit me on a day to day basis isn't clear. I also don't quite get this: >Why not use only Python? Because I'd rather write 100 lines of shell + 100 lines of Python than 500 lines of Python. This is basically the Unix Philosophy, and I didn't understand it until after I'd been programming for many years. I don't think I've ever written a python program that could be decomposed into 100 lines of shell + 100 lines of python. I'm curious as to what kind of example the author had in their head when they wrote this. In general I find python programs to be no longer than an equivalent shell, safer and often shorter, largely thanks to the library ecosystem.
- bronzecarnage 5y agoRegarding your first point, why not just run scripts with `bash script.sh` or even better, use shebangs and `./script.sh`? The standard shell experience is decades old, and makes it cumbersome to keep up with the pace of today. The appeal of zsh/fish is the user experience and extensibility. I have a shell config using zinit [^1] that installs my dev environment for me (fzf, tmux, nvim, and my zsh-plugins) as long as zsh exists on the new machine. While one may argue that they prefer strictly standard bash so that everything is POSIX compliant, you just have to ensure that your scripts are run with bash or whatever shell the script was made for. [^1]: https://github.com/zdharma-continuum/zinit https://github.com/zdharma-continuum/zinit
- DarkCrusader2 5y agoFrom the readme: > It's written in Python, so the code is short and easy to change. But we automatically translate it to C++ with custom tools, to make it fast and small. The deployed executable doesn't depend on Python. Why Python developers will do absolutely anything to work around the limitations of python but not use a different language.
- nawgz 5y ago> why python developers Isn’t it a perfectly understandable reason? We regularly pan C++ on here for its smorgasbord of implementation options for any given thing, and the complexity, customization, and fragility of a C++ code base always seems to be high especially for non experts in the domain. So, accordingly, people who know how to maintain code in a simpler and more flexible setup and can still convert to C++ for performance are taking a probable performance hit relative to “native” C++ (whatever that is in 2021), in order to maintain their tool with more ease. It’s very silly you move to slandering python developers and not contemplating the trade offs meaningfully
- DarkCrusader2 5y agoI am not sure how this is a slander. My point is, if python does not meet your performance/size/distribution requirements, choose something else instead of using "custom tools". Unless, compilation to other languages is supported as a first class feature by the language itself (for eg. the way Scala supports javascript and native binary), these work around are duct tapes to make Python do something it is not meant to do. Furthermore, there is no shortage of statically typed compiled languages to choose from. Go, Rust, Java(with GraalVM) or my recent favourite, Nim comes to mind.
- nawgz 5y agoIt is slander because you asked a question as if it was rhetorical when that actually had the easy answer that “the devs find Python to be the nicest C++ front end”, and again as I suggested it more or less seems to me that C++ front ends are all custom.