Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nsd
-
Announcing Hush, a modern shell scripting language
Repository of scripts written in the language - https://github.com/ngs-lang/nsd
-
Bash functions are better than I thought
> there isn't really an entry point in murex scripts
I have a nice trick in NGS for that. Under the idea that "small scripts should not suffer", script is running top to bottom without "entry point". However, if the script has defined main() function, it is invoked (with command line arguments passed).
Example - https://github.com/ngs-lang/nsd/blob/afe0cad5e506ec4ee2fa924...
> `args` still contains more boilerplate code than I'm happy with
Is there anything preventing you to have exactly the same functionality but with syntactic sugar that it looks like parameters declaration? (Just to be clear, keeping all the ARGV machinery).
Something like (assuming local variables are supported; if not, it could still be $args[Flags] etc):
function hippo(name:str, hungry:bool) {
-
I love jq, I hate jq. Help a competent grepper get a grasp on the terse language!
NGS Scripts Dumpster - collection of small scripts in NGS
- GitHub โ nushell/nushell: A new type of shell
-
No, you can't do it better in Python or bash (challenge)
Doing DevOps today? 99% either abuse bash or abuse a general purpose programming language.
bash does not meet any modern expectations from a programming language: syntax, error handling, data structures
General purpose languages such as Python, Ruby, etc are not domain specific enough to have the desired facilities.
Here is small example of straightforward solution to a small problem: list all CloudFormation stacks that are managed by the given CodePipeline.
https://github.com/ngs-lang/nsd/blob/02d66abb844b7dd6077b9976e3a03659cf4b3660/aws/codepipeline/pipeline-stacks.ngs
- Which CloudFormation stacks are managed by a CodePipeline - script
-
Delete CloudFormation Stack Including S3 Objects
The script is at https://github.com/ngs-lang/nsd/blob/master/aws/cloudformation/delete-stack.ngs
- What is your favorite shell and why
oh
- Understanding the Power of Lisp (2020)
- Bass โ Lisp dialect for scripting the infrastructure beneath your project
-
CommandConsole: A shell written in C
I think an extensible shell like oh shell would be something I would prefer. Though it should not need closures on heap to extend (which is ridolous slow on arithmetic) and generate the data types at compilation time.
-
Bash functions are better than I thought
> Is there a reason we arenโt using a shell with a proper programming language for scripting?
Mostly because the people who want to introduce a "programming language" into the shell don't prioritize being a shell.
Check out the "Oh" shell for contrast. This is what a programming language looks like when you force it to conform to being a shell first priority.
https://github.com/michaelmacinnis/oh
https://www.youtube.com/watch?v=v1m-WEZz46U
This is "Scheme-like" but has FEXPRs so things can be redefined and evaluation can be controlled.
-
Show HN: SectorLISP Now Fits in One Sector
I love chatting about Kernel :D Here's my most recent post: https://lobste.rs/s/d0hogq/problem_with_macros#c_nozcrm
Thanks for showing me Oh! It really has f-exprs?! I didn't immediately see it in https://github.com/michaelmacinnis/oh/blob/main/doc/manual.m...
- Oh, a New Unix Shell
What are some alternatives?
ngs - Next Generation Shell (NGS)
elvish - Powerful scripting language & Versatile interactive shell
bash-core - Core functions for any Bash program.
sicp - HTML5/EPUB3 version of SICP
fx - Terminal JSON viewer & processor
cl-unix-cybernetics - UNIX system administration in Common Lisp
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
hasura-ci-cd-action
nushell - A new type of shell
PPSS - Parallel Processing Shell Script
basalt - The rock-solid Bash package manager.
to - ๐ Touch Lightweight Markup Language; Familiar, Extendable, Auto-Formattable