News for hackers. Stuff that matters.
Re:Hair by goggles99 on Thursday June 20, 2013 @04:41AM (#5910925)
Incredible. I have not seen anything like this since Macromedia Flash came out about 12 years ago... Sigh

There is good reason why we don't use flash today though right? It is resource intensive (looks at task manager and realizes that browser with hair page open is eating up 12% of i7 processor).

Re:Hair by jawngee on Thursday June 20, 2013 @05:19AM (#5911035)
I needed to put on sun screen to protect myself from the glare of your snarkiness.

You didn't see anything like this 12 years ago, because it simply wasn't possible with just HTML. You had to use a closed source, expensive tool to do it. And 12 years ago, when it was being done by people like Joshua Davies, Manny Tan, that guy behind assembler.org, they were doing something very, very important: they were bringing computer art to every living room, they were exploring generative algorithmic art and they were advancing the idea of what could be done with tech of that time. It was pretty important shit.

This code is useful in a lot of practical ways - games coming to mind almost instantly. But not everything has to be practical. Something can just be beautiful. I find this to be beautiful and fun.

HN needs less posts like yours. It used to not have them. I am glad to see some positive in other comments in this thread, but your comment in particular is relatively useless. Particularly after you admit to using Windows in 2013. That's like someone driving a Ford telling me what a waste of metal a work of art like a Lamborghini is.

Re:Hair by chollida1 on Thursday June 20, 2013 @10:26AM (#5912229)
Your comment started out pretty well and then you put yourself into the same group as the one you were trying to disparage with this really unnecessary and unfounded comment.

> Particularly after you admit to using Windows in 2013. That's like someone driving a Ford telling me what a waste of metal a work of art like a Lamborghini is.

Which is a shame because I thought you had a good point up until then.

Re:Hair by heidar on Thursday June 20, 2013 @08:47AM (#5911698)
Perhaps rather than criticizing the demo negatively, which I see no reason to do, he/she could rather have initiated a discussion about where things like this belong in modern web development. Is this use of JavaScript just going to become the next Flash until everyone dislikes it enough for it to become a "legacy" technology? (I mean the same status as Flash has now)

That is perhaps extreme, but I guess a valid question. Think about it though, the author did not have to create anything but he/she did spend his own time creating this. Furthermore, the author did not have to share it with us but he/she still did. So why the negative (and unconstructive) feedback? Why not just not upvote and move on?

Re:Hair by antocv on Thursday June 20, 2013 @05:44AM (#5911095)
How do you know that he uses Windows?

I found his comment not very snarky, but quite interesting, indeed, one of the main arguments against Flash, and here we are with the same drawback with this amazing new technology.

Re:Hair by quarterto on Thursday June 20, 2013 @06:04AM (#5911155)
> looks at task manager
Re:Hair by nkozyra on Thursday June 20, 2013 @09:03AM (#5911781)
Not only are there "task managers" in other operating systems (and Chrome itself), but plenty of people aren't allowed to install Ubuntu server addition on their work machines.

That said, he should just replace "task manager" with "top" or whatever to get him over the OS snobbery stuff that I thought sailed into the sunset years ago. It's really, really dumb to judge someone by the OS they happen to be using at any given moment, especially when they're commenting on a cross-platform technology.

Re:Hair by antocv on Thursday June 20, 2013 @06:30AM (#5911233)
I see, my radar didnt go pick up on that.

Well, not to nitpick but Linux also has a task manager, and in many desktops it is also called a task manager, I believe in KDE that was the kase.

Re:Hair by bliker on Thursday June 20, 2013 @06:11AM (#5911180)
there is one in chrome too
Re:Hair by cseelus on Thursday June 20, 2013 @06:15AM (#5911194)
Yeah HN once was more fun without all those naysayers and naggers that more often than not seem to just be uncreative and ingenious.
Re:Hair by lukifer on Thursday June 20, 2013 @06:56AM (#5911296)
HN culture once consisted of boundless enthusiasm and encouragement. What the hell happened?
Re:Hair by mistercow on Thursday June 20, 2013 @12:10PM (#5912895)
Re:Hair by skrebbel on Thursday June 20, 2013 @07:31AM (#5911412)
Reality struck.
Re:Hair by lukifer on Thursday June 20, 2013 @08:35AM (#5911634)
The best defense is a good offense. I say: strike reality first. :P
Re:Hair by goggles99 on Friday June 21, 2013 @03:03AM (#5916934)
Wow, a lot of mixed reactions here. My comment is not meant to tear down the developer of hair, I am just pushing an agenda. I am pissed off as hell with current web standards. Why the hell are we 12 years later and still in the same place (overall) as far as technological innovation? 12 years... You should all be mad as hell that HTML5/CSS/JavaScript is not many strides better than flash was 10-12 years ago. You should all be mad as hell that there is no open standard for an API where anyone can create their own markup, their own language to run in all major browsers. Screw this compile to JS stuff. I really do admire those doing it, but this is a hack, a workaround.

I hear all this whining that flash was closed source and not an open standard, yet we are stuck in a proprietary mess of similar sorts and I don't hear complaints about that. We are relegated to all learn HTML5/CSS/JS. Doesn't that piss anyone else off? What if when writing applications for Windows, Mac and Linux, you could only choose one programming language, one markup language, and one layout/styling/positioning language? You would be pissed as hell. Well the browser is the OS of the web so why aren't you pissed off? Why is everyone so exited and happy for HTML5? It should be thrown back in the faces of the consortium and a loud demand for what I mentioned earlier should be put out.

THEN we would see some REAL INNOVATION. Let the people, the hackers/developers release their creative energy on the building blocks of the web. Give us the freedom to do it. Open standards that are so high level (such as a specific language following exact specifications) are causing stagnation of innovation.

Re:Hair by WayneDB on Thursday June 20, 2013 @10:33AM (#5912280)
We need less posts like yours (and mine here ;) - complaining about other posts.
Re:Hair by mistercow on Thursday June 20, 2013 @10:49AM (#5912380)
I strongly disagree. I'm pretty sure that chastising comments about people being dicks on HN are one of the major forces keeping dickishness in check. Sometimes people need a reminder of which arrow to click.
Re:Hair by WayneDB on Thursday June 20, 2013 @11:48AM (#5912762)
Maybe, maybe not. One thing we can both be positive about though is that comments complaining about other comments create more noise than signal.

In any case - was the original/root comment here really that bad? Honestly...

Re:Hair by mistercow on Thursday June 20, 2013 @12:06PM (#5912880)
>In any case - was the original/root comment here really that bad? Honestly...

Yes. One of the things that HN has been in the past, and should try to be in the future, is a place where people can post their projects and feel like they'll receive constructive feedback. If scoring cheap status points by tearing people down is what you want, you can check out literally any other large online community.

Re:Hair by WayneDB on Thursday June 20, 2013 @12:29PM (#5912993)
Well, I disagree that the original comment was "tearing people down". I find it incredible constructive to reflect on the reality of a given situation. What he said was not disparaging to the developer - it seemed more pointed to the general nature of web development.

If you'd rather have a community where nobody can speak their mind and everybody walks on eggshells though - perhaps you should start a smaller online where you can implement that rule. Otherwise - let's just keep adding to the noise, shall we?

Re:Hair by mistercow on Thursday June 20, 2013 @01:02PM (#5913187)
There's nothing wrong with people speaking their mind, so long as they are considerate and are trying to add substance to the discussion.

But there was nothing constructive in goggles99's comment, and its general tone was mean. It doesn't pass the "real life test"; if OP had shown this demo to a group of people face to face, only an asshole would have responded with what goggles99 said.

>Otherwise - let's just keep adding to the noise, shall we?

You might not be aware of it, but what you're doing here is known as "derailing".

Re:Hair by WayneDB on Thursday June 20, 2013 @01:51PM (#5913580)
The tone was sarcastic and not directed at the developer. I don't mind that. How constructive it was is completely subjective.

How am I the one derailing here? I didn't start on this topic. If I'm derailing, so are you. You can stop responding at any time.

Re:Hair by kozhevnikov on Thursday June 20, 2013 @05:04AM (#5910987)
No need for sarcastic sighs, codepen and alike are simply this generation's demoscene. Nobody is thinking of making a restaurant site with hair animations.
Re:Hair by redacted on Thursday June 20, 2013 @06:07AM (#5911169)
NEVER underestimate the perversity of developers of restaurant sites.
Re:Hair by inoop on Thursday June 20, 2013 @06:32AM (#5911238)
Please do not associate us with this kind of crap.

Sincerely,

The Demoscene

Re:Hair by skrebbel on Thursday June 20, 2013 @07:29AM (#5911405)
But it's in the browser!!!
Re:Hair by nollidge on Thursday June 20, 2013 @04:44PM (#5914848)
If anyone's thinking of doing hair animations for non-legitimate reasons, it's restaurant website developers
Re:Hair by vidarh on Thursday June 20, 2013 @05:06AM (#5910992)
Yes, there is a good reason. For starters I can't cut and paste flash / actionscript code into a file and fire up a browser and start hacking on it without any extra tools.
Re:Hair by WayneDB on Thursday June 20, 2013 @12:38PM (#5913048)
The goodness of that reason is highly debatable.
Re:Hair by Goladus on Thursday June 20, 2013 @08:41AM (#5911660)
The main reason I don't and never used flash is because the entire stack is mostly proprietary. Developing for it required tools from Macromedia/Adobe (At least, I never found a decent open variant).

Flash applications also tended to have poorly integrated user interfaces. All of the standard web-browing features (back, forward, copy link location, save image, open link in new window, etc.) had to be replicated by the developer of each individual application. So most of them functioned poorly.

And CPU utilization was not the metric people used against flash with regard to performance complaints. The metric was time spent waiting for the goddamn site to load. People complained about flash's performance in two main scenarios. The first, were sites that were supposed to be useful that tried to be overly creative with intro movies and fancy dynamic menus that users had to wait for. The second scenario was pages with flash-based ads, where once again, content on the page would take longer to display because the browser was busy downloading and running banner ads that were 100x the size and complexity of the target content.

Re:Hair by beatgammit on Thursday June 20, 2013 @11:28AM (#5912641)
You're lucky! On my old Core 2 Duo, the animation takes 40-60% CPU (nothing when idle). But this is a lot better than flash which frequently takes 100% of a core for even relatively trivial redering (videos and such), and stays high even when idle. My GPU sucks, so I think mostly everything is software rendered anyway.

Also, Flash is a pain to get working on *BSD and is no longer supported on Linux, which is reason enough to move to JS.

HTML5 isn't necessarily about lower CPU, it's about openness, cross-platform compatibility and integrating with other browser elements, all of which Flash completely fails at.

Also it's a pretty neat animation and works without plugins, provided your system OpenGL version is recent enough.

Re:Hair by UnFleshedOne on Thursday June 20, 2013 @12:25PM (#5912979)
12% on i7 means one core out of 8 is fully booked. Windows never has more than 100% CPU, unlike mac and linux, which have 100% for each core and then tell you "Xcode uses 390% of CPU". :)
Re:Hair by mistercow on Thursday June 20, 2013 @12:09PM (#5912892)
>provided your system OpenGL version is recent enough.

I haven't tested it, but I don't think this requires OpenGL at all. It appears to be purely canvas 2D, which is not WebGL.

Re:Hair by Samuel_Michon on Thursday June 20, 2013 @06:07AM (#5911165)
Macromedia started selling Flash 16 years a go, in December 1996.

http://en.wikipedia.org/wiki/Adobe_Flash#History

Re:Hair by diminish on Thursday June 20, 2013 @04:54AM (#5910960)
it is cool, but, browsers must give reachable options to cpu consuming operations with canvas and other js animations.
Re:Hair by wavefunction on Thursday June 20, 2013 @09:33AM (#5911928)
Like gpu acceleration?

http://stackoverflow.com/questions/15363798/which-mobile-bro...

    iOS5 with Nitro Javascript
    Chrome for Android on Android4+ (default browser)
    Windows Phone 7 with IE9
I don't see Blackberry providing any support but...
Re:Hair by look_lookatme on Thursday June 20, 2013 @01:12PM (#5913242)
This guy's comment history is abysmal. Can someone just ban him?
Re:Hair by joshdance on Thursday June 20, 2013 @11:42AM (#5912726)
I think it is useful to learn from. And hey it is fun. :)