skysight-inc/HackerNews huggingface dataset:
I see one of the core reasons C is chosen over C++ is the speed of compilation. My question would be, to what extent is compilation speed relevant? What time differences are we talking about? I agree that every second counts, and I understand that fast compilation just feels good to work with for a hobby project, but what serious relevancy it has? At least the way I do it is divide program (a game for example) into several projects and compile them into dll's, this way compilation time is drastically reduced and with a side benefit of clear separation of different parts of the program.
You don't really get rid of complexity by using a simple language. You just move the complexity into your own code.

Say if your language doesn't have dynamically sized containers, you will end up writing your own. You hack it so you can store different types in it. You have reinvented polymorphism. And then you need sort functions, and everything else that is missing from the language.

And it wont be simple any more. Probably slow and buggy too. But you are not alone. Everyone has their own private code framework that is too complicated for anyone else to make use of. If only there was some way to avoid this mess ...
Ideas for Baby's First Birthday Celebration
So they've jumped the shark anyway? Kind of hard for me to judge, because all I ever get is a blank gray page when I try to look at their articles.
There is pretty much a working solution for this using LDAP.

RedHat distros have a perl(i think?) script that can be used to do the key lookup, and you just need a small schema extension to allow the storage of the public keys in the directory.
Especially now that state governments have redesigned the plates to be more easily read by OCR.
Building the Casper homepage
7 Skills to Thrive, Not Just Survive, in Any Career
The blog mentioned that he had received several solicitations to buy the business, but he wasn't comfortable sharing the subscription list.
Now that Google has decided to comply with the OpenJDK license (as they should have done years ago, IMO), this should not be a problem. They will now be using a license officially granted to them (and anyone else) by Oracle, a completely free license, with no restrictions (Oracle are prohibited to place further restrictions by their own license).
How best web  weightloss and diet plans?
MBS: Never Settle
The Brain on Trial (2011)
If you want a good 5ghz AC setup buy a couple of good repeaters with seamless handoff and put one in each room that's what 5ghz was mainly designed for.

Airport is a very crappy 5ghz ap to begin with so is the Google elcheapo-de-slink.
Of course, a more or less 100% complete wrapper of SDL for Go exists, too, so SDL invalidates the original argument against Go if you're considering it for C.
If metric were so superior people would just do it because it made things easier.

People don't have incentive to switch, because most people don't have to do math.
I apologize. I wasn't aware of extended integer types.
Not changing production systems at will; obviously you need processes and permissions in place to ensure you're not just trampling over prod whenever a dev thinks a change should happen.

But I've been in corporate environments where "We need to deploy a new instance" requires four weeks of lead time. Or a new release is tested and ready to go, and rather than just running Chef to deploy it, both the devs and the devops people had to work with a team whose sole job was to run prod, setting up a time with them, and then handholding them through running the right commands, because they weren't sufficiently involved (or maybe one was, but the person you got today to run it wasn't). Etc.
Contrary to what this article claims, I would say that the motivation for such a switch has never been weaker.

- The switch to metric has already taken place in science and engineering (where it's most harmful to have 2 systems), largely because of the horror stories from decades past mentioned in the article.

- Packaging and labeling costs associated with having 2 systems is effectively zero because it's all automated.

- Everyone has a computer in their pocket capable of performing a conversion if they really get in a bind (though this has literally never happened to me)

On the other hand, people are generally content with using the imperial system so a switch would be met with a lot of resistance. This resistance, coupled with increasingly vanishing costs associated with having 2 systems leads me to believe that this switch is not going to happen in my lifetime.

TLDR; The metric crusaders need to find a new cause to pour their energies into.
And in general, not recomputing things that should not be recomputed sounds like very good engineering to me. In the wider software world, we're way too eager to waste computational resources on pointless things.
Python integration for the Duktape Javascript interpreter
Why? You might ask. The main reason is I’m not motivated anymore. To be more precise, I ran out of creative juices.

Such a terrible excuse! Society today has this idea that they should only work on things that are their calling or truly make them happy! Outsource some of the boring work, grind out a few hours a week and collect your easy paycheque. Millions of people would do anything to make such easy money instead of slaving away at a real "boring" job for minimum wage.

What a shame on so many different levels.
Goto in Swift
I'm sorry to hear that it's closing down, hearing this for the first time. I get why you're moving on.

Overall, I think there is still an opportunity for a "best of HN" publication, and I would probably subscribe if it wasn't too expensive. I just think it would have to be an entirely online-based format, maybe with an optional PDF, but certainly not something that needs a dead tree version.
Energy production that correlates (in many parts of the world) with peak load from air conditioning. This saves fuel and wear and tear on expensive peaker plants.

The generation is distributed, which saves on distribution and transmission costs.

Planning for expansion is also based on peak loads, which as noted above, solar reduces saving yet more money.

There's some worked examples for Minesota here:

https://www.nrel.gov/tech_deployment/state_local_governments...
There's an introductory blog post at https://mirage.io/blog/introducing-solo5

(And a new discussion site for unikernel development at https://devel.unikernel.org)
Do Not Treat Quality as a Separate Activity
Array Sorting Functions in PHP
One of the things that Rust (GC free zero cost memory management), Swift (the official iOS programming language with excellent UI libraries) and Blueprint (easy coding for non-coders in UE4) have made crystal clear to me is that, if you choose to create a new programming language rather than using an existing one, you need to actually decide what the draw card you have is, over other existing solutions, and stick to it.

Dart has consistently failed to be anything more interesting than slightly better javascript that interops poorly with existing the existing javascript ecosystem.

That is not a draw card.

Now, it seems to be trying to be 'a generally useful programming language you can use on multiple platforms'. That's not a draw card. Just stop!

Please actually focus on making Dart something special, or give up on it.

There's this thing, where you make something and you get invested in it, and it becomes to politically complicated to throw away.

I have no technical objections to Dart, it's a fairly nice language; but I too, cannot come up with any reason to either use it, or be excited about the future of it.
"If we fight a war and win it with nuclear weapons, what history will remember is not the ideas we were fighting for, but the methods we used to accomplish them.
These methods will be compared to the warfare of Genghis Khan, who brutally killed every last inhabitant of Persia."

I like this quote. What I like even more, is how just above it, you smudge the history as if they not detonated nuclear weapon on people, but they just refrained from conquering the world. Read what I said the same thread - in the end, what matter is what you actually do, not what you could have done, or what you claimed you would do.
But it's still made of COTS parts and assembled by an individual, as opposed to dedicated hardware being used by a weapons manufacturer.

I'm probably on the lists already, so I'll just point out that turning an IED into an RFID-scanning "smart IED" seems to require only a somewhat competent electrical engineering undergrad, a laptop, and less than $10 worth in parts. The reason they aren't widely used is probably because there are better methods than playing with RFIDs.
Yeah, but a lot of companies view risk management as -preventing- deployments unless every stakeholder has signed off on it. The process generally doesn't leave room for making decisions quickly when everything is on fire.

But I wasn't just referring to that; I was also referring to lead time in hardware requisitions and changes. I've been in environments where, to get Jenkins running, we put in an order for a box. It finally arrived (it actually came pretty quickly, within a week of our order, since we just expensed it, rather than went through the approved channels of requesting one from IT). We configured it. We needed to punch a few ports open in the corporate firewall so we could get push notifications when our hosted git repos were updated. We requested it, specifying only ~these~ ports, ~from~ this IP, ~to~ this other IP...aaaand, the powers that be denied it. To remain in process we could have escalated, taking even more time, but instead we just did what we should have done in the first place; we put our Jenkins in AWS (which we already have permission to use, and is not subject to the corporate IT policy), and the box we purchased was used for broadcasting to a monitor various data visualizations of our systems.
Who says that it being paid did not cause it to have a significantly longer lifespan? I can't even imagine a magazine like this being put out for free.
I think it's interesting that the author says: "I’m betting my career on it"

Careers in software are (hopefully) long and varied.

Committing to work for a few years on one particular technology should not make or break your career.

As long as we're always learning and sharing our knowledge and skills, we should all be better off.

Regardless of whether Dart ever hits the mainstream.
He's essentially cheating. When he analyzes the algorithm presented, he says "I’ll now describe an algorithm that does not depend on the word length. For any word length w, w ≥ log n, it sorts n word-sized integers in time proportional to n log log n."

But that's entirely cheating. If you give the same assumption to radix sort, then you could say "For any word length w, w ≥ log n, radix sort sorts n word-sized integers in time proportional to n". Which is much better.

The only time radix sort actually goes slower than linear time is when the size of the integers is not polynomial in n. If the size of the integers is exponential n, I think this algorithm would similarly slow down, as it would take a linear number of words to represent a single integer, meaning that it would take log n reductions to get the integers to fit into a single word, not log log n as he assumes.
if they only want to serve her, it would be much cheaper to have a taxi or a shuttle bus drive for her morning and evening. To me this is another example of Japan's everlasting inefficiencies long after things stop making sense. Just like every company in Japan keeps fax machines at work just because, you know, they have to.
Also you can add noatime,nodiratime,discard to the options of your fstab config. But if you don't have SATA 3.1 or higher then don't use the discard option but instead add fstrim <path> to a chron job or rc.local. The other options I mentioned turn off recording of access times to files/dirs.

And you can set the noop scheduler using echo noop > /sys/block/<device e.g. sda>/queue/scheduler. Whether that's the best option for you depends, but if you have an SSD it might be.

Finally if you're using full disk software encryption, do check if your SSD supports hardware-level encryption instead and if your BIOS allows you to set its key.
It could be that I'm missing something totally obvious here but ...

Apart from the obvious reasons of why it's a bad idea to add backdoors or outlaw encryption the discussion somehow never addresses the obvious result of what were to happen if the US were to regulate / outlaw encryption: namely it would be devastating to any US tech companies who generate a large part of their income outside the US.

Would you still trust gmail/amazon or even US based ERP that is backdoored if you're a Asian or EU based company? Why is this not discussed I wonder.
It also is a way for Dart to optimize over JS at the VM level.
So then people will look at their statistics and start making unnecessary lane changes and so on for the sole purpose of fixing their numbers.

Unless you don't actually tell them what you expect them to do. Then you end up creating a whole new class of crazy folklore about what to do to lower your insurance rates that people follow religiously even when it's obviously irrational.

If you want a computer to decide how to drive then get a self-driving car.
Betrügwagen.
I pretty much never see forbes links unless I am on HN, and usually go "Oh how quaint."

I most cases I would assume that you have a google search history that is influencing these results and thinks you like forbes, hah.
What is the performance impact of using int64_t on 32-bit systems?
I suspect passing a degaussing coil over the tire for a while will kill the tags. If that doesn't work, it's really easy to make an HERF gun.

// Safety Warning - Actually building an HERF gun can be extremely dangerous, and should only be attempted by people familiar with both high-voltage safety and radio safety. Seriously, RF burns can be really nasty. //
Just Another Y Combinator Derivation
Alright I'll give this a serious look.
> Why? You might ask. The main reason is I’m not motivated anymore. To be more precise, I ran out of creative juices.

Perhaps now is the time to start "hacking the brain" :) Lots of good nootropic supplements to be tried that could boost creativity :)

Of course, I'm only joking.
> It's a place where if a person jumps into the train to kill themselves, many will curse under their breaths about being late to work.

And honestly if you want to kill yourself you dont HAVE to jump before a train. You can do it in other ways without bothering anyone.
First time I've seen the word "hackenfreude".
Thungs Guide to RFID:

Scan all local Police cars. Install readers around Thugs HQ.
Another nice library is SFML[1], which has bindings for C and several other languages (including OCaml).

[1]: http://www.sfml-dev.org/
2 Month Old Baby Muscle Tone
> I'd honestly be surprised if most products I own didn't have one of those.

A barcode or an RFID tag? The only reason most of your products don't have an RFID tag is that barcodes are much cheaper, and the entire logistics chain - from manufacturing to retail - is already pretty well optimized around those. There is not much value to gain. About the only use for passive radio tags I've seen widely deployed is theft prevention, and half of the times the tags are removed at the counter and later reused.
flowtype.org
anyone know how to get past their anti ad-blocker wall (without disabling adblocker)?
Give that their articles are everywhere when you go a google search, I'm sure they are making wheelbarrows full of money, even if the 'brand' suffers a bit. Print magazines written by professionals have been in decline for while now. User-generated content of mediocre quality is where it is now. That is the business model that makes the most money
Maybe people will ultimately resort to scrapers to get to the content. Scrape it into your favorite text viewer. Of course the layout will keep changing, so it will become a contest to keep updating the scraper scripts, with websites dedicated to keeping the latest scripts available. Or is that what Adblock does already?
Elixir (and the Phoenix web framework) is getting a lot of attention these days from Rubyists who are looking for something that speaks their language that is also fast in realtime distributed environments.
I wish you were not. Sadly, most of the nootropics are little more than glorified aspirin. There's nothing even remotely resembling NZT :(.
I used to be an avid Forbes reader but then came the ad insanity. One thing is for sure,

__I will not give up on my ad blocker__

even if it means not visiting and reading the sites whose content I enjoyed or even canceling my subscriptions. This is a free market, a new entrant will emerge for me in no time.
Sure, although I don't have a separate server. Explanation here: http://pastebin.com/Nm6Qta4u
Just mix C and C++ like a regular horrible person would do. An entire game in C sounds....tedious.
Vitalism for the 21st century...
Probably the best way to defeat ad blockers is to make the ads as unobtrusive and un-annoying possible. Facebook seems to have succeeded at this . Mobile adverting may also be more resistant to ad blocking.
Who cares? Consoles are dead after this generation.
Loading forbes.com and scrolling to the bottom of the page requires nearly 500 http requests. Anybody willing to share what it's like to work on a project like that? I assume that they employ skilled web developers who are aware of best practices, but aren't empowered to improve things?
Isn't this counterargument similar to the reply labelled (1) in part 4?

Quoting the text:

(1) Some critics concede that the man in the room doesn't understand Chinese, but hold that nevertheless running the program may create something that understands Chinese. These critics object to the inference from the claim that the man in the room does not understand Chinese to the conclusion that no understanding has been created. There might be understanding by a larger, or different, entity. This is the strategy of The Systems Reply and the Virtual Mind Reply. These replies hold that the output of the room reflects understanding of Chinese, but the understanding is not that of the room's operator.
> their own private code framework that is too complicated for anyone else to make use of

Well, to be fair, games are one place where code reuse and maintenance by third parties is less likely to be needed. The real sadness is when you get corporate websites, technology platforms, and the like that decide they need their own framework to make their own set of tradeoffs, and do a mediocre job of it, and end up with a slow buggy bastardization with 15% of the capabilities of a common well-understood framework. If I had a dollar for every minute I wasted on something like that... it'd be an accurate description of a nontrivial portion of my career :b

Bonus points for making this framework to optimize performance, without actually measuring the performance or setting explicit goals.
Tracking is easier and more pervasive with APNR.
There's never been a better day to play the lottery, mathematically speaking
No typo. It must be quoted as "$@". If you think otherwise, test with some filenames containing spaces. Or read here: http://stackoverflow.com/questions/448407/bash-script-to-rec...
No I don't, but related:

https://news.ycombinator.com/item?id=10870892
I've been running Hacker Newsletter (http://hackernewsletter.com), a weekly best of HN, for the last 5+ years if that helps any.

That said, Lim Cheng Soon really put in some effort to make the print magazine really nice. I'm not a magazine type person, but loved getting them as they were really well made and a nice way to step away from a screen. I've had a chance to work with him over the years and I know whatever he does next will have just as much heart poured into it... I wish him the best!
How India Will Start Shrinking After 2050 (2015)
well...
packt free ebook for today happens to be a dart book
Dart Cookbook
https://www.packtpub.com/packt/offers/free-learning

9 hours left from the time of this posting
Hi dom96,

I am a Nim fan too, but I doubt that Nim would fulfill the requirements of the author of this article.

At the very beginning of his post, the author says, "[the language] has to be reliable. I can't afford to spend my time dealing with bugs I didn't cause myself." One of the main reasons why I abandoned Nim after having used it more or less regularly for a couple of years is that so many things are still changing, and that compiler bugs pop too often. With every new Nim release I have got unexpected problems in recompiling my codes. This is the main reason why, despite still being a Nim lover, I have stopped using it for my projects. AFAIK, there is still no idea when Nim 1.0 will be released; there have been some optimistic announcements of its being imminent, but so far none of them has lead to such a release.

Later in the blogpost, the author adds another requirement: I do not want to spend my time porting old games to new platforms, I want to make new games. I need a platform that I am confident will be around for a while. Honestly, I think nobody can be sure where Nim will be a couple of years from now. There is practically just one coder (Araq) which understand the compiler internals, and by his own admission he suffers from a severe NIH syndrome which disperses Nim's scarce manpower. As an example, a tool so potentially useful as nimsuggest has been in a non working alpha stage for years because of the lack of people able to work on it (don't know if this is still true, though). IMO, this makes the future of Nim uncertain.

Don't misunderstand me, I still love the language and wish it can reach a state similar to Rust or Julia (which have a much larger and professional community of developers and are supported financially by a number of players). But I think that promoting it in this thread is a bit out of context: Nim is good when you want to toy with a nice language which gets so many things right (macros!), not when your primary objective is to have some language that just works and can be trusted in the mid-to-long term.
F-35 Ejection Seat Fix Delayed to 2018; Pilot Restrictions Continue
the problem is when population has negative growth, that means less working people need to mantain more old people ... and it gets worse with time
You should sell it instead of shutting it down. There would be someone that is interested in buying it. Sell it and its subscriber base on flippa.com or something.
I use archive.is:

https://archive.is/OjH4d
I think it's cookie based. If you can insert the' welcome cookie' using a cookie editor , that may work. I don't seethe welcome screen when I visit Forbes on my main browser. But I see it on a new window with cookies cleared.
Using uBlock Origin and Ghostery here. I had no problem getting to the story.
>Even more than that I care about the speed of the compiler. I am not a zen master of focus, and waiting 10+ seconds is wasteful, yes, but more importantly it breaks my flow. I flick over to Twitter and suddenly 5+ minutes are gone.

Quick suggestion, has really helped me: take that 10 or 20 seconds waiting for compilation, and stare out a window. This gives your eyes much needed break from focusing on a computer monitor, allows the muscles to refocus and breathe, and doing this regularly during a coding session can have important long-term benefits for your vision.
I was just posting the link to your newsletter.

I'm a subscriber, and even though most of the time I am up-to-date with the site (read: I'm a hardcore procrastinator), I still often miss an interesting article and only discover it later thanks to your e-mails. Thank you for all your good work, and please keep doing it! :).
At least the one we know about.