skysight-inc/HackerNews huggingface dataset:
> In my experience, the fact that the compiler can check this stuff ends up subtracting cognitive load. Of any language I've used, Rust code is the code that I worry least about.

That's interesting. So this holds for languages and applications where you could get away with not knowing the automatic memory management implementation and adjusting your design based on that? For example, that you don't have to worry yourself with making sure to not allocate too many values on the heap, at least in most of the code?

Would you prefer using Rust for problems and domains where you strictly don't need the efficiency and determinism (like memory usage) you get from using Rust?
Show HN: Cat Relief – 24x7 on-demand Hilarious Cat Photos over Yo
It should have been "The sins of talking about types" then.
Looks like Slate - https://github.com/tripit/slate
Four paths
We're all eating the elephant one byte at a time. With 193,000+ karma his average item gets about six upvotes/resubmissions.
It hasn't changed at all. I have it enabled, its funny sometimes. The 2013 year end video brought a tear to my eye, and it changed some beach photos by adding in snowflakes (must have thought the white sand was snow).
0 points
Oh gods, that sounds like a horrible idea (the site is unavailable at the moment, so I can't see the list of features). Only slightly worse than the idiotic start-up idea that made the rounds two years ago, whereby all of one's cards could be combined into one (Oh goodie, if I lose one card, I lose EVERYTHING!).
you can be arrested for 'suspicion of theft?' Am i missing something or is this illegal? Security in casinos have the legal right to detain you?
This makes it really easy to add average karma to the comment section for every user. For instance, you can paste the below into the console, and should add average karma data for each user.

Array.prototype.forEach.call(document.querySelectorAll('a[href^=user]'),
function(v,k) {
var s = document.createElement("script");
s.src = '//hacker-news.firebaseio.com/v0/user/' + v.innerHTML + '.json?callback=ud_' + k;
document.head.appendChild(s);
window['ud_' + k] = function(user_data){
var avg_karma = user_data.karma / user_data.submitted.length;
v.innerHTML += ' (' + avg_karma.toFixed(1) + ')';
}
}
);
Do the Oracle or OpenJDK JVMs deal well with heaps that large? I have no interest in other JVMs because my employer would not consider switching and I can't say I blame them.
Both of these books are just writeups on peer reviewed journal articles. No individual article is going to tell you very much on its own, so I don't see much value in just linking to a random list of studies.
> It's not a slight advantage if you've ever had to parse through logfiles by hand or debug APIs with curl--it's a great deal more than that.

Funny you should say that, UNIX time works great for log files. Since now even a dumb tool can search for values in the range, 1388491199-1420027199 to see all 2013-2014 lines.

Your way requires specific support for the date format, dealing with "2014" false positives, or searching through all 12 months individually (2013-01, 2013-02, 2013-03, etc).

You keep drumming on about library support, which is important for a format which isn't universally supported. Fortunately for UNIX time there's no value in listing them off one by one, you can just assume it is all of them...

UNIX timestamps are also listed in several international standards. Including POSIX.
I would pay 2x what they're asking if it worked like it's supposed to, and I could leave everything else behind.

But realistically, I think mobile payment systems are much more likely to succeed. Plus, I already have my phone with me anyway, and it doesn't seem too far fetched that it could provide all the info on my driver's license. So with that and widespread adoption of ApplePay (or whatever ends up succeeding in that space) I'm down to just leaving the house with my phone and whatever cash I want to carry.
Coin doesn't handle the chip and pin problem at all for the moment. Even they say that the next version of the card will work with chip and pin. As far as the battery is concerned, Coin will just stop working after two years. At least with this card, it will be rechargeable, even if I have to do it monthly.

My biggest concern would be pre-ordering anything like this for the time being. I was left pretty jaded with Coin promising for a year that they were running on time with shipping. Summer 2014 came and went and they finally admitted just two weeks after the previous update that they wouldn't be able to make it for at least another 6 months. Now this product is advertising a more advanced feature set to be released at around the same time. I wouldn't bet on it.
People care more about convenience than privacy online
Ha! I've been using this function for ages and always assumed it was a compiler built-in. I love that it's just that simple.
>eventually all brick and mortar businesses will support paying with your phone

There are brick and mortar businesses that don't even support credit cards. It could be a long time before all brick and mortar businesses support phone payments.
I don't think the Nash Equilibrium applies here. The consequence of defecting has to be better than cooperating, regardless of what the other player does. Here, you have to consider the probability that prosecution would be successful, which did not seem likely.
Fashion. Because it differentiates.
This... is cool, but also kinda sucks for me. I've invested dozens of hours into writing an extremely complicated scraper for my Android version of HN.

This definitely does suck. I feel your pain. But it's also part of the package of scraping websites. You go in knowing that it could break at any time.
I only know about AIG, but the government bailed them out with a 14% interest rate with money they got from China at a 3% interest rate. The bail out was probably the most profitable thing the US government has ever done.
Can we query new stories?
Thanks! I think you'll like the new version whenever it gets finished :)
The Innovators Review: Taking the “Great Man” Out of the Garage
I had thought LEDs produced a poor color spectrum for film. I see the linked site advertises a color temperature "from daylight to tungsten and anything in between". How is that accomplished (or is my memory of LED's spectrum poor)?
How we turned 12 clicky keyboards into a music video
The "time threshold" is the lifetime of the machine. Not minutes, hours, or days.

Slots are fixed to a given payout percentage and then locked in with the gaming board. Traditionally this means a copy of the program is checksummed and stored offsite with the gaming commission. The officials have the right to open that machine at any time and verify that the program matches what is on record.

Casinos cannot dynamically change this payout percentage on the fly. That's a violation of the law. A casino is required to have a certain average payout across all machines, but that does not mean a particular machine needs to obey that percentage. In fact, the penny slots will be set way lower and the high-denomination slots will be set much higher. The average will hit the target.

The "hack" is theft, plain and simple. Putting aside the ability to re-award jackpots, the player found a way to change denomination of credits post-play. This is the equivalent of winning at a table game and then swapping your $1 chips for $100 chips when the dealer is not looking.
The Future of Pilot Less Aircraft with Joe Rimanelli of Detroit Aircraft Corp
Pretty cool. Just signed up!
If you believe that justice must not only be done but be seen to be done then yes, if you don't then it doesn't matter.

But really, trials and the rule of law are so 2000.
Show HN: Sudomine – A Minesweeper and Sudoku Hybrid
The problem I have with this product, as well as Coin, is that seems to be far less convenient than pulling a card out of my wallet. Maybe George Costanza would get some use out of one of these, but I'm usually choosing between an ATM card or one or two credit cards. Plus, I don't need to worry about having my phone, charging batteries, electrical gremlins, &c.

All I'm seeing is an expensive ($155?!) solution to a non-existent problem.
So.... this is just Coin, but with e-ink?
Oh, I'm well aware. I've had to push many quick fixes when some field gets renamed, etc. It's really not the API change that bothers me, more the lack of features. But hopefully they can add those things soon and I can re-enable them down the road.
No, not really. You can tell a true story with a narrative film, or a documentary; what Herzog believes is that there is a truth beyond a strictly factual accounting, and he makes movies informed by this belief. There are a variety of techniques, but the most obvious is inserting himself into someone else's story, whether this is talking explicitly about the difficulties of making Cave Of Forgotten Dreams, or the scenes in Grizzly Man where he views Treadwell's death footage and then makes an in-camera judgement about showing it more widely; or basically all of Little Dieter Needs To Fly, wherein he takes Dengler back to Indochina and subjects him to much of the same suffering he experienced in his escape.

This also works in reverse, of course, notably with Fitzcarraldo, where he replicates an insane feat of human ingenuity that wasn't actually part of the real life Fitzcarrald's story.

In any event, all of Herzog's movies are worth viewing from my highly fan-boyish perspective.
>And of course they want to have it both ways. For example, income from illegal prostitution is taxable, but associated expenses can not be claimed as a business expense.

It's complicated and I'm not a lawyer (and certainly not trained in reading court judgements), but this appears to be not true in all cases. Commissioner v. Tellier [1] seems to say that with some well-defined exceptions (although it doesn't appear to go into what those exceptions are), expenses incurred in the development of an illegal business are deductible just like they would be for a legal business. Examples given are paying legal defense fees, and rent and wages paid for a then-illegal gambling operation. So it may well be the case that expenses incurred while developing a career as a prostitute (e.g. phone bills, condoms, advertising, hotel rooms, and travel) could be deductible.

[1]: https://supreme.justia.com/cases/federal/us/383/687/case.htm...

edit: Ah, I read a bit deeper and found the exceptions.

Only where the allowance of a deduction would "frustrate sharply defined national or state policies proscribing particular types of conduct" have we upheld its disallowance [...] Further, the "policies frustrated must be national or state policies evidenced by some governmental declaration of them." [...] Finally, the "test of nondeductibility always is the severity and immediacy of the frustration resulting from allowance of the deduction." [...] In that case, as in Hoover Motor Express Co. v. United States,356 U. S. 38, we upheld the disallowance of deductions claimed by taxpayers for fines and penalties imposed upon them for violating state penal statutes; to allow a deduction in those circumstances would have directly and substantially diluted the actual punishment imposed.

So based on that reading (and again, I'm not a lawyer), it seems like expenses a prostitute incurs would be absolutely deductible, because disallowing them doesn't frustrate the criminalization of the activity.
People who can taste a difference in tap versus bottled water perhaps do not live in as developed a society as they would like to believe.

I certainly have never prefered bottled water over tap. There might be a difference if you made a blind study, but I have never needed to care that much, and I probably couldn’t tell the difference if you gave me a blind test. People around me also seem not to use bottled water in any great amounts; certainly not nearly as much as people in American media apparently do.

(The only place I encounter actual bottled water is in restaurants, and then only the sparkly variety, which I feel is not the same thing.)
If you sign up through the Student Developer Pack, it's available worldwide.
They don't justify it. They just do it.
Although not stated anywhere, the name could be an homage to Horst Feistel, one of the most influential cryptographers of the 20th century.
r.e. outage - Sorry about the blip, auto scaling was a bit slow to respond, tweaked and should be fine now :)
This is clever, whatever the intent. Are there any truly visual programming environments that are functionally based in this way? I don't think ASCII is the right venue for this sort of idea, but such ideas must have been tried before for functional languages.
If it were just credit/debit cards, I'd agree with you, but this purports to support gift cards. I've had too many gift cards to carry around, and ended up not using them because when I was actually in the store they were at home. So I do think it does solve a problem. That said, the problem this solves isn't important enough to justify the price tag (for me).
Also, credit cards are simple, cheap, and robust. Most of them become pretty thrashed with a year or two of frequent use -- this thing would theoretically be used more than any single card; how robust will it be?

(And you'll still want a backup card in case it fritzes.)
Robbie “Ruthless” Lawler Highlights Knockouts – UFC
Let's Build Google Alerts for HN on the New API, Together
Certainly very sensible points. But I take some issue with the bits towards the end:

> Fetishising Curry-Howard

Hey, I happen to find Curry-Howard sexy, you have no right to shame me!

> To specify and check liveness or reachability, we need to represent programs as some kind of flow graph, where flows are very likely to span multiple functions and multiple modules.

But no, this is exactly what basing systems on Curry-Howard (with terminating functions) buys you. If I give a HTTP response handler in Coq the type

HttpRequest -> HttpResponse

I know it is live, because the function is total. And similarly, dead code paths can be gotten rid of by eliminating a proof of False.

So this lets you state liveness and unreachability. Of course, the proofs of those statements is very different from program-analysis-style systems. In a whole-program analysis, the analyser goes over the entire program, and at the end it says "well, I could not find anything calling this function, so I guess it's dead". In a Curry-Howard-style system, you need to look at the function and figure out when it should be called and what preconditions need to be true for it to work properly. But this is exactly why people like type systems, you can think about programs modularly rather than all at once.
I agree that refcounting is a great and usable compromise in this space, but your own comment flirts with why I don't think modern languages are chomping at the bit to base resource management on it: concurrency.

Granted, I have no idea how much overhead is imposed by atomic operations vs. a stop-the-world or concurrent GC (if anyone has some data, I'd love to see it!). But given how it's become de rigeur for new languages to come with a baked-in concurrency story and emphasize concurrent applications, I don't blame them for not wanting to tie themselves to the RC cart.
Shared revenue of sponsored story promotions/snaps would be one way. Think of this:

Create a marketplace around big businesses getting viral content producers to push their products subtly (Truman Show anyone?). Snapchat, acting as the intermediary and service provider, can collect a percentage of the promotional gig in return for facilitating the transaction and acting as an escrow service or middleman. It's not so different from television ads now, just a broader market with lots more content producers that have large fanbases across demographics TV just doesn't have.
Thanks. On rereading I realise the eligibility conditions are ORed which I misread as AND.
Fluorescent is more than likely on its way out, considering how fast the cost of LEDs are coming down, their efficiency continues to increase, and their longevity is many times that of their fluorescent counterparts (not to mention you don't need to handle LEDs as carefully as fluorescent bulbs/tubes).
Well, you generally lose everything either way anyways. I would imagine most people lose their entire wallet, instead of just a single card.
It claims to support RFID, so I wouldn't have to carry my work door card. I'd strongly consider that.
Geez,

Why do people here have to be so cynical? Twitter is doing a good thing here arguing that the government saying they can't release NSL number they are restricting free speech, which is completely true.

Releasing these numbers pose no threat to national security and just shows the DOJs scorched earth policy when it comes to defending their perceived powers.

This is a great thing for Twitter to do and it should be praised for doing so, not be given cynical/snarky replies.
True. But if all Silicon Valley does these days is fashion then I'll still consider it dead.
Have a Home Depot near by? Go in and look at their Cree bulb displays (both warm and daylight colors).
Meanwhile, the president's labor secretary, Tom Perez, is out stumping for paid family leave and a federal minimum wage of $10.10 per hour, nearly $3 above the current level.

[...]

"It's particularly ironic considering how the Obama administration is talking about increasing the availability of overtime [pay] for people," said Buck. "These are low-wage workers here, and [the administration] is basically saying they shouldn't be paid while they're held captive. It's mind-boggling to me."

Very disingenuous, as the reasons are stated clearly on the second page of the amicus brief: many federal government employees also go through such post-shift checks and if they were to be compensated for this time then it could cost the federal government $$$. The administration's proposed policy is to increase the minimum wage and other worker protections, but it is up to Congress to make the actual laws on that issue; the administration can only encourage voters to pressure lawmakers. Meanwhile, the administration's duty in operating the government is to deliver the best value to the taxpayer and thus maximize the value it receives from government employees.

Counselor Buck surely understands this, but since he's representing the plaintiffs his comments are tailored to advance their position rather provide an objective analysis of the facts. Pretty lazy journalism on the Huffington Post's part, but like many media outlets their goal is to advocate rather than educate.
My tap water (from a well) is highly sulfuric. The quality and taste of tap water varies greatly from location to location, "developed world" or not. There are all sorts of good reasons to buy bottled water.
I completely fail to see why tap water would not serve just as well for these occasions. Or is your tap water actually, noticably, different than bottled?
Just pushed the ability to subscribe to all changes and new items: https://github.com/HackerNews/API/blob/master/README.md#live...
Yeah they are free to do it, and the government is free to charge them.
Introducing: Squarespace 7
Until it runs out of battery :-)
I am excited about this because now I can finally build a way to query my own posts and comments. I often times come across products/services/cool hacks on here that I vaguely remember, but cannot always locate. Using built-in search is kludgy, and I'd like to be able to do something more complex. Thanks for doing this!
It's available worldwide. You can reply to the email you received if you believe there was an error.
Oh look, it's front-end editing, an idea that has been available in many CMSes since approximately forever. I guess if your main source of info on CMS history is Squarespace press releases, it's pretty exciting, though.

Like many approaches to CMS design, this one oscillates in and out of fashion every few years as people get frustrated with alternatives, try this, and then get frustrated with it in turn. Personally I don't like it, because in my experience it leads non-technical users to be afraid that just browsing their site will modify or "break" something, whereas a clearly delineated back-end/admin area avoids that by making it beyond obvious when you're in "edit mode" and when you aren't. But that's just my personal opinion, there are people whose opinions I respect who disagree. Like I said above, whether or not it's "in" at any moment is more a matter of fashion than anything else.

The really sad part here is the decline of Wired as a brand. I remember when I would pick up a copy of the print mag and see actual, honest-to-God new ideas in it. These days it's less new ideas and more "It's New To Us!™"
But the Apple watch is blessed by Jonny Ive Himself!
Coin already uses e-ink
It seems to me that that's lost the idea of incremental improvement. It's about taking the time to do things right, but there's no sense of making it better.
I read this all the way through because I love reading articles that bash OOP. I haven't read an OOP-bashin' article in awhile, so it is great to read a good ol' bashin' that is current. There were a number of times I giggled, like with the "fat models" debate in Rails, or the number of times where he said people wasted their best moments of their career worrying about clean OOP code.

I have bookmarked this good ol' OOP bashin' and I am considering it a must-read going forward, because I love me some OOP bashin'.
Well - I carry 3, and would carry 7 if I wasn't trying to slim down my wallet.

Those 3 are:

* An personal AMEX cashback card, that gives me a very nice 5% back in certain categories, and 1% back on everything else.

* A Visa Airline miles card, for places that don't take AMEX or travel spending where I earn 2x or more miles.

* A business Visa credit card for the business my wife owns.

The other cards I'd carry if I wasn't annoyed by a thick wallet are:

* A Costco AMEX that gives me extra cashback at Costco.

* A couple store-specific Visa cards that give me nice benefits at stores where I shop at least semi-regularly.

* A work credit card for my work.

I'm a bit of a miles/cashback junkie, but I'll bet many people have at least a few cards they'd like to consolodate. The average American family has 8.

Like I said in another comment, I'd be thrilled if I could replace all those with one card, and I'd be happy to pay what Plastc is asking if it worked. But the most likely scenario I see for that happening is mobile payments a'la ApplePay.
Yes, if you compare it only to things that are exactly like it then it will be in the top percentile. Also the bottom. That doesn't seem very useful. What other embeddable SQL databases should it be compared to? If you don't think this comparison is the correct one, tell me which comparison is. I'll go get the numbers, and I bet I'll still find that SQLite is still neither small nor fast by comparison. Otherwise all this goalpost-moving makes it impossible for anyone to prove anything (not that the pro-SQLite contingent is even trying).

Balancing full SQL semantics with being small enough, fast enough, and commendably reliable is an impressive achievement. I respect the SQLite authors for that. If they had picked any three of "small, fast, reliable, SQL" I would never have objected. BUT. THEY. DIDN'T. They left "SQL" out, opening the comparison to others. For many people who need an embeddable database, a key/value or generically table-oriented (but not fully relational/SQL) database is quite sufficient. For them, a claim based on an unstated and irrelevant fourth criterion, against equally unnamed alternatives, is either useless or misleading. But that's apparently the only kind of comparison the herd will accept.