« first day (18 days earlier)      last day (4947 days later) » 

12:00 PM
@AndyE thanks :-)
 
Tek
I couldn't get a simple jquery ajax form to work asynchronously, it would always work as if the javascript wasn't there
I got suggestions on using "buttons" instead of input type=submit
with javascript events
 
@Tek: are you preventing the default action of the form?
 
@Tek Eh... forgot to cancel the default browser action?
 
Tek
yes, with @NickCraver's help anyway
 
Did I lie when I said jQuery's IE6 support was rock solid?
 
Tek
12:02 PM
oh not to mention there was an extra bracket
so that didn't help =)
I didn't figure out until hours later
javascript can be so messy...
<_<
 
@Raynos: rock-solid is too definitive a term for my liking.
 
rock-solid and IE6 in the same statement is too mind-boggling for my liking
2
 
There are always going to be quirks that are missed (like how $.isArray doesn't work across frames in IE6 and IE7)
 
@AndyE .bind isnt behaving in IE6 what are the known annoyances?
 
@Raynos: I don't know of any annoyances... perhaps @Nick does. He's the spawn of Resig himself.
 
12:06 PM
hehe, no I'm not aware of any issues with .bind() per se, though Ie6 has plenty of event issues that it's on top of
you have an example?
 
Tek
Quick question. If I use something like $("#foo").append("<div>hello world</div>") to create a div inside the parent div. Will that replace any other existing divs?
 
nope, it adds it
$("#foo").html("<div>hello world</div>") would replace them
$("#foo").prepend("<div>hello world</div>") would add it to the beginning, instead of the end
0
Q: Change value in div when click on button with jquery?

Claes GustavssonHi I have a div that I want to change some values in, when I click a button. If I click on <button id="image320x150">320 x 150</button> then I want to change the width to 100 and the height value to 200 in the div. and if I click on: <button id="image320x200">320 x 200<...

am I missing something in that question??
 
@NickCraver I just looked at that, thought "wtf?" and decided you'd made my point admirably
 
Tek
@NickCraver & @lonesomeday Seconding the wtf.
Did you notice the comment nick?
"Ok, then I see why. Thanks for your quick question!"
 
12:11 PM
yep, I was speaking more to the 0 accepted answers, the OP was just unaware you can accept...something that should be made clearer IMO
 
> I don't really got the logic but whatever.
Hehe...
 
Tek
@NickCraver Somewhat borderline off-topic. You guys use parameterized queries for your Ajax database calls, right? I didn't hear about them until very recently. =(
Well not just nick, I meant to say that to everyone.
 
yes, always use parameterized queries
 
@NickCraver woohoo, we're making a difference!
 
Tek
lol!!!!
Indeed. =)
 
12:14 PM
I wish you could change the chat sound, may have to user script it myself
 
Tek
Even google results are really vague and not enough good content.
 
I'll make it the same as my cell ringer:
@Tek - which platform are you on server-side?
 
Tek
php
 
@Tek Have you looked at PDO?
 
@Tek - mysql/lamp stack?
57
Q: Best way to stop SQL Injection in PHP

Andrew G. JohnsonSo specifically in a mysql database. Take the following code and tell me what to do. // connect to the mysql database $unsafe_variable = $_POST["user-input"]; mysql_query("INSERT INTO table (column) VALUES ('" . $unsafe_variable . "')"); // disconnect from the mysql database

 
Tek
12:18 PM
Yes. Except I had to dig to the very depths of the PDO manual to actually understand how to use it.
There aren't very many examples online that explain very well.
 
@Tek That's interesting -- I've always found PDO very intuitive
 
Tek
-> arrows are scary to newcomers
=p
I've used parameterized queries for a few months now. It's just ridiculous that I didn't hear about them until recently. I think it's been around for more than 5 years.
I had never ever heard one single developer (usually on developer forums) speak of them.
Until I came here to stack overflow. (Thank goodness.)
 
Tek
12:32 PM
All right guys, I need some feedback.
On an idea I have, I could be completely wrong.
 
@Tek Go ahead
 
@Tek that's usually what happens when I have an idea
 
Tek
I'm doing a comment form. And to reduce queries, server load & bandwidth (albeit not much, but every grain of sand can become a big pile no?). I want to post the data and just create a new <div> with the text with javascript
 
with you so far
 
Tek
now the thing is I could sanitize that data via server which would defeat the purpose kinda since it would have to be sent to the client
or I could put the data as-is, leave the server to sanitize it
but just put the code in a new div
and when it reloads they'll have the true data after sanitation
 
12:37 PM
I'd sanitize on the server and return the result of that to the client
 
Tek
What's your reasoning for that?
 
when you post you get whatever is echoed/printed back, for example:
$.post("page.php", { id: 5, comment: $("#comment').val() }, function(data) { /* update new div with data */ });
 
@Tek Yes, do what @NickCraver unless you can guarantee that the two will produce the same output
Which is quite unusual. (I'm thinking of Showdown.js and the server-side Markdown script)
 
Tek
Exactly
 
A few reasons: It's sanitized, it's accurate, and you're not giving a false positive...what if there was an error and it didn't actually commit to the DB, you've given the user the impression it did
 
Tek
12:39 PM
I'm split between the two choices, because I mean. After all, they could always edit or whatever after.
I see what you mean nick.
 
always show a result only after it's for sure, that's what I'd go with, echoing what you expect to happen on the client's screen can only cause problems, not solve them
why is there no love for !!$("selector").length? don't hate!
 
Tek
You have a very good point. But I have to say I'm biased to the other idea. I just can't see how anything could go wrong. HTMLPurifier has worked so well so far :P
 
Does the browser windows/tabs have any type of unique id?
 
@NickCraver Hmmm? Why would you use that instead of, say, if($('selector').length)?
 
@Tek - if the ajax request timed out, you'd stil show the comment as posted, right?
@YiJiang - instead of $("selector').length > 0, for a bool result
 
Tek
12:44 PM
Correct. Unless I could detect the timeout and show an error?
 
@Tek There's the error handler for $.ajax
 
@NickCraver I prefer the verbose one, because I often find I fail to read !! correctly
 
or any other error, what if the result was different? encoding issues, sanitization issues, etc...you can preview the result, but not 100% accurately reflect it.
 
Tek
Yeah, I see what you mean.
 
Now if you put the result on the <div> them immediately updated it, maybe...but still, what if I post, see it there, leave the page before the AJAX request completes?
Let's take a practical example: SO, I vote, leave the page quickly...half the time that vote didn't stick, even though I saw it visually immediately
 
Tek
12:47 PM
Wouldn't error handler for $.ajax help there though?
 
@Tek - nope, the browser's leaving the page, what would you do there, short of an alert to keep me on the page?
 
@NickCraver There's a feature-req for that on MSO, which I presume you've had voted on already...?
 
in which case I would hunt you down with a salad fork
3
 
Tek
haha
 
@YiJiang - I have not, link?
 
12:50 PM
4
Q: Don't show visual indicator that a vote succeeded until server response is received

EvgenyWhen I'm looking at a good question I can't answer I will often upvote it and immediately click on the SO logo to go back to the homepage. What then happens, in very quick succession, is: The upvote button turns orange, which indicates to me that the vote succeeded. An error message box appears...

 
+1!
 
Tek
hehe
Hmm
I didn't know you had to create a new account to use meta.stackoverflow.com
 
$(document).ready(function() { bla } ) bla gets called twice :( why?
 
@Raynos Erm... did you attach twice?
 
I mean.

alert("o")

gets called once.

$(document).ready(function() { alert("o") });

gets called twice
 
12:59 PM
@YiJiang - thanks for that, added a bit there:
0
A: Don't show visual indicator that a vote succeeded until server response is received

Nick CraverI completely agree this should be the behavior. To me it's a matter of the intended lifecycle for voting. Aren't I supposed to vote after reading the question (or answer) completely? At this point I'm done with the content, I would like to submit my vote and move on. This means I'm very likel...

@Raynos - are you on jQuery 1.4.3 and using iframes?
 
@NickCraver not really.
Think its triggered by a handler is undefined bug
 
Fair enough
apart from :not is there any other not logic in jQuery
 
sure! .not()
 
@NickCraver Haha... though technically speaking stuff like add() should count too, no?
 
1:06 PM
I suppose, I'm not sure of the context of the question really
selectors vs functions are definitely different in behavior as well, need to decide what you want
 
$(.class).not(.otherClass) etc
thats what I wanted. Thanks
 
yep that works, or .filter(), etc
e.g. :odd is basically .filter(function(i) { return i%2; })
 
Hi to all :)
 
or that could be :even, don't quote me
@Luca - hi there
 
@NickCraver Yeah, between that and the CSS nth-child() selector I keep getting tripped up recalling whether it's zero indexed or not
 
1:09 PM
@NickCraver: I can ask you one thing (If i not disturb you) ?
 
shoot
 
Tek
@Luca Hi as well
 
api.jquery.com/odd-selector "In particular, note that the 0-based indexing means that, counter-intuitively, :odd selects the second element, fourth element, and so on within the matched set."
 
Oh great. obj.bind("thing.namespace", nonexistantfunctioN) throughs jQuery way off and gets it to bug into calling a document.ready function again
 
Hi :) Thanks nick :)
 
Tek
1:10 PM
@NickCraver You seem to be the go-to guy around these parts.
;p
 
nah, lots of those
active != smart :)
 
i would like navigate in a href link (Of a flash video) that contains the href url.
But i don't know how..
 
Stupid JavaScript pretending to be functional. tricking me into thinking it has lazy evaluation
 
is possible with jQuery or Js?
 
@Luca - you want to use javascript to make the page go to the href in some <a> element in the page?
 
1:12 PM
@NickCraver You're far too humble. You're getting an average of two upvotes for every jQuery answer you give - that's quite a feat!
 
Tek
@YiJiang I was thinking something similar, agreed.
 
@YiJiang: most people don't even read the answer, just after seeing his nickname (Nick Craver) it's worth an upvote
 
No, i have a script for greasemonkey.. And a site with some images (In flash)... I would like make a script for select that and navigate to url of that images..
 
:p
 
understand? (Excuse for my bad english :) )
 
1:13 PM
@NickCraver I think he might want to navigate to a page linked to from within a Flash movie, in which case it's impossible
 
not to sound ungrateful for them, but upvotes at the easy part of the day, accepted answers are the hard part (and the majority of daily rep)
 
@NickCraver That's only because they're exempt from the daily cap!
 
yup, a good day has more accepted answers than upvotes that counted towards the cap
 
@Luca You can't do that, if the images are embedded in the Flash movie - Flash content basically speaking cannot interact with the other elements on the page
There are exceptions, but those are usually built into the movie explicitly
 
@YiJiang - it can make JavaScript calls though, can't it?
 
1:16 PM
And from what you're saying here (GM script) it doesn't sound likely
 
admittedly haven't created a flash movie in 5 years
 
@YiJiang Im pretty sure you can talk to javascript in a roundabout way with flash. you have to be able to either communicate with the server or with java or something :)
 
@Raynos No, @NickCraver is right, the Flash movie can call Javascript in the outside page, but that's the reverse of what @Luca is asking for here
 
ah ok, don't think I'm understanding the question correctly then
 
@NickCraver (I haven't touched Flash in 2 years, so don't count on my answer to be any more accurate)
 
1:19 PM
youve got to be able to communicate with flash via javascript or the server :\
 
in some minutes i will open a new question with all code of the page.. Thanks to all in advance :)
 
kb2.adobe.com/cps/156/tn_15683.html Assuming your running in at least AS2
Also assuming that if you know flash you know actionscript
$(table).bind("click", bla). Whenever I click on a td or tr the event target is always table. Are there any options I can set with .bind or do I need to iterate over a list of tr/tds ?
 
@Raynos Erm.. yeah, that's what I was talking about. Doesn't that allow the movie to communicate with the Javascript on the page?
 
@YiJiang and vica versa aswell
 
@Raynos Yeah, but that's only if the movie's author coded that option into the movie, so given that we're talking about GM scripts here... that's highly unlikely
 
1:24 PM
 
You cant just bolt on some AS to do it? I assumed that the flash luca has comes with the source
 
@Raynos GM - Greasemonkey - a Firefox add-on that allows users to run their own Javascript on any arbitrary page. GM script authors are usually not the original authors of the websites that the script operate on
That's why sometimes a degree of reverse-engineering is needed
 
I thought GM was some kind of backend thing
My bad
 
comment-rely buttons for SO = most useful user script, for me anyway
 
@NickCraver I find the 'Show actual number of accepted and unaccepted answer' script extremely useful despite it's simplicity
 
1:30 PM
why use a user script for that though? :)
 
@NickCraver I sometimes forget that that 'feature' is there. That, and I'm impatient for the tooltip text to appear in Firefox :P
 
ah we've found the problem, use chrome!
 
@NickCraver Actually, I doubt it'll be any different.
 
chrome renders so much faster, given i load probably a thousand pages or more on SO daily, it adds up :)
 
@NickCraver Also, I absolutely refuse to use a browser that doesn't even have a Print Preview button
 
1:32 PM
@YiJiang you print webpages?
 
yeah..who prints?
I can't remember the last time I printed a page, a PDF maybe
 
Well the last time I used "print" was to save as PDF, via some software that emulates a printer
 
@NickCraver I printed some code once. It was coursework
 
@Raynos Not very often. I was implying that Chrome still lacks common features. Hmmm... bad example, goes off to look for another one
 
Can someone explain how event bubbling occurs. $(obj).click(function() { } ); function gets called only once and I cant see any evidence of it bubbling
or when people say bubbling do they mean. obj gets clicked. check if it has any eventhandlers attached. if none bubble up?
I guess then it only works if i do $(obj).parent().click() & $(obj).click()
Answered it myself I think.
 
1:35 PM
@NickCraver Okay, I just tested it on some xkcd comics. It takes even longer on Chrome for the title text to appear... :P
 
xkcd is slo
 
instant here, moment i press enter the page is there, granted I'm on a pretty quick machine
granted if you never visited a site, a page with non-cached content will always be slower than one that is
 
@NickCraver The tooltip text, not rendering speed :P Geesh, I was saying that I don't want to wait the half-second it takes to see the title tooltip text
 
do people get half the xckd comics?
 
goes off to about:config to do some digging
 
1:46 PM
Safari and Chrome and opera are all webkit browsers?
 
@Raynos Opera isn't. It uses the Presto rendering engine
 
@YiJiang I like about:robots more.
 
@Chouchenos Hehe... well, the key difference is that you can actually get work done in one. The other is to show off to your friends that the people at Mozilla has a sense of humour.
 
@YiJiang That's why I like it more. Duh!
 
Looking at the starred content side bar ...
Nick Craver should be banned from receiving a star
2
 
1:52 PM
Andy too, don't you think ?
 
Who does Nick Craver think he is - the room owner or something?
 
nah that's @AndyE
 
@NickCraver Ahem... cough cough (points to the italicised username)
 
I thought that was because it was me
 
I'm not italic to me
 
1:56 PM
 
oo hahaha
that's awesome, I always thought your own name was italics
 
@NickCraver Okay, now what do you have to say?
 
@NickCraver: I donated some ownership to you when I noticed you were in this room even more than me :-P
 
oo, gracias, can cleanup the sandbox posts when they come up then :)
 
@Greg @Nick's a glory hog, he's exactly the same on SO. :-P
 
1:59 PM
@NickCraver Wait, you didn't know 'till now!? O_o
 
@YiJiang - nope
 
I don't think he was in the room when I assigned it.
 
I only said Nick should be banned from receiving a star so I could receive a star :P
thought it would be cool to see my own name up there in the starred list
2
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
:) I will NEVER shut up
 
2:03 PM
rofl. @Greg, I wasn't pointing out that we were off topic, I was just checking something
 
I love the editing feature
 
haha, well played
 
Now that you mention it, though, that is a really condescending way to bring up the fact that everyone's off topic. I might use it when I feel like being an ass.
 
I noticed if you randomly keep editing your post a little bit (just adding a space or such), the edit feature stays open... would be cool to post a real funny joke that everyone stars, and then hours later edit it to something terrible about Nick :P
or is that abusing the features?
 
@Greg The edit limit is 2 minutes or there about. The sever will reject the change once that limit is reached
 
2:08 PM
ah, foiled
 
@Greg: @Nick has friends in high places, I wouldn't dare cross him if I were you.
Plus, he can remove the stars :-P
 
pfft I have friends in low places maybe
 
@AndyE threat noted
 
hmm
 
@NickCraver: you don't work in a large building?
 
2:10 PM
from home!
most of the time, 9/10 days
 
I "work" from home too
it's glorious
 
amen
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
:)
 
bah

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
bwahaha
 
9re
bra bra bra
 
2:13 PM
0
Q: jQuery slideDown in IE9 - content disappears after animation finishes

YisroelI've had this problem twice on two different sites. It works in all browsers other than IE9. I have a div being opened and closed using jquery slideup and slideDown (the same problem happens with slideToggle). I'm able to see the content of the div as it slides down, but as soon as the animation...

I've been waiting for an IE9 only bug question to answer!
 
end of power trip
 
belated response...I'm toying with the idea of whether or not I could spend that much time alone in the house instead of getting out and physically going to work with people.
@AndyE having fun (;
 
@rchern - I'm on skype video chat an hour a day, at least...if that helps any
 
Yeah, I skype a lot too.
 
I skyped once
 
2:23 PM
is it possible to use ":odd" on a single element comparing it to its neighbours as to whether it is odd or not without just checking if its in obj.parent().children(":odd") ?
 
@Raynos using :odd on a single element always selects that element
 
obj.index() % 2
 
because it is the first element, and 1 is odd
 
index is a dom or jquery function?
 
jquery
 
2:26 PM
I keep forgetting more obvouis answers
 
Out of curiosity, would .is(":odd") work?
 
nah, not on a single set, at least not in a useful way
 
@NickCraver So it doesn't check it against it's siblings, but rather it's own position in the current set of jQuery objects
 
Didn't know if there might have been some behind the scenes magic for it
 
.is() checks if any of the elements in the set match the selector, for a single element, like this:
$("#id").is(":even") will always be true, assuming it exists
and $("#id").is(":odd") will always be false.
for any element array with at least 2 items, they'll always both be true
 
2:30 PM
a really cool feature of this chat would be a jseval like you get in some irc channels
 
The actual :odd implementation is literally:
		odd: function(elem, i){
			return i % 2 === 1;
		},
i being the index within the set
 
@Greg while(true) { alert('Hi :)') }
 
@YiJiang the javascript isn't output to the browser, it's value is returned and output in the chat... also there's a very short timeout
used to use it a lot in irc
 
ok....but how would that make while(true) { /* anything */ } less annoying? :)
 
@Greg That actually happened when I was testing out a very crude auto-replying script
 
2:34 PM
ha, explain
 
I made a syntax error and posted 20+ messages before the rate limiter kicked in
@Greg It would look for @-mention of you and auto post a simple message explaining that you were AFK
 
ah, nice
 
@NickCraver: a little improvement to that odd-algorithm could be return i & 1;
 
yep, though it gets traced the same either way
 
@jAndy Of course, that would return a number type and not a boolean type.
 
2:46 PM
@AndyE: well the basic improvement here should be the usage of a binary operator, looking if the first bit is '1', which indicates we got an odd number
but testing this on jsperf there is a variance about 2%.. so pretty trivial
 
return i & 1 === 1;
 
@jAndy and unreadable
 
@Raynos: not really, I used binary operators quit often.
 
@jAndy it takes me at least 2 minutes to figure out what binary operations do
 
there's the issue right there, it depends on the language
others call them bitwise operators
 
2:49 PM
@jAndy I dont think web developers are exposed to bit manipulation.
 
it depends what you're doing, bitwise combinators for enums for example are very handy
or in JavaScript it converting to an int: val >>> 0
 
because of better perfomance
I use them on regular bases, for instance to bitmask variable with options
 
@NickCraver yeah, thats probably the most useful thing I do with bitwise operators. I do use them in my hex to rgb code, but it's not as readable as a string split and parseInt
 
optionfield |= somesetting;
hey the chat ate a big comment :(
 
@jAndy munch munch munch Try ctrl + z?
 
2:53 PM
It's also worth noting that "a" % 2 is NaN, whereas "a" & 1 is 0, although I can't see that making much different to the odd function in sizzle.
 
no success on strg+z and on keyup neither
damn I just stated something like that I'm confused a little about binary (or bitwise) oeprators in ecma. Mr. Crockford stated in serveral places that they are bad and kind a slowish whereas lots of other folks I highly respect (like Nicholas C. Zakas) say you SHOULD use them because of better performance
I guess it's pretty browser dependent also
 
Crockford said that a long time ago. It's possible there's been a lot of optimisation since then.
 
yes very possible
 
Surely there is no significant performance gain to be had from bitwise operators
If the performance gain is significant the main question is why are you doing this in javascript
 
@Raynos: I'm a friend of microoptimizations so I really like to gain performance wherverever possible. And further I really thing there spots where bitwise operators do have a significant performance impact
 
2:58 PM
when i doubt, test it :)
In chrome, modulus is much faster, over 80%
 
and last but not least, it's a kind of a style question also. Some people (incl. me) like to have a bitmask to mask options, why not :)
 
same in firefox
 
@NickCraver That's odd. On mine, modulus is 4% slower
 
Oh sure its faster
 
IE has modulus a bit faster
 
3:00 PM
It's probably to do with the 32-bit floating point number conversion that bitwise operators do.
 
though IE's difference is around 10%, chrome (9) has it 80%+
 
I don't really trust that numbers
 
Okay, I reran it, and now modulus is 44% slower... what were you saying about testing it again?
 
@YiJiang - which browser/version?
 
@YiJiang: take an average :-P
 
3:02 PM
@NickCraver Firefox 3.6. Over several runs, it's averaging about 30-50% slower for modulus
 
sounds pretty odd, especially because V8 should directly use that bitwise operators to pull them down into assembly code, no ?
 
oh humbug. Show us an example where bit manip wins :P
 
IE9 gave me 29% slower for bitwise
 
in firefox 3.6.12 I'm getting WAY faster modulus
bitwise being 69% slower
 
should crockford be right..
 
3:03 PM
@YiJiang - are you running addons with their hands in the JS engine?
 
@jAndy No, that's not right - like I said, bitwise operators first convert their operands to integers, perform their operation, and then convert back to floating-point numbers
I'll see if I can find a link
 
@NickCraver Hmmm... not sure. Firebug's script panel is disabled, don't think anything else is interferring
 
Modulus

result = i % 2 === 1;
result = j % 2 === 1;

294,592,480fastest
Bitwise

result = i & 1 === 1;
result = j & 1 === 1;

87,096,82170% slower
that's what I'm getting with a 1-2% difference every time
Firefox 3.6.12 82,102,484 227,272,479 22
look at the browser results window to see mine added in those 22 runs
 
Firefox 3.6's JS engine seems really slow
 
@NickCraver: binary operators to bind more than logical no ? so theres no possible impact because if missing parenthesis?
 
3:06 PM
negative, but you're free to create another test with/without them to see if it has any effect
 
Okay, this is stupid. The numbers for all our machines doing both of these are running into the millions per second. If this really has any real-life effect the script would've have had should be minuscule.
 
on this case modulo is around 3-7% slower
using chrome
 
@YiJiang: Yeah.. look at IE9 beta's figures :-P
 
5-15%
 
modulo is faster using FF4b6
 
3:11 PM
hmm is it just me or do the tests run quicker the second time around in IE9. The results dropped from ~700mil and ~500mil to ~20-30mil.
 
@YiJiang: well you're right, but you can say that for any "microoptimization" I guess. I guess bitwise operators do perform better on doing canvas/image manipulation or palette inverting stuff
 
@jAndy - your test is invalid
if (j % 2 === 1) j = j; is comparing the === operator as well, it should be compare to if (j & 1 === 1) j = j;
I'm in Chrome 9, but modulus is again faster with an equivalent comparison
 
is what I was just about to say
 
hmm
 
wtf happened to Chrome 8 anyway? I'm on 7 and I only just upgraded to this a couple of weeks ago.
 
3:14 PM
I'm back :)
 
8's beta, 9's dev
 
I have posted the code and scripts for flash question :D (Thanks again)
i can link?
 
yup, paste only the link and it'll get a preview box in the chat
 
0
Q: Jquery/Js : Select and navigate to link embeded in a flash element.

LucaI would like make a script for Greasemonkey (GM),that find and navigate in a link embed in a flash element. I think that is possible to make it to work with function .click() ,but won't work :( Here's the source code of the page that contains flash elements.. Source code Is possible to make th...

thanks
 
3:17 PM
BTW. I managed to speed up my canvas circle stuff by 50% dropped from 40% CPU usage to 20%... although now, the code is a giant mess
 
thats faster in chrome for me again, slightly slower in FF
 
@jAndy: interesting, faster for me in Chrome too
 
I had a feeling it's about operator binding strength
 
@jAndy - I think you've answered your own question, it depends on the usage and how it's traced
 
Just like YiJiang pointed out, the speed of both operators is very fast anyway - performance is rather moot in non-intensive environments
 
3:21 PM
agreed - I just was shocked to see that bitwise operators should be THAT kind of slow'ish in Fox, so just to make that clear they are indeed very fast
(if used correctly)
 
be specific, don't say "in chrome" or "in firefox"
both of those replace JS engines wholesale from release to release
 
@NickCraver: well chrome sticked to V8 for quite a while?
 
yes, but how something performs from one release to another may vary widely
 
the test results dont average out based on machine do they?
it would be easy to explain a large number of the differences between brwoser by machine specifics
 

« first day (18 days earlier)      last day (4947 days later) »