News for hackers. Stuff that matters.
Re:“ZLinq”, a Zero-Allocation LINQ Library for .NET by tehlike on Tuesday May 20, 2025 @08:35PM (#44047279)
It's part of the compiler - ast. Linq has two forms - one in the linq ordinary syntax

from x select x.name

And other is just lambda with anonymous types and so on.

For the lambda syntax, you can just do this: https://www.npmjs.com/package/linq

Of course, if you want to run this against a query provider, you do need compiler support to instead give you an expression tree, and provider to process it and convert them to a language (often sql) that database can understand.

There seems to be some transpilers, or things like that - but i don't know what the state of the art is on this: https://github.com/sinclairzx81/linqbox

There are no comments on this comment yet.