skysight-inc/HackerNews huggingface dataset:
Nice work. Have you seen the n-body configurations in this AMS article from a few years ago?
http://www.ams.org/samplings/feature-column/fcarc-orbits1
We, as entrepreneurs, are so obsessed with creating the next "photo sharing app" when there are some real, hard problems to be solved. Maybe its the daily dose of blogs incessantly hyping over such ideas, but we might just have lost sight of the big picture. I speak for myself, but entrepreneurship should be about more than just this.
Ask HN: Ideas for next iOS side project?
I'm looking for my next idea for an iOS side project, my rule is generally something that can be created in a couple of weekends but has future scope for expansion. Thanks :)
> The "hash" part doesn't have a defined length. Both parts can be iterated over using the pairs method, which allows you to count the number of elements in them

While true, you should iterate integer-key tables using ipairs and hash tables using pairs.

> No continue statement

Continue doesn't exist? I swear I've used it in Lua 5.1.
Yup.

With PL/I the maximum length of the string is set when the string is allocated, usually dynamically during execution. The length can be given as a constant in the source code or set from computations during execution. There is also a current length <= the maximum length. When passing that string to a subroutine, the subroutine has to work a little to discover the maximum string length, but, by in effect 'hiding' both the current and maximum length from the programmer of the subroutine, the frequency of some of the errors you mentioned should be reduced.

In Visual Basic .NET, the maximum length of any string is the same, as I recall, 2 GB. Then having the strings be 'immutable' was a cute approach, slightly frustrating at times but otherwise quite nice and a good way to avoid the problems you mentioned.

But, of course, the way I actually used strings in C was close to the way they were supported in Fortran.

And, of course, likely 100,000+ C programmers wrote their own collection of string handling routines where use a struct to keep all the important data on the string, say, allocated or not, pointer to the allocated storage, maximum allocated length, current length, etc. (multi-byte character set anyone?) and then pass just a pointer to the struct instead of a pointer to the storage of the string; in this way, again should reduce the frequency of some of the errors you mentioned.
> - JavaScript is significantly slower than ARM

How much slower, in your opinion?
Counter-points: Flying cars (bombs) are a dumb idea, the infrastructure to support globally broadcast 140 char messages is nothing short of amazing, and innovation is alive and well despite the financial service industries sucking up America's brightest minds : http://www.economist.com/blogs/schumpeter/2011/04/talent_and...
>You can't sue heroku for their marketing speak.

You can sue anyone for anything, success is not assured.

That bit of pedantry aside, Heroku led people on to believe that their queueing backend was intelligently distributing requests to nodes. Rather than randomly.

You are not allowed to argue this, as Heroku themselves acknowledged it!

Furthermore, they blatantly lied about it. From the rap genius article:

Heroku claims that though they received reports of unexplained latency over the past couple of years, they weren’t able to figure out the request queuing issue until they read the Rap Genius article. But there is evidence that Heroku knew about the problem for more than 2 years.

And the conclusion, also from the same article:

Based on Heroku's response so far, it appears their approach to fixing the problem is, “We promised you intelligent routing, we delivered random routing (which is worse than intelligent routing), so we're going to change our documentation to make it clear that we're only promising you random routing.”

This works for future customers, since once Heroku makes these documentation changes, everyone who signs up will understand exactly how routing works. But it does nothing to address the time and money that existing customers have spent over the past few years. What does Heroku owe them?
Are you Ron Swanson? ;-) (http://en.wikipedia.org/wiki/Ron_Swanson)
I believe there's some conflict between Google and Pwn2Own.

http://en.wikipedia.org/wiki/Pwn2Own#Controversy_with_Google
The assembly used were relatively simple and for x86-64 Linux (You can tell it's not for Windows by how function arguments were passed).

You can actually get a firm grasp of the basics just by reading chapter 3 from Computer Systems: A Programmer's Perspective (http://csapp.cs.cmu.edu/public/samples.html) and practice writing some simple command line programs.
I should have been more clear. I'm not saying to compare the number of results, but, rather, the things that people complain about with each language.

I've been teaching myself Lua recently and I've found it to be a nice, consistent, small language. Javascript is a fun language, but has some bad decisions built in:
http://oreilly.com/javascript/excerpts/javascript-good-parts... and it can be really confusing at times: http://wtfjs.com/
I am disappointed I did not have an original thought. Nothing is new in this world.

I propose we rename it the "Web Storage And Messaging" API.
DirecTV has similar lags at times. I would love for them to open source the UI and allow hackers to fix and impove it.
This link 403s for me.
When People Write for Free, Who Pays?
I think you're right, friend, I think... That said, Why does a company like Google obsess so much over margins, when they have 70 BILLION dollars in equity, 50 Billion dollars in annual revenues, and 20% profit margins (11 figures, 11 and Billion annually in net revenue alone...) I think it's myopic. Not that any company need to keep extra employees, if they don't need them, but there's too much obsession over margins amongst these fortune 50's, and I think that it is bad for creativity in the long run #soapbox
If you want to use localStorage atomically, I found this writeup and code on a LockableStorage interface to be very thorough: http://balpha.de/2012/03/javascript-concurrency-and-locking-...
People join together into organizations so that they can pool resources. Explicitly exempting organizations from first amendment protections makes it easy for the government to side-step that and chill individual rights in the process.

Say the Jeb Bush administration comes along and makes it illegal for corporations to publish documentaries on environmental issues. The individuals at say the Sierra Club can still publish their own documentaries, but their ability to pool resources is gutted. They can't raise donations and store them in the corporation, because the corporation can't then use those funds to make environmental documentaries.

It's not a matter of "corporations having rights." It's a matter of allowing individuals to exercise their rights in organized groups that allow them to have more impact.
Yep, YAGNI is a great rule of thumb, but there are cases where you know that you ARE going to need it.

The marketing manager who says today "I just want a blog" IS going to come back next week and say "I want to a white paper on the blog, for which people have to register, and then it automatically subscribes them to a newsletter".

After enough feature requests, you've built yourself a crap framework anyway. At least, by starting with a decent framework, the foundation of your code is solid.
while i get the joke , i'm sorry , but serious PHP development means bloated frameworks. You cant avoid it.

Frameworks code looks ugly because PHP looks ugly . But has anybody seen Rails source code ?Django's ? or even Sinatra's ? it is bloated too, but because Ruby and Python a well designed , when using them , you dont feel they are bloated.

That's why you end up ( in PHP ) writing yaml config files for DI, ORM , etc more than actual PHP.

If php looked more like Ruby or Python , using symfony 2 or ZF 2 would be less painfull.

Now let's consider something else. in Python you have WSGI , Ruby Rake ,etc ... which are really good stuff , universal in the way you plug into them to write your own framework.

Up until now, PHP devs felt they did not really need it. But as the PSR effort improves , we need frameworks to implement the same http kernels so we can plug any middleware no matter what the lib is , that's very important. You cant use raw PHP anymore. You need middleware you can use ACCROSS frameworks.

So should php devs use frameworks ? yes. just like Ruby , Python devs dont do raw CGI programming. Should i use guzzle instead of CURL ? yes because it has a beautifull and fluent API , and CURL is just plain ugly. Should i use Silex/Slim/Laravel instead of raw PHP ? yes because your application will scale with these simple frameworks. Writing raw PHP without PSR-0 autoloading , and no framework doesnt scale , period.

PHP has a real problem. I admit. It needs a real deep , breaking redesign, a clear separation between the core and libraries , and fat trimming. But framework designers did a great job trying to correct its flaws and making PHP development bearable.
If it knows the address is valid, it can use a speculative load. If it knows there are enough entries, it can use a wide load. Without that knowledge, such instructions could trigger SEGV due to an invalid pointer or the wide load spilling over a page boundary.
90°, an iBook by Andrew Kim
This looks cool . .my implementation also stores counts .. and is more optimized for storing counts(intersections) than ranges

Quoting from the wiki page:

If Int(T) is contained in X then store X at T, and finish.

For the same case I split the current node into 3 intervals
> An individual does not to "fund" his speech, he simply speaks.

If you write something on the internet, you definitely "fund" your speech. You pay someone to host your website, you pay for bandwidth, etc. If you publish a book, you definitely "fund" your speech. Etc.

Speech isn't just speaking. The freedom of speech isn't limited to just the least effectual modes of speech.
Ask HN: Java Zero Day Exploits Why So Many?
Why is it that the Java internet plugin is so vulnerable to zero-day exploits?

Is it just badly written code?

Are developers constrained in terms of how secure they can write their code due to the purpose that the plugin is fulfilling?
> First, eliminate your debt load.

Need money?

1. Make money

Now here's my guide to happiness in life:

1. Become happy.

Voilà. Problem solved. Enjoy.
And Paypal was not very innovative... just Thiel doesn't make the irony with himself.
I find it surprising that some configurations are as stable as they are with the simple integration method. At least (if I'm reading this correctly) you calculate positions and velocities at different times.

I really like you simulation.
Yes... your dad knowing people in the county next door is exactly the same as having your online history available to everyone on the other side of the globe.
No, but its the legal name of the country (at least in the Constitution).
Will someone please recommend some (academic) books on the subject closest to "Dark patterns?"
C99 Section 7.1.2.4 (on standard headers): "The program shall not have any macros with names lexically identical to keywords currently defined prior to the inclusion."

You can redefine keywords in your code, but they must not be defined when including standard headers (for obvious reasons).
"What would be the smallest C program that will compile and link?"

Author got this wrong, that would be an empty file, which is what won the IOCCC for smallest self-replicating program once.
Video: The Leap Motion experience at SXSW 2013
Not implying that one language is better than the other, but how does Lua help solve problems that web developers face? I say this because I have been working on a "killer" web app (JS intensive) for the past few months and it has been a real pain but I dont see how Lua could have helped either.
Diminishing Marginal Returns of GPA
I can see the case for Python, but how do you explain OCaml?
So the author's point is that debt is restrictive and stifling? And his advice is to just "eliminate your debt load"?

Is this supposed to be satire?
This book is awesome. Chesterton is the witty english gentleman equivalent of the old chinese master.
It is popular in video games already. http://en.wikipedia.org/wiki/Category:Lua-scripted_video_gam...
I Invested In Microsoft But I Have More Than A Few Words For Steve Ballmer
I have been using Lua to script the audio sequencer on the game I am writing and it rocks. No performance problems at all, even on an second generation iPod Touch.
And it is very easy to call Lua from C++ and C++ from Lua.
Ok, using chaosmonkey maybe more complicated than just increasing what a load tester throws at your servers, but the end state is the same. You have less functioning servers to meet the demand. I think it's still relevant. IMO The whole point of chaosmonkey to force your organization to expect the unexpected.
http://www.gamefront.com/ea-announces-server-shut-downs-incl...

There's a few for you, all by EA, one of which after only 15 months - except in those cases the single player was at least still playable. Unlike SimCity.
Very glad to hear, you are getting better now :)
The examples you mentioned aren't "degradation of civil liberties." They're the court punting on deciding issues they don't have to. The Court didn't hear the AT&T case because there wasn't any plaintiff that could prove they had been harmed. The Court didn't hear the "kill list" case because what the President does against enemy combatants off U.S. soil is indeed a political question, since the Constitution invests the President with primacy in international affairs.

The Court has not shied away from hearing similar issues when there was a closer nexus to U.S. soil and there were individuals with standing. The Court overturned a lot of the government's practices in Guantanamo, for example, because it was: 1) U.S. controlled soil; and 2) the people suing were actually hurt by the practices, not just people who objected to the practices.
Life 360 is one of those startups that makes me smile whenever I see their name in a headline. They were one of Twilio's first customers, and the first I ever met in person, more than 4 years ago. It just goes to show how much of a long game great startups like this one are. Nice work guys!
Better Navigation Through Proprioception
WINDOWS 8 HELL: Dell Is Not the Only Manufacturer Suffering
All Things Considered - G K Chesterton

Link to mobile site http://m.gutenberg.org/ebooks/11505.mobile

Desktop http://www.gutenberg.org/ebooks/11505
The #define else one is scarier to me. #define struct union will almost certainly crash immediately on runtime, as one member's a pointer and it gets overwritten by an int or a pointer to a different type. #define else just always runs all else clauses - the code is likely still valid, it just does something very different from what the author intended.

Both of them would be a real pain to debug.
That's rather cool. And nice to see a use of the Lamport algorithm in a browser. :-)
There is actually a tool in the clang extras repository for this called clang-format. It supports three different styles ("LLVM", "Google", "Chromium") although I'm not sure where those are documented exactly.

http://clang.llvm.org/docs/ClangFormat.html (a little outdated from HEAD)
Announcing SecurityReleasePractice
"On machines where pointers do not fit ints (basically all 64bit machines), you just silently (due to the cast there is no warning) truncated a pointer. Worse, it may work depending on the malloc implementation and how much memory you allocate."

Wow! Ugly! Scary! Another good reason to know in fine details just what cast does. At one point, my Visual Basic .NET code actually calls some old C code, and in time I will need to convert to 64 bit addressing. So, I will keep in mind that with 64 bits I have to be especially careful about pointers and C.
Ted Nyman from GitHub recently gave a talk at Mozilla about GitHub's "manager free" work environment. Here is a video with slides: https://air.mozilla.org/scaling-happiness/
Teveel urinezuur in je bloed, en dan? | Leef Nu Gezonder | Leef Nu Gezonder
Having never used a language that indexes from 1 I'd expect that would make a ton of common math used in programming either break or be more complicated.

How is it in practice?
EA calls SimCity launch ‘dumb,’ offers free PC game
> I disagree that the government should do anything about it though. What's the alternative, make them homeless? If there is both supply and demand, let people do what they want

Does letting people do what they want include building without permits (esp. on allotments not designated for housing)? It doesn't work this way, governments already exercise strong control over the housing market due to laws and regulations.

I don't live in HK, but where I live, the large property funds (whose demand has nothing to do with housing) have a dramatic effect on prices - they cause an artificial shortage by purchasing everything on the market, thereby increasing the value of their own portfolio (and their rents). So just "letting people do what they want" isn't going to help the housing situation, it just increases the GDP. The government should use the increased taxes (if any - too many loopholes) to compensate the negative effects.
After seeing the animations and reading the article, I am somewhat skeptical about the stability of these orbits. They are rather long and have plenty of near-misses. Even if they are stable in the sense of a pure 3 body problem, at close distances stars don't behave as point objects anymore. Instead, you have things like tidal forces and matter around stars.

Additionally, all the near misses makes it difficult to calculate the orbits, even with variable step size.
I don't see how opinion factors into this.

Mozilla estimates a best case of 2x slower than native with asm.js, and that's with a strict JavaScript subset that defines a machine translatable byte-code, coupled with a proprietary runtime to do the translation. They estimate 10x slower without that proprietary translation.

That's a ridiculous waste of resources, especially on battery-powered devices.
There are many embedded devices running Java that are quick and efficient, so whatever slowness those cable boxes have is not due to the technology used. It's probably due to the same organisational problems that cause all slow and bloated software.

In the case of cable or satellite TV decoders there's usually more focus from management on adding features fast than on making the software bulletproof.
Welcome to the enterprise world. If you are already working for a typically huge enterprise, you would have realized that this kind of coding (Engineering) is just another day at the office and people actually get paid (more) to over-engineer! Infact, anything done to reduce complexity is actually frowned upon, or will even get you labelled as an ignorant employee.
DOM Bindable JavaScript
Well, the bug only appears if you didn't include the header file declaring malloc (or any other void*-returning function). If you did, there's no problem.

It's a pretty easy thing to leave out, missing a required header, but if you always compile under -Wall it'll catch this and many other problems as well.
Who's to say random routing doesn't qualify as "intelligent"? What if random routing is the most efficient routing schema for 99% of their users? Trying to sue because "intelligent" doesn't mean what you think it means isn't going to be very successful.
People sometimes need to be told. Right now, countless college students with $X0,000 of debt are considering law school and masters degrees without a clear idea of how the added credential will improve their prospects.

I tend to think that almost all good advice is cliche for most and a revelation for some. We all have different blind spots.
Everything about that statement is actually pretty nasty, "if you regrettably feel that we left you down" is the equivalent of "I'm sorry your face got hurt by my hand"
I don't watch the show so I don't really get your comment.

I knew my post would not be popular. That's OK. I am not a cargo-cult thinker.

It's interesting that in a thread about innovation only one person so far --me-- brings-up the elephant in the room: Government, choking innovation in so many ways it is beyond criminal.

I think most on HN would agree that the Patent Office has, in the last, say, 30 years, done more damage than good. Why does it take thirty years to fix it?

Why does anything in government take FIFTY years to change? Notice I said "change" not "fix". They rarely fix anything.

What's the impact on innovation of not having a balanced budget? An I mean, not balanced by a TRILLION dollars, not a few million? No impact at all? How is that possible?

What is the impact to innovation of having tens of millions of Americans enslaved by entitlement programs? There exist people who have been living under these programs their entire lives, even families who've been under them for generations. Here's a huge mass of people who's very drive to live and succeed has been killed off by not having to fight for survival. Innovation does not happen when you are not hungry. Period. We have to break this chain of slavery and get these people to re-join society. Those who truly need help ought to receive it through sensible programs. That's a small percentage of those currently under these programs.

We also need to limit government and keep them away from industry. I mean, stuff like the NLRB and their fight against Boeing. I'll tell you, if I were running Boeing I would have said "Fuck you all, we are moving the entire operation to Canada until you figure out that unions are the enemy of innovation and growth.".

What's the impact to innovation of the double-taxation that happens with revenue generated by businesses: Tax the employees once and then, if anything remains, tax the company. Criminal. You are taxing the same pile of money that came in through the same door!

C'mon folks, picture it this way: You start a landscaping business. You have a job this weekend. You finish the job with four other workers. The tax man shows-up. You paid each worker and yourself $100. The tax man takes $20 from everyone. You spent $100 on supplies. That means $400 remains. This is $400 to save for a rainy day, advertise to get more work, hire more people, grow the business, etc. The tax man doesn't leave. He wants another $80 bite out of the same money. So, the same money got taxed twice. And now you have less money to tend to your business.

To make things even worst. The $180 the tax man collected is going to be wasted by government in a million different ways.

Anyhow, innovation does not come from those who sign-on to cargo-culture and simply parrot what their circle is also parroting. I know I am not voicing popular culture at all. That's OK, I am not a clone. I innovate.
FTA: Perennially caught between the dream of pursuing her true passions and the responsibility of generating a direct return on her education, she once again decides to grin and bear her current role.

Apparently some people need to be reminded!
I think C might make more sense if you are more familiar with assembly language. I learned C because real-mode x86 looked so fantastically ugly (looking back, a rare instance of youthful good taste). 0-terminated strings and stack allocation were quite familiar to me (though I never used stack allocation myself because it made the disassembly hard to read) and the overall model made perfect sense.
EA says they'll give a free PC game to anyone who bought SimCity
Maybe you didn't invent the idea, but your post will likely introduce the concept to many folks. I believe this is equally valuable. Thanks.
Contest: Hack my bitcoins and keep them
>Who's to say random routing doesn't qualify as "intelligent"?

Heroku themselves!

Again, they changed their documentation.
I love this idea and it is exactly the kind of thing I want here in London.

Except I run and Android phone :(
Bootylog: The App That Lets Record Your Conquests in the Bedroom