skysight-inc/HackerNews huggingface dataset:
I tried it for a couple of queries.

1. node.js express 3 vs express 4: doesn't fully work, SO is at #3.

2. node start server: wrong answer, wasn't looking for it.

3. node js start server: outdated answer, right answer though!

Note: it's just a nitpick though, because using DuckDuckGo.com might give the right answer immediately and if it's just as good as Google (wouldn't know, am willing to find out), then this feature may actually help in some cases.
Please. Someone who made this choice should be banned from legitimate scientific research for ever and ever.

Let them restart their career in advertising, sales, marketing, or politics -- fields where lying is routine and accepted.
It does try to vectorize it (doing multiple math operations at once is faster).

(1 * 5 * 9 * 13 * 17 * ...) * (2 * 6 * 10 * 14 * 18 * ...) * (3 * 7 * 11 * 15 * 19 * ...) * (4 * 8 * 12 * 16 * 20 * ...)

(it's not precisely that, but close enough)

It isn't optimal however, optimal code would be pre-computed results (signed integer overflow is undefined, so n <= 12 is defined)

(if signed integer overflow would be defined to be 2's complement overflow, you can still use a table, as n > 33 gives 0)
The difference is that for some people the "consequence" for doing the right thing is that they'll have to get a new, but similar, job while for other people it's watching their family being tortured to death. Saying that these two people are facing the same or even similar options is disingenuous to say the least.
I want to be clear that this is not a reply to what I said.

I understood what you said, but in my view you were painting a false dichotomy: it's not a matter of "either climate change or all-these-other-useful-things", it's a matter of "all-these-other-useful-things because of our inability to address climate change directly".
scrypt is okay if you use it correctly. It's too easy to use it incorrectly, though, because scrypt is a low-level algorithm that wasn't specifically designed for password storage. [1]

http://blog.ircmaxell.com/2014/03/why-i-dont-recommend-scryp...

In order to be able to tell people to "just use scrypt", we would need to have a sort of standard wrapper that uses the correct parameters by default and produces identical results in every common programming language.
If their target is to sell tickets for a self driving fleet, I guess that makes sense.
> And if it does pull over then who does the cop talk to?

It's going to be even funnier when the patrol car is an unmanned self-driving bot itself.
Yahoo admits one billion accounts exposed in a newly discovered data breach
Dude, your code got:

1. Turned from recursive form into iterative form
2. Unrolled heavily
3. Autovectorized (!)

The throughput will be substantially more than the simple version.
Also, look at Matt's write up of how this works:

http://xania.org/201609/how-compiler-explorer-runs-on-amazon

as a pragmatic example (incl. all tools & configs) of how to build an auto scaling & deploying site, without overdosing on kool-aid.
Probably not that terrible if they only do it for accounts that were created and never used. Like all the good GitHub usernames that seem to be abandoned.
Radio and television finally admit they’re competing with the whole Internet
It's also spawned the recent interest in immutability. Via Om it's had a considerable effect on how Facebook has developed React and its ecosystem, for example.
and then wasted the rest
Pardon me if this sounds rude, but where did you learn to drive? I was taught in driving school that you are supposed to pull up when turning left at an intersection with lights but no left turn arrow.
But you don't get the point I made in the previous reply that even if India went 100% clean energy it won't have any impact on fixing/reversing climate change. India's emission per capita is only 1.8t. US and Europe account for 16.5t and 6.7t. You want to fix the planet, fix Western policies. Don't look at developing countries to lead the way.
Clojure may be revolutionary, but the fact that it can't be compiled to run on other runtime systems (e.g. Go) is a bit of a disappointment.
https://news.ycombinator.com/item?id=13169587
> Programmers wanted batch punchcards processing over timesharing interactive terminals, programmers wanted legacy and compatibility over innovation and modernization.

wow, really, all of them? that is amazing. tell me more!
Well in this case the hash would be passed to Bcrypt or Scrypt, which have built in salt support, so client side salting wouldn't matter.
Do realize that no Linux distribution ships such binaries. They do the equivalent of -march=$worstSupportedProcessor (eg x86_64). To actually get any benefits from the smart compiler on these you'll need to use FMV and proprietary compiler extensions (eg. GCC per function options), write runtime dispatch code etc. (GCC also has proprietary extensions for that).
There should be special fines for self-driving cars making errors. It would force companies to be more careful and lead to better engineering. Also, competing manufacturers could "turn in" to police other manufacturer's cars that misbehave.
Clojure can be compiled to run on other runtime systems. ClojureScript exists.
The actual report is at: https://metrics.mozilla.com/firefox-hardware-report/

It's interesting that we are entering 2017 and the most popular configuration for users are Windows 7 (45%), 1366x768 as resolution (33%), CPUs with 2 cores (70%) and a majority have 4 GB of RAM or less.

I have a ThinkPad Edge (the cheap version) from ~2012 with Core i5, 8 GB of RAM and SSD. It's incredible that it's still top of the line in these stats. PCs aren't dead, the problem for the PC industry is that old PCs are good enough, hence people don't feel the need to upgrade. Of course mobiles are now more attractive for the industry, because most of them have a 2 years of life expectancy.

And it's funny that Windows 7 is still the most popular OS, even with Microsoft's aggressive upgrade tactics.
On their website they have pictures of both the prototype and other manufacturers' cars. it makes a lot of sense to just sell the driving system, like the android model. But I assume they designed the prototype to capture the public's attention. I just don't know why they can't spend a bit more effort to make it look desirable.
> Are you telling me that your average Uber ride is 100% perfect?

If you think of the service as a means of conveniently getting to a given destination and not as a performance in artfully begging for a good rating, then 100% should not be too unlikely.

Once you start giving extra points for nonessential extras, a driver who is polite and always on time will get a lower average rating than one who is 20% unreliable but hands out warm towels and free cake.
If the behavior resulted in the passenger getting to where had to be on time, as opposed to 15 minutes late, then I'd assume they'd reward the driver for this behavior.

In fact it would be interesting to see how ride times compare between driven and driver-less Ubers. I suspect that initial results will show that driverless cars are slower and that this might make some people prefer human drivers.
Yes, that's called pattern matching.
Dedicated Server Price Increase
I'd forgotten my yahoo password but wanted to change it.
They sent a code to my phone and I was able to do that.

Then I tried to set up 2 factor authentication but I am unable to do it. It keeps rejecting the same phone number
as being either invalid or not recognised as a contact, no matter which format I choose to enter it. I've dropped the interational prefix, added it, added and dropped the plus sign, added and dropped the 0 after the international prefix etc etc.

I'd dump yahoo altogether except it's the email for my paypal for over a decade and i can't change that.
If you see a suspicious usage pattern then force a login by invalidating the tokens. Allowing indefinite refreshing is a feature and a drawback of this method.
An even less popular programming language is your justification?

Red does compare itself to LISP in many ways, true.

But Clojure, for example, is actually popular enough that places use it for real work, today.
Would be very interesting to compare this to the same data for Chrome.
we can only assume it was in fact in autonomous mode.
Yes, but all your tools and libraries break. You have to be prepared to exchange one ecosystem for another.
>and has no rich set of immutable, persistent data structures.

Lisp doesn't either. Functional programming >> immutability.
Which gives you the worst of both worlds
Ouch: Win XP still slightly above 10%!

https://metrics.mozilla.com/firefox-hardware-report/#goto-os...
My Priorities for the Next Four Years
Also, Bear is iClouded-sync.
But again, you can do that with Go very easily. eg the -pkgdir flag in `go build`.

You can also write your own wrapper script around Go build tools. Or even bypass `go build` entirely and call the Go compiler in the exact same way you'd described above (-o and -L flags included). Run `go build -n` against your project to see what `go build` does (it's print only mode, no compiling will happen) and you'll see it's really no different to what you were asking for

So everything you want to do can and is supported by Go. It's just not it's default behaviour so you needed to do a little digging to find it.

Personally though, I find the inconvenience of having to change GOPATH / GOOS / GOARCH to be significantly less annoying than having to write makefiles and configure scripts to handle every platform I might want to target. For most people `go build` abstracts away the pain of cross compiling and build scripts quite nicely. In fact that was one of the biggest reasons I started using Go in the first place (I wanted something I could rapidly code and compile on AMD64 then rsync onto ARM devices back when I was experimenting with building custom embedded devices for my car).

edit: just want to add that I'm not under any illusion that Go nor it's tooling is perfect. I'm just saying Go can easily support your specific workflow preferences even though superficially it appears otherwise.
Ask HN: Is there an equivalent of LLVM for databases?
Being very impressed with what LLVM did for compiler generation, I wondered if there is something similar for databases?

What I mean is a low-level system that would allow me to make use of some primitive facilities that databases are based on (indexes, heaps, storage engines, ...) and use them to build my own database/data processing systems. Is there such a thing?

I think this could be very interesting as I often find myself in a situation where I have a good idea of how to access data using a given set of indexes, but am not able to do this reliably because the query planner does give a different, less efficient plan. And please don't tell me that the query planner always knows better, as often it does not even provide a way to specify which goal I'm optimizing for (e.g. predictable performance / throughput vs. better but unpredictable performance).

Having access to such an open, optimized platform for database generation would make it much easier building systems that are highly optimized for a given use case instead of being designed for general-purpose data storage.
Only if your sole criterion for "revolutionary" is "Lisp on the JVM".

Then, yes, others existed before Clojure.
WebStorm has both Intellisense-like autocomplete and word completion. Its "Jump to definition" helped me become a better programmer because jumping into library code became a habit - be it Ruby or Javascript (I use RubyMine). They were one of the first editors to fully support JSX, and before that they came first in supporting Angular v1 and its directives. They let you refactor code in dynamic languages, does it silently and safely when the scope is clear, and asks you when not.

When I had to work on a Java project, using IntelliJ was a dream. The same environment, but with sturdier refactoring. Plus it taught me Java idioms by whispering gentle suggestions while programming.

In Rails, when you rename your controller it renames your routes. It has a great debugger integrated that just works. It has support for your rake tasks, at par with the deep integration into all environments it support.

When they changed their subscription model to an yearly fee, I was happy to be giving more money from my limited paycheck to this company. It is the kind of software I'd write love letters to. I make tools for developers, and one day I want them to be of the calibre of JetBrains' products.
What really upsets me about this is the idea that the security team was bypassed, effectively compromising security for Yahoo and every one of their customers. The idea that a company executive would knowingly bypass their own CSO, and take it upon themselves to understand the risks they are introducing, is mind-bogglingly stupid and egregious.

Marissa Meyer, if she approved this, should be deeply ashamed of herself.
Evernote has only survived by being first. They suck technically and have always had offensive privacy policies. Apparently everyone missed the fact that they didn't allow encrypting your notes, so they could supposedly scan images and do OCR on them.

Yeah, right! What a pathetic excuse.
And then people laugh at me for taking the train. ¯\_(ツ)_/¯
How about sealing it with glitter nailpolish? Take a picture of the dried seal, it's nearly impossible to produce the same pattern again.
Pretty sure the Chrome team will do so internally. But I am also pretty sure that they won't share with the rest of the world.

So kudos to mozilla for making this public.
The Planet Money podcast investigative journalism was some of the most disheartening listening I've encountered all year.

The two most glaring abuses, in my mind, were the blackmailing of employees to put their name on a banking industry do-not-hire list if they didn't make sales quotas that proved nearly impossible without the opening of fake accounts. Essentially, WF used the industry fraud blacklist as a punishment for employees unwilling to commit fraud.

The second malevolent practice was using the company ethics line as a kind of honeypot to discredit and fire potential employees who wanted to report opening fake accounts on clients' behalf.

http://www.npr.org/sections/money/2016/10/07/497084491/episo...

http://www.npr.org/sections/money/2016/10/28/499805238/episo...
When it comes to Android, Java by itself is the least of problems. It's the SDK and framework that are tricky, ridden with technical debt and often far from developer-friendly.
Anyone know of self-hostable alternatives for this sort of service? I have never used Evernote or OneNote but always been intruguied.
I've changed my paypal email twice in the past already when I started getting too much spam.

Regarding 2FA at Yahoo!, I've also had issues... SMS stopped arriving altogether and I had to disable it.
This article is worth a read: https://fsharpforfunandprofit.com/posts/is-your-language-unr...

It approaches from the other side - I don't care what the language lets me do, but what it doesn't. I think it's quite controversial and the examples are a bit contrived, but I found it really interesting.
> needed to do a little digging to find it.

I would love some documentation on it. The Go developers hostility to the approach is hugely offputting.
My reply was a response to this, which I see frequently in tech/open source. >90% of the time the person suggesting "someone" should do something doesn't actually want to do anything. Examples, "in this day and age there should be a tool for X", "It'd be cool if we could do Y". What they really mean is that "Someone else should do this, I wish it existed but am not interested in doing anything about it".
Ask HN: Are great old games more immersive?
I can't help feeling more immersed in older games.

Am I just an old fogey, or are older games more immersive in some way?

If yes, why? Can it be quantified?
Wait, that contains no loop.
Is clang using mathematical rules for series summation? Awesome!
Had this problem before. If you send something expensive, film yourself putting it in the box, write the serial numbers down, send it recorded or signed for delivery always, withdraw EVERYTHING from your paypal account instantly into your bank account.

A friend of mine however ended up with a debt collection agency (Transcom) after him for 6 months because he refused to refund the item. Eventually after much letter writing with "fuck off" in it basically, they gave up because there wasn't a genuine claim that would stand up in court.

I still buy and sell off ebay but it's usually very niche items which are on 1:1 interest and low value (vintage transistors for example). Anything popular, I get the other half to stick it on Facebook and it's gone, in cash usually within 72 hours. No fees, nothing.
> The constant breaking changes also make it very hard to support multiple LLVM versions simultaneously.

Rust supports LLVM 3.7, 3.8, and 3.9, and it isn't particularly hard to do so. Very annoying, yes, hard, no. It does need a bit of manpower though.
I guess the same. On top of that I think that the top power output doesn't correlate a lot to the actual range, since that amount of power will not be used for an extended timeframe. I guess even if you have 1000HP you will on average drive around with less than 50HP due to speed limits and traffic jams. The smaller sized motor(s) might have a higher efficiency with that load than the bigger sized one(s) and of course the parts might be lighter, which will really yield more range. But marketing 10 times the power is probably easier than 30% more range.
I have never used this app myself, I don't know whether it's complex. I only peeked at the source code. And yes I was referring to the contrast between how neatly written it is, and their lack of experience with the platform, not how fast they did it.

Development on Android tends to be slow overall, owing to numerous intricacies of the platform, but I believe that in general taking some extra time to roll out a clean and polished version 1.0 will pay off when it comes to 2.0 and 3.0. It's always easy to move fast in the beginning, use lots of duct tape and snap something out rapidly, but it comes at a cost and then you get bogged down further down the line
Yet, Mozilla is going to end Firefox mainline support for Win XP in about 4 months[1].

[1] http://www.ghacks.net/2016/09/27/firefox-53-no-support-for-w...
We can say that clang is like the young Gauss :)

http://mathandmultimedia.com/2010/09/15/sum-first-n-positive...
Going Postal
Are they all moving to Boulder for the legal high? :)
Of course it is. It was a good OS and when offering the Windows 10 upgrade, Microsoft forgot about Vista and XP users.

So without a (free) upgrade path, I'm pretty sure Windows XP will linger on for quite some time. And even with a free upgrade, I'm not sure those users will want it, because most users are conservative.
Clojure is an interesting intersection of two ideas: Lisp, and pure functional programming.

It is not pure, but it is much closer to this than other lisps and it is immutable by default with efficient functional data structures. CL and Schemes are not this way.
Well, the article states:

> Of course, this type of study cannot prove that running actually caused the differences in the men’s thinking, only that runners had certain patterns of thought.
Couldn't agree more, intellij is my favourite piece of software ever.
Do Hardware Cache Flushing Operations Actually Meet Our Expectations?
Announcing Lugaru 1.1, now fully open source
>wow, really, all of them?

If all of them would do it, we wouldn't have this discussion now. Small amount, obviously, tries to make better stuff.

>tell me more!

First go and check out plan9, genera, smalltalk and rebol.
Try ashwagandha, it has some evidence of lowering cortisol.
Are there any other good browsers for XP than Firefox? I think no, but I'm not sure. That would explain such high numbers.
Horsepower isn't a good measure of how fast it takes to accelerate, that's the power to weight ratio. The Nissan Leaf does 0-60 in 11.5 seconds and has a 107hp drivetrain.

Unfortunately the range is around 1/4 of what you want. The battery pack retails for $5k, so let's say it costs another $15k for 400 mile total range (assuming nothing else changes, e.g. extra weight). Would you pay $50k for one with a 400 mile range?
I'm not saying they're the greatest ever, but sync was easy, they play music without any problems, they hold a charge for a few days, and they haven't broken. What more does it take for a pair of Bluetooth headphones to work well? My expectations are pretty low.

They could absolutely be better, if for example, the charge lasted two weeks, or the sound was higher quality (I'm no audiophile but I'm sure if I was I'd find they could be better) but they're Good Enough.
Creativity.
I have a giant 6ft x 4ft whiteboard in my home office, and I write up everything I need to do that week. As I come and go to get tea, go to the bathroom etc, I pass it and see my progress
It's kinda funny though, as people in Berlin at least (I'm sure in NYC too) are constantly complaining about gentrification too :)
I wait some month until the major Loaders are Webpack 2 ready. Don't have time to waste in such things.
It would be an improvement if these processes at least followed a "Justify, Notify, Appeal" pattern for human access. Yes I would prefer it to not be done at all, but I would at least appreciate knowing why and when they did it, and being given a period to try and request that they don't do It.
Hell if even that seems cumbersome, just being notified it was done would be a huge step forward.
A good example would be how slack deals with requests of private history by organisation owners, that made everyone in my company at least somewhat more comfortable.
What about open-format exports of user data? When I leave evernote (which I need to do!) I want real ownership of my data.
This workflow is much better than the other proposals I've read up-thread.
Not the kind of pattern matching they were talking about.
The issue is- trademarks are not universal, country specific. So, which trademark do gTLDs respect? Only US? or even for little countries? Or no ones?
Paypal says I can't change it because it's my primary email address.
I prefer using authenticator anyway rather than sms 2fa and yahoo don't offer that it seems
>Red does compare itself to LISP in many ways, true.

Not only compares, it does extend many things which Lisp failed to do when it became unpopular.

>But Clojure, for example, is actually popular enough that places use it for real work, today

Yes, and this is very good, because it gives many people idea that programming may be much better than they used to. My position here is that Clojure is only the beginning.
> Etsy maybe

Charge you to list stuff, whether or not it sells. Would not use again.
Are retail deposits not covered by some kind of government backed scheme? Are commercial deposits not insured as a matter of course?
Chrome stopped the support, Edge is not even available on 7, so not much left.
> we can conclude it's not the US government because Yahoo is willing and legally able to publicly disclose it.

That is the way to bet, but it is also possible (though not very likely) that Yahoo disclosed this publicly before the relevant USG agency could get an NSL out.
Mmmh yeah but what is the alternative? To not have access to the JVM ecosystem?

You could make an analogous argument for C not being portable, since it uses an ecosystem of tools and libraries that might not be portable to all systems.
When I was coding Z80 in the late 80s/early 90s (on the Amstrad CPC) it was always either "assembly language" or "assembler".
> Leading a new era of luxury mobility

Makes it so obvious what kind of pretentious people they 're going after. I'd love to see a manufacturer say they made a "badass battery car"