Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ilyash
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
ilyash
5y ago
I have considered different constructs like "where:" to be placed in code blocks (such as function) when working on Next Generation Shell. I have decided against because these constructs will not be executed at runtime (when the f
92.
▲
by
ilyash
5y ago
In that case, welcome to Next Generation Shell (I'm the author), which actually cares about errors when running external programs. Yes, I mean much more than naive "non-zero is error" because that's just not true in many
93.
▲
by
ilyash
5y ago
... and hope that $FILENAME does not start with a dash... just in case you don't have enough landmines to step on.
94.
▲
by
ilyash
5y ago
> name the pieces Solved without splitting into functions. https://ilya-sher.org/2019/10/21/section-syntax-next-generat...
95.
▲
by
ilyash
5y ago
> I'm 97% sure you're going to stick with your own language Agree with the estimation :) > but for others seriously give Ruby a look Of course. Python is not out of the question either. I think it's mostly about alignme
96.
▲
by
ilyash
5y ago
I see the discussion turns out to be general about programming languages. Here is my take: I am doing Ops (aka DevOps, aka system administration) and I was using bash and Python. I never clicked with Ruby. I was suffering. Constant thought
97.
▲
by
ilyash
5y ago
> visual boundary I agree with this so much that I have added (some time ago) a syntax for that to Next Generation Shell. https://ilya-sher.org/2019/10/21/section-syntax-next-generat... TL;DR: sectio
98.
▲
by
ilyash
5y ago
Shameless plug: https://github.com/ngs-lang/ngs - Next Generation Shell Compared to other modern alternatives, NGS is "programming language first". Repository of scripts written in NGS, aptly named "NGS
99.
▲
by
ilyash
5y ago
If it was honest comment - thanks! If it was trolling - wanna talk about Kubernetes?
100.
▲
by
ilyash
5y ago
> > Doing DevOps today > What does this mean? Unfortunately there was never a good name for what we do. I'm using DevOps term not in the original meaning but (abuse it) in the sense that many (most?) would understand. DevOps h
101.
▲
No, you can't do it better in Python or bash (challenge)
7 points
by
ilyash
5y ago
|
4 comments
102.
▲
by
ilyash
5y ago
What if I told you there is a modern programming language designed specifically for DevOps? https://ngs-lang.org/ Born out of frustration with bash and Python. and ... nope, never considered JS for that type of scripting.
103.
▲
by
ilyash
6y ago
Next Generation Shell was born exactly out of the pain of using bash and Python. I'm the author and I felt the same way. > shelling out when needed is not pleasant, Handled properly because the language was built ground up for Ops t
104.
▲
by
ilyash
6y ago
Author of Next Generation Shell here - https://github.com/ngs-lang/ngs/ Yep, there is a bunch! Andy, author of Oil Shell has a nice list for you: https://github.com/oilshell/oil/wiki/
105.
▲
by
ilyash
6y ago
> writing a garbage collector has been harder than I expected. That is exactly why I have chosen to use a library for (shameless plug) Next Generation Shell. Edit: Well, not exactly. I did expect. At the start of the project it looked ro
106.
▲
by
ilyash
6y ago
To the best of my understanding, probably no. * It's very hard to make changes to bash without breaking anything given the existing amount of code written in bash. * If I remember correctly, bash does not have garbage collection and so
107.
▲
by
ilyash
6y ago
PowerShell - bad syntax and quirky semantics. Looks like on the syntax front they took the bad parts from bash and Perl.
108.
▲
by
ilyash
6y ago
Hi. Author of Next Generation Shell here. I had roughly the same motivation. The solution differs widely though. I noted that the main difference of NGS from other modern shells is the attention, prioritization and investment in the program
109.
▲
by
ilyash
6y ago
Thoughts regarding generalized pattern matching. https://github.com/ngs-lang/ngs/wiki/UPM-Design Includes "Prior Art" links section.
110.
▲
by
ilyash
6y ago
> next gen shell needs to focus on structured data Agree completely. I wrote about this "JQ is a symptom" - https://ilya-sher.org/2018/09/10/jq-is-a-symptom/
111.
▲
by
ilyash
6y ago
Hi! Author of NGS here. TL;DR about NGS: * NGS is programming language first, as opposed to most (or all?) alternatives. A language designed specifically for Ops. In practice it means geared towards particular use cases - https://
112.
▲
by
ilyash
6y ago
Hi. I'm Ilya, author of NGS.I see there is (at least) some overlap between the UI you are thinking about and the one that I'm thinking about - https://github.com/ngs-lang/ngs/wiki/UI-Design The plan
113.
▲
Bash or Python? The Square Pegs and a Round Hole Situation
(ilya-sher.org)
1 points
by
ilyash
6y ago
|
0 comments
114.
▲
Next Generation Shell version 0.2.9 is out
(github.com)
2 points
by
ilyash
6y ago
|
0 comments
115.
▲
“But It Works”
(ilya-sher.org)
3 points
by
ilyash
6y ago
|
0 comments
116.
▲
by
ilyash
6y ago
Clarification: NGS sucks differently. That's it. Don't know how you guys get from "From my perspective, all languages suck, while NGS aims to suck less than the rest for the intended use cases" to how NGS is generally go
117.
▲
Python 3.8 Makes me Sad Again
(ilya-sher.org)
24 points
by
ilyash
6y ago
|
46 comments
118.
▲
by
ilyash
6y ago
Author of NGS here. Ask me anything about the feature or NGS in general.
119.
▲
by
ilyash
7y ago
> I've yet to find a programming language that makes I/O redirection, piping, and process substitution[1] as easy as Bash does. Next Generation Shell - mostly there. If something of the above is missing - it's a bug and yo
120.
▲
by
ilyash
7y ago
Hi. Author of Next Generation Shell here. Here is my take on bash vs Python and friends. I am frustrated by both. bash - domain specific language and huge library (CLI utilities) and lets you get the job done but not a language I would like
More ›