skysight-inc/HackerNews huggingface dataset:
I ran the C++ version on my i7-2640M laptop (ThinkPad T420s) and got 20.394s

Interestingly it is almost identical to his 2-generation newer MacBook Pro.

Edit: and if I fix isPrime to not waste using the prime bool I get 1.862s

Edit 2: and with my horrible Java copy&paste version[0] I get 2.050s

Edit 3: ok final edit but doing squareroot(n)+1 you speed it up to 0.012s for C++ and 0.019ms for Java. Fast enough for me, good night :)

[0] https://gist.github.com/anonymous/0709e1807f57b686683f3e5f7b...
Alternative viewpoint: go has also accomplished a lot of its goals for years without needing this. It could reasonably be viewed as a premature optimization.
I havnt used either, but my impression was that Magic Leap's technology is basically projecting a light field into your eyes, so you eyes can actually focus naturally.. as opposed to looking at an image with fixed focal distance like the hololens.
But I'm not super informed about either product so I could be wrong.
As someone who's already run 900 miles and four marathons year-to-date, I'll add some hard won advice:

1) Do not be in a hurry. Most runners do way too much way too soon. You will likely get injured. You gain aerobic capacity in a matter of weeks to months. But soft tissues, tendons, ligaments, bone density... those takes years to adapt.

2) If you're getting injured, something is wrong. You're doing too much too soon, or you have a bio mechanical or strength issue. Running requires strong hips and a strong core. If these are weak, you will get injured. The injury will show up in your legs, so you'll look there. You'll buy new shoes. You'll foam role. You'll wear orthotics. The problem will not go away, because the problem is probably not in your legs.

3) Run as little as you need to to achieve your goals. The more you run, the more you increase risk of injury.

4) You probably need to run more than you think you need to. Beginner marathon training plans are a huge disservice. They'll get you to the finish, but you'll hate it. Wait till you've been running at least a couple years, that banging out a 13 mile run mid-week is no big deal, that you can easily handle a 50 mile week.

5) The shoe industry is a racket. Wear the lightest weight, most comfortable running shoes that you can tolerate. You probably don't need a motion control or stability shoe.

6) The key to not getting injured, besides having sufficient strength per above, is landing softly. Landing softly requires a quick step and not over-striding. Your feet should land under you, not out ahead of you. A good goal to aim for is 180 steps/minute. This is not easy for most people. Quick light step. Repeat that to yourself all the time during the run. (Aside: you run faster primarily by pushing off harder so that you cover more distance per step, not by over-striding, and not by increasing turnover.)

7) There's a lot of exercises you can do for core and hip strength. But none better than picking up a barbell and putting it down. Specifically the back squat and the dead lift. These two exercises will protect you from injury for life. Start doing them now. They will make you a better runner.

Edit: Beginner running advice - http://fellrnr.com/wiki/Running_for_Beginners (This is a better link than the Reddit Runnit FAQ I had previously linked to here.)

Edit 2: I've added my running background as a reply to this comment.

Edit 3: Running helps with weight loss. Weight loss helps with running. It's a virtuous cycle.

Edit 4: A few more links with good advice:

- Really, all of fellrnr - http://fellrnr.com/wiki/About_Fellrnr

- On having a light step - http://well.blogs.nytimes.com/2016/02/10/why-we-get-running-...

- On choosing shoes based on comfort - http://well.blogs.nytimes.com/2015/08/05/choosing-the-right-...
Advertising in content ruins the platform.
Because any (possibly security-relevant) update to a library would mean that all software linking it statically has to be rebuilt.

In reality that of course doesn't happen, so programs linking statically or including their own versions of shared libraries never get security updates for the included libraries.
Writing a 3D graphics engine is one of the most complex things you can do in software. It requires so much understanding of data structures, efficiency, close to the metal programming, 3D math, vectors, translations, what have you.

Of course it gets "easier" once you've done it a couple of time and understand the basics, but really doing it for the first time is a hard edge to climb.

Been writing my first 3D C++/OpenGL engine for the last 2 years, one of the most taunting tasks I've taken in my career. And just to cover a very specific use case of graphics rendering, not to do cover an overly generalized case like Unreal Engine is doing.

Unreal engine is also over at least 20 years old, so I think you're overly simplifying the task required.

Graphics engine is so much more than just figuring out the graphics pipeline, ultimately it's about flexible data management in a way that lets you achieve what you want, with performance.
The genie is out of the bottle. We created a cheap and easy way to communicate with anyone in the world, which also means an easy way to reach inexpensive labor markets.

There isn't really anything we can do about it. Creating all the laws in the world will only ensure the mass exodus of companies that want to compete globally.

Workers need to give a company a reason to hire them.
If anyone is new to Python and looking for a more complete set of cheat sheets, I recently developed a set aimed at beginners. Rather than simply list syntax, there's a brief summary of many core concepts in Python. I thought this might be more helpful to true beginners than a set of sheets that focus purely on syntax.

Overview of cheat sheets, and links to individual cheat sheets:

- http://ehmatthes.github.io/pcc/cheatsheets/README.html

All cheat sheets in the set, in one pdf:

- https://github.com/ehmatthes/pcc/raw/master/cheat_sheets/beg...
The entire anti-facist movement (communist, anarchist, socialist and unionist) were ignored by france and great britian.

They basically wanted a nice simple government to "do buisness" with. A democratic/$other government wouldn't be easy to trade with (i.e. buy train systems.)
There's certainly a few ways you could do that in Kernel, but I think doing this is less interesting than having to explicitly specify the environments to enter to find loudly to begin with. I see other potential problems with just specifying loudly alone which we'd look to avoid up-front, or explicitly handle as part of the tree.

So for example if the cat were to become able to meow loudly, there would no longer be just one path into loudly, but we'd have two. Typically, we'd either make loudly a generic and specify (or infer) the type were referring to, or we'd have a dynamically-dispatched loudly which looks at say, the first argument and decides which one to execute. Both the these are trivial to implement as environments. However, the more interesting gain Kernel gives is that there is no way built into the language to enumerate the bindings in an environment (a deliberate omission).

We can walk through the tree as given in this example (using car and cdr), but if there were some binding "(mouse the-mouse)" added to the tree, where the-mouse is already an environment, and not a list of instructions to build a new environment, then we cannot walk through its sub-tree, which may contain bindings such as "loudly".

We can explicitly call ($binds? the-mouse loudly) to test this, iff "the-mouse" is an environment. This works by basically attempting to retreive the binding loudly and capturing the error thrown if it doesn't exist in the binding. In practice, we'd have a more interesting type for mouse, which contains an environment, but encapsulated (via make-encapsulation-type), with only predefined ways of accessing the bindings of the environment.

With this setup, a binding in an environment behaves much like a capability. By knowing the name of a binding, you have the capability to use it. Proper use of the environment and encapsulation types gives us the flexibility to tightly constrain who can see "loudly".
Can you elaborate what you mean regarding point three, when you mention the aesthetic part of the issue?
And once again, giving my opinion on Git apparently is worthy of downvotes on this site. Make sure you don't go against the groupthink, folks.
As I read the title of this, my mind jumped to a stunning experience of total silence I had ... on the Olympic Peninsula as well. I wasn't in the Hoh, was probably south of there, on one of my weekend day-trips to anywhere that wasn't Tumwater. Driving my truck, something had led me a dozen miles or so out an old logging road and into the interior. It's surprising to find how on the Peninsula one can get 40, 50 miles from the nearest human, yet be in a place just a few hours from Seattle. I stopped to stretch my legs, parked in the middle of the road, and walked ahead, leaving the ticking truck behind. A few minutes later I paused to look into the woods and turn around, and it hit me. Abso-fucking-lute silence. Nothing. As I remember it there weren't even bug noises. Or wind. I froze in wonder, realizing what it was that I was experiencing and how otherworldly it was. Silence doesn't happen to hearing people in everyday life, and when it's finally encountered, it hits like a brick.

I recall one other such incident, that time while sitting down for a rest while hiking high in the mountains northeast of Sacramento. More recently I've discovered an approximation, a local sonic minimum, while biking the Columbia Plateau trail SW of Spokane WA. It's well worth the efforts to get to these places, the only word I can think of to describe the experiences is "transcendental". For me, the feeling has been that of the “self” diminishing towards nothing, towards becoming just part of the background, while the world around becomes strikingly more vivid and clear and detailed. I'm not one who meditates, one of the “mindful”, or an “in-the-moment” person, but I do wonder if this is what they seek?
Can we get a left-pad.io benchmark?
> I am shocked sometimes to see empathy here for anyone that would execute you by cutting your head off, stone women and homosexuals, and rule a nation with an archaic religion.

I don't think the empathy is really for that group. I think it is for the majority of people in those regions who aren't partaking in that bullshit and really just want to live a normal life.
Source? If anything, the substitution effect is much stronger than the income effect. People will still work because work gives you purpose, engages you with people around you and can even be fun. They might do work that would go unpaid today.

Subsidizing people into unprofitable civil service is in my opinion less dignified and more paternalizing than just giving them money and telling them to do what they want to do. UBI means you don't have to prove your worthiness of existence through wage slavery. If resources should be tied to productivity, maybe we should start with the people who grew up with trust funds.
And what else would they use? You have regular paid software, or OSS software that scales with your business at a reasonable price. I know which i'd take.
AR is much less likely to cause nausea, because you still see the real world which your brain will "anchor" to when trying to balance. If the tracking is fast and accurate enough, it won't be a problem.

Your only strong argument is that people don't like to wear glasses, but that could change if it is considered valuable enough. Have you seen the demos of what they can do?
"Once you got to Iraq and took it over and took down Saddam Hussein’s government, then what are you going to put in its place? That’s a very volatile part of the world. And if you take down the central government in Iraq, you could easily end up seeing pieces of Iraq fly off. Part of it the Syrians would like to have, the west. Part of eastern Iraq the Iranians would like to claim. Fought over for eight years. In the north, you’ve got the Kurds. And if the Kurds spin loose and join with Kurds in Turkey, then you threaten the territorial integrity of Turkey. It’s a quagmire if you go that far and try to take over Iraq."

-- Dick Cheney, 1994 (https://www.youtube.com/watch?v=w75ctsv2oPU)
Writing an 'engine' is just good code reuse - as I build my game I have 2 separate groups of projects: one is for the engine where I put generic game tools such as model loading, input handling etc - and the other group of projects is my game logic which contain specific jobs and tasks my AI perform in-game for example.

When new engine features come out, FXAA for example, it's mainly just a case of finding it online [1] and implementing it as needed. I've done this with many parts of my engine (model loading [2], animation [3] and physics [4] come to mind) where I don't need to re-invent the wheel, but I have full source for when I need to modify it (always the case), and it comes unrestricted by licences which is another plus.

Cross platform? Mono runtime + Monogame already has me covered, and I can use a modern language to write my games for faster iterative development.

[1] https://github.com/SeriousMaxx/FXAAMonoGame

[2] https://github.com/assimp/assimp

[3] https://xnanimation.codeplex.com

[4] http://community.monogame.net/t/which-physics-engine-is-work...
Angaza | Frontend; Product | San Francisco [ONSITE]

Build a better product during the day, and more families will gain electricity for the first time that night.

Angaza enables consumer financing of off-grid energy solutions in emerging markets:

- http://techcrunch.com/2015/10/23/angaza-raises-4m-to-make-cl....

- http://www.angazadesign.com/jobs/frontend-developer/

- http://www.angazadesign.com/jobs/product-manager/
-Econtalk

-Nakedscientist

-Londonreal
> However, as coding becomes more commonplace, particularly in developing nations like India, we find a lot of that work is being assigned piecemeal by computerized services such as Upwork to low-paid workers in digital sweatshops.

In the 1990s and 2000s, when I was about to choose a career path, doom-and-gloom journalists predicted complete offshoring of software development and the end of programming as a viable profession. As an impressionable youth, I bought into this narrative and enrolled in a major I enjoyed much less, thinking I was making the right long-term choice for my career. Fast forward fifteen years, and I was in a dead-end job in a declining field while my former CS major schoolmates were earning multiples of my salary.

My point being, read articles like this with a grain of salt. The future is unpredictable, and Douglas Rushkoff doesn't have a crystal ball. If you do something you love, you'll likely be good at it. And if you're good at something, you'll likely have opportunities to be rewarded for it. Increasing your skill set won't hurt you.
If you want the perfect example of that problem, look to Windows.

A couple of years back Microsoft discovered some kind of issue with their redistributable dlls.

They patched Office etc, but could only offer a scanner that would check each and every dll to see if it was of a vulnerable version. And asked users to pester third party software providers for updates if the scanner found any.
Usually when you ssh into the machine to fix something broken then forget to backport the changes to the ansible script.
No, they've always been at war with Eastasia.
AR plus opacity to remove the real world world... is to add a plastic cover. You can't add the real world to VR without a camera and latency.

So AR is the superset of VR, where a physical cover makes them identical when it is on.
Am I reading this right? He says he is comparing clang 3.8, which is a month old, to gcc 4.8, which branched over 3 years ago. I would rather see what gcc 6 does with this. That release should happen in a month or so.
Mozilla cares about serving their paymaster. Right now that's Yahoo through search integration.

Under this scalable model it will be users.
Unless you have a VLIW based architecture and the compiler takes care of the dependencies and hazard checking in software... then you are able to have dramatically simpler hardware (reducing area and power), along with faster performance!

Wait another month and a half and I'll be getting around to writing my blog post in support of VLIW, and why previous attempts have failed miserably.
I don't even know why this is on the front page. It's incomplete, inaccurate and just very low quality. And it's strange that they would use this font for code.
I'd be careful with "europeans", because primary school started at 7:00 for me in germany and gymnasium at 7:10. I had to stand up at 5:30 every day (and got to bed at about 23:00).

Most german friends I know of started earlier than 8:00 too (most started at 7:30). And yes I'm talking about actual lessons starting at that time - not "day care". Even though from our point of view there seemingly wasn't really a difference between those anyways...
Public busing in the US is awful in most cities. In the suburbs it's basically just to downtown and from downtown.
I think you're a bit confused. If someone isn't working, an UBI is, by definition, giving money to someone who has necessity; they have no other income.

If someone -is- working, an UBI will just be in addition to their salary; they'd readily recognize "I can keep doing this job and have this extra money, or I can stop working and suddenly be making far less, though perhaps enough to live on".

The only people that would 'stop working' would be the ones who currently hate their jobs, and who would happily stop the misery, even in lieu of extra income, if only they knew their basic needs would be met. I'm...pretty okay with those people leaving their jobs, and forcing the working conditions to improve to attract anyone back.
As a long-time Screen user through PuTTY, I switched to byobu after watching the intro video and it is great.

It inherits and maps Ctrl-a, and makes the transition to using some of the nice new features available in tmux much more accessible.
Tesla’s Model 3 and Design: Electric on the and Out
This isn't really the point of the article, but I don't like the title or its implication that simply "learning to code" should be enough to save one's job. Few people seem to think that basic Boy Scout first aid skills qualifies one to be a surgeon, but lots of lay people (and many managers) seem to think that writing a couple of working computer programs qualifies one to be a software developer.
Do you have a recommended starting source for this practice? A book or reading that outlines the ideology and practices?
Your argument is that Microsoft would introduce their own distro (a "proper" Microsoft Linux), and then declare their Linux-related ventures only "supported" on that Linux.

I feel like I've accidentally stumbled upon some internal discussion group of Microsoft's where very low level employees who completely misunderstand the market give their Microsoft-centric view of the world.
Bright enough? Just add a plastic cover.
Hotplug: A device for unplugging a device from mains without interrupting power
Very good point. I missed that.
It's happened to me with Astrill, ExpressVPN, and vpn.ac so far. Usually I can reconnect to get a new IP to avoid catpchas again, so it seems only certain IPs are being poisoned. And no doubt because they are doing things they shouldn't. Hence the sympathy part.

If anything, it's been surprising to me to learn just how many sites are using CloudFlare ;)

I don't have a site handy that's triggering it right this moment, but here's a somewhat recent screenshot I grabbed of the captcha wall hitting my VPN: http://i.imgur.com/OnvK05l.png ; I received this for simply trying to view a product page with an ordinary GET request. Ironically, I couldn't solve the captcha, despite being human >_<
Interfaces are not Abstractions (2010)
Not a huge deal, but you'd be "super excited" about it?

I develop on Windows, mostly. I deploy to Ubuntu, Redhat, Amazon's AMI, among others. I literally will repeat that you sound like you know nothing about Linux, cloud providers, or Microsoft's play in this market.
My 10 000 foot view:

+ Polymer is a polyfill for the Web Components "standard" + a bunch of commonly needed components ready for use;

+ Angular 2 is designed to use Web Components "natively", without any need to wrap them up in Angular-specific code;

+ Material Design is just a look. You can style Web Components any way you want.

Disclaimer: I don't use any of the above. :D
Isn't VR just AR with a cover over the glass?

See, that definition is much much technically simpler.
Amazon Associates Arbitrage: Amazon’s Own Success May Be Hurting Themselves
Virtual reality takes on a life of its own
Right it does not use the HTML5 Geolocation GPS. It uses Google's Geolocation API to locate the user without asking for permission.
I wouldn't read too much into the article. It's just a blog post of a dude reporting what he saw when he recompiled his code with a different compiler.
Nicely put together.

Some commentary though -

When I started running, it would have been very useful to have it drilled in to me that all "running" is not equal, and doesn't have to be at a fast clip, until that makes sense. Of course running 26 miles seems crazy based on what it feels like to "run" a mile when you're untrained and trying to go fast. Yes, that guide starts out suggesting a run/walk routine - however I think it would do new runners much service to explain what kind of paces there are, what they feel like, and why most of your running should be done at an easy one.

> First pick a race.

Why?! It really bugs me that so much of current running culture seems to be about earning that 13.1/26.2 sticker for your car, or getting that "Finisher" t-shirt. Certainly, completing races and achieving goals in general benefits our psyche and sense of accomplishment.

But running can be so much more than a sequence of training runs leading up to the all important race. Runs should be enjoyed. To me, one of the secrets of running, or at least - something that takes time to learn - is that running becomes much more enjoyable with experience, and you may have to put in some grind time to get there. When running 3 miles leaves you feeling completely wiped, the "runners' high" seems alien and unimaginable. As you get more experienced, AND learn to pace yourself, 3 miles seems short, and you probably won't feel into the groove until you're at least 1-2 miles in. When you have the fitness to casually run 5 miles through the park or on your favorite trail and feel good afterward - THAT's where running really starts to add balance and enjoyment to your day, imho.

When you've leveled up a bit, running becomes personal time, meditative, and leaves you refreshed. While people may discover this on their own - encouraging the mindset of, "Pick a distance, plop down some money for a bib, and train" - seems to encourage people to treat running as a means to an end, where the end (the race) just means it is time to pick a new goal (longer race, better time.)

Why not suggest people find a beautiful trail within an hour of where they live, that would take them a few hours to hike, and then run until they can experience the joy of gliding through that trail in a fraction of the time?

There's a lot of great information in that article, but I suppose I feel like it falls in to the trap of spending much more time on the "how" of running - how to pick a training plan, what shoes and socks to buy, how to eat, how to avoid injury, etc... - and not enough time on why it's worth it to put in all that work. Other than for the likes you'll get when you make your half-marathon completed Facebook post.
There is no argument. Simple facts. Plain CSS is monolithic and hard to maintain. Disprove it if you want but I think you'll be hard pressed. This author did not succeed.
Damn it this is silly. Just give me a way to send Matt Taibbi a quarter.