Viewing profile — garethrowlands
garethrowlands
HN member- Joined
- Mon, Jul 16, 2018, 3:09 PM UTC
- HN karma
- 316
- Public activity
- 214 items
- HN profile
- View on Hacker News ↗
About garethrowlands
No profile information was provided.
Recent public activity
-
comment
Comment #49135514
It's really not that simple. Yaml can be more token efficient but not necessarily. And it's often not the biggest factor.
-
comment
Comment #49058071
I totally agree with you. > the goodness of language for long code is inversely proportional to how nice it is for shell one-liners Well, except for this bit. Oil or fish and awk a…
-
comment
Comment #49058034
Yeah, I don't see pwsh finding a place in the ecosystem. Even oil or fish struggle. Their place was mostly taken by python (which is a huge dependency but not another huge dependen…
-
comment
Comment #49057992
I like your 2026 perspective. Objectively, the posix shell syntax is genuinely bad, even though the overall system that it enabled is amazing. It's a very old system that took off …
-
comment
Comment #49057962
The trinary is semantically just an if expression though. Perl inherits C's problem that `if` can't be used in an expression context: my $x = if ($cond) { 1 } else { 2 }; # Syntax …
-
comment
Comment #49057742
Absolutely! Your company likely started using bash before python was ubiquitous.
-
comment
Comment #49057708
I still think that learning the shell environment makes a lot of sense these days. But mainly for interactive use. It's amazing the scripts your LLM can make you with, say, fd and …
-
comment
Comment #49057683
Heh, I like that. We are indeed stuck with posix shell syntax; I didn't claim we weren't.
-
comment
Comment #49057667
There are plenty of alternative shells that don't suffer these problems. Posix syntax didn't win because it was better - it's the classic 'worse is better'. > Old doesn't imply arc…
-
comment
Comment #49057539
Sorry, the backticks were merely meant to delimit the code.
-
comment
Comment #49057214
Some models are better than others. But it's all fixable with a relatively small skill. Try PowerShell Windows Skill perhaps.
-
comment
Comment #49057160
$ Hey, claude, I've figured out the powershell one-liner we need and I've pasted it below. Please insert it into the application. ... I have analysed your idiomatic one-liner and p…
-
comment
Comment #49057085
I have some absolutely amazing bash scripts that I would never have contemplated making myself in bash. And they'd only have been somewhat better in python. Claude for the win!
-
comment
Comment #49056996
> System shell, however, isn't meant for writing entire applications. Programmable shells are, in fact, for programming. That posix shell syntax makes it impractical for meaningful…
-
comment
Comment #49056777
The only upside of weird bash tricks is there's so much bash out there that the LLMs are really well trained on it - so you won't have to read the script, just the tests.
-
comment
Comment #49056764
Articles like this are fun but they all come from posix shell syntax being fundamentally bad for scripting/programming. All the piping stuff is great, of course. And the overall ec…
-
comment
Comment #48872888
The number one hard working concept in Haskell is parameterisation. A typical Haskell concept is just a concept, not a Haskell concept.
-
comment
Comment #48612496
That map doesn't seem to include the trees in actual parks. Somewhere like Hampstead Heath or Richmond Park has actual woods.
-
comment
Comment #48612476
That's awesome. Though, it doesn't seem to think Hampstead Heath has any trees. Nor Croydon, not even Thornton Heath. The Wilderness in Richmond Park seems to be a missing spot, as…
-
comment
Comment #46412768
Citation needed.
-
comment
Comment #45968083
STM isn't really used in Go like it is in Haskell. Here's the example from a Go STM package that's based on Haskell STM. It has gotchas that you won't encounter in Haskell though, …
-
comment
Comment #45952407
It's very good. And quite short!
-
comment
Comment #45825457
XSLT's matching rules allow a 'push' style of transform that's really neat. But you can actually do that with any programming language such as Javascript.
-
comment
Comment #45825403
I used to use XSLT a lot, though it was a while ago. You can use Javascript to get the same effect and, indeed, write your transforms in much the same style as XSLT. Javascript has…
-
comment
Comment #45772077
The term 'variable' is from mathematics. As others have said, the values of variables do vary but they do not mutate.