Unofficial Hacker News client - receive Push Notifications on replies.

Lua as a Query Language (opens external site)

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

View full thread · View on Hacker News

Comment thread (6)

  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.

            Replies (1)
            1. > Well, you gave me no option.

              Now you're rationalizing your bad behavior. Instead of using real information and explanations you're pretending that you resorting to insults is because someone else made you do it. Take responsibility for your words and actions.

              > rejecting any attempt at a constructive dialog?

              Explaining reality isn't "rejecting constructive dialog" it just isn't what you want to hear.