Coder Social home page Coder Social logo

Comments (10)

isc30 avatar isc30 commented on May 28, 2024 3

that's lame, let the users (and benchmarks) decide which one is better 🤣

warning: the "better lib" is his library

from linq-collections.

kutyel avatar kutyel commented on May 28, 2024 2

@apawsey or you could just use a decent LinQ implementation like this one 😉

from linq-collections.

apawsey avatar apawsey commented on May 28, 2024 1

Haha... Thanks for the 👍
Yeah, so far I'm loving this... easy approach, totally intuitive for anyone having used linq before. Will happily contribute once I know the status of things!

Think you've got a good thing going here!

from linq-collections.

kutyel avatar kutyel commented on May 28, 2024 1

Yeah I haven't seen the benchmarks but yours is 3x more code and therefore more useless code in the bundle, compare this with this 😂

from linq-collections.

isc30 avatar isc30 commented on May 28, 2024 1

More code doesn't mean less performance lol.... it means more functionality + tests
About benchmarkt, no worries, I just did one for you:

#5fba7d linq-collections: 116 ops/s

const list = new LinqCollections.List(data); // 100k elements
const array = list.distinct().toArray();

#f03c15 linq.ts: 0.18 ops/s

const list = new LinqTs.List(data); // 100k elements
const array = list.Distinct();

x3 more code, but x1000 better performance 🥇

from linq-collections.

isc30 avatar isc30 commented on May 28, 2024 1

i'll be adding a benchmarkt project, thanks for the idea 👍

from linq-collections.

isc30 avatar isc30 commented on May 28, 2024

Hi, thanks for your comment.
I just realized that you are totally right, no one except me knows what's currently missing.
Adding this will help both contributors and users! nice idea 👍

from linq-collections.

isc30 avatar isc30 commented on May 28, 2024

I created a project with current status of the things, can be found HERE
For first version, missing features are: skipWhile, sequenceEquals, longCount, join, intersect, groupJoin, toLookup. I would really love to see some contribution 😄 maybe easier thing for start is sequenceEquals

from linq-collections.

apawsey avatar apawsey commented on May 28, 2024

Well I can tell you I picked this over yours @kutyel because yours has only lists... I wanted different types of collections. I don't think you can really claim to have a linq implementation if you only support one collection type... I guess you can have a lists of other types of things, but doesn't feel right to me. And to be fair... the benchmarks do kinda speak for themselves.

from linq-collections.

isc30 avatar isc30 commented on May 28, 2024

Hi Adam, thanks for sharing your reasons to pick my lib, this really helps a lot 😄

From my side, the main reasons to create my own lib were:

  • Correct implementation (strict microsoft's standard with exceptions etc) + definitions
  • REAL unit tests (currently > 2000)
  • More (and better) collection types (dictionary...)
  • ES5 compatibility (!!!!)
  • PERFORMANCE (deferred execution, iterators, ...)

Bonus point: this lib is even faster than native JS approaches
Example of my .where vs native .filter: https://jsperf.com/native-vs-isc

from linq-collections.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.