skysight-inc/HackerNews huggingface dataset:
> Because HP did a LOT of crappy things and produced a lot of crappy hardware and provided a really crappy customer experience.

In my experience, they still do.

I have a Elite X2 1011 G1 2-in-1 business laptop that cost a fortune when I bought it. It has numerous serious, well-documented issues that HP has done nothing about since release.

A few that I've personally experienced include:

- Touchpad randomly stops working every few weeks until you remove and reinstall drivers

- Severe power leakage during sleep, even with connected standby turned off (I'm talking about 100% to 0% if left unplugged overnight)

- WiFi stops working after wake from sleep until disabled and re-enabled

- Frequent intermittent audio crackling issues that requires a reboot to fix, and an audio "enhancement" suite that's seemingly impossible to disable, and makes anything coming out of the headphone output sound like absolute shit (and this is not just my snobby audiophile side speaking, even my parents can tell something's off with the headphone out on this laptop, and so can everybody else in this 14-page thread http://h30434.www3.hp.com/t5/Notebook-Audio/DTS-Audio-Contro...), which severely hampers its use even as a media consumption device.

All of which I would consider to be inexcusable issues even for the most basic machines, without factoring in the device's $2000+ price tag.

The only redeeming factor was its WiGig chip and the accompanying WiGig Dock (separate purchase), which is seriously cool tech that I really hope catches on, along with wireless charging. Albeit it has limited utility on a machine with such debilitating defects.

Needless to say I'm now firmly in the "I will _NEVER_ buy another HP" camp.
وقتی داعشی ها با لباس زنانه مجبور به فرار می شوند+فیلم
Since I've been stuck in my apartment for two days, I'm going to have to disagree with you.

On a related topic, I changing my current policy of having 3 days of food to 5 since this year has been rather stormy.
Except you don't pay the fees at the box-office. Hence not really part of the ticket price.
That would be rather dumb, I think, assuming the bank account is tied to you in meatspace
I was happy with my HP till I moved north of Darwin: 99% humidity, 34C/93F 9 months of the year.

It became impossible to use unless I wanted to cool my workspace to the point where stepping in and out of the workspace all day could shock my system.

I switched to a Thinkpad. It worked. Humidity/dust killed it, like everything else, but it took 18 months.
That would be targeted to individual(s) not "all email from everyone" NSLs target a service or an individual or a corporation. Bad as that is, it's not intercepting, storing, scanning every email.
how pedestrian! (I find it a lot more rewarding to work as an independent machinist/welder than to come into a tech office every day and not ever be sure what I'm supposed to be doing..oddly, the pay is a lot less)
If you never allocate, there's nothing stopping the compiler from optimizing the GC out. Then you get your first property back, in the sense you originally gave.

My point is that Bjarne Stroustrup wasn't comparing against writing the exact same program the exact same way. He was comparing against what you'd get if you dropped down to ye olde C or Assembly and wrote the same algorithm there, without redundant work or waste.

The comparison shouldn't be the language's GC versus SteveGC, it should be the language's GC versus an ideal, manually implemented allocator. Equally it shouldn't be built-in bounds checked indexing versus manual bounds checked indexing, it should be built-in bounds checked indexing versus an ideal, manually implemented indexing scheme. If you want safety against out-of-bounds, it seems to me the ideal method would be a proof, not runtime overhead.
Elements of Scale: Composing and Scaling Data Platforms
I don't see why they should be ignored. Right now what we have is an unexpected and unexplained effect. The scientific thing to do is to understand what is happening. The fact that the initial claims may be from charlatans is irrelevant.

"We don't understand it and the explanation is likely boring, so let's ignore it" might be a decent engineering tradeoff, but it comes from a goal of cost savings, not from a goal of improving our knowledge of physics. Science is about improving our knowledge and understanding.
Ask HN: What non-news sites do you visit daily?
I would like to give up news sites for at least this month (if not year), but I'm short on ideas for sites that provide interesting, regularly updated content.

I'm hoping to get a handful of recommendations for sites (tech or otherwise) I can visit regularly. Ideally I can get a mix of sites with fun/relaxing content, and mentally stimulating content.

Thanks!
2:29  'Ammi' Full Video Song Yo Yo Honey Singh Blockbuster of 2017
Well, the comment your replying to is sort of confusing - Moore's law does talk about transistors, yet his point was that even with more transistors, performance doesn't improve. That's also what your article mentions.
Isn't the fundamental problem here that companies just don't provide the information to prospective employees that would be required to fully understand the value of the equity component of their offer?

Sure they try to turn it around and say that the employees aren't "asking the right questions". In reality, companies don't want to give that info out because it's to their advantage not to since w/o it you will almost certainly over value their offer unless you subscribe to the it's probably worth zero mantra.
> Incorrect cache hits are fine, as long as there is some checking following the cache hit

Exactly. That’s why hashmaps don’t have objects in each bucket, but an actual linked list (or partitioned linked list) with all elements hashing into that bucket.

This is CS101. If you build a hashmap yourself, at least get this right.
The 2017 Data for a Cause Challenge
indents are follow up stories. click the arrow next to a story for an expanded source list.

http://techmeme.com/

http://www.memeorandum.com/
Sidenote: I love Japandroids! Saw them in vancouver!
> there's nothing stopping the compiler from optimizing the GC out.

I don't know of a single language that comes with a GC that does this, do you?

> He was comparing against what you'd get if you dropped down to ye olde C or Assembly and wrote the same algorithm there, without redundant work or waste.

Right. I agree with this.

But basically, we are arguing over an extremely fine semantic, which is "should you even want bounds checks in the first place." If you don't, then don't use a method that has bounds checks. The one that does will have them. They'll both cost the exact same as writing it in C or assembly.
Yes, though not up to standards of a room for RF testing. Though, classic faraday cage does not shield static magnetic fields, like the Earths field.
But adding functionality grows in effort as more code is added. At some point it makes sense to improve a code base so you improve the rate at which you are getting "there". In fact there are a lot of code bases, perhaps most, which simply cannot get there in any sane way and fall short of achieving their goal. You might not care how goals are achieved as a user but as an engineer it's worth exploring and discussing different approaches.
Personally, it's because my experience with their high end consumer laptops made me never trust their engineering again.

Never have I had a laptop that was such a failure in terms of thermal engineering and also mechanical design. Constant thermal throttling, and both hinges cracking after a year from normal opening and closing of the screen.
C macros-faking-generics really aren't that bad (your "unsigned char" case is really easy to solve - use another macro). It's a bit goofy having different types floating around like "array_of_int", "array_of_float", but you can create them in a single line when needed, and once you create them, they work, and efficiently.

They're not an ideal solution by any stretch, but it's not the nightmare scenario you envision wrt generic data structures in C.
I tried on MEL->AKL. I think my brother was on AKL->SFO.
Sort of. The closest thing in C++ would be concepts. That is, even using traits in this way is the minority case; they're more usually used for monomorphized, statically dispatched code.

But, given the case where you want dynamic dispatch, then in a sense, they are, yes.
Discrete Fourier Transform Approximation by Machine Learning
I just thought how well machine learning techniques approximate DFT? And what the network complexity it will scale according to N? Thanks.
Ask HN: Are there any solid arguments against SPAs in 2017?
So, here is what I don't understand, why did they have to disturb it so much? Western Europeans did a lot of damage and being more careful would be very helpful.

Unless they were concerned about looters.
It is a little more complex than calories in and calories out. It isnt kooky to suggest that some foods (liquid sugar) are absorbed more readily while other calories may pass through without absorbtion (plant fibers). What counts is calories in minus calories flushed away, something nobody really likes to measure.

Take orange juice with or without pulp. Same basic caloric values, but the pulp version carries much of the sugars away.
Well, for trivially copyable types[1] the reallocation can be a straight memcpy. For the rest, I don't know that having or not having a move constructor is the important distinction; it will be preferred over the copy constructor if it is declared as not throwing exceptions, but either way some constructor of the object must be called if it exists (though it might be inlined and optimized away).

I imagine Rust does something similar, copying bytes if the underlying type has the `Copy` trait and calling some actual code if not, but I'm not familiar with the details.

[1]: http://en.cppreference.com/w/cpp/concept/TriviallyCopyable
Sure, "optimize" it. But if you put a 300 ppi and 200 ppi screen next to each other and asked users "Do you want the higher resolution screen or do you want an extra 2 hours of battery life?" I don't think they'll choose the screen. I have 4K in a 24" desktop screen, and that pixel density is plenty high.

In the tradition of digital camera manufacturers and countless other tech companies, HP chasing the consumers who know that "4K" is the next-big-thing and that bigger numbers are always better.

To be fair to HP, they're doing it because it works. Doesn't mean it's "optimized." Or that I'd take one over the 2016 MBP.
Maybe so, but it's the duty of science to disprove it now.
A few issues... and maybe things I don't understand from the description:

- Why do you want to use bcrypt? You could even use enough rounds of only sha256 instead.

- You don't even need a hashing scheme with salt, because your token contains salt by definition.

- Your lookup sounds complicated. Getting rid of salt from the hashing algorithm allows you to do a single lookup - for the hash of the token. (and then optionally a check that account/token uuids match)

- Plan for the future - prefix this hash with "1.", "v1." or something like that. You may want to update it one day.

- If you do want to follow with the current plan, you can ignore the first two uuids when hashing. You can easily hash only the random token part with bcrypt for storing in the database. (bcrypt adds its own salt by default)

- You didn't mention expiration check. Maybe you planned it, but if not - think about it.

Finally - is that a security concern? Depends on what you're concerned about. Using sha256 and bcrypt effectively limits your key space to (at most) the smaller output. bcrypt gives you 184 bits, sha256 gives you 256 bits. So by doing sha256 you shouldn't lower the security of the scheme.
How much more work would it be to put in more RAM that could only be used when plugged into AC power? My understanding of the MacBook Pro design constraint is that they had to hit <100 watt-hours while using LPDDR3. Could a laptop easily have another 16 or 32 GB of RAM that consumes more power but is only available when plugged into AC power?

I would be happy to have such a constraint. I love my MacBook Pro. I love being able to carry it around and deal with things like email when on battery. When I'm doing serious development work, I'm sitting down somewhere plugged in anyhow.

The OS could gracefully page out to swap and power down the less efficient memory when switched to battery.
I always cheer for competitors and I used Brown Paper Tickets a couple times now without issue, but in my experience, the alternatives tend to crumble under the pressure when they try selling tickets for a truly high-demand show (usually when a high-profile act plays a venue much smaller than they usually do). For all its sins, Ticketmaster does seem to manage to handle high loads on a regular basis.
How Starbucks’s Culture Brings Its Strategy to Life
> They charge high fees and consistently beat the market with low volatility, without leverage

>>I haven't seen even the most sophisticated alternative fund allocators (eg big university endowments) sufficiently explain what it is that Bridgewater does.

What? Bridgewater uses leverage. It is the basis for their strategy. They explain how and why they use it right on their website. Also their fees are lower than average. No I don't work there.

When you say you are "in the investment world", do you mean professionally or like you trade stocks from an e-trade account in your free time?
This is correct. I suppose if you could get folks to mark all memcpy move ctors explicitly with a macro instead of relying on the default you could specialize std::vector's move with sfinae. Bit hacky. It already specializes for pod types though.

Lack of move and copy ctors in rust greatly simplifies things like this, and makes it very explicit when code is running, but the trade-off is that intrusive data structures are hard to do on the stack in rust.
Thanks for elaborating on this!

> copying bytes if the underlying type has the `Copy` trait and calling some actual code if not,

It does not. Moves and copies are both "memcopy these bytes", the only difference is if you can use the previous copy or not. (This is also, of course, subject to the optimizer, which may elide the copy.)

> either way some constructor of the object must be called if it exists (though it might be inlined and optimized away).

Yeah, this is what I was getting at; this has to happen in C++, but not in Rust. You are right to point out that this only matters for things that aren't trivially copyable.
The PowerRay underwater drone finds fish and films them in 4K
It's weaker overall since "cyber terror" could be continuous. If you wanted to carry out continuous terror attacks you'd need a shitload of dudes to run around with guns and bomb trucks, and you'd need to train, feed, and move them. With computers, none of that is a problem any more. So why don't you see strictly more cyber terror than regular terror, always?
Thank you, that article badly needed pictures.
>I work on a C codebase that does this

And more power to you. Note the beginning of the parent comment, however:

> Just because you 'can' write such an array implementation doesn't mean you will

So yes, even if the codebase you work on does have these 'mythical', hard-to-achieve properties, that doesn't mean that most or even many C codebases will.

Good engineering entails observing what problems actually occur and working to fix those. Memory safety issues do commonly occur in C codebases. Regardless of whether the fix in C is simple or even trivial, programmers aren't doing it. So, Rust has some value because it forces the programmer to produce code that is largely free from this type of issue.

Enforcing norms like 'be more disciplined when writing C' or 'stop using external libraries' is much harder than simply using a different language.
They can be overkill. But usually aren't, even for a static site, if the site will be maintained or updated, or has a modicum of reused views, such as a gallery.
Apple is fighting a war between thinness and battery life. Brighter screens (which we'll see more of with HDR content becoming more mainstream) means more battery usage, which means Apple needs more battery to offset brighter screens, but Apple also wants each MacBook Pro iteration to be thinner (or just as thin) so that means sacrificing other components to make room for battery. They're doing the same thing to the iPhone.
Seems the only solution is to turn off all background downloads, and just kick them manually.

On reflection, I don't think I'm actually gaining that much (or anything at all) by letting them run automatically anyway. It's a false convenience.
Also from the article:

> "For a German non-fiction book sales of 85,000 are not bad. But the figures don't indicate a runaway hit."

> "The current biggest non-fiction seller is The Hidden Life of Trees, a book about the ecosystem of woodland, which has sold half a million copies so far."

Okay, so it doesn't seem to me like that is evidence that there is some "overwhelming" revival of Nazi ideology after all, especially if most of the sales are academic.
double digging a garden:

http://aces.nmsu.edu/ces/yard/2007/020307.html
try ##machinelearning, #ai, or ##AGI on freenode
I remember the first dot-com boom that began in the late nineties. That, combined with a strong, growing US economy, the sudden need for every company to have a web presence, and the need for millions of lines of legacy code to be be tested for Y2K bugs meant that programmers were in ridiculously high demand and short supply.

As a result, a lot of really incompetent people were able to get jobs as programmers. It was unbelievable. I remember working with people who spent their days in a fog of confusion, stopped dead in their tracks by simple compiler errors.

When the bubble finally deflated, a lot of those incompetent people lost their jobs, and struggled to find new ones.

But by and large, the programmers at the other end of the bell curve did just fine. They kept their jobs through layoffs, or if they lost their job because a dot-com employer went belly-up, they had little trouble finding a new job.

So my advise is, if you strive to be a top-tier software developer, you should be able to weather any ups and downs in the job market with little trouble. Really good software developers will continue to be in short supply for the foreseeable future.
My cynical side is agreeing and also putting a different context around the charitable LLC he announced a year ago in his daughters name.

I think it's a pretty scary scenario to have a person with such a high percentage of the world's personal information at his fingertips seeking the highest office in the land.

This is also the guy who decides the algorithms that control what news those people see (or don't see) on his platform and is also the guy who also carried out a study to see how his platform can manipulate his users emotions.
>The rise of industrial farming can be attributed more to transportation than automation because it allowed corporations to form that could finance hundreds or thousands of farms across a region or continent.

Isn't the whole plot of The Grapes of Wrath about how the rise of industrial farming was due to the dust bowl disaster? Prior to that most citizens were small farmers, but with so many people intensively tilling grasslands a massive self-reinforcing dust storm formed and destroyed any ability to farm profitably at anything but a huge scale.
No, all moves in rust are memcpy if not optimized out entirely. Rust has affine types so moves don't need to "invalidate" the source value at runtime, the compiler just doesn't allow you to use the source variable after a move.

Rust's answer to copy ctors is Clone, which is always explicitly called. Variable use in rust is a move. Trivially copyable types (Copy) will be copied without compile-time invalidating the old type.
hi @vinvinc,

"there are plenty of more informative bot articles that would better serve the HN audience"
could you share those articles ?

I saw a recent article at oreilly ideas : https://www.oreilly.com/ideas/designing-bots
Not really. You put it in space, turn on the engine, and see if it STAYS in space.

If it crashes to earth after a year, then it clearly doesn't work.

If it steadily starts to escape earth's orbit, then it DOES work.
Your body gets better at using fat to keep blood sugar high

Please explain your magical process that converts lipids into blood glucose.
Would that apply to very old technology like 8-bit CPUs and support chips? Would it apply to old operating systems like CP/M?

I heard of some people making a toy that had expired patents on it that was a hit in the 1970s or 1980s like Rubics Cube, Mood Rings, Tinker Toys, etc.
So we're just voting up article-length ads for adapters now?

The new MacBook Pro only has USB-C ports. How many more articles pointing that out does HN need?
repost of https://news.ycombinator.com/item?id=13311376
"UNIX was not designed to stop its users from doing stupid things, as that would also stop them from doing clever things."
Airbnb | Marketing Technology Manager (Paid Growth) | San Francisco, CA | ONSITE

The Marketing Technology Manager at Airbnb is 50% marketer, 25% engineer and 25% data scientist. As a part of Paid Growth team, you’ll drive Airbnb growth globally and help us build the most innovative, efficient and technologically advanced marketing team in the world.

What you’ll do:

* Build and support our performance marketing stack: tracking, measurement, attribution, optimization and automation across both web and apps.

* Define and execute on our marketing technology roadmap (paid search, paid social, remarketing)

* Research and evaluate growth opportunities, onboard new vendors, test new marketing channels and tools

* Work cross-functionally between marketing, engineering, product, data science, finance, legal and security teams

* Work with external vendors to maintain and develop our technology integrations, facilitate beta-testing of new products and features

What we’re looking for:

* 5+ years of relevant work experience

* Excellent understanding of online marketing and strong interest in how it works “under the hood”

* Experience with paid search and/or paid social channels and tools: AdWords, Facebook, etc. is required. “Backend” experience (scripts, APIs) is a strong plus

* Understanding of web and app technology: cookies, SDKs, tracking, tagging

* Experience with mobile apps (user acquisition, re-engagement) is a plus

* Strong analytical skills and ability to answer questions with SQL

* Can read other people’s code, writing own code (or strong interest to learn it) is a plus

* Good understanding of experimentation and A/B testing

* Excellent communication, organizational and project management skills. Ability to work between teams, functions and geographies, with high autonomy and little guidance

Apply here: http://grnh.se/b0m3751
Illegal, unlicensed and unregulated... so why is Airbnb booming in Hong Kong?
Seems like a lot of engineering work for something that'll be solved around the end of the year