skysight-inc/HackerNews huggingface dataset:
I've been experimenting with profile-guided optimization and link-time optimization now on a variety of applications I've been developing.

A couple of things I've noticed:

1. PGO most benefits whenever you have branching logic in 'hot' code (either inside a tight loop or as part of a dispatch function that's repeatedly called). If set up correctly, the conditional can be reordered or the code structured so that you get very good branch predictions. This often means that code that wasn't automatically vectorized before can now be reorganized to employ SIMD instructions (usually this means a worse delay in case of a branch miss though).

2. Your dependent functions must be in the same compilation unit if you want to take advantage of many of the optimizations. Yes, interprocedural optimization (LTO) is a thing, but it's not perfect. If you have a loop that calls a function that can be inlined, the compiler does a great job with PGO ensuring that everything is hot in the instruction cache. If you put those functions in another compilation unit, not so much.

3. If you want to use PGO, you better use extremely representative inputs. The performance of a project compiled with PGO will suffer greatly if you use unrepresentative inputs.
Ask HN: Trademark protection on Google Play
When I try to publish an app in the play store using a trademark in the title like "Instagram" it will be rejected on trademark infringement grounds automatically (I think it's automatic).

How can I have Google do the same thing when someone uses my registered trademark in their app title?
"the handle @POTUS will be made available to the 45th President of the United States on January 20, 2017... This will also be the case for other Twitter handles, including... @FLOTUS..."

So if Hillary Clinton wins, they're planning on scrubbing the FLOTUS handle's tweets and giving the account to Bill Clinton without a name change?
I think you're missing the point. There is no claim that "solar shingles" are a new concept, just that no one was expecting it to be what Tesla was about to announce.

In fact the article even states "Like previous attempts at solar shingles..."
reddit front page is rigged!
Throwing Tiesto out there as "simple", "boring", and "vapid" is exactly the same. I'd ask you to apply your own argument to his music.

You don't get to compose for the Olympics while being a simple hack.
There is no claim that "solar shingles" are new, just that it wasn't what people expected Tesla to be announcing. From the article... "Like previous attempts at solar shingles..."
Social Media Gets Spooky on Halloween 2016
Stdgif: Standard output for gifs
I've been contemplating the remaining lifespan of this multilayer roof that's been failing some of the carpentry on my mother's roof and wondering about going solar with the next roofing. I wonder how robust these things are for standing on and how they cut around the gas flues and plumbing ventilation pipes and what not. Maybe they deliver blank tiles with no cells on them to cut into odd shapes and what not. If the price difference is close I'd go this route easily.
> "nah I don't want that rubbish on my roof"

Why not? What on earth are you doing up there that this is such a problem.

My roof is an open, unused space over the house. I will be looking into putting solar panels up there in a few years.
Google Says Black, Hispanic Children Like CS 1.5x-1.7x More Than White Kids
> There's no actual threat to iOS device security from allowing apps to run custom, arbitrary native code, right?

An app might have a buffer overflow bug. Allowing all or some of the writable memory to be executable makes it easier for an attacker to exploit such a bug. (An attacker can still exploit the bug without arbitrary native code execution, but it's harder.)

The apps are still protected from one another, so this restriction mainly protects app developers from their own mistakes.
Launching apps isn't easy, but it should be
Hope it is insured against golf ball sized hail. If so people in Texas will buy this in droves just for the durability. In not it will never sell in Texas.
Also the joke is that they didn't notice that the buildings had solar shingles. Literally people didn't see them.
I don't think it's fair to flag as NSFW for a one time happening of a user with a NSFW avatar.
But do you think he went in to work every day thinking about how he could increase AAPLs stock price before the end of the quarter? I don't think so, but I think Tim Cook does.
Really? I can't find this anywhere
No I'm referring to the People Magazine interview, the one where he called back in and pretended to be a Trump employee. Washington Post "broke" the story IIRC, and the media spent a whole day with audio forensic analysts deciding "is this Trump's voice?". Trump got on interviews and says "Well it doesn't sound like me. When is this from? 25 years ago? Come on."

Here's a great cap of it at the end of the day: https://www.youtube.com/watch?v=dPnMfSJ_qis - skip to 1:50. You can even hear the studio crew start laughing as they realise they've been played.
A few years? More like a couple weeks.
People, not households, buy and use cars so that's a weird way to calculate. You're also not counting any work vehicles which are very numerous and often expensive vans or trucks.

A quick search shows there were 260,350,938 registered highway vehicles in 2014. The truth is US auto fleet age is older than it has ever been so car sales are not abnormally high and could actually accelerate (assuming robots don't drive them all!).

http://www.rita.dot.gov/bts/sites/rita.dot.gov.bts/files/pub...
tl;dr "I think that this is how other people use their macs. None of the concerns raised are valid, or I'm just going to skim over and ignore them. I love apple and so should you".
Apple wants to maximize profits, sure, but they also want the stickiness and network effects of an ecosystem. Which means building a large base of perpetual users to whom they can expose app stores and sell services. So planned obsolescence is a difficult argument to make, at least in this case.
It can give you an array of faces for everyone you have pictures of. Along with checkboxes for "include pictures with vehicles" and such. So, I'm assuming they used MachineLearning, as I know I did not label my images to that level of detail.
It seems what the author is actually recommding goes beyond just sharing and is actually open sourcing a project's code.

Not saying that's necessarily a bad idea, but on the other hand I'm not sure it's always guaranteed to be the best course of action either.

I do endorse the viewpoint of sharing updates on a project's progress with the intended audience as often as possible, including when those updates could sometimes be rather minor.
Yes, fair point, I was trying to say that rarely does focussing on short term shareholder value actually do that. Look at Steve Ballmer: delivered outstanding sales growth at the expense of basically missing every major play Microsoft should've made.

An example: by killing off the lower cost MacBooks, students may end up not buying as many Macs (I would almost certainly have got a Windows/Linux laptop if the entry level macbook was so expensive when I was younger). They won't learn iOS development skills, since you really have to have a Mac to do that.

Net result: I bet in ~3-5 years all the killer social media apps will end up on Android first.

Back in the iBook/original MacBook era Mac laptops were actually about the same price as a comparable Windows laptop, plus they were WAY nicer. I even remember the first core duo macbook being the cheapest dual core laptop out on the market. I bet a load of people who now make iOS apps (me included) learnt because they picked up those machines because they were affordable and offered great value.

While I am sure that the new Macbooks offer good 'value' if you like the touch pad, I don't think they are affordable at the entry level.
No, he's referring to the John Miller tape where years ago Trump called up a reporter and pretended to be a PR person so he could brag about himself.
From my experience, the price of installing solar on 1/4th of your roof is more expensive than installing a full, brand new roof. Beyond that, not all parts of the roof are created equal for solar - some will generated much less energy than others. E.g. a neighbor's tree blocks a fair portion of our roof from the sun.

You can already get a $0 electricity bill without having full roof solar.

I can't see it being anything but a waste of money for the practical consumer.
I can pretty much guarantee that that segment you mentioned, doesn't need a $3000 computer to read email and do homework... And as much as they appreciate light, sleek, and fast enough, they'll appreciate keeping money in their bank accounts a bit more..
That is an issue not spezific to this tool. It's an issue with all tools offering "Lost password" features. Nowadays everybody should be able to get personalized mail addresses.
There's 2 possible reasons.

1) It really is near vaporware just being shown off in perfect conditions to seem exceptional.

2) It actually does work that much better with only $1000 worth of hardware and responding would give away the secret sauce.

I don't give much credit to the theory that they didn't see this coming and were caught flat-footed by the sudden requirements.

Oh and:Final speculation: there’s a reason it was called the Comma One. Where there's a Comma One, there's likely to be a Comma Two

I was really hoping it was actually a C64 reference, namely: "where the 'drive' goes"... ,8,1
Give Razer blade a shot http://www.razerzone.com/gaming-systems/razer-blade

I do think XPS keyboard is little off, I use Thinkpad T440s with ArchLinux.
I imagine the parent means more on mobile.
This appears to be a great implementation of an idea that's been kicking around a while. I love the detail of engineering that's gone into this and I really hope the numbers stack up to make it viable.

It's the first Tesla product where I've thought to myself "wow, I really want that" and I hope that I'll have a roof like this at some point. However I remain skeptical that the efficiency when taking into account to the manufacturing inputs and compared to a standard roof solar install will make sense.

I do think it's incredibly important to make technologies superficially acceptable to gain mass adoption. That's where I believe this stands above the alternatives, let's hope it pans out.

Disclaimer: I'm super excited about SpaceX (well, space in general), I'm not all that bothered about the Tesla car range, though I hope they release something I like at some point.
I had serious misgivings when Tesla/SolarCity announced a switch of focus to building-integrated PV. Historically, BIPV is where a PV technology goes to die after it's failed to compete against incumbent module designs.

But these have far better aesthetics than previous BIPV efforts. They look better individually and they aren't clumped in one odd shiny patch on the roof like past BIPV. Search for images of solar shingles and you'll see what I mean about previous attempts.

On Friday's thread someone here mentioned the 30% tax credit for solar installations. That made the financial proposition click for me. If the whole roof qualifies as a solar system, that's probably how they can make it financially attractive. Unlike past module-atop-roof or even patch-of-roof-BIPV offerings, you'd be able to get a tax credit for the whole shebang. Add the usual solar motivation of reducing retail electricity purchases, plus getting a roof that's more durable and attractive than the typical asphalt or wood shingles of American roofs, and it looks like Tesla/SC may have a better offering than competitors for new home builds in areas with lots of sun and expensive electricity. It wouldn't take a whole lot of builds per year to soak up all the capacity of their Buffalo factory.

Just a few days ago I was saying that I couldn't see how any of the solar installation or manufacturing companies were going to build decent, defensible profit margins because panels and installation services are so commoditized. This could be the advantage that was missing: assuming decent patent coverage, SC will be able to have a monopoly on these modules and their installation for a long time to come.
I think the notion in the article that it's the same or even worse this time because the exploit already is found to be exploited in the wild kind of strange. Isn't it far worse to disclose an unknown 0-day publicly then disclosing something that gets exploited already anyway?
Using TensorFlow and JupyterHub in Classrooms
That's not true in Massachusetts. There, Tesla does provide access to repair information, at an exorbitant price, because Massachusetts has a "right to repair" law on the books that requires automakers to make repair information available to independent mechanics.

We need that same law at the Federal level, except with some more teeth so that the repair info isn't locked behind a ridiculous price tag. If I were dictator, I'd make a law requiring all repair info for major products to be freely available. Companies used to do this several decades ago, and it was much better for the consumer, and didn't have any adverse affect on the companies (except that they couldn't make extra profit by monopolizing repair, but that's not "adverse" any more than it's "adverse" that I'm not legally allowed to own slaves).
Right, $4100 for motherboard plus ~$3000 for CPU.

I should point out that I really want something like this to succeed, but it's in the catch-22 phase of not having enough demand to drive down costs to drive up demand.
If the emphasis is on "keys", then those images don't refute the comment you replied to.
There's nothing stopping you learning other stuff but I've found from both personal experience and dealing with new hires, people like to stick with what they learnt on.

My experience is green graduates who grew up on IDEs struggle —for much longer than you'd expect— to get on with command line scripting and tools. They avoid a lot of very necessary experience when you have an IDE do everything.

I'll stop well short of saying "real programmers only use VIM" but experience is everything, especially when differentiating juniors. Learning how to do everything with one IDE is a great way to get very little real-world experience.
I'd rather it stayed the exact same speed it used to be, even if that meant only providing the same features as I had in 2006. The web was pretty good in 2006!
The highest price of the 15" MacBook Pro 2013 was 2300 € with a 512 GB SSD, 2,3 GHz Intel Core i7, 16 GB Memory and a Nvidia Whatever Card.
Basically I even added a 100 Euro/140USD extra Storage with 256 GB to fit my needs (https://www.amazon.com/dp/B00WGARJGU/).

Now the cheapest model with 512 GB SSD would cost 2500 € without a Extra Slot, which would make it 200 € pricier without taking inflation into account but which would only be 20€ - 40€ in Germany and I forgot that it won't have a dedicated graphics card which the 2013er had for a smaller price. (And not taking into Account that SSD prices are dropping)
Actually even their additional option do suggest that "Developers" are not their target. You can preinstall Final Cut Pro and Logic Pro, you couldn't pre install that on the 2013er and now you can even upgrade your dedicated graphics card memory, so that makes it even a bigger target for Designers, Movie specialists etc.

Just not useful for developers, since they will probably need more dongles than just one, I can count myself at least buying 6-7 of them.
Yes, overall cost of course.

BMW only usually only does about $3k downpayment anyway.
Someone else seems to have registered https://twitter.com/FGOTUS (but judging from the content of the tweets there, might be quite happy to turn it over to the administration in that case).
> Well, there is no Insert key on my laptop

One could argue that you have a broken keyboard (which can of course be fixed with xmodmap). Certainly, it's odd to complain about going from a non-standard command-c/v combination, that your keyboard is missing an insert key.

> and Ctrl-V means something else in Vim, for instance.

Sure, ctrl-keys are semi-consistent in each niche - and vim can paste and yank from the standard X11 cliboards (yes, sadly plural): "+p and "<star>p (where <star> is * escaped for hn formating).

http://vim.wikia.com/wiki/Accessing_the_system_clipboard

You're free to make up your own mappings, just like Apple has done. And Apple deserves credit for forging a consistent user interface. And Microsoft at some point gave up fighting over ctrl and alt, just like Apple did, and rather than copy "command" they made the "windows"/super and "menu"/super keys.

So again, for all the faults one can find with inconsistencies in Linux/Xorg, the clipboard is actually fairly consistent IMNHO - especially considering the various archaic software packages it continues to support (eg: vi(m), emacs, tty's etc).
Danger – code review automation
This year I retired a Pentium III co-located 1U server. RedHat -> Ubuntu 6.0 Dapper Drake -> 8.04 Hardy Heron -> 12.04 Precise Pangolin. Upgraded the memory to 512MB from 128MB and replaced the two 6GB hard drives with 80GB drives. All this thing did was rsync and do SOCKS5 over SSH on port 53 (which was very useful until ~2012).

Co-location was free for this thing, which kept it in service far longer than it should have been. It was nice to keep the same hardware functional for that long.
Portier is an implementation detail for the websites you're using -- it doesn't do anything but validate addresses, and it doesn't have any kind of persistent database. It'd be up to the sites you're using to have some sort of address changing mechanism, just as if they were using a traditional username/password system.

One tradeoff of Portier's approach is that you can't authenticate if you lose access to your email account. This can be a pain in the ass in some cases, but beneficial in others -- pull someone from your company's LDAP and they can't represent themselves with that email address anymore. Tradeoffs :/
Not only that, there's a bunch of Republican politicians who still refuse to admit they're gay, including that "wide stance" Craig guy who was caught in the airport bathroom.
The second sage
Not saying they are not good devices, just they're expensive. Keep in mind the original iPad was $499 - really great value.

I don't think the Apple TV offers particularly good value, considering you can get an Xbox One or PS4 for not much more money if you are into gaming.
It's an actively exploited critical vulnerability that allows sandbox bypasses (Chrome, etc).

https://security.googleblog.com/2016/10/disclosing-vulnerabi...

I would certainly hope it doesn't take Microsoft 3 months to fix it.
Isn't it more cost effective to put some sort of transparent shield on top, for those places with above-average risk of hail damage?

or is it that such a cover gets dirty and not-so-transparent faster than the original top layer?

I'm guessing this must be something already being considered, so what am I missing?
It seems sad to me to regret "decisions" you made as a toddler. I would say society has let you down here and there is nothing to regret.
I know more people who own Apple products that are not power users.

Me too, but those people buy MBAs and MacBooks, not MBPs, which leaves the question who are they really targeting with this laptop.
If the solar shingles last far longer than my current shingles (which actually need to be replaced soon), what about the degradation of the solar cells themselves? Traditional PV panels degrade and have to be replaced sooner than many roofing materials.
Authentication and passwords in web apps
I'm not sure it's Trump that played the media like a fiddle, or at least he had help from a certain Hillary Clinton whose campaign strategy (per the e-mail leaks) was to make him look like a plausible candidate and downplay the actual serious candidates. Basically, her strategy seems to have been to try and make sure what her campaign considered the worst candidate possible ran against her, and she sure as hell has a lot more media connections to pull that off with than Trump ever did.
You need to ask your wife for an open marriage. Monogamous relationships are morally wrong IMO.
Did you see the announcement video? They dropped a kettlebell on it and all it got was a small crack.
FWIW, the guidelines suggest not using the Touch Bar as an output device, i.e. as an extension of the screen, not that you shouldn't use it as an input device. Pong paddle control should still be an acceptable use of the bar.
This was a well timed reading for me. Been battling with showing an idea in the last 2 months and the interest has been minimal. People will say it's great and won't even sign up. I guess everyone is too busy with their life.

Is at this point where you keep reconsidering if this project is worth the time you've put in it, and you might have to put in it. So, don't concede.
iirc 20 years is a typical rated lifespan of PV installations
For your car that sounds great, but tires really depend on the vehicle. Costco's price for the tires that came on my vehicle are $250 apiece (5 person SUV).
I'm curious if anyone has stats on what percentage of houses have an unobstructed southern roof (for those in the Northern hemisphere)? My house has seasonally adjusted nanotechnology self-replicating shade "panels" that block considerable sunlight in the spring and summer months (MTBF: 100+ years). The big downside is cleaning up the unused panels in the autumn.
So Rust is considering making a general backend which compiles to WASM first and then compiling that to native code, which could be faster and means that they would be creating a general WASM->native compiler in the process? That sounds pretty useful and clever if I'm getting it right.
That's pretty hilarious.
That'll probably happen not long after hardware stops improving.
And you need to add at least $1100-$3000 for the CPU, so it's still >=$5200. Note that your price for the "complete workstation" does not include a CPU either.
So, how do you know if something is encrypted or just random?

You could imagine someone being thrown in jail for not being able to decrypt a random block of characters.
I am in the market for a new roof...but I have a steep-pitch roof with a bunch of weird little valleys. Roofers charge people with roofs like mine extra due to the pitch.

Will I be able to actually find a roofer to do this? Will it be remotely cost effective? I have been quoted $30k or so for my roof. My utility bills are low(ish)...I am far more worried about a roof doing what a roof should do - keep water out. Do these shingles actually stand up to bad weather? Will roof repair people walk on them? Will they work on a high-pitch roof?

My feeling is that a slick surface like glass won't work on a steep pitch since roofers now need to use spiked shoes on my roof when they walk on it
it's more like the manufacturing process is what makes this product unique, not the product itself.
I was talking about price as another comment said. Although Razer are well built, you do pay the price. Personally I think their products are worth it, some don't however.

Apple though...they bring poor value to a new level. A new dimension. A new universe not thought possible in the realm for expensive polished turds.
If you go for XPS then really be careful about coil-like noise (google for "dell xps coil whine forum"). Dell doesn't consider this to be a fault - it's "normal" from their point of view. And for you such coil whine could be like chinese water torture - constant pain.