HNHacker News
TopNewBestAskShowJobs

megalodon

812 karma · joined May 30, 2014

https://github.com/mateogianolio
submissionscomments
megalodon··on Italian court rules food theft 'not a crime' if hungry
What the what? Your generalizations are way out of line. You can argue about or criticize the ruling but don't use it out of context to push your own agenda.
megalodon··on A majority of millennials now reject capitalism
> there is generally an expectation that 19/20 year olds are going to be more revolutionary than their elders

I'd love to see some references to this statement. A quote from a 19th century Swedish king is hardly compelling evidence.

I think you might be confusing socialism with activism in general.

megalodon··on Grafi.js – JavaScript Image Processing Library
I haven't tested but I think you can convert ndarray to Uint8ClampedArray by doing

    new Uint8ClampedArray(ndarray.data);
megalodon··on Telomere lengthening via gene therapy in a human individual
Yep, and most interactions are non-deterministic. I think we can safely say it won't happen in our lifetime.

On the bright side, we have a lot to learn and learning is life :)

megalodon··on The average size of Web pages is now the average size of a Doom install
SO feels more like a race to answer fast rather than to answer with quality. I think the best way to learn about the language is through the Mozilla Developer Network. I can't speak for everyone but I feel incredibly productive when programming in javascript.

I'd argue that jQuery was great, but now most (if not all) of it can be replaced by native javascript features (e.g. document.querySelector). Today I wouldn't recommend jQuery to anyone.

I suggest learning a functional language (in my case it was Haskell) in parallel, as it opens up new ways of thinking about javascript and problem solving.

megalodon··on Welcome to 'the worst job in the world' – my life as a Guardian moderator
I've been thinking somewhere along the same lines, but eliminating bias is incredibly hard to do, even with machine learning. Hopefully we'll see some experimentation in this area here on HN.
megalodon··on Welcome to 'the worst job in the world' – my life as a Guardian moderator
I'm merely suggesting that people should diversify their media intake to (try to) eliminate bias. Most newspapers do have a political agenda. In Sweden newspapers often state their political affiliation, which I think is great. Looking at the Guardian's wiki page under "political alignment", they are considered centre-left. [1]

[1] https://en.wikipedia.org/wiki/The_Guardian

megalodon··on Welcome to 'the worst job in the world' – my life as a Guardian moderator
Every newspaper is inherently political or "one-sided". Look it up.
megalodon··on The Swedish Number – Talk with a Random Swede
The far-right in Sweden have a habit of creating fake accounts in the purpose of spreading racist propaganda.
megalodon··on What if the problem of poverty is that it’s profitable to other people?
> Through his theories of alienation, value, commodity fetishism, and surplus value, Marx argued that capitalism facilitated social relations through commodification and the exploitation of labor.

This is remarkably close to the views expressed in the article, but I guess you're being downvoted because you hit a nerve.

Links for the interested:

https://en.wikipedia.org/wiki/Alienation_of_labor

https://en.wikipedia.org/wiki/Law_of_value

https://en.wikipedia.org/wiki/Commodity_fetishism

https://en.wikipedia.org/wiki/Surplus_value

https://en.wikipedia.org/wiki/Commodification

https://en.wikipedia.org/wiki/Exploitation_of_labor

megalodon··on Climate-Related Death of Coral Around World Alarms Scientists
If it's guaranteed to slow consumtion, why not? "Taxes, never" is short sighted.
megalodon··on Algebrite, a computer algebra system in JavaScript
That is a pretty bold statement.

Combine typed arrays with BLAS and you have yourself a numpy (well, kind of). In Node you can move performance-critical code to C++, which does have integers. Browser support of typed arrays is a bit disappointing, but it's getting better.

Disclaimer: I'm developing https://github.com/mateogianolio/vectorious

megalodon··on Type conversions from JavaScript to C++ in V8
Somewhat related: You can also read and manipulate the contents of JavaScript typed arrays in V8:

    // js
    var x = new Float64Array([1, 2, 3]);
    binding(x);

    // c++
    void binding(const v8::FunctionCallbackInfo<v8::Value>& info) {
        void *data = info[0].As<v8::Float64Array>()->Buffer()->GetContents().Data();
        double *x = reinterpret_cast<double*>(data);

        // do whatever, e.g.
        x[0] = 0;
    }
megalodon··on Experimental support for WebAssembly in V8
Here you go: http://arxiv.org

No javascript needed to make a perfectly functional, efficient and useful website. Maybe it doesn't fit into your description of a "real" website?

megalodon··on Experimental support for WebAssembly in V8
No idea why this was downvoted, you are correct.

Furthermore d3, typescript and jquery is javascript so the question is more like "do I need to learn how to use tools to make websites?" at which point it is kind of silly.

megalodon··on February breaks global temperature records by 'shocking' amount
> they'll blame their neighbours, refuse to change themselves, and will go to war.

Seems like a good description of the state of the world right now.

megalodon··on February breaks global temperature records by 'shocking' amount
Well put. Some seem to think that the earth belongs to us and not the other way around.
megalodon··on Syntax Highlighting Off
I think the usefulness of syntax highlighting is highly dependent on the amount of colors you use. For me, anything more than three separate colors is just visually distracting.

It's also nice to have low opacity comments, as many others have said.

Oh, and never bright colors. I use solarized or similar.

megalodon··on AlphaGo beats Lee Sedol 3-0 [video]
I was just contradicting your statement.

A human brain (or any other animal brain for that matter) is almost infinitely more advanced and computationally efficient than state of the art machine intelligence, even without taking things like thoughts, emotions and dreams - which we currently do not understand at all - into account.

It's a huge accomplishment for machines to be able to win over humans in games like chess and go and <insert game here>, but these are games originally designed for humans - by humans - to be played recreationally and I think we shouldn't read too much into it.

megalodon··on AlphaGo beats Lee Sedol 3-0 [video]
The same statement holds for humans too. I don't think you can teach a person how to play Go and expect him/her to learn anything else than how to play Go.
megalodon··on YouTube now shows "An error has occurred" while ads running
It's free because it was free before Google bought it in '06.

The world wide web was based on the idea of sharing, not paying for content by being forced to watch ads that I would never ever watch intentionally. Or do you want the internet to be like television?

megalodon··on Veil of secrecy lifted on Pentagon office planning micro-drone swarms
This. The rhetoric of the post above is not very different from the fundamentalist forces America is currently waging wars against.
megalodon··on AlphaGo beats Lee Sedol again in match 2 of 5
Here: https://www.youtube.com/watch?v=l-GsfyVCBu0&t=2511
megalodon··on AlphaGo beats Lee Sedol again in match 2 of 5
I think an important point was brought up by the Google engineer in the beginning of the game: Humans usually consider moves that put them ahead by a greater margin and base their strategies on that, while computers don't have that bias.
megalodon··on If you're alive in 30 years you might be in 1000 years too
There is a huge difference between life expectancy and life span and this article [1] covers it pretty well.

Life expectancy is skewed by infant mortality rates:

> Our conclusion is that there is a characteristic life span for our species, in which mortality decreases sharply from infancy through childhood, followed by a period in which mortality rates remain essentially constant to about age 40 years, after which mortality rises steadily in Gompertz fashion. The modal age of adult death is about seven decades, before which time humans remain vigorous producers, and after which senescence rapidly occurs and people die.

[1] https://condensedscience.wordpress.com/2011/06/28/life-expec...

PDF: http://www.anth.ucsb.edu/faculty/gurven/papers/GurvenKaplan2...

megalodon··on Mosul dam engineers warn it could fail at any time, killing 1M people
According to your last link, they actually began building a second dam further downstream in the 90s:

> A second structure, the Badush dam, was started 20km downstream, to prevent a catastrophe in the event of the Mosul dam’s failure. But work on Badush halted in the 1990s because of the pressure of sanctions, leaving it only 40% complete.

EDIT: Your last link is the same as the submission.

megalodon··on Why I Skip Stack Overflow
The image you linked is the very reason I'm wary of consulting SO for javascript answers.

I have found that MDN is a way better resource, including pedagogic examples for most (if not all) concepts without using bloated libraries.

megalodon··on Earthquake Heatmap
Great advice, thanks. I'll see what I can do!
megalodon··on Earthquake Heatmap
Final result: http://i.imgur.com/7WiloZM.jpg
megalodon··on Show HN: An algorithm to automatically turn photos of food into faces
Fun project, excellent article! Your figures made the algorithms incredibly easy to grasp.
← PreviousPage 3 of 6Next →