Comments (10)
that's lame, let the users (and benchmarks) decide which one is better 🤣
warning: the "better lib" is his library
from linq-collections.
@apawsey or you could just use a decent LinQ implementation like this one 😉
from linq-collections.
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.
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.
More code doesn't mean less performance lol.... it means more functionality + tests
About benchmarkt, no worries, I just did one for you:
const list = new LinqCollections.List(data); // 100k elements
const array = list.distinct().toArray();
const list = new LinqTs.List(data); // 100k elements
const array = list.Distinct();
x3 more code, but x1000 better performance 🥇
from linq-collections.
i'll be adding a benchmarkt project, thanks for the idea 👍
from linq-collections.
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.
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.
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.
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)
- ToLookup HOT 1
- SequenceEqual
- SkipWhile HOT 2
- Symbol.Iterator and Generators support HOT 3
- Configure webpack + gulp + browser exports
- Zip HOT 1
- DefaultIfEmpty
- Hash and Equality HOT 1
- More overloads using comparers HOT 1
- GroupBy uses inmediate execution instead of deferred HOT 1
- Proper iterator testing
- Add proper deferred execution testing HOT 1
- Fix TsLint HOT 1
- Make List implements IEnumerable HOT 1
- I cloned the source and a error has occur. HOT 5
- warning when building HOT 2
- Is this project still actively maintained or dead? HOT 1
- How to group by multiple keys and select those keys?
- `readonly RowAccessor[]` is not assignable to parameter of type `RowAccessor[]` ?
- Error: No "exports" main defined in ...\node_modules\linq-to-typescript\package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linq-collections.