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 (10)

  1. Don't ever try Fennel. In general, don't ever try Lisp dialects. You will be disappointed seeing where everyone else has been moving. It would feel as if the industry at large chooses to stay foolish, for the sake of questionable gains.
    Replies (1)
    1. People try this stuff all the time, they don't want to have to read s-expressions.
      Replies (1)
      1. And that's the silliest, most foolish justification ever. It's not like s-expressions make things unequivocally cryptic. If anything, things get far more readable - this can be observed by simply grabbing a small piece of JSON and converting it to idiomatic EDN - it's almost twice as compact, there's no redundant noise, commas are optional - things can be aligned and read in tabular form.
        Replies (1)
        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.

              Continue this thread (1 replies) →