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

  1. This is almost what C# does with LINQ to SQL, etc. Very cool hack.
    Replies (1)
    1. My port of LINQ into TypeScript: https://tinqerjs.org

      By now battle-tested in production.

      Replies (1)
      1. Can you compare it to kysely.dev?
        Replies (1)
        1. Not a big fan of kysely's approach, but it's subjective.

            kysely: query = query.where('id', '=', criteria.id)
            tinqerjs: query = query.where(x => x.id === criteria.id)
          
          Tinqerjs adopts LINQ's expression-tree based approach. It's type-safe, and I suppose so is kysely.