News for hackers. Stuff that matters.
Re:“ZLinq”, a Zero-Allocation LINQ Library for .NET by sherburt3 on Tuesday May 20, 2025 @08:35PM (#44047277)
I feel like pretty much every language with generics has a LINQ, like functools/itertools in Python, lodash for javascript. It’s just a different expression of the same ideas.
Re:“ZLinq”, a Zero-Allocation LINQ Library for .NET by jeswin on Tuesday May 20, 2025 @08:57PM (#44047362)
Nope, very different. Depending on whether the expression is on an Enumerable or a Queryable, the compiler generates an anonymous function or an AST. That is, you can get "code as data" as in say Lisp; and allows expressions to be converted to say SQL based on the backend.
Re:“ZLinq”, a Zero-Allocation LINQ Library for .NET by pjmlp on Wednesday May 21, 2025 @09:37AM (#44051306)
You can do exactly the same with Smalltalk metaclasses and reflection.

However I do conceed most developers will only see them for the first time in .NET languages.