Better HN
topnewbestaskshowjobs
Log inSign up

birchb

155 karma · joined Jun 21, 2010 (16y ago) · 28 submissions

Submissions

comment 3y ago · link · parent

Date 1.4.2023

2.

We’re one step closer to reading a developer’s mind(dohdolordollar.blogspot.com ↗)

2 points · by birchb · 3y ago · 1 comment

comment 4y ago · link · parent

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.

comment 5y ago · link · parent

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.......

comment 5y ago · link · parent

Mac binary https://github.com/birchb1024/frangipanni/releases/download/...

comment 5y ago · link · parent

Done

comment 5y ago · link · parent

No worries mate. Your point is basically 'What a fuss over a very simple bit of code.'? I'm as surprised as you are.

comment 5y ago · link · parent

did you try the '-format json' option?

comment 5y ago · link · parent

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/

comment 5y ago · link · parent

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

comment 5y ago · link · parent

Sure. https://github.com/birchb1024/frangipanni/issues/6

comment 5y ago · link · parent

OK good idea, I was coming round to that myself. https://github.com/birchb1024/frangipanni/issues/5

comment 5y ago · link · parent

I did not know that. But then it's BSD, right? http://harmful.cat-v.org/cat-v/.

comment 5y ago · link · parent

I refer you to the answer I gave earlier.

comment 5y ago · link · parent

Grepping the _input_ is, like, Standard. Knowhatimean bruv?

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

18.

Show HN: I wrote a program to convert lines of text into trees(github.com ↗)

333 points · by birchb · 5y ago · 53 comments

19.

Show HN: Goyamp – The Macro Processor for YAML and JSON(github.com ↗)

1 points · by birchb · 6y ago · discuss

comment 6y ago · link · parent

Turing Complete

comment 6y ago · link · parent

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 !

comment 8y ago · link · parent

I absolutely adore the ambiguity in this HN title. Perfectly crafted. Well done.

comment 9y ago · link · parent

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?

comment 10y ago · link · parent

I agree.

comment 10y ago · link · parent

"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.

comment 11y ago · link · parent

Common Lisp was way too restrictive for me. I had to write my own language.