skysight-inc/HackerNews huggingface dataset:
I prefer to have a single class which stores an SI unit, as in

final class Temperature {
private final double kelvin;

public static Temperature fromKelvin() { ... }
public static Temperature fromCelcius() { ... }
public static Temperature fromFahrenheit() { ... }

public double getKelvin() { ... }
public double getCelcius() { ... }
public double getFahrenheit() { ... }
}

This avoids the quadratic explosion of conversion methods.

A more complete example - https://github.com/dlubarov/daniel/blob/master/data/src/dani...
Too bad Twitter can't issue RSUs to pay for server costs as well, they could take their expenses down to zero.
So would you guys recommend getting this book or going a little bit more cheap and getting the older version?
I was surprised to see a drink-up on their map in Portland, ME (where I am), however it was actually for OSCON in the other Portland, in OR.

Bummer :(
For a long time, iOS didn't have multitasking. If Steve Jobs heard that complaint from someone and replied, "We think we know what is best", would that person have thrown their hands up exasperated? Sometimes, visionaries are right, sometimes they are wrong. Sometimes, the customer is right, sometimes the customer is wrong. It's sometimes a crapshoot.
Someone could've turned off the setting after they checked it or any number of similar things.
Any organization that use intelligence accomplish its goal is going to try to hide its sources and methods, but we should not condone all means of getting there.
It used to be AOL keywords. Times change quick.
In addition to improving our tech, we can also reduce threats by stopping the NSA from launching attacks in the first place.
The Human Organization — Medium
> Blockchain being pulled from the app store proves what we've been saying all along: Apple isn't banning Bitcoin apps because of "legal grounds" (nobody is talking about making Bitcoin illegal), they're banning Bitcoin apps to anti-competitively prop up their own payments service.

What payment service? Apple runs no payment service, nor has announced that they intend to in the future. There can't be "anti-competitor" action if they don't even have a competing product to begin with.
I have been forcing myself off HN lately

You might want to checkout my newsletter which includes the best "show hn" links each week - http://hackernewsletter.com. It also helps with the HN addiction.
Live coding of a DCPU-16 Emulator – this is strangely entertaining
I built something similar to this at a hackathon in 2011. The source is has been on github ever since. No one has come after me yet.
Don't understand what the big deal is.
I do already use facebook pretty much all day. But twitter has a different audience and has more conversations relevant to work. Except the UI sucks and makes me work my ass off to engage in those conversations. If facebook or linkedin ends up eating twitter's lunch at some point, I won't complain.
But they are also an Internet company where the ad signups are done online, so it's not immediately obvious why they would have all those salespeople. (Not saying that they don't need a large number of salespeople, but that it isn't an immediately obvious need)
Thank you for letting me know. I was unable to post the link under URL the firm refused to accept it. Any idea why?
A couple points: 1. the dangling else problem is trivial to deal with. 2. I've written a C++ parser, I know the issues involved, and I know that a parser generator isn't going to fix that.

> delivering the lesson that lexers/parsers are easy in general is, I think, the wrong message to be sending.

I stand by the message :-) in the sense that if a person finds lexing/parsing to be hard, they're likely to find the semantic/optimization/codegen parts of the compiler to be insurmountable.

I've written compilers for numerous languages, including C++, including 2 languages I invented, and lexing & parsing is just not that hard relative to the rest of a compiler.
> remove the 140 char limit; we've moved away from 140 chars with sms for a reason and it is time for twitter to do the same

I disagree. I think that is the only reason Twitter still exists. 140 allow you to look trough the stream very fast. Try to follow a hashtag with the same amount of posts on Facebook or Google+ would be impossible
Yes, syntax matters.
i might be interested if you paid me to give them to me..
Is the scoring only based on time-taken and LOC? The top script that I looked at was more like code-golf. Is that the aim?
Look, the guy overheard a rant at lunch. Is that the same as consistent and deliberate gay bashing? What most likely happened here? The ranter probably got too loud talking amongst a group of people who are comfortable with nature of the topic. It's a persons job vs someone being offended (most likely indirectly). Be reasonable, and consider proportional reciprocity. Pull the guy aside at least, this is just another person, not a tiger, not a snake, just a human.
Yep the landing page navigation, I actually didn't notice there was more to it than the landing page. I felt kinda lost in the landing page cause there's no much else than the "Join us" thing. I'm a programmer, my eyes have been trained to ignore marketing copy and search for code examples and documentation.
It's not "announced" but the rumors are flying.
Oh god all that talk about COM, automation and IDispatch takes me back... Oh DCOM networking, the wonderful hours you'd spend trying to get the thing to connect to other machines on customer deployments, with all those wonderful registry configurations.. Anyone's who's ever done that stuff, man you can never forget :) a great Joel on software article as usual.
Could you please add a category "All but NSA"
First ever Dogecoin NYC Meetup
I'm having the same issue, though running the commands provided in the GitHub issue at the bottom just results in the Crashplan service not starting... Docker still isn't functional.
Ad-hoc, with the proviso that error recovery should always consume tokens, so the parser can never get stuck in a loop.
I took the nickname because I always take on more than I have time for, yet find the time to complete everything that I take on.
> name dropping companies running the risk of exposing their machines does not magically invalidate the specific examples I gave

You're right. But what it does is provide anecdotical evidence that your views are not shared by a large and growing number of experienced engineers.

> In fact I've really no idea what purpose your reply was hoping to serve.

It's pretty simple: you made an incorrect statement, I'm offering a detailed argument explaining why.

> In the default configuration (and according to all docs I've seen) [...] today docker is a wrapper around Linux containers

Yes.

> [...] regardless of some imagined rosy future [...]

I only described things that are possible today, with current versions of Docker. No imagined rosy future involved :)

> and Linux containers today are a very poor general purpose security solution

I guess it really depends of your definition of "general purpose", so you could make a compelling argument either way.

But it doesn't matter because if you don't trust containers for security, you can just install Docker on a bunch of machines and make sure to deploy mutually untrusted containers on separate machines. Lots of people do this today and it works just fine.

In other words, Docker can be used for deployment and distribution without reducing your options for security. Respectfully, this directly contradicts your original comment.
Your checking account is just as insecure. All that's needed to debit your checking account is your bank's routing number (which is public) and your account number. No PIN, nothing else.
There is no point in teaching something to people they don't like doing. Its a bit like forcing painting or sketching on people who just don't like doing it. A lot of schools do it, and kids who don't like painting or sketching do it real bad and become the object of ridicule.

Programming et al has a meta science its called 'making', 'tinkering' or 'hacking' or whatever you call it. If there are people who don't have a taste for it, teaching them sorting algorithms is as boring as learning math. Now common people are one thing, most people who join our industry as programmers discover they just want to do something else and go down the managerial stream.

Programming isn't for every one, just like building houses, cars, dams, or an electric grid isn't for every one. In all those disciplines common patterns of problem solution and general science are at play. Chances are if you like chasing a difficult bug and fixing it, you will also like repairing a car engine, or fixing your TV.

I have an elder cousin who runs a shoe shop for a living, he tried very hard to learn programming during the dot com boom era. He gave up in like six months. He just realized that procedurally learning something only because, every one is just doesn't work out, the problem isn't just programming. If you don't like solving problems and are not good at problem identification and opportunity identification, it gets really really boring at one point. He likes to sell things and is exceptionally good at that. Building things is just not for him. And there is nothing wrong about it.

The biggest problem with 'teach every one to code' is you have to first ask 'Do they want to learn coding?'.
How was Netscape shut out of Windows?
Facebook JavaScript authentication is down
amazon's valuation should be viewed through P/FCF not P/E. Bezos plows everything back into the company, they have plenty of free cash flow.
what's desperately required is to reduce total population levels. By a lot.

Got any ideas on how to do that?
I thought that for money laundering to work you had to purchases with the dirty money items that can be sold for clean money, or exchanged for items that can be sold for clean money (and you also want the transactions on one or preferably both ends to be hard to trace).

What are some examples of in-app purchases that would be good for this kind of thing?
They are not selling accounts. They are selling advertising opportunities to businesses.
They know that no one really cares about Bitcoin enough to materially affect them via a boycott, so it's easier to write a blog post about it.
Those were my two votes as well. The site looks like a ton of fun, can't wait for try it.
They actually do have a profit model.

The sad thing is they're giving it away to other companies (ie Gnip, Datasift). Here's a suggestion: Twitter. Take away every single middleman out there. Sell your data for an arm AND a leg.
If you're hitting HN's access thresholds, you might consider incrementally parsing data from http://hnstream.com

That may help with analyzing comment content at least. Not so much with news rankings though.
because that's exactly where people like me came from. Not sure what to do differently here. Maybe it's a matter of poor opinion mixed with horrible sense of humor.
Most Apple rumours don't even have a grain of truth, why start screaming around like lunatics that Apple feels threatened? Apple made six times more profit in Q4 of last year[0] than the Bitcoin total market cap[1][2], it's not even on the radar if they were making their own payment system.

They don't want sketchy looking payment apps on their storep, that's fairly easy to understand. It's behaviour like this post that makes the Bitcoin community even more hostile for companies to even consider approaching.

[0]: http://www.apple.com/pr/library/2013/10/28Apple-Reports-Four...

[1]: The "market cap" is misleading in this circumstance anyway, you could probably only sell a few million dollars of the stuff before the market completely bottomed out and panic ensued that it never rose up again. There's very little liquidity and a lot of weak hands.

[2]: http://coinmarketcap.com/
I've said as much to @pydanny already on Twitter, but I think it bears repeating.

Piracy absolutely does exist, and it will continue. This is the ugly part of society, that some feel entitled to steal and rob others from the fruits of their labor. This is absolutely wrong.

That said, it's also not right to punish your honest customers by not providing the material that they are MORE THAN HAPPY to pay for - in the medium they want.

I'm not arguing that ebook prep is easy. I'm sure it is very laborious. I have no personal experience with this, so I will take your word for it.

That said, you deserve to be compensated for your efforts. If it's more work to do the digital stuff, then charge enough to cover your work. Charge the same price for digital, as you do for print.

I know that some will object. I do not. I'd be HAPPY to pay a higher than normal price (since many publishers discount digital vs. print)

I understand your discouragement, based on previous experience. I'd be pissed off too. That said, if I were writing, and selling it for profit... I would welcome revenue from as many legitimate sources as I could get it from.

Like others, I've moved nearly everything in my technical library to digital format. I don't want to carry a book, if I don't have to. There's enough in my backpack already.

Since you currently only offer print for the new version, I bought it.

As a paying customer, who wants to support your continuing work, I hope you will reconsider your decision to discontinue offering ebooks.

Thanks,

Aaron Kulbe
Google, Intellectual Ventures case over patents ends in U.S. mistrial
Actually, he would have to believe that other people believe that Twitter will lose money, as stock prices go up/down based on expectations. That's how convoluted the stock market is :(
Let me preface this and say I buy from both Amazon and Newegg. I have even purchased from newegg when they were just a brick and mortar store. I have never had an issue from either outside of 1 item being wrong from newegg. I ordered 10' male to male display-port cable. When it arrived it was male to female. I called their customer support and informed them of the issue. It was a quick no hassle response from the CSR who sent me a new one. Except when I got the new one (for free) it was again the wrong one. Here's the kicker, I informed the CSR that it was probably labeled wrong in the warehouse before they issued a replacement. And I guess I was right. I even checked my order and it indicated male to male.

If anybody from newegg is reading this, I would suggest you work on using your CSR's more effectively. Maybe even reward them for fixing issues in your supply chain.
Spirited away is one of (if not the) my favorite movies of all time. It may appear at times a bit weird to western eyes, but once you get past that it's blindingly beautiful animation with a sad and happy story. If you haven't seen it - I envy you :)
Yes most signups are done online via a self-serve system; however, there is a lot of money to be made if you can produce custom deals, content, and ad placement with bigger partners.
"So did Dan White?"
done it in more than 15min :(
http://fiddle.jshell.net/v6u6A/4/
The fallacy of Oppenheimer Snyder collapse: no black hole, no singularity
This article uses inheritance in C++ to ensure the types line-up, but I have really taken a shine to algebraic data types for my firm's data feed handlers.

Here is an example in C++11 that implements a market-data spec line-for-line.

#pragma pack(push,1)

struct Quote {
char symbol[16];
uint16_t bid;
uint32_t bidsize;
uint16_t ask
uint32_t asksize;
};

static_assert(sizeof(Quote) == 28, "Quote size wrong");

struct Trade {
char symbol[16];
uint16_t price;
uint32_t size;
};

static_assert(sizeof(Trade) == 22, "Trade size wrong");

struct Data {
enum class DataType : char {
kTrade = 't',
kQuote = 'q'
};

uint64_t sequence_number;
DataType data_type;
union {
Quote quote;
Trade trade;
};
};

#pragma pack(pop)

Now because I've disabled padding in the structs, the types will map directly to the proper byte locations as specified by the data vendor. There is no need for me to manipulate bytes!

And I can get away with a single cast:

Data* data = reinterpret_cast<Data*>(raw_buffer);
switch (data->data_type) {
case Data::DataType::kTrade: {
Trade& trade = data->trade;
std::cout << trade.symbol << ' ' << trade.price << ' '
<< trade.size << std::endl;
break;
}

case Data::DataType::kQuote: {
Quote& quote = data->quote;
std::cout << quote.symbol << ' ' << quote.bid << ' '
<< quote.ask << std::endl;
}

default:
std::cerr << "Unknown message type: "
<< static_cast<char>(data->datatype) << std::endl;
}

So now the code resembles a match statement in OCaml, but will actually compile directly onto the underlying bytes. No data marshaling or anything like that.
The big problem (other than verbose code) with rolling up stuff into classes in C++ is that performance suffers. Many platforms will not pass small structs efficiently.

Inspired by Haskell's newtype, I drafted a proposal for C++14 which would have introduced native newtype to C++, but it got rolled into an omnibus paper (n3635) and appears to have been forgotten.

The proposal is modelled on strong enums, but generalizes them to all types. They are essentially strong typedefs with none of the weaknesses of wrapper types, restrict pointers, typedefs, and pragma disjoint.

newtype NotInt : int;
NotInt k(5); // call ‘default’
NotInt bar(NotInt);
bar(k); // passes exactly as an ABI int would
int baz(int&);
baz(k); // Error! no conversion

While drafting this proposal, I realized it was a much more C++-like way of bifurcating aliases than 'restrict' keyword:

newtype D1 : double;
newtype D2 : double;

void biz(D1 *x, D2 *y) {
// Being separate, D1/D2 can be
// assumed not to alias by optimizers
...
}

While playing with it, we came up with this proposed syntax (although I don't think this would get through the committee):

[template <typename T>]
newtype [NotT] : [(public|private)] T [= (default|explicit|deleted)] [{
// only non-virtual member functions, no data or reference members (something like POD)
// this->value has all of the operations of T, but only aliases with the new type, and implicitly converts to/from T prvalues.
}] [optional_variable_name];
Depending on who the hosting provider was, they could :)
I've always thought that maybe this was related to Github's super-flat management structure, where as I understand it, people have a lot of choice as to what they work on.

In such a system, it seems pretty natural that you'd get a lot of people doing "cool" stuff...
Is the entire premise of Neuro-Linguistic Programming (NLP) not that you can influence people's thought patterns by using language as code, as instructions?
Come up with designs for little things you're going to build. Start a Github/Bitbucket project (public or private, your choice). Write the design up, then code it. Start small - I wrote a python script to let me send GitHub gists from the command line and it turned into a multi-month project!
There's got to be a way to bring this system back to serve the purpose for which it was designed - encouraging innovation and not stifling it in courtrooms and endless litigation by corporations and moguls. Or maybe I'm just being overly optimistic here :(
Sorry I thought I was being clear when I mentioned operational semantics but in retrospect that may have been totally unclear. I recommend Pierce's Types and Programming Languages. It has everything you need to learn about operational semantics and types systems.
What kind of flippant, useless comment is that? You dismiss his entire experience as "claptrap" and then sarcastically suggest he go on a killing spree? Get the hell out of here.
>>Our resources are just more powerful today

Have you ever programmed a embedded system? Every worked on a 8-bit micro controller?

There are hard, very hard problems that come up which have to solved in with really limited resources.
I guess my original post was focused on map/reduce problems; I meant it to be more general. We take our site response time very seriously, and therefore our application code and data layer has to be very fast.

Yes boxes are faster and easier to spin up. The 'downside' to that is that many website on the internet are blazingly fast: Google, Amazon, Dropbox, etc. Because they are so fast (or perceptibly fast via tricks), the rest of the web is held to that higher standard. Twenty years ago, things taking a long time on a computer screen with no updates was acceptable. Today it really isn't because there are N other websites that are selling your exact product or experience.
iTunes is a type of payment network, and Apple's demand for a 30% share of revenue generated via apps is key to protecting that competitive advantage.

Bitcoin apps are a challenge to this. Say if Amazon made a wallet app that happened to let you buy EBooks?
I don't think by "non-programmers" he meant "people who don't actively program".

I think he meant "people that don't even know how to program".

In this article bill gates says in the first line that he no longer writes code. But clearly he would not classify as a "non-programmer".

Today's managers can still provide valuable input (e.g. algorithm design - like Gates did when this article was written) even if they don't code day to day.

I'm a program manager at Microsoft so I don't actually write code. That said, I majored in CS and know my stuff pretty well. I don't consider myself a "non-programmer". That said, I try and increase my credibility among "my" devs by doing projects outside of work. This also helps me keep up with the times.
Might be interesting to compare to F#‘s units of measure: http://msdn.microsoft.com/en-us/library/dd233243.aspx
Sales isn't about doing the paperwork of getting you signed up for a service. Sales is about convincing you to buy the service. Twitter doesn't have an automated system to convince companies to spend millions buying ads, they have salespeople, like every other sales company.
I didn't say I was okay with any of it -- in fact, I said the opposite ("[this] sucks"). However, it's also perfectly legal, as far as I can tell.

I guess I don't really get what consumer pressure is going to do, realistically speaking. The number of Bitcoin users (the users most likely to participate in this) is very small relative to the number of Apple users.

If you're interested, I'd be willing to make a $100 bet to the charity of the winner's choice that Apple will not reinstate Coinpunk anytime in the next three months.
> He doesn't mention anything at all about networking ...

It was a blind spot for Gates and Microsoft in the 1980s. He wasn't alone, of course. People like Marshall McCluhan had laid out a vision for it years before but Gates was really focused on software for devices and not the network. It wasn't until the late 1980s that Microsoft turned its attention to Novell which was making a killing in PC networking. (Gates recruited Jim Allchin from network company Banyan in 1990.) By the mid-1990s there wasn't much left of Novell, but Microsoft's interest and strategy there was purely driven by business and not vision. That was clear when they were clobbered again by the Internet.
Yet, being first to the market has ensured he made billions.

The definition of 'useful' and 'beautiful' varies based on circumstances.
For anyone who comes across this thread and is genuinely interested in educating themselves about how programming languages can be constructed in a principled way (what I would call sane) you can consult Pierce's Types and Programming Languages.

With some work anyone can learn the material. It's not as simple as reading a blog post unfortunately, but you'll have a much deeper understanding of what it means to build a programming language.