Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ilyash
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
ilyash
4y ago
The idea of JSON output is brought up regularly. Very interesting project that helps with that is https://wiki.freebsd.org/LibXo Meanwhile, there is jc so that jc df returns JSON. See https://github.com/kell
32.
▲
Bullet Fee
(en.wikipedia.org)
2 points
by
ilyash
4y ago
|
0 comments
33.
▲
What is the difference between null and undefined in JavaScript?
(stackoverflow.com)
2 points
by
ilyash
4y ago
|
0 comments
34.
▲
How complex can a program be written in pure Bash?
(unix.stackexchange.com)
2 points
by
ilyash
4y ago
|
0 comments
35.
▲
by
ilyash
4y ago
This weekend, like any other time when it's possible, I'm continuing to work on Next Generation Shell. It is a fully-fledged programming language for the DevOps-y niche (the one which was once dominated by Perl). The language cont
36.
▲
by
ilyash
4y ago
Better ergonomics of error handling is one of the many reasons the author is working on the new shell, Oil. More at https://www.oilshell.org/blog/2018/01/28.html I am working on another one, Next Generation S
37.
▲
by
ilyash
4y ago
I guess that's what's called "for humans". Thanks!
38.
▲
by
ilyash
4y ago
Prepared a comparison to Next Generation Shell here: https://github.com/ngs-lang/ngs/wiki/Hush-vs-NGS On one hand we are on it since 2013 so there is "more" but I would actually like to highlight th
39.
▲
by
ilyash
4y ago
In Next Generation Shell (author here), it is not as ergonomic (yet?) but on the other hand it's a fully fledged no-nonsense programming language... and I claim quite a readable. good_data = fetch("openlibrary.json").docs.fil
40.
▲
by
ilyash
4y ago
While we are at it, I have a list of JSON tools for command line here - https://ilya-sher.org/2018/04/10/list-of-json-tools-for-comm...
41.
▲
by
ilyash
4y ago
.. or you can try Next Generation Shell (author here): fetch("cars.json").filter({"color": "red"}) # or echo(fetch("cars.json").filter({"color": "red"}))
42.
▲
by
ilyash
4y ago
Hi. Author of Next Generation Shell. I share the line of thought with Hush. But then we have arrived at different solutions. Small comparison here - https://www.reddit.com/r/ProgrammingLanguages/comments/ubwiz
43.
▲
by
ilyash
4y ago
Thank you! I was thinking to add some code snippets on the website. Other projects do that and I think it gives you the "feel" pretty quickly.
44.
▲
by
ilyash
4y ago
Thanks!
45.
▲
by
ilyash
4y ago
It is now the niche of Next Generation Shell. Totally not humble and biased opinion... maybe. I'm the author. You are very welcome to make your own judgement - https://ngs-lang.org/
46.
▲
by
ilyash
4y ago
Next Generation Shell: "hold my beer" F fuckoff(x) "lol" echo(5.fuckoff()) echo("Hello World".fuckoff())
47.
▲
by
ilyash
4y ago
Yep. Worked for us when the issue got quite a bit of attention. Details - https://ilya-sher.org/2018/03/23/google-deleted-our-g-suite/
48.
▲
by
ilyash
5y ago
Thank you! For scripting, it is significantly better than bash (at least for most of the cases that I have). The interactive part is not implemented yet but it is planned to be quite different from the dominant decades old approach. The pla
49.
▲
by
ilyash
5y ago
For comparison, in Next Generation Shell, the above would be solved as follows: version_ok = version.split(".").map(Int) >= [3, 6, 8]
50.
▲
by
ilyash
5y ago
Hello. Author of Next Generation Shell here. Good to see the attempt to fix the shitty user experience that is decades old. More NGS perspective on the UI - https://github.com/ngs-lang/ngs/wiki/UI-Design
51.
▲
by
ilyash
5y ago
Nice... but how you fix the way something fundamental as the way `if` works in bash? Each `if` is a bomb. `if grep -q ...;then ...;else ...;fi`. Two branches for three possible exit codes. Given a long script and big amount of output, you w
52.
▲
by
ilyash
5y ago
Depending on your exact needs, you might also want to try Next Generation Shell. It's a fully featured programming language for the DevOps-y stuff with convenient "print JSON" switch so "ngs -pj YOUR_EXPR" evaluates
53.
▲
by
ilyash
5y ago
Previously posted - https://news.ycombinator.com/item?id=30194136
54.
▲
by
ilyash
5y ago
Yep. In Next Generation Shell for example. At the time that the language was created, around 2013, it was clear to me (author of the language) that ordered traversal is beneficial and outweighs the downsides (memory usage).
55.
▲
by
ilyash
5y ago
Interesting to see how nobody cares about exit code 2. Modify your grep command to have syntax error and you will always think you have all the translations. Edit: ah.. forgot the whole point.. In Next Generation Shell (author here) this do
56.
▲
by
ilyash
5y ago
Hi. Author of Next Generation Shell here. Totally agree. Also UI of the shell is stuck and ignores pretty much everything that happened in last decades. Here is my plan for the UI: https://github.com/ngs-lang/ngs/w
57.
▲
by
ilyash
5y ago
"Why I have no favorite programming language" https://ilya-sher.org/2017/10/10/why-i-have-no-favorite-prog...
58.
▲
by
ilyash
5y ago
> As a daily shell user, I want a shell that uses even less resources Why is this important consideration for you? What's the use case?
59.
▲
by
ilyash
5y ago
> It’s extremely convenient for shell scripting (basically anywhere I might have used Perl in the past). Exactly the uses cases that I want to "steal" from Python, Ruby, Perl, etc. Not because Next Generation Shell is "bet
60.
▲
by
ilyash
5y ago
> No "proper programming language" is capable of ergonomically piping between programs. Solved. https://github.com/ngs-lang/ngs I'm the author. Frustrated with exactly this situation I created Next G
More ›