Hacker Newsnew | past | comments | ask | show | jobs | submit | mantraxB's commentslogin

"30 fps flicker" - that's not a CRT, it doesn't flicker, because unlike CRTs, a flat display doesn't have a ray refreshing the display top to bottom.

And 30 fps on a CRT wouldn't be enough to produce stable image in the retina at all, which is why CRT TVs used to refresh at a minimum of 50Hz, and that still flickers (it stops "flickering" at around 75Hz).

With flat displays frame rate is about display responsiveness and animation detail.

So I wonder where are the claims about eye-strain coming from. Maybe because people just want better display responsiveness and they like to borrow from the problems low refresh CRTs used to cause, because it sounds scientific and legit as a problem.


Persistence of vision depends on the ambient brightness. Movies are 24FPS but they're shown in a dark room so the jitter isn't as bad.

A 30FPS screen in similar conditions wouldn't be as bad, but most people use computer screens in well it rooms.

The flickering on an LCD is different, but presents itself as a serious sputtering when you're moving things around.


Film is projected with a shutter operating at twice the frame rate or better, to minimize flicker. It would be unwatchable otherwise. See http://en.wikipedia.org/wiki/Movie_projector#Shutter


Well ambient brightness matters, but actually analog cinema projectors use a frame rate of 48 fps (they "flick" every movie frame twice), so it's still way above 30fps.

Plus, with CRTs the problem is exacerbated, because they scan top to bottom, and need higher refresh rate to hide this effect.


> "The more CEOs are paid, the worse the firm does over the next three years, as far as stock performance and even accounting performance"

Yeah well this entire study is invalidated by using stock performance as the lazy way to measure CEO performance.

Expensive CEOs are typically expensive, because they're hired to fix a company that everyone knows is going down. The riskier the company, the more the stock is expected to go worthless, the more you get paid in cash for taking on the job.

So it's expected that if you look for expensive CEOs you'll be seeing stock/accounting performance going down in short to mid term, because recoveries, whether successful or not, take time. They take years.

Also are you honestly counting CEOs who get millions in stock and $1 pay as... just getting $1 in pay? How stupid are you.


>Also are you honestly counting CEOs who get millions in stock and $1 pay as... just getting $1 in pay? How stupid are you.

No. And neither did the study.[1]

>We use three measures of compensation: (i) total compensation (TDC1) which includes salary, bonus, total value of restricted stock granted, total value of stock options granted (using Black Scholes), and long term incentive payouts, (ii) total cash compensation (TCC) which includes salary and bonus, and (iii) the difference between total compensation and total cash compensation (TDC1-TCC) which is meant to capture the options and incentive components of total compensation. This difference, which we call incentive compensation, is our primary variable of interest, including restricted stock grants, option grants, long term incentive payouts, and other annual noncash compensation.

[1] http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1572085


Future expectations about stocks affect their price today. If a company is known to be in trouble, its shares will already be cheap. (A few people, most notably Warren Buffett, can reasonably disagree with this, because they're already very rich from beating the market. Everyone else should just assume that Warren Buffett has already traded the share down to its appropriate price.)

I suspect that the overconfidence explanation given in the article is closer to the right explanation. I was suspicious at first, but then the article gave figures about mergers. It's widely known that mergers usually don't meet expectations, so maybe overconfidence would lead a CEO to think they could escape this statistical fate.


> Also are you honestly counting CEOs who get millions in stock and $1 pay as... just getting $1 in pay? How stupid are you.

That's not what's implied by the article: "big chunks of the compensation packages for the highest-paid CEOs come in the form of stock and stock options."

Edit: From the paper....

"To better understand the drivers of the pay effect, we decompose pay into its major components. We find that most pay components are negatively related to future abnormal returns earned by these firms, with the strongest components being the value of options granted and long-term incentive payouts. However when we add other control variables that have been shown to explain the cross-section of returns, the components largely lose their significance, with the exception of the value of options granted, which emerges as the main driver of the pay effect."


The study was explicitly looking for a correlation between stock performance and CEO compensation, the compensation included bonuses and stock/options.

I'm not sure stock performance is necessarily a lazy indicator. Considering that Company Board's hire CEO's pretty much entirely on how well they can move this needle.


I can't agree with you more. This would have been a nice study if it didn't reach any conclusions; just laid the data, pointed out all the possible reasons why their analysis could be wrong and paved the way for a better study.

One example, their data only covers from 1994 to 2011.

PS: Direct link to the study http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1572085


The standard format for a scientific paper includes a discussion section, where you're supposed to draw such conclusions and interpret the results and their significance.


Then this document should not be called a "scientific paper" or/and should never be published.


Sorry, what? It shouldn't be called a scientific paper because it follows the standard format for one?


Then it wouldn't be a study; it would be data collection.


I'm ok with that. But I guess that "data collection" documents don't count towards academia points.


Sort of like:

Here's the data. Analysis is an exercise left to the reader?

I guess what I'm trying to point out here is that while collecting data does take up most of the bulk of the work, data is meaningless without analysis and direction to inform further gathering. That's why the field of study called statistics exists. It's not just about academia points.

On the same vein, the reader should be critical of the analysis; it should not be taken as accepted truth. And the writer should try to predict and address criticisms.


I would agree with you when the analysis is correct. However, no analysis is better than a wrong analysis, especially in cases where politicians may use the studies to pass laws that may hurt citizens. Remeber the whole Reinhart And Rogoff ordeal.


Actors.


Actors says nothing about consistency; you have to do it all on your own. Basically a non solution in this area.


+1. Actors are simply a unit of concurrency and means of communication between those units. Their scope and division of labor, as well as, the associated communication protocols are left to developer. They provide no inherent consistency guarantees.


The problem with FlatBuffers and Cap'n Proto is that while in-memory rep matching serialization formats are much faster (infinitely faster as Cap'n Proto says tongue in cheek) for languages with unsafe direct memory access (like C/C++), they're actually slower and more cumbersome to use in any language without unsafe direct memory access (like Java, Rust, Python, Go, JavaScript/Node, Swift and... well, most languages).

The other problem is that Google tends to release random stuff as open source and then modify it (breaking BC) or abandon it without regard for the people who are using it.

So caveat emptor, I guess.


Java has ByteBuffer, Javascript has TypedArrays, Python has the "struct" module, and other languages have other fine ways of reading raw data in this kind of format. Some languages may lack the ability to inline calls well enough for true zero-copy to be efficient, but the worst case is you fall back to parsing the message upfront like you would with any other encoding. That upfront parse is still going to be faster, because it's just easier to read fixed-width values than variable-width.


And FlatBuffers actually uses ByteBuffer as part of its Java implementation.


I don't get it, you can't read anything out of a ByteBuffer, except a bunch of bytes.

You can't map 1:1 any more complicated in-memory structure to that buffer, or am I wrong?


ByteBuffer has methods for reading primitive values of all sizes -- ints, floats, etc. -- from arbitrary offsets within the buffer. So you just need a wrapper object with nice generated methods for each field which in turn call the ByteBuffer getters.

None that the C++ code works this way too. We don't cleverly generate a struct that just happens to have the right layout; we generate a class that wraps a pointer and provides inline accessors that read/write values from the correct offset relative to that pointer. After inlining, it's just as fast.


Rust does have unsafe direct memory access and a work-in-progress port of Cap'n Proto (https://github.com/dwrensha/capnproto-rust).


If any Pittsburgh HNers are interested, dwrensha is likely to be giving a presentation regarding his Rust-based Cap'n Proto library sometime in the next few months.

http://www.meetup.com/Pittsburgh-Code-Supply/


> "The most well known simulator to any Android developer is probably (and ironically) the one that iOS developers use from Apple."

I get it. Ironically Google didn't copy Apple for once, and their solution turned out bad. So now they need to ironically copy it, please, Google, pretty please. But the real irony is that Android developers both get to boast about Android being open source, yet when they need something, they go beg Google implement it for them.

And Google really can't implement an efficient iOS simulator for them, because there's no Android desktop operating system.

You see, while it's getting a bit old to hear Tim Cook brag at every keynote about how "only Apple can make everything work seamlessly together", truth is, they indeed share a kernel and over half their APIs between their desktop and mobile operating systems. This is why the iOS simulator is that good. Tim Cook knows it.

While a supposed "thin layer" Android simulator has to interface all its APIs with Windows and then do it all over again for OSX, and then again for Linux (common POSIX APIs notwithstanding), every version with its unique quirks and bugs, not matching the platform it's simulating.

So instead of that ball of pain, Google chose the easier task of virtualizing the actual hardware and then running the whole Android stack on top of that.

In their particular circumstances, this was, and remains the only feasible way of doing it, and no amount of blog whining will change that.

Turns out you really can't copy some things so easily.


> Google really can't implement an efficient iOS simulator for them, because there's no Android desktop operating system.

The x86 Android build provided by GenyMotion (cited in the article) performs at the same speed as the x86 iPhone simulator.

It has two major issues:

- The UI is quirky (but usable)

- It's expensive

- GenyMotion devices have no Google Play by default. Want to test how your website runs in Chrome? Spend ages hacking Google Play onto the Android device.

Google could fix all of these things easily.


The x86 images provided by Google run just as fast as the Genymotion images, and have Google Play. Just FYI.


Thanks for the suggestion. I spent an hour setting these up today - despite supposedly using x64, HAXE etc they're unusably slow. I have no idea what's wrong. The UI tools run at unacceptable latency (they're Java based) so I can't debug easily.

This is on a 2013 Haswell MBA with 8GB RAM and a 512GB SSD.

Google may as well throw the official emulator away.


When you run the emulator, do you get this message (on stdout): "HAX is working and emulator runs in fast virt mode"?

Did you enable the "Use host GPU" option?


Nope, all engineers have been re-assigned to making ubuntu.com responsive and blogging incessantly about it.

Phones and operating systems will have to wait.


Your account is 11 hours old and you have 7 comments, each and every one of them extremely hostile.

Are you trying to achieve something here, or are you like this in real life as well? I really don't envy you either way.

In any case, I like that they're blogging about this. Open sourcing "processes" and all that.


dan_bk: You have been downvoted because your comment is too off topic

mantraxB... is just ironic and making fun (rescuing the situation)

I had to smile (thank you & upvoted)


Yes, judge me based on my account age, because you have half a year history of making "hostile" comments, and I have just half a day.

Outstanding work, detective. Here's a medal.


This article is all over the place.

First of all calling it "JavaScript cryptography" only to immediately correct itself "oh, we mean browser client-side scripted cryptography, not JavaScript in general, say Node.JS".

Then calling it "cryptography", when all the article talks about is hashing passwords. There's more to cryptography than hashing passwords, and not all of it is susceptible to the attacks described.

So the real title of this article is "Client-side scripted password hashing in browsers less than ideal". I know, doesn't roll off the tongue as sweetly as "JavaScript eats babies", but what you gonna do.

Third, the faulty logic of "this new technique has a bad edge case, so we should completely reject it, despite any benefits".

The article just glosses over the situation where the script is served securely and yet you hash at the client. "We already have a secure connection, anyway" the author claims. Sure, but the server still gets the plain text password, because TLS doesn't hash, it encrypts (and you can decrypt). If the server is passing the login request to a third party to check the hash, turns out it's still a good thing to hash at the client so the intermediating party can't abuse its role, without the horrid UX of OAuth. Has the author thought of that? Nope, just dismissed the potential outright.

Plain old-school TLS/SSL connections have exploitable edge-cases as well. Should we "consider them harmful"?

Intelligent conversations about security require nuanced opinions that go into when something is useful, and when it isn't, and let us make the call if it's harmful or useful for a given project.

Calling something "harmful" outright and only listing the cons without the pros isn't this kind of intelligent conversation. It's just counterproductive scaremongering.


This article has virtually nothing to do with password hashing, but the fact that readers routinely take that away from it is part of why I don't like it much either. We didn't promote it, or post it on HN; I think I posted it to Twitter once, and now people re-find it once a year.

I'll absolutely win an argument with you (or, I think, anyone else) about browser Javascript crypto. It's simply a bad idea. I just don't think this particular article will.

We don't reject browser Javascript crypto "despite any benefits". We reject it because those benefits are illusory. It's clear that browser crypto makes people feel better, but TSA airport security also makes the majority of Americans feel better too.


Hey man, I loved that article, I read it a while ago. It seemed like it had a pretty simple takeaway: JS crypto by itself is laughable, and JS crypto on top of real crypto is pointless.

I do have a question though -- you say that 'you can deliver the JS crypto with SSL, but then it's irrelevant because the connection is secure,' so I'd like to know, what's your opinion of blockchain.info?

It adds JS crypto on top of SSL, and provides a signed browser extension, for reasons that seem to make sense given its use case.


what about distributed as signed browser extensions?


What's that Google is working on, and it's a much better environment. The code lives on your computer all the time, and you (in theory, assuming the proper browser settings) can make sure you are using a constant version of the code that matches up with what other people are using and auditing.

You can't lock down JavaScript at all. Your browser should (in theory) tell you when a plug-in is asking to be updated and give you the option to say "nope."

In theory, you could even walk up to a brand-new (assuming uncompromised) computer and reinstall the plugin. But you would still need some way of knowing that you were installing the same version you decided to trust earlier. Recognizing checksum pictures, I guess?


It can work but the users have to be able to 'read' the code from the server and sign it themselves. Certain hashes can be considered trustworthy and that would require a 3rd party or being able to put those hashes on paper and compare them.


I would say that signed browser Javascript extensions are my least favorite place to viably deploy crypto.


Agreed the article is not very insightful. Another place where it misses the point entirely:

> The problem is, having established a secure channel with SSL, you no longer need Javascript cryptography; you have "real" cryptography.

This overlooks a major use case of client-based cryptography where you don't want to expose any private keying material to the server.


Not really. If you don't trust the server to hold the key, you can't trust the client you downloaded from the very same server.


It's not always about trust. Sometimes it's more about the burden of having the keys. mega is a good example of why client side encryption is used. They don't want the burden / liability of knowing what is stored on their server. (they probably know it anyway, but the idea stands).


That protects mega (the server); it does nothing to protect the client.

As the client, I care about my protection.


While you are correct that a server can serve me malicious Javascript encryption code that discloses my keys, there's a big difference: the act cannot be hidden.

If my secret keying material instead is on some company's servers it can be taken surreptitiously (by court order or not).


While it may be mathematically impossible for the server to give you hostile code with no way at all of you detecting it, in practice you are not going to check the JavaScript you download each time. Nor does the browser have any way of doing version control for you, or of verifying what's actually running.


I'm not sure why HN doesn't let me reply to danielweber's comment. Thread is getting too deep?

I admit that in practise you're not going to check the Javascript. But from the point of view of someone trying to get their hands on private material, the difference is huge. If the private material is on a server, a simple court order (or not) can give you access to potentially millions of customer records. But if you wanted to do dragnet collection when client-side crypto is in use, you now have millions of small but non-zero risks to get exposed.

[EDIT: spelling]


No, it does not overlook that "major use case". You're confused between wanting something to work in a specific way, and whether things actually work that way. If there's a "#1 most common fallacious reasoning strategy" employed by advocates of browser crypto, it's that one.


Wow, sensitive topic? No need for ad hominem. Thank you very much.


I'm not sure I see the ad hominem that you're seeing.


Why make assumptions on my motivation? And why assume I wouldn't know what subjectivism is? I think your comment could have been way more useful if you replied to the argument instead.


I agree that the article fails to expose the main issues properly but JavaScript in the browser, in it's current implementation is harmful. It gives you a false sense of security.

The biggest issue is that the crypto code can be changed at any time transparently. It's typically distributed by the same party that has your data so all you're really doing is transferring trust to them.


> Third, the faulty logic of "this new technique has a bad edge case, so we should completely reject it, despite any benefits".

What you are calling an "edge case" is the main feature since the first iteration of the language. That it runs server scripts on the client. And yes, it does mean that it must be completely rejected for crypto code.

If the article gloes over something, it's the fact that those problems are fundamental. They can't be ammended, and won't go away at any time in the future. Looks like it should make this still more obvious.

I guess that's the second article I upvote on HN... At first I tought "No shit! But I'll take a look", but after reading this kind of responses, yes, I think it should get a few days at the frontpage.


They do user testing.


Better to call it "usability testing" because you're testing the system NOT the user.


I guess my question is if there's a disagreement between user testing results and the product development team's own choices, who wins?


Part of being an intelligent person is the ability to make the best call based on all available information.

There's no general rule.

I'll just say that fast iteration is key. You iterate quickly and show users prototypes, and incorporate their feedback (or not), depending on the case.

You can see the "Fake it till you make it" WWDC session on Apple's site, it speaks exactly about how Apple does prototyping and user testing.


I'm sure you can make your trivial point about the intricacies of web design without having to piggyback on Jonathan Ive's interview.

For the record, a lot of the UI prototyping at Apple is done in Photoshop.

It's also done on paper napkins, in Keynote, in Illustrator, in Xcode and with whatever works.

Good designers don't judge you based on what tools you use, and they're not picky about what tools they use. They'd use anything. The important part is how you think.

You can think about all sorts of screens and devices and do it in Photoshop. You can also produce unusable trite crap in static HTML.


Judging by your hostility and focus I think my point (which I don't think is trivial to those working with the web) wasn't clearly communicated.

The best of modern web designers embody that philosophical approach in regards to the 'building / making' element of how a final web design lives. This is a fuller consideration of how the design works, and can only be achieved by working with the 'materials', just as Ive mentions is essential at Apple for product design.

I never said design can't or shouldn't use napkins, keynote, Photoshop, Illustrator or whatever a designer chooses, or pass any commentary on how designers at Apple internally prototype UIs.

I did imply though that a web designer that stops at the PSD mockup stage doesn't embody the design approach Ive is discussing in the article. Without working directly with the materials (HTML / CSS) you are deciding not to entirely consider all elements of how the design lives:

* are webfonts available for this typeface?

* does CSS provide those visual effects, and if not, what fallback designs should I consider?

* can the design work across all target devices / browsers?

* will the page weight be too large to support this particular design approach. Can I simplify to avoid this?

Mocking up a variety of screens in Photoshop does not cut it at the best end of the scale as a web designer.


It's much harder to do it in photoshop for things like responsive design. Responsive is dynamic and fluid and it's very difficult to capture that in a few static comps. I like this point about web design is very relevant to Ive's point. Apple isn't perfect, and the fact that Apple does web design a certain way doesn't mean other ways aren't clearly better and closer to the values Ive is discussing. Trying to use apple.com on your phone should lead one to the conclusion that apple isn't doing modern web design well.


>It's much harder to do it in photoshop for things like responsive design.

Then again responsive in the web is a co-out and a fad -- instead of creating the best experience for each screen size, you give them some sliding or expanding divs and some dissapearing elements from the "full-on" design and call it a day.

I've never seen a responsive page I like on a mobile device. I'd take the full page, in which I can pan and zoom, anytime.


I've seen a number of responsive designs I like better than the full page of a regular site. Compare the following sites to using this site, HN, on a phone.

http://dish.andrewsullivan.com

http://video.disney.com

For a site that would be much better with a responsive design look at

http://nytimes.com


I'd draw a parallel to storyboarding for animation here [1]. Most storyboarding artists get their start as animators themselves, so they know the "form and the material and process," so to speak. But when they do storyboarding work, they need to work in an agile and rapid fashion, to consider a user's flow through the "application" at such a high level that they would be hindered by trying to draw every single detail. Should they know innately what is and is not feasible to animate? Absolutely! But this does not mean that they should use the same tools and techniques as animators to perform their work.

Responsive may be difficult to capture in static comps, but when these comps can be made much more quickly, attention can be given to user experience overall, not just isolated fragments of user interface. And it's difficult to deny Apple's success at driving conversions and purchases.

[1] http://en.wikipedia.org/wiki/Storyboard


I don't know. The top two most frustrating things I encounter on modern web sites are: "infinite" scrolling effects & badly done responsive designs.

While adaptive UI can be done right (and yes, that's the correct name for it, "responsive" typically refers to reaction lag, not screen size), and is definitely a nice tool in the designer's toolbox, it's very telling that various "responsive evangelists" keep popping out of everywhere talking about the virtues of "responsive" where no one asked them. Say like the poster I was replying to here.

This behavior is typical for something at peak hype. They're just so excited about it, they can't comprehend why everyone isn't getting a boner about "responsive" so they have to talk about it non-stop to clue us in on the awesomeness we're allegedly missing. It's like Ruby on Rails all over again.

Which is to say the "responsive" movement right now is 80% bullshit and 20% useful technique (when used in moderation). And I have examples to support that.

Part of "responsive" is the horrible practice of rolling menus into obscure hamburger buttons, outright hiding panels with useful content and functionality, or presenting bizarre interaction patterns that some harebrained designer thought are more smartphone-ey.

This is not helping your users, it's pissing them off and making them spend a lot of time hunting for the "desktop version" link on your site.


"And I have examples to support that."

Do give them.

"This is not helping your users, it's pissing them off and making them spend a lot of time hunting for the "desktop version" link on your site."

Not for the site I worked on. When we switched to responsive mobile use skyrocketed on our site.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: