birchb
birchb on Hacker News
Posted by
birchb on Monday April 10, 2023 @07:43PM
from the dohdolordollar.blogspot.com dept.
I had a look at this library today.
Quote the author: "The script library is implemented entirely in Go, and does not require any external userland programs." Sorry but that's not scripting anymore. We all like using userland programs! it is The Way.
Most programs tell you why they failed on stderr. Seems like stderr is lost when a pipe component fails. Strangely stderr and stdout are conflated in the pipe structure - there is no way to get stderr!
You just get the numeric exit status.
IO redirection appears to be missing.
Difficult to use in production.
Orca is great fun. I was inspired to start write a derivative application - A live-coding logic simulator using the same TUI ideas. I've just got past the prototype-hackery stage and am using it to model a real piece of hardware.
https://asciinema.org/a/447367
https://github.com/birchb1024/betula/blob/trunk/README.md
Kudos to Devine Lu Linvega
.1D2..V2..2D5.....2D3....5D8......8DD.......2D3..........
..\*:04......:01B....:03D...:04P.....:08F......:06J.......
No worries mate. Your point is basically 'What a fuss over a very simple bit of code.'? I'm as surprised as you are.
did you try the '-format json' option?
I love your enthusiasm, and thanks for the code. But 1) the above only works with sorted input and 2) adding it to find that would be like adding '-v' to 'cat' which as we know is considered harmful.
http://harmful.cat-v.org/cat-v/
I refer you to the answer I gave earlier.
Grepping the _input_ is, like, Standard. Knowhatimean bruv?
Sorry macos people, I don't own an Apple. (Not strictly true, I have an iMac rescued from a dumpster, but it's running Ubuntu now). Apparently greadlink is available
https://stackoverflow.com/a/4031502 for you.
Author here: Often I have to digest log files and lists of Azure resource names. I prefer to work with hierarchies of things, so I wrote this simple filter. Turns out to quite handy, especially when combined with awk and its friends.
Posted by
birchb on Monday March 29, 2021 @10:50AM
from the show-hn dept.
Posted by
birchb on Sunday July 19, 2020 @12:19AM
from the show-hn dept.
These days devops workers often have no choice but to write scads of YAML for tools like GoCD, Concourse, K8s etc etc.
To be efficient we turn to tools like Helm. But I recommend everyone write their own TC YAML tool - it does not take long and it's fun. If you don't have time, you can use mine.
I wrote two 'macro processor's for YAML. Yamp (in Python, https://github.com/birchb1024/yamp) and GoYamp (GoLang, https://github.com/birchb1024/goyamp). GoYamp is fast. Some of my users have generated thousands of YAML files with them.
IMO ytt is not as good because it seems to embed its syntax in comments. You can use tools like m4 and Jinja2 but you'll be counting indentations all day. Yamp and GoYamp are 100% YAML so indentation just works. Start here: https://github.com/birchb1024/goyamp !
I absolutely adore the ambiguity in this HN title. Perfectly crafted. Well done.
ASCII was invented in 1963, so the author's statement that Telex was ASCII-based is probably wrong. Is the rest of the article also as inaccurate?
"This is my bet: the age of dynamic languages is over. There will be no new successful ones."
I wonder what Shira counts as "successful"? Popular?
Sigh.
Common Lisp was way too restrictive for me. I had to write my own language.