Better HN
topnewbestaskshowjobs
Log inSign up

mcbits

2,232 karma · joined Apr 25, 2016 (10y ago) · 906 submissions

Submissions

comment 9y ago · link · parent

Neat, sounds just like my back yard in the morning!

comment 9y ago · link · parent

One advantage is that multiple languages can target the same IR and benefit from the same optimizations. Another is that more development effort is focused on one IR instead of spreading it across all of the languages targeting it.

One possible disadvantage, you can't gain information by automatically converting code to another representation, but you could potentially lose information that would be relevant to an optimization. I don't know of any practical examples of this happening with LLVM, but I believe Java's type erasure carries a very slight penalty.

Another possible disadvantage is if you have a language designed to be compiled extremely fast, then adding an intermediate step could slow it down unacceptably.

comment 9y ago · link · parent

Visual Studio supports column-based selection using Alt+Shift with up/down arrows or the mouse to select a column, so you can add any number of spaces or any other text on all of the rows at once. I'd assume SSMS is the same, since it's based on VS.

But that's still not a good reason to use spaces (especially 2 spaces) and say "FU" to programmers suffering from diplopia.

comment 9y ago · link · parent

People sometimes do a background check on themselves to see what the employer says if they're suspicous about it. Other than that, I'd imagine the chances are pretty slim that some other prospective employer would spill the beans.

comment 9y ago · link · parent

The blue jays around my yard make a particular toot when a human gets too close. It's reliable enough that I know someone is walking by the house whenever I hear it. (There is not a lot of foot traffic here.) They don't seem to make the same noise for dogs and cats. The squirrels are better dog and cat alarms.

I've pondered whether the toot might mean "human" or "oh shit" or something else. Supposing it is denotational like "human", I'm also very curious if different populations of blue jays use vocalizations differently in places with different threats. That would imply the sounds are taught and learned, which I'd say is a stronger indicator of language than, say, sounds that are instinctively understood but happen to be compositional.

comment 9y ago · link · parent

Not sure if you are implying the US, but that is a common mistaken belief in the US. It's actually legal to give a negative review of a former employee, as long as it's 100% true. The problem is that the employee might try to sue for slander anyway (and win; that vindictive manager might have been the next one on the way out), so it's easier for employers to just have a blanket "no comment" or objective "eligible for re-hire: yes/no" policy.

comment 9y ago · link · parent

I'm not a fan of the disconnected global menu for regular windows. For maximized windows, however, the way Unity integrates/eliminates the menu and title bar feels very natural and is one of my favorite features.

comment 9y ago · link · parent

The reasons aren't so different from the reasons for writing any other software.

1. Even if the project never replaces the other software you use, you gain a better understanding of that other software by solving some of the same problems, making the same mistakes, learning the same lessons.

2. You may have special requirements that don't make sense to add to an existing project aimed at a broader audience. This is where a lot of niche microcontroller OSes come from.

3. You have a crazy idea that would be hard to explore within the architecture of an existing project. If it turns out to be crazy enough to work, then maybe people will do the work to migrate it to the mainstream.

4. Everyone has a little dream that the masses will find great value in their work and flock to it, supplanting the status quo. Like becoming a billionaire, it essentially never happens, but you can't blame people for trying.

comment 9y ago · link · parent

The word "genius" in the modern sense (extraordinary inborn mental ability) is about 200 years older than the practice of IQ testing, and it went through at least two definitions before that. The common theme has been that genius is something innate to the individual. Nobody has a claim on the word, especially not the super dubious psychometric community.

comment 9y ago · link · parent

As a non-Go/Python user, those two snippets look practically identical to me, although I understand just enough to have written the same comments. Unfortunately, the comments don't tell me what I'd really like to know about the code if I ran across it when debugging:

* What are b, j, and k?

* What's so significant about even numbers - or is 2 a magic number that could just as easily have been 3?

* What can I assume about results? Can it be empty, null, 10 elements, 10 million elements?

With proper naming and a good, brief chunk-level comment, I could tell at a glance whether this chunk is likely to be hosting my bug or not. 5 lines vs. 8 lines don't play much into it.

Actually, this really isn't what I think of when I hear "boilerplate". I think of, for example, the adapter pattern, or having to build up a finicky set of states every time some common task is done.

comment 9y ago · link · parent

A news summarizer called Summly. https://finance.yahoo.com/news/yahoo-acquires-summly-app-150...

comment 9y ago · link · parent

With some sort of "proof of upstream" cryptocurrency that trickles a percentage back to the content's origin node along with other nodes in between. Users would earn credits by leaving their devices connected and forwarding data, paying most of it back into the network when downloading data.

The original uploaders of very popular content would accumulate a surplus of credits, which they then sell to to mega-crawlers. Content creators would do well to be the original uploaders of their own content on such a network.

The credits would also be incentive to buy devices and leave them running in poor-coverage areas. E.g. the owners of billboards could mount repeaters along rural highways.

comment 9y ago · link · parent

You're ignoring (or overestimating) the enormous segment of the population who wouldn't even have an Internet presence if it didn't come with the phone, and getting the phone was already the one of the most mentally challenging things they've done in years.

comment 9y ago · link · parent

Not perfect synonyms, but we do have shorter words in the same semantic ballpark: virtue, vigor, zeal, concern, care, pains...

comment 9y ago · link · parent

If web sites started serving an HTTP header saying "browsers with ad blockers are not welcome to view this content", I would allow my browser to honor that request. That's more convenient than solving the AI problem of identifying and filtering out all the garbage content that exists for the sole purpose of drawing eyeballs to ads. Just tell me up front that it's garbage.

comment 9y ago · link · parent

I want a VR interface that merely simulates a room full of monitors, controlled via a workout machine to keep me in shape while generating 30 watts to power the headset - or potentially the whole system.

comment 9y ago · link · parent

For future reference in case you need to share a screenshot elsewhere... It's literally the same process to post a screenshot to imgur. No account needed.

comment 9y ago · link · parent

If someone commits perjury, convict them of perjury. There's no need to invent yet another crime. But I suspect it's not perjury. If a laundromat has an extra $500k of income and reports it as income, paying all relevant taxes, then so be it. If there is proof that the money came from criminal activity, then convict someone of that crime. Otherwise it's just a hunch.

comment 9y ago · link · parent

If it is known (proven beyond a reasonable doubt) that the money was acquired illegally, then mission accomplished. Convict them of the actual crime. If not, then the "crime" of moving money around in unconventional ways does seem pretty bogus - a way to punish someone on a hunch without the hassle of actually producing evidence. Much like when police search for drugs and fail to find anything, so they just take any money they find instead.

comment 9y ago · link · parent

The main difference is that devices store and transmit tons data that would never be stored in a safe deposit box, and which has always been inaccessible to law enforcement anyway, such as one-off drunken quips between friends.

comment 9y ago · link · parent

My preferred analogy is paper shredders. Imagine if any criminal could just walk into a store and buy a paper shredder so effective that it's impossible for the FBI to piece the data back together, with or without a warrant, no matter how many resources they throw at it.

Clearly the solution is to require every paper shredder to be equipped with a camera to scan documents and upload them to cloud.gov before shredding. Of course, nobody would be authorized to look at the data without a warrant, and we should trust that nobody working for the government would ever break this law.

comment 9y ago · link · parent

I think the theory is that the next customer scheduled for the dead rocket can share some other rocket instead. The internal satellite(s) on that rocket get delayed, but at least it would be loaded to capacity even if the previous rocket didn't go boom.

comment 9y ago · link · parent

Chrome apps are being discontinued on most OSes, so they recommend migrating to Electron or NW.js if a normal web app or extension won't work. https://blog.chromium.org/2016/08/from-chrome-apps-to-web.ht...

comment 9y ago · link · parent

A compromise would be to use Electron/Chromium as shared libraries so the bulk of those apps would be using the same 500 MB - nearly free lunch for users who would have Chromium running all day either way.

comment 9y ago · link · parent

It's relevant to the hypothetical state stealing enormous quantities of gold from other states. They wouldn't do it to give all the citizens fancy necklaces and dental implants. The reason would be to shore up their currency. The economics of gold changes under that hypothetical scenario, and it's the current market price of gold that is completely irrelevant.

comment 9y ago · link · parent

No, in fact it is not. To help you understand why, if the US were to switch back to a gold-backed currency and somehow do it relatively seamlessly, it would need to find enough gold to back a money supply of about $7 trillion dollars (or $20+ trillion, depending...). All the gold in the world is currently "worth" less than $7 trillion dollars, and the US would be lucky to land 15% of that, or about 25,000 tonnes. In this scenario, that 1,200 tonnes would be worth $336 billion, and probably a lot more because "seamlessly" is a huge assumption.

comment 9y ago · link · parent

$44 billion current US dollars worth of gold can back 10 to 100 times that amount of "money" (depending on how far you stretch the definition of money) in a fractional reserve banking system. It's no trivial amount.

comment 9y ago · link · parent

Someone replied to me and deleted it, and I don't want to waste the time I spent writing a response, so here it is:

No, that wasn't my claim. If I have a claim, it's that, instead of simply moving away, people keep building up an active seismic fault that's likely to suffer a catastrophic earthquake in the near future. Even high taxes (some of which funded the policy piece you cited) and massively increased costs of construction (such as proposed in the policy piece you cited) aren't incentive enough to stop.

This aspect of human behavior is worth remembering when someone suggests similar "incentives" to address climate change. It's trying to incentivize the same mindset that would rather build cities out of springs and pendulums than move to stable land.

We should face the reality that humans will eventually deal with the negative side of climate change using (not so?) metaphorical springs, levers, stilts, and who-knows-what, and it will be okay.

I don't click Forbes links, but from the URL it looks like it's about a hoax bill that was proposed for PR purposes. Not interested.

comment 9y ago · link · parent

A more realistic analogy would be if the engineer said it's very likely that the California coast will be hit with an earthquake sometime in the next 100 years, but we have no idea when, which city, or how severe it will be. The safe thing to do would be to stop building things there altogether, but we could also try raising taxes and adding building regulations, making it impossibly expensive to live and work there. Surely that will stop people from building and moving there. 97% of engineers agree that earthquakes can be troubling.

comment 9y ago · link · parent

Yeah, I don't think it's actually their reason for the change. It's just one hypothetical consequence that the decision makers probably failed to consider. Still, the decision makers should be investigated for conflicts of interest because they've made a really fishy-smelling decision.
1
192021
31