Unofficial Hacker News companion — get notified on comment replies, and more.

Lua as a Query Language (opens external site)

109 points by remywang 3 days ago | remy.wang | 32 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (7)

  1. > And that's the silliest, most foolish justification ever.

    It's not a justification, it's just reality. You not accepting it doesn't change anything. People don't write like yoda and they don't want to read expressions with an order that they don't think is natural.

    This is just how it is. The sooner you come to grips with it the sooner you can move on and join everyone else in focusing on the big picture.

    Replies (1)
    1. > in focusing on the big picture

      Oh, I have the big picture. I see it; I've been staring at it for years. You confuse my enthusiasm for sentimentality. In fact, it's driven by pure pragmatism. I almost never choose a tool for its aesthetics, rarely for ergonomics - I use things for their utility and practical angle. I have zero problem with using Lua as is in a team setting, which doesn't happen a lot. Lua runtimes are typically used for personal scripting, thus allowing some flexibility for spicing things up. Fennel comes in enormously handy here. You probably have no idea, because you can't see past the common horizon.

      > it's just reality

      Yes, it is. The crowd has no wisdom, and as history shows us over and over again, popular choices are not only not always ideal - most of the time they are outright the wrong pick. I'm very grateful for learning to be a well-grounded pragmatist. I'd never dismiss a tool, a philosophy or a trick that may look unnatural without first understanding the idea. Sometimes, looking past the surface reveals shortcuts worth knowing.

      Replies (1)
      1. Seems like a self righteous rationalization that most people don't want what you like.

        Syntax is immediate and visible. It isn't a technical decision that takes months or years to materialize like the architecture of a long term program. People go with what they like and move on.

        Replies (1)
        1. I feel there's a concept you have missed when studying things required for the field you are currently in. It is called "trade-offs". I suggest you grok this concept; it ain't that hard.
          Replies (1)
          1. Now you're into the insults after running out of real information to talk about.
            Replies (1)
            1. Well, you gave me no option. What am I supposed to do when you're outright rejecting any attempt at a constructive dialog? The subject was DSLs, for which Lisp dialects are famous - low cost, one of the best pragmatic choices known for decades. That is simply factually true. Sure, like any other solution, they have their own share of trade-offs, yet, properly used, they are completely worth every penny.

              Fennel specifically hosted on top of Lua is a fantastic tool. There are tons of interesting things one can do in a way that's just more difficult otherwise.

              Continue this thread (1 replies) →