Better HN
topnewbestaskshowjobs
Log inSign up

cdata

1,505 karma · joined May 18, 2011 (15y ago) · 247 submissions

https://bsky.app/profile/cdata.earth

https://mastodon.social/@cdata

Submissions

comment 13y ago · link · parent

Backbone's 'extend' is portable to non-Backbone classes[1]. It would be more interesting to see the performance profile comparison of Backbone and Resig implementations of extend when used to inherit from the same class (either an empty class, or a Backbone class).

[1] https://github.com/documentcloud/backbone/blob/master/backbo...

comment 13y ago · link · parent

To provide some anecdotal defense of Google here, my Nexus 4 was damaged and required replacement. I called a phone number that was easy to find on the Play Store website and spoke to a human without being placed on hold for longer than a few seconds. The human listened attentively to my problem, and promptly issued instructions for their RMA process. I had my replacement phone two days later.

As a consumer of Google's software - as both a developer and end-user - I have experienced Google's legendarily bad customer support first hand. Having said that, I think it is an injustice to suggest that it applies to all things Google now and in the future, and I have a first hand experience that suggests that they are trying to improve this experience for consumers of at least some of their products.

comment 13y ago · link · parent

I ran the app for most of this morning on my Nexus 4, after adding most of the links in this HN post as favorites. Between 9 and 11 my battery lost 40% of its charge. Ordinary usage tends to yield 14 to 17 hours of battery life from a charge. This kind of impact on battery life will be a deal breaker for most people until resolved.

comment 13y ago · link · parent

Here's mine, for science:

http://nightweb.net/#type=user&userhash=tnaohxmxj2eg3fsf...

comment 14y ago · link · parent

How is the article that you are promoting as an alternative any different, from your perspective?

As far as I can tell, both blogs are run by companies in the network infrastructure space. The chief difference appears to be that CloudFlare bothered to express any solidarity at all.

comment 14y ago · link · parent

It is distracting how your comment has framed discussion as, "this is ugly or unoptimized for the target audience because x." What I was hoping to read here is a discussion about how this library improves (or falls short of improving) upon attempts made to build open libraries to talk to iDevices in the past.

There is a place for aesthetic critique. I would rather see this project focus on the cool work they are clearly doing, and forget about the margins.

comment 14y ago · link · parent

How is this comment HN worthy? It brings no valuable knowledge to the discussion, and discourages the sharing of novel ideas. The code may be trivial, but the idea certainly is not.

comment 14y ago · link · parent

Hello Saurik, I'm the author of much of the code related to the problem you were experiencing on CloudFlare. We met a while ago at Velocity. I'm a huge fan of your work on Cydia, I really enjoyed reading your write-up, and I admire the penetrating approach you took to debugging this particular issue. Your diagnosis is accurate, and we are preparing a solution for the problem even as I write this.

There are a few points that I would like to respond to:

While [preloader] maybe a nifty feature in some contexts, in the case of ModMyi the list of files seems to be a bunch of content for ModMyi's main website... the result being that millions of users of Cydia are wasting bandwidth and limited cache space downloading a number of files from ModMyi that are both a) large (as they are designed for desktop browsers) and b) useless.

I'm afraid that this is a case of a one-size-fits-all solution not fitting anyone perfectly. Our current preloader implementation is most effective on medium-small-scale sites, and many medium- to large-scale sites experience the same problem you describe. We are working to update the feature to be "more intelligent" about what assets it loads, and where. Currently the list of pre-load-able assets is a global one, but we hope to make it a list that is consumed on a per-page basis, where the assets loaded are relevant to pages most-often visited from whatever the current page is.

While you can also get around this using standard HTML5 messages, these would affect the normal operation of the website CloudFlare is serving (something CloudFlare should be going to lengths to avoid).

This is an aside, but I should point out that some of our features (many of which were requested by customers) include some that create significant, intentional side-effects. Our image lazy loading feature, for instance, has layout implications. Many of our partner applications embed widgets and manipulate the page in other ways.

However, as we can see here, CloudFlare is making dynamic code changes to websites, and is using new features such as HTML5 message channels and local storage: features that might not even be implemented correctly in the browser, and which you may be actively avoiding for your own website due to the results of your testing process.

The surface area for failure related to the features that we work on and deploy is tremendous, particularly in the arena of document manipulation. One bad code push, and suddenly hundreds of thousands of websites could quite literally stop functioning, even if you can still technically get to them.

It is certainly true that many of our users are not comfortable with this idea, and those users often disable most of our "smart" optimizations. At the end of the day, CloudFlare will always strive to be a great CDN, and we do not require any "smart" optimizations to be enabled in exchange for usage of our service.

If I may offer another perspective on the topic, one of the things that I love about working at CloudFlare is that we are actively exploring many areas of web optimization that have previously been avoided because they were considered harmful, invasive, and/or overly-ambitious. And to be completely frank, many of the features we are exploring ARE negative in one or more of those ways. However, that doesn't stop us from trying to come up with ways to make the features in question work on arbitrary websites across arbitrary devices and network connections. We aspire to break away from the pre-conceived notions of what a CDN can be, and we have found that our users appreciate us more for taking that approach. As someone who is well known for poking around outside the boundaries of conventional hackery, I hope you can appreciate how sometimes things can break in the process :) I don't personally think it means we should stop trying (nor do I think it precludes us implementing processes to avoid breakage wherever possible).

comment 14y ago · link · parent

"We are talking a service that could be duplicated with open source software and about $100K to $250K investment."

On the other hand, that is the baseline pitch that has been used by starry-eyed start-ups for ages now.

comment 14y ago · link · parent

Take a look at ad placement technology if you want a likely culprit for why any given website is making an excessive number of requests per-page-load. In addition to whatever resource is placed immediately onto the page (and the ultimate ad creative), most ad snippets also bring in tracking beacons, additional JavaScript and completely new documents. Designers have a part to play in this, but I would argue that lack of engineering innovation is at fault for the shameful state of ad placement technology today.

comment 14y ago · link · parent

I'm not super familiar with Narcissus in practice, but on paper your projects sound very similar. Were there any interesting reasons why you opted to make this project instead?

comment 14y ago · link · parent

Yes, you are correct. Our users are the site owners, and their users are the ones who encounter Apture and similar "apps" in the wild. This is why, as I've said in other replies, the suggestion that we provide an easy opt-in / opt-out mechanism is well taken.

I _want_ to make this something that is elegant and useful, not just from the average internet-goers perspective, but also from the perspective of my peers and colleagues (and luckily, I'm in a good position to do so). I'm glad that some of the readers here have been willing to offer constructive and valuable suggestions about how I can do that :)

comment 14y ago · link · parent

Thanks, this is a really cool suggestion. Until now, I was totally unaware of the HTML5 context menu. Also, I really like the idea of using an icon that tries to flow well with the body of the text instead of obtrusively covering it up.

And once again, some kind of opt-in and opt-on setting for our users to choose for their sites is definitely something I want to experiment with integrating.

comment 14y ago · link · parent

We (CloudFlare) are in a pretty nice position, in that we can present a simple UI to our users (site owners) that allows them to fully configure the apps we serve without requiring them to touch any code. Giving site owners the option to present site visitors with a UI where they can opt-in sounds like a really novel and practical idea, and one I would personally like to experiment with implementing. Thanks for the suggestion!

comment 14y ago · link · parent

For what it's worth, I personally encourage the usage of NoScript, and other similar tools, to my friends and family.

That said, what I'm trying to propose is that the UI for the app could allow site visitors to communicate a dissatisfaction with the app to the site owner, as that seems to me to allow for constructive feedback not possible when scripts are simply blocked outright.

comment 14y ago · link · parent

Some people like the Google toolbar. I don't use it personally (nor would I ever choose to), but that doesn't mean it doesn't hold value for other people.

That said, two facts for you:

1) We don't gain any kind of advertising revenue from this app, nor do we serve adds through this app on behalf of third parties. This app is specifically intended to be a value-add for our users.

2) Apture really is one of our most popular third party apps, and apps are entirely opt-in. You'll see that through your own lens, of course, but through ours it means that, when Apture shuts down, our users will lose one of the features that they enjoy using through our service.

comment 14y ago · link · parent

Thank you for clarifying what you meant by this. As it turns out, we actually changed the behavior at the last minute to do a search query every time text is selected (which is what I believe you are saying is bad about Apture). We made this change because we figured it would be a better experience for users if the larger window were populated with search results as soon as it expanded.

However, now that you've framed it from a privacy perspective, it is obvious to me how this can feel really invasive. The intent to search should activate the query. Thanks for the constructive suggestion!

comment 14y ago · link · parent

That's a very good point on both counts. In some ways this duplicates existing functionality (although in our case, it is mostly a side effect of trying to provide our users with the same features they would be losing when Apture is shut down).

As you said, though, there is value in providing contextual information about a topic without breaking the flow of the page. If we could turn Highlight into a tool that captures that value really well, I think the effort would be worth our while.

comment 14y ago · link · parent

It seems like an easy way to disable it outright and permanently is a feature people would like to have. While noscript (and similar tools) would certainly solve this on a per-visitor basis, if we (CloudFlare) could provide a novel way to present an opt-out in the UI we could then report to our users how many of their visitors ultimately disabled the feature completely. This is just me musing about the possibilities, but overall that seems like it would be more constructive than our users thinking "Oh awesome, another one of those Apture things!" while their users silently grumble and block scripts..

comment 14y ago · link · parent

> Don't invade my privacy

To varying extents, saying you don't do this is really hard for any third party application integrated into a website. Unfortunately, we can't pull up contextual search results about a text selection without consulting a third party service like Bing or Duck Duck Go, so I doubt that we'll be able to do much better than offering an "opt out" feature in our UI.

> Don't insert text into my cut and paste buffers

We don't currently do this, but if our users ask for it, there is a good chance we will add it. Since it does sound like a frustrating thing, we can push to make it an "opt in" feature on the site owner's side, as opposed to the default behavior. At least that way, it'll only happen when the site owner really wants it to.

> Don't steal my search abilities

I don't believe we currently inhibit your ability to search with your engine of choice. If you find that we do, please let me know!

> Don't steal my mouse clicks

We don't "steal" your mouse clicks (though we do listen to them ;), and we do try to make sure the window only pops up when you have selected text. This experience will hopefully improve over time. Unfortunately, not doing this prevents the app from working in the first place (unless you have a better way to implement it)

> Don't pop up windows

Again, not doing this makes it difficult to have the app in the first place. I know its not for everyone, but a lot of our users really enjoy this functionality.

> Don't break my browser

That's something I can definitely do. Please let me know if you notice us breaking your browser in any way :) us not breaking your browser is one of my highest concerns.

comment 14y ago · link · parent

That's definitely an option we can consider giving our users. It wouldn't be the first time we've supported a feature like that. Thanks for the idea!

comment 14y ago · link · parent

That's a good idea. It's difficult to communicate the purpose of a "permanently opt out of this feature" button from the little widget that pops up, but it's definitely something we could integrate into the main window that expands. Would that be a satisfactory experience for you?

Feel welcome to suggest alternative UI ideas for adding a feature like that, if you have any.

comment 14y ago · link · parent

Hi, I'm one of the engineers working on the Apture replacement (Highlight). Care to be more specific about the biggest gripes you had with Apture's original implementation? As far as the general UI and UX is concerned, I'm not sure what we would really change, but generally I'd be happy to do what I can to ensure that bad practices aren't carried over (especially those related to user privacy).

comment 14y ago · link · parent

CloudFlare engineer here. Just wanted to say thanks for the positive assessment :) having so many awesome users keeps us feeling really positive about the stuff we do.

comment 15y ago · link · parent

It's off to an auspicious start ;)

comment 15y ago · link · parent

I'll take the alleged mob mentality over Google elitism any day of the week. Google can try to move the web any direction it feels is appropriate - it's Google's time, it's Google's money - but let's be clear: JavaScript is not as deficient as you might think it is, and the JavaScript community is not dumb to expect more than what Dart has offered so far (in an admittedly short span of time).

"There are just two kinds of languages: the ones everybody complains about and the ones nobody uses."

Probably over-quoted these days, but I think we all know where JavaScript falls.

comment 15y ago · link · parent

"...given that they should be grasping for any chance to leave the warty and dated pile of compromises that is Javascript behind..."

I would not characterize the JavaScript community as desperate graspers, but even so, I don't see the virtue in grasping for the chance to replace a dated pile of compromises with a contemporary pile of compromises. All the hate is totally overblown - this project is young and will likely improve a lot over time - but that doesn't change the fact that what we've seen of this project so far places it squarely in the category of 'novelty.'

comment 15y ago · link · parent

In all fairness, you removed the actual print function from the code. Inspection of the non-compiled source suggests that the entire function execution as shown in /2 is called for every call to Dart's print.

print$getter()(1, $noargs, 'Hello, Dart!'); print$getter()(1, $noargs, 'foo'); print$getter()(1, $noargs, 'bar');

comment 15y ago · link · parent

Let's be realistic with ourselves here: is all that overhead ever going to compete with ten lines of "low level" (ha..) JavaScript? No.

The problem here, and what is making us chuckle so much, is that the project as presented to us is not magical. For whatever reason, some of the brightest minds in our industry have not presented us (at this time) with a cross-compiler that is both robust enough to support large apps, and intelligent enough to self-optimize its output.

Were we expecting a JavaScript killer from Google? Some of us were, with cynical apprehension. Did this release of the project live up to that expectation? Nope. Could others have done a better job? Maybe, maybe not. Could this project improve over time? Certainly. Will Dart become a JavaScript killer without more magic in its cross-compiler? Personally, I doubt it. Tooling may matter for developing large web apps, but performance matters in those large web apps too; running this test in my iPhone's browser leaves me feeling meh.

comment 15y ago · link · parent

I'm chilling at the hackathon right now. Somehow made it through the night, and the Dart Chaos Wars. Come say hi to me and the rest of the CloudFlare team at our booth (pictured in the gallery :)!
1
56789