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

151.

An intro to Reinforcement Learning (with otters)(meowni.ca ↗)

20 points · by cdata · 8y ago · 1 comment

comment 8y ago · link · parent

Only speculating, but I would guess that "low end" describes a lot (perhaps even the large majority) of phones in active use in China, India and other Asian countries.

comment 9y ago · link · parent

No, that's not what I'm saying.

comment 9y ago · link · parent

This is a nice example of the state of the art of a React & Friends stack. Thank you for building it and sharing it. Is it supposed to be completely functional? Login doesn't seem to work for me, at least.

After 1.1 MB transferred, I experience subjectively sluggish page transitions and less-subjective FOUC on a recent MacBook Pro and Chrome over fast wifi. The features in this stack are impressive and appealing, but IMO they are not worth the general performance cost weighed by hundreds of kilobytes of JS abstractions.

comment 9y ago · link · parent

Hardly irrelevant. It's the very people who do worry about food, safety, survival for whom app binary size matters the most. Your users live everywhere on Earth that has a network connection, and in some of those places there are millions or more who consider that connection a scarce, valuable resource.

comment 9y ago · link · parent

Where in the stack did you spend your time before you became a manager?

comment 9y ago · link · parent

#1 is a misleading claim. An async function returns a promise when called, which can be used in any non-async context.

comment 9y ago · link · parent

Not disagreeing, but as a long time JavaScripter it is remarkable to me that no matter how delightful or expressive or ergonomic the language tries to become, the same old criticisms manage to evolve with it (this may not be unique to JS).

[Edit] JS has long been criticized (fairly or not) for offering clunky "concurrency" strategies. If you must down vote, please have the decency to offer a counter perspective.

comment 9y ago · link · parent

Thanks for creating and sharing this; I think it is really cool. I'm curious: what is your plan to deal with the possibility (inevitability?) of hosting copyrighted or otherwise illegal content?

comment 9y ago · link · parent

As a long time web developer, I worked through IE dominance. I was a Firefox early adopter and advocated for it amongst friends and family for years. Furthermore, I am very unhappy about the state of the landscape today. One browser should not be dominating all the others; it is an imbalance in the order of the web.

The hyperbole in your comment kinda kills me though. The glory days of web standards that you are talking about were largely glorious because Firefox came out from left field and started implementing standards and new features at a high velocity compared to Microsoft's IE. Firefox started to beat IE in tooling and platform features, and it was open source to boot. Firefox even had the edge on IE with regards to security (to be fair the bar was low in those days).

All of these details greatly endeared Firefox to me. As a web developer, I loved Firefox for what it stood for and also what it enabled me to do.

Chrome is "winning" the web browser game by taking the pages out of Firefox's playbook. Chrome is open source. Chrome is heavily involved in the standards process. Chrome takes a lot of credit for pushing browsers towards evergreen release cycles. Chrome offers the best developer tooling. Chrome implements standardized web platform features at a rapid clip.

I hate that Chrome is dominating the market. But I don't hate Chrome, and I definitely don't think the status quo today is worse than the one during the Internet Explorer regime. I hate it because it shows that there is a tremendous imbalance in the resources spent on other browsers compared to Chrome. I hate it because I don't think that the ecosystem is as great as it could be if the developer mindshare was more distributed across different browsers.

It's easy to forget that the "bar" for "gutter low" was set a long time ago by a company (M$) that decided the web was boring and could die for all it cared. I think it's simplistic and misleading to suggest that the situation today comes close to that.

161.

Uber Denies It Is Using Stolen Waymo Technology(nytimes.com ↗)

1 points · by cdata · 9y ago · discuss

comment 9y ago · link · parent

Ad targeting can be done based on what you know about the content it is displayed against. But it seems like a lot of weight is put on what the network knows about the person accessing that content.

Enabling brands to automatically opt-out of being shown adjacent to content with extreme/hateful views is only part of the problem. Ad tech must also contend with the fact that the audience has many dimensions. Someone who harbors hateful feelings for a subgroup of humanity may also be interested in a sweet deal on a pay as you go plan from AT&T.

comment 9y ago · link · parent

As a member of the Polymer team, I consider myself very familiar with Web Components. As a body of specs, they are not perfect, and are certainly worthy of critique. I firmly believe that an educated critique of Web Components by the community will result in a better platform for everyone.

What saddens me about the earlier "broken promise" article is that it falls into the same pit that similar, prominent critiques have fallen in to: the author does not fully understand the specs and has probably never made an earnest attempt to exercise the primitives so that he or she might better understand their true limitations. Rob's article demonstrates how much of the argument is at best misinformed and at worst disingenuous.

There are serious problems to be overcome. I wish critics would depart from their dogma and rally behind the web platform. However flawed it may be, the best way to improve it is for the community to come together and talk from an educated and positively motivated place about how to make it better.

comment 9y ago · link · parent

I propose getting rid of tools altogether. On a new project, start with the following: a single browser (for bonus, choose the mobile version) and vanilla everything (JS, CSS and HTML). If you need a build step to run your tests or your code, you have gone too far.

Every thing you will ultimately need a build pipeline for is an optimization (bundling, subjectively cleaner code etc). I have found that if you get too hung up on optimizations before you have built something interesting, you have let the tools run away with your project. This is an easy way to lose motivation and become distracted from what you set out to do in the first place.

comment 9y ago · link · parent

Script execution time is a major source of jank / lag on mobile devices. What if I don't want any script to be executed beyond what is needed by a lightweight runtime?

AMP actually has a lot of really neat technical approaches to enabling rich content, based on open web standards. CPP seems like a nice tool for the toolbox, but it doesn't seem like a satisfying 1:1 alternative to AMP.

comment 9y ago · link · parent

AMP is fast and that makes it really nice when reading news on my phone. I just wish it was less centralized / dependent on Google's cache. It seems like it should be possible to build something similar to AMP - possibly even with a smaller runtime - and self-host the content. Then, throw in a transparent, geo-distributed caching layer like CloudFlare to get the same insta-load qualities.

The main downside I can imagine is that the centralized gatekeeper (Google) won't treat the optimized content the way it treats AMP content today. But, we are locking ourselves into Google's solution if we let that stop us from exploring better alternatives.

comment 9y ago · link · parent

I hear this mentality a lot, but I wonder how true it is in practice.

The pool of engineers who are experienced with your stack will be bigger if you pick a "winning" or "popular" stack. But in my experience at Big Co, the stack is as often proprietary as not, yet Big Co can attract talent anyway.

Having lived through transitions from Popular Stack Today to Popular Stack Next more than once, I have yet to go through the experience thinking that the upgrade path is easy.

Proto-jQuery to jQuery, jQuery to Backbone, Backbone to Angular, Angular to React, React to other React-like things... these frameworks were all "winners," but I can't describe the upgrade path without using the word "rewrite."

comment 9y ago · link · parent

Some potentially relevant links for you...

1: https://beta.webcomponents.org/ - A public repository of web components (including the official Polymer components and community components).

2: https://polymer-slack.herokuapp.com/ - Join the Polymer community on Slack. All of the core team members are there as well :)

comment 10y ago · link · parent

That's all totally fair. But in my original comment, I tried to center my observation on how Facebook has threatened the openness of the web with a proprietary alternative. Is it even possible for Google to deliver the same features without drawing a line around something? If so, how does that hypothetical thing differ from AMP?

comment 10y ago · link · parent

Let's not conflate the text/HTML-based syntax and the distribution channel implemented by Google. You can render an AMP document with your own implementation of the AMP custom elements. Can I do anything remotely similar with Instant Articles?

comment 10y ago · link · parent

> Isn't google drawing it's own line around the open web with AMP?

Yes, I mean, AMP isn't the solution I might build independently. But, it is built on standard, open web platform features. You can render an AMP article from any source in a manner of your choosing, using the features available in a web browser.

> If google really cared that much about speed they would just punish slow sites.

They have started doing this as well, I believe, by rewarding sites that are optimized for mobile devices.

> I see amp as a land grab in cute packaging.

There is a land grab taking place, whether AMP exists or not. The territory at stake is the growing mindshare of users who browse published content (sometimes exclusively) on mobile devices. I would personally love to see a more open movement than AMP or Facebook Instant Articles participating, but I would take AMP over Instant Articles without much consideration.

comment 10y ago · link · parent

> I hoped Google makes things better, instead all I see is just defensive rhetorics about open web.

My personal opinion is that publishers have a choice: step up and build these types of distribution channels for themselves - to deliver the content in a format they prefer - or else the distribution channels will be built by others and the format of the content will be dictated to publishers by others.

The real danger for everyone is moving away from standard formats that can be rendered easily in a web browser towards something completely proprietary. For my money, AMP is better than Instant Articles in that regard.

> I don't care much about how open or free software is. User experience matters.

I agree that UX is important (if not most important), but I challenge you to consider the long term implications of investing in proprietary solutions just because they make hard problems appear to have been "solved" easily. Free and open source software has compounding benefits over time that proprietary software often fails to provide. Even Apple - a company (in)famous for its proprietary technical solutions - laid most of the foundation for its renaissance with free and open source software, and continues to benefit from (and contribute to) free and open source software development today.

> And I see that Facebook cares about it much more than Google.

Make no mistake: big tech companies care most about money. There is a trap that you can fall into, especially as a technical person, where you believe that a company cares about your success in particular. No company really does. They mostly just care about money. Plan accordingly.

comment 10y ago · link · parent

Disclosure: I work at Google. Opinions are my own.

I'm surprised when I read discussions about AMP on HN (typically carrying a negative tone regarding AMP) without anyone mentioning an obvious competing concept: Facebook Instant Articles.

Here is an excerpt from Facebook's FAQ on instant articles:

> Rather than loading an article using a web browser, which takes over 8 seconds on average, Instant Articles load using the same fast tools we use to load photos and videos in the Facebook app

Facebook has drawn a line around the open web and stamped it as slow compared to Facebook's proprietary content delivery system. If nothing else, AMP is a timely wakeup call for content publishers: if you like the open web, better start producing content that loads quickly on a phone over a 3G network. Otherwise, we will incrementally lose openness at the behest of users who will demand the superior experience of channels like Facebook Instant Articles.

comment 10y ago · link · parent

Custom Elements (also Shadow DOM) is a low level API that helps explain how an author can define elements that have aesthetic and functional parity with built-in HTML elements.

Custom Elements provides a lot of useful features, including: compatibility with "native" DOM APIs (e.g., appendChild); lifecycle callbacks (e.g., notification of being attached or detached); consistent timing for content distribution; the ability to "lazily" upgrade in place.

These features are generally useful regardless of the type of framework or style you may wish to use to write a component. They form a common baseline that moves the web towards a place where components (simply HTML custom elements) authored by different people do not need to be aware of each other's finer implementation details in order to be interoperable.

comment 10y ago · link · parent

This comment is misleading and seems mean spirited to me. On a fresh page load with cache disabled, I'm reading 165kb transferred. The GIFs are useful and lazily loaded in response to user interactions.

"Be more constructive with your feedback!"[1]

1: https://youtu.be/FArZxLj6DLk?t=88

comment 10y ago · link · parent

There are a few condescending attitudes at play in your comment.

Consider this: just because a language is easy to pick up doesn't mean it attracts "poorly trained devs". It just means it attracts more devs, because it is easier to get into it. Putting aside any value judgement of mass appeal, my experience suggests that the most important differences between a poorly-/un- trained dev and any other kind are time and practice. So, being easy to use is a much more powerful feature for a language / framework / platform than most.

Also, we should all be aspiring to use tools that enable us to quickly spin up a prototype UI that looks convincingly useful. I'm not sure why that's a knock against JS.

Also consider this: the languages / frameworks / platforms before the web, and before JS, were harder to use and relatively very discouraging to new users (this also sometimes goes for the communities associated with those languages / frameworks / platforms).

We all started from a place of ignorance as software developers, and many of us never would have left that place if it weren't for someone looking at us and seeing a computer whiz in the making.

comment 10y ago · link · parent

No, I agree with you, actually. Luck plays a huge part. It should inform all of us with opinions in this area about how little our opinions really matter.

Also, I disagree that users are suffering as a result, but that is a different discussion altogether.

comment 10y ago · link · parent

It's easy to sit back and critisize JavaScript and the web with dismissive comments like this. I have heard variations on these same memes for many years.

But something that I almost never hear: critics offering a candid explanation for why their platform / language / framework - which maybe wasn't perfect but CERTAINLY compared to JavaScript was awesome - did not become the de facto tool across as diverse a spectrum for delivering features / products / tools to users.

It's always fair to criticize so that we ask ourselves the hard questions. So, it's also worth asking ourselves if we are staring too close to the wall when we try to paint other languages as backwards and therefore bad (or at least a bad choice). Just maybe, the language feature bullet list in your head (and corresponding subtleties of implementation) isn't the thing that matters most. Maybe the thing that really matters is something not as easy to codify as a language tool chain, like human consensus.

Also, it is false association to suggest that quantity != quality is somehow particular to JavaScript. Infinite monkeys will produce infinite crap no matter what brand typewriter you give them.

comment 10y ago · link · parent

Yeah, absolutely. Get in touch with me privately and we can talk more about it.
1
56789