Live data from Hacker News

Viewing profile — garethrowlands

garethrowlands

HN member
Joined
Mon, Jul 16, 2018, 3:09 PM UTC
HN karma
316
Public activity
214 items

About garethrowlands

No profile information was provided.

Recent public activity

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

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

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

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

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

  6. comment
    Comment #49057742

    Absolutely! Your company likely started using bash before python was ubiquitous.

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

  8. comment
    Comment #49057683

    Heh, I like that. We are indeed stuck with posix shell syntax; I didn't claim we weren't.

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

  10. comment
    Comment #49057539

    Sorry, the backticks were merely meant to delimit the code.

  11. comment
    Comment #49057214

    Some models are better than others. But it's all fixable with a relatively small skill. Try PowerShell Windows Skill perhaps.

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

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

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

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

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

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

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

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

  20. comment
    Comment #46412768

    Citation needed.

  21. 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, …

  22. comment
    Comment #45952407

    It's very good. And quite short!

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

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

  25. comment
    Comment #45772077

    The term 'variable' is from mathematics. As others have said, the values of variables do vary but they do not mutate.