+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
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
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
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
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
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
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
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
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
();
$$('.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
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
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
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
--
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
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
/ 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
, 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
.
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
/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
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
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
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
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
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
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
, 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
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
, 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
/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
);
/* 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
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
, 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
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
(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
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
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
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
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()
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
' 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
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
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
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
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
44 matches
Mail list logo