Re: [Prototype-core] Re: For() loops, ++i, i++, i+=1

2009-12-17 Thread Ryan Gahl
+1,000,000,000 (cycles) -1 on downplaying really nerdy optimizations :) you curmudgeon you (nice word, btw) --- Warm Regards, Ryan Gahl On Thu, Dec 17, 2009 at 9:33 AM, Bob Kerns r...@acm.org wrote: Not to be a curmudgeon about it -- I'll just point out that the CPU cycles consumed

[Prototype-core] Re: Function.EMPTY and Function.K

2009-10-16 Thread Ryan Gahl
Are you sure not Function.eMpTy ? :P --- Warm Regards, Ryan Gahl On Fri, Oct 16, 2009 at 6:15 AM, Joran Greef jorangr...@gmail.com wrote: Function.IDENTITY and Function.EMPTY are never called directly, though. They're canonical functions. Agreed. Hence, Function.reference instead

[Prototype-core] Re: Function.EMPTY and Function.K

2009-10-16 Thread Ryan Gahl
Extends your Prototype, the Force does, mnn... --- Warm Regards, Ryan Gahl On Fri, Oct 16, 2009 at 4:48 PM, joneff jon...@gmail.com wrote: (off topic, or would it be May the Force extends your.prototype?) --~--~-~--~~~---~--~~ You received

[Prototype-core] Re: Function.EMPTY and Function.K

2009-10-15 Thread Ryan Gahl
facets I can't think of right now...). --- Warm Regards, Ryan Gahl On Thu, Oct 15, 2009 at 4:22 AM, T.J. Crowder t...@crowdersoftware.comwrote: Hey Andrew, Aren't all functions constants, in that sense? Function.EMPTY isn't more or less constant than Element.extend. -- T.J. ;-) On Oct

[Prototype-core] Re: Palm's Mojo and Prototype

2009-03-10 Thread Ryan Gahl
Hi Rob... AFAIK, in the bleeding edge SVN versions of Prototype, they are making use of the native JSON parsers if present. I could be wrong, but I believe I saw that somewhere. I'll leave it to one of the core dudes to comment further though... Ryan Gahl CEO Nth Penguin, LLC http

[Prototype-core] Re: Prototype and the global namespace

2009-03-10 Thread Ryan Gahl
to move towards more functional code you're also actually reaping _more_ of the benefits of OO. It's a shift in thinking, but one that you'll grow to love if you make the investment. Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com

[Prototype-core] Re: $super keyword

2009-01-05 Thread Ryan Gahl
I personally worry more about relying on non-standard behavior (i.e. function decompilation) Say what? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: $super keyword

2009-01-05 Thread Ryan Gahl
On Mon, Jan 5, 2009 at 11:23 AM, Ryan Gahl ryan.g...@gmail.com wrote: I personally worry more about relying on non-standard behavior (i.e. function decompilation) Say what? Oh, do you mean how the $super mechanism enumerates the method names and whatnot

[Prototype-core] Re: $super keyword

2009-01-05 Thread Ryan Gahl
Yea, that's what I meant (I read the code when it was released and knew it was something weird like that). I agree, 'tis a hack... On Mon, Jan 5, 2009 at 11:48 AM, kangax kan...@gmail.com wrote: On Jan 5, 12:24 pm, Ryan Gahl ryan.g...@gmail.com wrote: On Mon, Jan 5, 2009 at 11:23 AM

[Prototype-core] Re: Element wrapper draft notes

2008-08-21 Thread Ryan Gahl
(); $$('.panels:first').hide(); $('myPanel).raw().tagName $('myPanel).get('tagName'); There would be no internal raw item for the NodeListWrapper because like the jQuery object its items are part of its indexed properties. - JDD -- Ryan Gahl Manager, Senior Software Engineer

[Prototype-core] Re: Free a class from memory

2008-07-17 Thread Ryan Gahl
by reference (including function ones). Only primitives are copied. How exactly did you determine that manual nulling doesn't work and only consumes more memory? -- kangax -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- WebWidgetry.com / MashupStudio.com

[Prototype-core] Re: Free a class from memory

2008-07-17 Thread Ryan Gahl
on what you should watch to not create memory leaks ? Also is there some kind of tool to correctly see if you have memory leaks? Kind regards, Mtjs. On Jul 17, 3:44 pm, Ryan Gahl [EMAIL PROTECTED] wrote: Manually nulling the top level reference should work just fine, as long

[Prototype-core] Re: C and PHP style syntax to fill an array with values

2008-07-02 Thread Ryan Gahl
davidHasselhoff is always false. Gareth On Wed, Jul 2, 2008 at 5:43 PM, Ryan Gahl [EMAIL PROTECTED] wrote: No, Jerod... this is the most confusing way ever (note: theMeaningOfLife is declared elsewhere): var array = new Array(); function adamSandler(georgeCostanza) { var whatTheF = 42; array

[Prototype-core] Re: C and PHP style syntax to fill an array with values

2008-07-01 Thread Ryan Gahl
-- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl

[Prototype-core] Re: Prototype vs Ext

2008-06-18 Thread Ryan Gahl
layer above a framework. As an abstraction, it makes sense that each Ext feature would be limited by the library with the weakest implementation of that particular feature. - Ken Snyder -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com

[Prototype-core] Re: New Name for Users Group (RoR Spinoffs)

2008-06-17 Thread Ryan Gahl
/ crowder software / com [1] - http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/0732340bedfdd74b# -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete

[Prototype-core] Re: Prototype vs Ext

2008-06-17 Thread Ryan Gahl
, if any, how do they compare in the long run of javascript programming (if any kind of comparison was ever attempted), and how do you foresee the future of both. Franck PORCHER www / smartech / pf -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com

[Prototype-core] Re: Prototype vs Ext

2008-06-17 Thread Ryan Gahl
. Sure, Ext can be free, but only for free software projects (GPL3). Corporate licensing runs $540 for developer, $2000 for team, $7130 for workgroup, or $18,700 for enterprise. ...well, my wallet's screaming in pain! - Jon L. -- Ryan Gahl Manager, Senior Software Engineer Nth

[Prototype-core] Re: Can the Enumarable iterators be changed to accept scope as the first param (optionally)

2008-02-07 Thread Ryan Gahl
/A+cleaner+way+to+iterate+through+Enumerable+lists+in+Prototype I think iterators look nicer when you have the scope as the first param. -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- WebWidgetry.com / MashupStudio.com Future Home of the World's

[Prototype-core] Re: Can the Enumarable iterators be changed to accept scope as the first param (optionally)

2008-02-07 Thread Ryan Gahl
Keep in mind also... I'm just one vote. I can't tell you how many times I've been outvoted here :) -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform -- Inquire: 1

[Prototype-core] Re: Source code style

2007-10-04 Thread Ryan Gahl
keep it stupid for the likes of me. ;) I'd do the reformatting, if desired. However, I find the use of spaces and empty lines very good already. Best regards. -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- Architect WebWidgetry.com

[Prototype-core] Re: Superclass constructor

2007-09-28 Thread Ryan Gahl
methods you can or cannot call on your projects :) Best, -Nicolas On 9/28/07, Ryan Gahl [EMAIL PROTECTED] wrote: Alex, javascript has its own garbage collector, sure... but firstly, it's not a consistent implementation across browsers. This is an ancient problem as far as Ajax

[Prototype-core] Re: Superclass constructor

2007-09-28 Thread Ryan Gahl
Sorry, you're right, I was just going down the path of teacher, guiding the OP (who mentioned destructors first) towards a Disposable abstract class to inherit from... On 9/28/07, Mislav Marohnić [EMAIL PROTECTED] wrote: On 9/28/07, Ryan Gahl [EMAIL PROTECTED] wrote: Oh yea... it's

[Prototype-core] Re: Class.create and inheritance

2007-09-27 Thread Ryan Gahl
think I'll borrow that idea and apply it to my Object.inherit implementation to get rid of a line of code. On 9/27/07, Mislav Marohnić [EMAIL PROTECTED] wrote: On 9/27/07, Ryan Gahl [EMAIL PROTECTED] wrote: ok, then it does work, my apologies :) Every implementation breaks if you use

[Prototype-core] Re: Thoughts about 1.6

2007-09-25 Thread Ryan Gahl
possible, but it seems a bit cleaner to support it natively within prototype itself. -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- Architect WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform -- Inquire: 1-262

[Prototype-core] Re: Superclass constructor

2007-09-24 Thread Ryan Gahl
, or OpenLayers, or whatever else you fancy :) Best, -Nicolas -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- Architect WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform -- Inquire: 1-262-951-6727 Blog: http

[Prototype-core] Re: Superclass constructor

2007-09-24 Thread Ryan Gahl
such a destructor in Prototype or Dojo, see below: OpenLayers.Map = OpenLayers.Class({ initialize: function (div, options) { }, destroy:function() { }, CLASS_NAME: OpenLayers.Map }); -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http

[Prototype-core] Re: Superclass constructor

2007-09-24 Thread Ryan Gahl
, options) { }, destroy:function() { }, CLASS_NAME: OpenLayers.Map }); -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- Architect WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web

[Prototype-core] Re: Element.update() speed boost

2007-09-13 Thread Ryan Gahl
/elements. He has posted a new method. He has benchmarks and a performance test as well. I figured it would be an interesting addition to Element.update(). http://blog.stevenlevithan.com/archives/faster-than-innerhtml Anyone interested? -- Ryan Gahl Manager, Senior Software Engineer Nth

[Prototype-core] Re: Element.update() speed boost

2007-09-13 Thread Ryan Gahl
); /* Since we just removed the old element from the DOM, return a reference to the new element, which can be used to restore variable references. */ return newEl; }; TAG On Sep 13, 2007, at 9:01 AM, Ryan Gahl wrote: um, oops: duh, how _come_ ... (missed a word) On 9/13/07, Ryan Gahl [EMAIL

[Prototype-core] Re: Bug?

2007-09-06 Thread Ryan Gahl
get an ugly warning dialog... -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- Architect WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform -- Inquire: 1-262-951-6727 Blog: http://www.someElement.com

[Prototype-core] Re: Assigning an unique ID

2007-07-18 Thread Ryan Gahl
, el3], group2: [el4, el5, el6]} - Ken -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- Architect WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform -- Inquire: 1-262-951-6727 Blog: http://www.someElement.com

[Prototype-core] Re: Assigning an unique ID

2007-07-17 Thread Ryan Gahl
an auto-incrementing value instead of a timestamp.) It's a good fit for core, IMO. -sam -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- Architect WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform -- Inquire

[Prototype-core] Re: $ function

2007-06-18 Thread Ryan Gahl
(and Opera's emulation thereof), but I think it's just a little too heavy. Cheers, Andrew -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- Architect WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform

[Prototype-core] Re: To make Object.extend() support methods named 'toString'

2007-05-30 Thread Ryan Gahl
applying this we must make sure it doesn't break anything! I'm kinda reluctant to even consider chaning Object.extend. -- Ryan Gahl Principal, Manager Nth Penguin, LLC - Consulting http://www.nthpenguin.com -- Software Architect WebWidgetry.com / MashupStudio.com Future Home of the World's

[Prototype-core] Re: Question/Suggestion

2007-05-04 Thread Ryan Gahl
to access methods of the original object, without having to copy/paste it's behavior to the new one. -- Ryan Gahl Software Architect WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform Inquire: 1-262-951-6727 Blog: http://www.someElement.com

[Prototype-core] Re: Curry And Compose

2007-04-23 Thread Ryan Gahl
I think I am still expecting the bind operation to be applied to the subject of this sentence, that is, function a, not b. I would expect the bind to apply to whatever the result is of the compose (or any other) method, not the object to which the method belongs. In your example you are

[Prototype-core] Re: adding $parent to Object.extend

2007-03-30 Thread Ryan Gahl
However, you could employ a slightly more traditional approach, which is to leave the first version of A as the base class, and then subclass it as needed: (Btw, the way you have written A below is as a static object, and as such you are gaining nothing by using Class.create(). Class.create()

[Prototype-core] Re: adding $parent to Object.extend

2007-03-30 Thread Ryan Gahl
object $parent.show() rather than making: this.show.bind(this)(); Where can I find the support forum? -thanks, Eli On Mar 30, 4:52 pm, Ryan Gahl [EMAIL PROTECTED] wrote: However, you could employ a slightly more traditional approach, which is to leave the first version of A as the base

[Prototype-core] Re: adding $parent to Object.extend

2007-03-29 Thread Ryan Gahl
' Base. We're aiming to bring support for something like Base in Prototype 2.0. I believe that we will begin experimenting starting from version 1.6, but I still need to check with Sam for find out if his intentions have maybe changed in the past few months. -- Ryan Gahl Application

[Prototype-core] Re: adding $parent to Object.extend

2007-03-29 Thread Ryan Gahl
And the reason to keep Object.extend as is is that it comes in very handy for scenarios other than class level inheritance, where bulk property copying is desired (like for default options during object construction for instance) On 3/29/07, Ryan Gahl [EMAIL PROTECTED] wrote: You may find my

[Prototype-core] Re: new Event functionality

2007-02-27 Thread Ryan Gahl
Lastly, why don't I add this functionality separately instead of trying to get Prototype patched? It is because the Event class does it's own caching in such a way that cannot be extended, so such efforts would be duplicating the caching and over-complicating cleanup procedures. This is

[Prototype-core] Re: new Event functionality

2007-02-26 Thread Ryan Gahl
So a couple of hours turned into all day. That's just my life these days. We have a big demo we're getting ready for on Wed. (I can't wait until we can release some of this stuff) Anyway, I'll have to try again to write something more concrete for you later in the week. Feel free to badger me for

[Prototype-core] Re: new Event functionality

2007-02-24 Thread Ryan Gahl
about that) /* Copyright 2005-2006-2007 Ryan Gahl This code is provided as-is without warranty. You may use and distribute it freely as long as this copyright notice remains. This license of use applies only to the below provided code. Future versions of the same code may be released by Ryan Gahl