skysight-inc/HackerNews huggingface dataset:
I dislike how the Java Promises and the Scala code unnecessarily hide the reality of the computation from the developer, take a Go version as counterpoint:

func stockForProdsTO(uid int, timeout time.Duration) (*Stock, error) {
stockCh := make(chan *Stock, 1)
go func() {
orders := ordersForUser(userById(uid).email)
stockCh <- stockForProds(prodsForOrders(orders))
}()
select {
case result := <-stockCh:
return result, nil
case <-time.After(timeout):
return nil, errors.New("Could not get stock for product before timeout.")
}
}
Using your solution will not get the complainant the media time the person so very much craves.
One interesting analysis is cause and effect and minimizing total casualties.

9/11 resulted in preplanned implementation of security theater, because good security can be inconvenient, anything inconvenient must be good security, right?

(something that didn't happen) results in preplanned implementation of big brother style surveillance of the entire worlds population. Its profitable for contractors and hardware mfgrs and great for industrial espionage etc etc. Also it makes a population of dunces feel safer because (something that didn't happen) could have been prevented, in theory, by the new, Bigger Big Brother.

So... what was (something that didn't happen)? Were we as a nation planning on nuking SV and leaking the reaction plan before it happened eliminated the reason for us to nuke SV ourselves? We "need" a reason to attack Iran to extent WWIII in the ME, so I could see if some Cuban citizens nuke SV so we invade Iran and publicize the "new" spy programs. In that way, looking at what it cost to implement 9/11, program leakers are probably saving thousands of lives, maybe more, by skipping the Reichstag fire and going right to the oppression stage. How many people, as a country, were we planning to kill to implement the recently revealed spy programs?
That notion has been studied and refuted. Give a mouse, or a person, a high oral dose of MSG, and their plasma levels of glutamate are not significantly changed.
strong-AI can easily get access to immense computing power

But is it the right kind of computing power? The human brain is a very different sort of machine, architecturally speaking, from any computer currently in existence. Current computers have a very difficult time dealing with massive, parallel, random data access. Perhaps strong AI requires billions of threads randomly accessing a database which is terabytes in size? That is going to make the memory bus very, very sad.
I know someone has to have written about this, but I don't know who. My sense is that it is like an unconscious societal arms race. In the presence of prejudice labels take on negative connotations. People notice and use new terms that are free of these connotations. Then the new terms acquire the connotations and the cycle repeats.

Maybe this is the best we can hope for, that we get lulls in the coloration of terms and less prejudice to confront at each new cycle.
hint: not all CS majors are programmers or computer people at heart. some are doing it because of the opportunity to make high/safe incomes post-college. And the natural programmers, the people that truly love building stuff with computers and software tend to just do it anyway, before/after/outside/regardless-of college.
Well erlang and go do have a virtual machine concept because they are basically flip off great big coroutine schedulers at the end of the day (or are they OS's?). Go and erlang give nifty coroutine initialisation and communication stuff - that is all with language constructs on top. c++ has none so you're free to choose depending on what you need to do. It's a good general purpose language.

Usability is perfectly fine when you consider C++11 and boost for example. They both can the useful abstractions.

Transactional code is pretty easy. You can do it fine with closures you know, elegantly without resorting to metaprogramming monstrosities. Metaprogramming is a PITA in large systems from a maintenance perspective.

Its not as masochistic as finding erlang developers. Nor is it all that masochistic actually if you consider the good old CSP paper and apply that to your code.

The "enterprise outfit" nonsense is us large businesses who have a vacuum of quality staff because people would rather work at google (for a lesser salary I'll add) where they can take on menial duties and be kept away from the competition. We build really big, complicated systems like you've never seen with "inferior" tools, low quality staff, very little CPU time and not a mention of erlang or Go. In fact some of our shit is handling 1000 requests a second on VB6+DCOM.

Go figure...
Yeah, special was already an insult when I was in school in the 90s. Didn't realize challenged had become one already. Have they made a noun out of it or just an adjective? Retarded produced both, which is one probably helped it spread.
on the other hand though, it looks like someone needs to create a "Facebook Manual", for the ones unable to configure their news-feeds.
The issue I see with their ability to execute on those ideas though - I think facebook home's epic flop is a good indication of the quality of innovation to expect from FB going forward.
Apple Reportedly Developing Large Curved Screen iPhones For Late 2014
Clearly he would invoke the flying spaghetti monster to intervene...
>Facebook doesn't want you to have a good user experience: Facebook wants you to have a Facebook Experience. One that they control and provide, with information they get to choose, and other people get to buy.

This. They want to control not just your experience, but your information, so they can package it up neatly and sell it. Advertisers can get both your information, but they also know how advertising -- at least on Facebook -- will be presented.
We do send what we can. Between government, charities and private donations, there's aid coming from the US.

We could send more, but a majority of the population is in debt or living check to check. (You could appeal to the folks that live in 27,000 sq ft houses and spend $300k annually on their electric bills, but they are busy doing more important things.)
The US Navy refused to buy her technology saying it was "too bulky," only to start developing it themselves soon after the patent had expired. That may have been a pretext to avoid buying the technology, but in any case today her invention would be weightless -- implemented in software with SDR.

By the way, the movie she's best known for is boring in my opinion (especially if you don't speak German). Boom Town and Copper Canyon were more entertaining.
Because this is the only thing the US produces any more, so it's major part of the GDP... Pretty simple.
Intelligence certainly exists. There is a reason humans are building space ships and chimpanzees are playing around with sticks.
Pretty cool.

Related: anybody has ideas to achieve the following?

display the stdout of a program on the console and also write a gzipped version of stdout to a file.

I currently jump through some hoops (involving two term windows) to achieve. 'tee -a' to a named pipe in one window and in another window, 'gzip <' from that named pipe. Would prefer a single-window, single-command solution.
I wonder how much engagement Google/Facebook/et. al. lose from people who are about to make a comment/post a status/etc., and then thing 'Hm, no - this is private now, but what about in a year when they automatically change my privacy settings without asking me?'

Put another way, imagine I am a teenager or college student who uses Facebook.

1. Start to upload a photo from my phone of me and my friends doing shots

2. Try to figure out how (on my phone!) to set privacy settings so that my younger brother (who is my Facebook friend) and my parents (who aren't, but use the Internet and sometimes Google my name) can't see it.

3. Remember that Facebook has a history of "expanding" privacy settings retroactively

4. Think "Ah, fuck it", and send a Snapchat to my friends instead.

In reality it's probably not that common right now, but hopefully that may increase in the future. You can only pull the rug out from under your users so many times before learn to walk along another path.
I wouldn't. You can't build a solid structure on a broken foundation, and C++ is most definitely broken. Instead you throw it away and start fresh. The problem with C++ is it tried to combine the power of C with more advanced features while still maintaining all the low level access that C gives you. The problem with that is that it undermines all the advanced features by either allowing you to easily break them in odd ways through low level features, or else by leaking low level details all over your high level abstractions and requiring you to keep track of all those details the abstractions were meant to hide in the first place. If you want to see how to do a "low level" language better look at the approach that Rust, D and to a lesser extent Go, have taken. They borrowed from C where it made sense, and they threw away what didn't fit well. C++ kept not only the good, but the bad and ugly as well.
There's no value to A16Z's investors for A16Z to hold shares in publicly traded companies. If the investors want to, they can buy shares directly and not through a VC firm.

The value to these investors is access and expertise in selecting private companies, not holding shares in public ones.
You have lists on FB that is equivalent of G+'s circles.
The argument being that Ayn Rand paid into social security, and was therefore entitled.
In case anyone is curious to understand this comment thread, the original submitted title of this link was "Steal this book". It has since been changed to "Time Series Analysis and Its Applications: With R Examples".
Was she a hypocrite for buying from state-run food depots when she lived in the Soviet Union, as well? Are free market advocates now obligated to starve themselves before taking money out of a system they were forced to pay into? That's quite a stacked deck of cards you're arguing with.
Attributing to stupidity that which can be explained by evil???
In fairness, Python for S60 was a special kind of pain, especially the way it mixed Python threads with ActiveObjects.

Being able to REPL on a device from a terminal on another machine was fairly useful though.
The Top Secret Trade Deal You Need to Know About
Because in C++ the rule is "you only pay for what you use."

All the things you want would incur a performance penalty were they the default.
I'd have to look at the cost comparison of overhead vs underground power lines, keeping in mind the presumably extreme levels of standards one would have to meet, but I would not be surprised at all if the decision was 100% based on right out in the open corruption. This is one of the problems we have over here that holds us back, and it is getting increasingly worse imho.

Another problem for poor nations is the initial capital cost complicating the decision of building cheap and fragile vs expensive and resilient. Sometimes they simply don't have the money. Sometimes they do but the genuine uncertainty of another typhoon of this magnitude makes it too difficult to make the commitment. Other times they're perhaps not even thinking in this way at all.
I am happy to see that there's some example code on the home page.
Books aren't like software where you can release often and iterate.

Bruce Eckel's Thinking in Java was written in public. Early drafts were available as PDFs. High quality feedback, iterations, rapid releases, community engagement, mindshare, etc.

It was great to observe. Once it hit paper, I bought maybe 10 copies, as gifts, just to support the author and the new strategy.

I'm a bit disappointed it hasn't become the norm. Being on the outside, I rightly don't understand why.

I don't recall if Eckel had a publisher at the outset. Or if he was able to get a publisher by demonstrating the size of his audience. (The market for Java books at the time was flooded with schlock.)
That doesn't put things in any useful context. Each car wreck is an isolated incident. Societies are relatively well-equipped to deal with these incidents: first responders come out, injured are taken to hospital, the dead go to the morgue, where they are buried in a routine fashion. The next of kin are affected, but their lives proceed in a society which has retained its usual level of function, with employment continuing, transportation networks operating, and food supply lines functioning normally. This is all true even for the most massively awful freeway pileups that occur in dense fog.

In a disaster of this nature, supply lines are wiped out. Hospitals are gone. First responders, to the extent there are any, are overwhelmed. It's hard to get food. Sanitary systems, to the extent they existed in the first place, are gone. Communication systems are gone. This is all going to have incredible impact, even in a less-developed country. The disaster affects entire communities for several years at least. No car wreck has this sort of impact.

Side show?
you are conflating the source of truth with the tooling built on top of it
It's not that Facebook is required to have social interactions, but you're effectively cutting yourself off from a majority of society because it has become an expected norm. I have "real friends" that I used to talk to over the phone somewhat regularly. Facebook has taken over that network of people and now we post or chat on Facebook.
Brody actually was a terrorist. Who's paranoid now?
Is that the same as an 'impossible to do otherwise' case?

Edit: I should say 'currently impossible' since as I noted, I can imagine being able to build SQL queries around PSSM comparisons and the like. I just can't build a system to last 5+ years around something that might be available at some point.

Since I can't reply directly- agreed :)
Strong AI generally means smarter-than human.
Observable reality and pointing out logical inconsistencies (hypocrisy) are generally considered fair game.
Incompatibilities Between ISO C and ISO C++: http://david.tribble.com/text/cdiffs.htm
Right. But how do you define it intensionally? Saying that "humans have a lot of it", "chimpanzees have less of it", "ditto for dolphins", "reptiles have very little of it", etc. is defining intelligence extensionally. Why is this a problem? Because an extensional definition doesn't tell you how to add new elements to the set.
>> - it [getting Scala to work with Java] can be verbose sometimes

Fixed. You're reading that sentence wrong. It's still supporting the author's point. Also, it's not easy to learn [just because you're coming from Java]... This also supports his point that's it's better to treat Scala as a new language than as Java++. I grant you the IDE and the backward compatibility points, but those speak more to it's immaturity than it's "intrinsic superiority".

Having said all that, I agree that it might take Scala a long while to compete with Java. And I think the main reason for that is that it's hard. It's a bit too elegant, if you know what I mean. The syntax ends up being too sugary and consequently looks mystifyingly clever at times. I can think about OOP reasonably well, and I can do FP reasonably well, but personally it still takes my mind a while to wrap both those together. And that's the main reason I'm really into Scala right now, I find it incredibly challenging. I think as Scala comes more into production we'll see the development of more pedestrian idioms that can be easily absorbed by the industrial programmers.
> ..."...associated with international terrorism..."...

Is "terrorism" defined? If not, everything will be stretched to fall under its meaning.
Skipping the `where` and just putting the asserts after the function definition would be as readable, maintainable and skip needing sweet.js processing cost?
Hearing to what problems a technology failed to solve is usually even more interesting. It cuts the hype.
Falling gasonline prices have had me worried for a couple weeks now, for me its a sign that we are on the cusp of a double-dip recession. Growing income inequality belies a wider underlying weakness in the economy. The Depression grew from a decade long recession in the agricultural market, it was sparked however by a stock market bubble imploding that caused widespread bank failures. The failures of the banks are what turned it from a blip (see the post-dot-bomb era) into a worldwide crisis. I believe honestly that the next 5 years its going to be about as bad as the last 5, but hopefully should improve going forward.
What do you think about Assembly? Is it worth learning ? (Disclosure: I have recently started studying it.)
I do not think so, but it might be after the GIN optimization work is committed. After it they beat Sphinx in several benchmarks.

http://www.sai.msu.su/~megera/postgres/talks/Next%20generati...
TIOBE: Is it meaningful?
I'd use a Chuck Moore reply - "I wouldn't". :-) (Why would anyone do anything so unreasonable?)
It sounds like their entire community and economy is devastated.

If disaster taps on your neighborhood window, I suspect you would sing a different tune.
Loved the discussion of distance estimator formulae. As I recall them, to derive one of the results in The Science of Fractal Images you'd need to use Koebe's 1/4th theorem applied to the potential function (or a related function which is analytic) and thus you'd solve the factor problem. It's a little hazy, since I did this 6 years ago, since then I've only worked with entire transcendental functions where potentials are harder to come by. A useful approach then is to use a bifurcation loci approximation result (like this thing I worked on for a while: http://www.maia.ub.es/~ruben/docs/20110531Centres.pdf
The paper with the result kind of entered a limbo while I finished my PhD... and is still there (after all it is just like 8 pages long)

PS: Why orange? Just to avoid using the "standard blue" used in most Beamer slides :D It doesn't look as offensive in a projector as in a screen, too.
It sounds to me like the poster above restructured the input data to exploit locality of reference better.

http://en.wikipedia.org/wiki/Locality_of_reference
Send to Kindle Button for Websites
Bitcoin has M-of-N, it's just turned off.
This does not put things into context at all. You do realize that this is a single event, localized in a single region of the world, right?

This is equivalent the population to small neighborhood all dying at once. In addition to destruction caused.

Regardless of the cause, large amounts of loss of human life in a single event are still considered significant. The reverberating effects throughout the neighboring communities are perhaps most noticeable. You are removing an entire node from a graph, rather than individual leaves.
You moved back to MySQL.

What was the motivation to move to Map Reduce in the first place if a well understood technology, MySQL, works fine?

(sorry if I am posting a lot on this topic. I am really interested in finding answers rather than trying to prove any point that relational databases are better in case anyone thinks otherwise).
Very cool! Any plan to support other hosts? I believe meteor.com isn't intended for production hosting.

We've been spiffing up buildpack-based Meteor support here: https://github.com/pogoapp/buildpack-meteorite

And deployed Telescope as a forkable demo app: https://hub.pogoapp.com/demo/telescope
"History and politics and sociology classes are not..."

"its already just a piece of paper..."

"You won't be permitted to change anything..."

"if voting could change anything it would be outlawed..."

"You'll be given..."

"This is the stage..."

"The purpose of a democracy is..."

"its a blueprint..."

A litany of declarative bromides, delivered with pseudo-authority and strung together without forming a coherent thought, call to action or proscription for remedy. Such could only ever be pointless, nihilistic, and and anarchic.

Demagoguery in the making.
Make me think about one of the classic (but imaginary) debate in StarTrek: Measure of a Man [1]

[1] http://www.youtube.com/watch?v=3PMlDidyG_I
Except Google+ - which does both.
C++ has <chrono>, which guards against this kind of mistake by using the type system.
Can you estimate how much faster your processing is now vs. before on MySQL? I find it interesting that your cluster is only 6 nodes - relatively small compared to what I've seen and from what I've read about. It'd be interesting to know the benefits of small-scale usage of big data tech.
This sounds like something you could just do in SQL and have it all done in milliseconds.
Thanks for the correction.

> I grant you the IDE and the backward compatibility points, but those speak more to it's immaturity than it's "intrinsic superiority".

Scala is ten years old, the fact that it's still immature in these areas is a concern. If this hasn't been addressed in ten years of existence, it seems unlikely it ever will.
It's a little hard to take someone seriously when they come up with a grand theory on some particular topic and then use a TV show as their supporting example. I had the same problem back in the Bush years when people would support torture by saying it worked on '24'.

I understand that nobody is REALLY saying that something is valid just because it was in a TV show. But the fact that they couldn't think of a real life example of their position suggests to me that maybe they aren't informed enough to be having such strong opinions in the first place. For the Hacker News audience, it would be like opening an article on computer security with an example of "hacking" from the show NCIS (anyone who's ever watched it knows what I'm talking about).
A couple of obvious typos on that page:

"Sign in and enable your repositories deployment"

Should be "repository’s" (or "repositories’" if you're really talking about more than one)

"And your set!"

Should be "you’re"
That's an Americentric viewpoint. There's no need to "win over" anybody. If the US wants to regain trust and increase soft power, it should be helping based on genuine altruism and mutual respect, not for underlying political motives.
Well, that depends.

Can you visualize the storage of an array?

Can you look at this basic construct and build its state in your mind?

for (i = 0; i < 10; i++)
print i

(I'm assuming you have some familiarity with the structure based on your statements.)

Can you walk through it in your head, and understand what it will print, when, and why? Not because you were told what it would do at some point, or because you ran it - but because because you can 'see' it? Do you take some amount of pleasure in doing the above?

If the honest answer is "no" then you'll never be more than a mediocre programmer. There is a lot of work for such programmers out there, and I'm sure you'll find employment - but I suspect the only thing you'll be happy with is the paycheck. You'll also never progress beyond mid-level at best, unless at a large corporation where seniority counts more than ability.

If the answer is "yes", then I think changing over has a very good chance of leading you to an enjoyable, lucrative career path. And you're starting off far ahead of most of the 'coders' entering the work force since the late 90s and early 00s.
It’s not that I find Google or even Google+ itself bad. But the connections between the account, the Google+ profile, the Google profile, the various websites and contact lists

This is totally it for me. I have a few Google accounts (an 'original' one and two Apps For Your Domain ones for e-mail and work) and it seems Google has made Plus accounts for each and I have things spread around them all. I've seen stories where people tried to "merge" accounts and ended up losing access to their mail, etc.. so rocking the boat doesn't seem worth it to me.

I don't mind Google's (usually great) services but it's the binding together that makes me wary.
Not as good as http://goosh.org/.
The Messenger app is the only thing keeping me on Facebook. It's so great to be able to communicate with people in a layer more formal than text but less formal than email.