News for hackers. Stuff that matters.

birchb

Date 1.4.2023
Re:Scripting with Go on Monday March 14, 2022 @12:30AM (#30668530)
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.......
Done
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/
Um you can get actual trees with graphviz, or my favourite, YeD. I will add an example of that. https://github.com/birchb1024/frangipanni/issues/7
OK good idea, I was coming round to that myself. https://github.com/birchb1024/frangipanni/issues/5
I did not know that. But then it's BSD, right? 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.
Turing Complete
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.
Re:The TTY demystified (2008) on Sunday February 05, 2017 @06:51AM (#13571964)
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?
Re:Python List Comprehensions Explained Visually on Wednesday December 02, 2015 @11:09PM (#10667698)
I agree.
"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.

Re:“Why are there so many programming languages?” on Wednesday July 29, 2015 @11:25AM (#9969218)
Common Lisp was way too restrictive for me. I had to write my own language.