Why for Dart does not have librares, like "lo-dash", "backbone" or "underscore"?

1,148 views
Skip to first unread message

Alexei Solovei

unread,
Feb 4, 2013, 3:49:14 AM2/4/13
to mi...@dartlang.org

Ladislav Thon

unread,
Feb 4, 2013, 3:58:18 AM2/4/13
to mi...@dartlang.org
The need for lo-dash or underscore is pretty minimal, as the language is reasonable and the collections library is full-featured. (BTW, I used to have a library called Deequery for working with collections, before the new collections library came, but I'm not sure I'm going to continue maintaining it.)

Backbone is a different thing, though -- and there are some client-side MVC frameworks in Dart already.

LT

Lasse R.H. Nielsen

unread,
Feb 4, 2013, 4:01:20 AM2/4/13
to mi...@dartlang.org
I'd like to think it is because Dart doesn't need a kludge on the side to be useful :)

Underscore and Lo-dash are utility libraries for JavaScript that adds some features that exist in other languages, and some features that only makes sense in JavaScript. In the Dart libraries, we have already added a lot of the functionality to lists and maps that underscore is adding to JavaScript.

For Backbone, you might be able to use Dart Webcomponents (but I haven't used either so they might be miles apart :)

Cheers.
/L
--
Lasse R.H. Nielsen - l...@google.com  
'Faith without judgement merely degrades the spirit divine'
Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K - Denmark - CVR nr. 28 86 69 84

mythz

unread,
Feb 4, 2013, 8:13:26 AM2/4/13
to mi...@dartlang.org
I've made a port for Underscore.js a while ago at: https://github.com/Dartist/Mixins

This was created before Dart had mixins and many of their newer collection methods, although it still contains a lot of functionality not currently in Dart's libs.
It's also extensible, so you have the opportunity to add your own utilities to the wrapper functions.

Cheers,



On Monday, February 4, 2013 3:49:14 AM UTC-5, Alexei Solovei wrote:

John Messerly

unread,
Feb 4, 2013, 10:55:31 PM2/4/13
to mi...@dartlang.org
For UI frameworks/libraries, you might also like http://www.buckshotui.org/ and http://rikulo.org/.

--
Consider asking HOWTO questions at Stack Overflow: http://stackoverflow.com/tags/dart
 
 

Don Olmstead

unread,
Feb 5, 2013, 1:55:43 PM2/5/13
to mi...@dartlang.org
I haven't used Rikulo but I am quite fond of Buckshot as WPF is a great framework to crib from.

The problem with its adoption is the Dart Editor. I gave up using it awhile back because the editor would just choke on the sheer amount of code that's in Buckshot.

This is a huge hurdle for those of us trying to write comprehensive libraries.

Bob Nystrom

unread,
Feb 5, 2013, 2:06:27 PM2/5/13
to General Dart Discussion

On Tue, Feb 5, 2013 at 10:55 AM, Don Olmstead <don.j.o...@gmail.com> wrote:
The problem with its adoption is the Dart Editor. I gave up using it awhile back because the editor would just choke on the sheer amount of code that's in Buckshot.

Ouch. Is there a bug for that?

- bob

James Wendel

unread,
Feb 5, 2013, 2:22:16 PM2/5/13
to mi...@dartlang.org
What version of the Dart editor did you notice this on?  The only bug I could find related to this was: http://code.google.com/p/dart/issues/detail?id=2297 which was fixed for M1 (10 months ago).  Maybe it's better now?

John Messerly

unread,
Feb 5, 2013, 2:36:49 PM2/5/13
to mi...@dartlang.org
Yeah it would be worth giving it another try. The editor has gotten a *lot* more scalable over the past few months.

Don Olmstead

unread,
Feb 5, 2013, 2:51:34 PM2/5/13
to mi...@dartlang.org
It has gotten better over time. The Dart Editor team definitely gets an A for effort, but the execution is still lacking.

At home I develop on the latest MacBook Air. If I leave enough folders open the editor will start chugging. If I import a larger library the editor will start chugging. I'm sure if you're doing your dev work on an actual workstation all is fine and dandy but on less powerful machines it chugs.

I know I sound like a broken record but VS has no problem on the same machine building whatever. Intellisense works fine. It performs like a champ.

I've been told the analyzer is getting additional work done on it so hopefully that will help. I think its a combination of Eclipse being a shitty platform and the analyzer needing work. I'm certainly hopeful that it will continue to get better and if your primary platform has been JS its probably the best thing ever, but if you come from the native world it comes off as barely passable.

financeCoding

unread,
Feb 5, 2013, 4:09:49 PM2/5/13
to mi...@dartlang.org
Bob got a bug file for handling large amounts of files, even if they are referenced as libraries. http://code.google.com/p/dart/issues/detail?id=8146 

I think anything above 300-400 files will make the editor chug. Depending on your project and scope I dont think its un reasonable to handle large libraries or collections of libraries. 

Kind Regards,
Adam

Seth Ladd

unread,
Feb 7, 2013, 6:19:02 PM2/7/13
to General Dart Discussion
The team is hard at work at building a new Analyzer. Any specific performance work today is just a band-aid, so the thought is to assume the new analyzer will address the major pain points. I, too, have a MacBook Air that spins up the fan and generates 15 sec analysis times. I've sometimes mitigated the problem by manually deleting the index.idx file buried deep in my Library/Application Settings/DartEditor (I think?) folder.

I have high confidence that this will be fixed, with or without the new analyzer. There are internal customers that have some pretty serious requirements. But I don't think we'll see much until after M3 is out the door.

Meanwhile, have you tried JetBrains' plugin for IntelliJ and WebStorm?

Thanks for hanging in there, and keep those bugs coming.

Seth


--

financeCoding

unread,
Feb 7, 2013, 7:03:35 PM2/7/13
to mi...@dartlang.org
Hi Seth, 

I've tried it awhile back, some of the default configurations did not excite me and wanted to stay with something supported by the dart team. Personal preference is to stick to one development environment, as of now that is DartEditor. If the dart team was to go full support on WebStorm I would follow. Still feel a browser or chrome based editor would be awesome for the long term!

Kind Regards,
Adam

Ruud Poutsma

unread,
Feb 9, 2013, 6:22:29 AM2/9/13
to mi...@dartlang.org
While dartlang.org has a page comparing the language with other languages (javascript), it might be good to compare platforms. With that, I mean the most popular functionality used in dart and used in .NET/Java/Js including their most used/important base libraries.

Op vrijdag 8 februari 2013 01:03:35 UTC+1 schreef financeCoding het volgende:

Don Olmstead

unread,
Feb 9, 2013, 12:57:08 PM2/9/13
to mi...@dartlang.org
Chris Buckett keeps a list of projects over at DartWatch http://blog.dartwatch.com/p/community-dart-packages-and-examples.html


--
Reply all
Reply to author
Forward
0 new messages