Implementing LINQ-for-objects in Python

  • October 11, 2012 · 7:00 PM

The Language Integrated Query (LINQ) feature of Microsoft's .NET Framework provides an DSL for expressing queries over arbitrary data sources. Using LINQ with one data source type in particular - simple in-memory collections - has proven particularly popular with .NET programmers, such that many .NET developers now eschew many imperative constructs in favour of the declarative, functional style afforded by LINQ-to-objects.

Python already has strong support for lazily transforming collections with its generator syntax, which although concise in simple cases can be unwieldy for more complex queries.

At this meetup, I'll present "asq", an implementation of LINQ-to-objects for Python which has been well received and met with some success. I'll introduce LINQ, explain the implementation if asq and demonstrate its use. I'll also outline some ideas for future directions for the library.

Join or login to comment.

  • Robert S.

    I've posted the slides I presented at this meetup here:

    https://speakerdeck.com/robsmallshire/implementing-linq-for-objects-in-python

    October 24, 2012

  • Sukhvinder S.

    Very interesting and fun to see how it was demonstrated

    October 12, 2012

  • Odin Hørthe O.

    Great presentation. I was surprised at how much I liked LINQ/asq - the quick and easy demos on the web site doesn't justify why this could be wanted. I'll def. use it. Venue could need some more noise reduction, and will anyway next meetup be too small ;-)

    October 12, 2012

  • Robert S.

    I enjoyed presenting. I was gratified so many folks turned out. Attentive audience and great questions.

    October 11, 2012

  • Odin Hørthe O.

    it's a def yes. But it would be a test for suitedness because we have only done workshops before, and it is a doublebook with buold night, but they want to test it too. roxar is probably more well suited for direct presentations, but we can always try rearranging a bit, maybe even use the big entrance outside as venue (it'd need a projector, ours is not portable). Up to you :) And the ones that are going, Lysaker is quite far away from where I'm coming from and going that day.

    October 5, 2012

    • Robert S.

      Great! Bitraf it is; I'm too curious to pass up on the opportunity! We'll try to use your fixed projector. It will be a fun experiment.

      October 5, 2012

  • Odin Hørthe O.

    If it's under 20 people, we can host it at Bitraf, btw. Over that, the venue isn't well suited.

    September 16, 2012

    • Odin Hørthe O.

      Okay. About Bitraf, I asked the guys who had already booked that thursday when I got your email, but I didn't get a reply. I would that as "it's okay".

      October 4, 2012

    • Robert S.

      Are you saying we can definitely still use Bitraf?

      October 4, 2012

Our Sponsors

People in this
Meetup are also in:

Create a Meetup Group and meet new people

Get started Learn more
Allison

Meetup has allowed me to meet people I wouldn't have met naturally - they're totally different than me.

Allison, started Women's Adventure Travel

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy