skysight-inc/HackerNews huggingface dataset:
I've experienced the same thing on my 5x that I did on my Moto X. Immediately after an OS update, battery life would tank. As in, dropping 10% per hour while sitting on the table idling, or about that.

I found on the Moto X that a Google service was chewing up a lot of power/battery. Upon rebooting, that service would return to being a very minor component of battery use.

The first time my 5x started discharging in similar fashion, I had a look at battery use and found the same thing. Turning the phone fully off and back on, as with the Moto X, seemed to "fix" this.

I'm not saying this is your problem. Unless you never restarted your phone after such an update -- waiting and charging my Moto X overnight was not enough to make it go away. But even if not, maybe this comment will help out someone else.
Those riddles are second semester problems on CS, thus anybody that isn't an student spent at least the last 4 years not working on them. The same probably applies to top companies, people probably interviewed there more than 2 years ago.

But Coursera stuff that gets into a CV is almost certainly recent.
Can someone tell me how this language is supposed to be any degree of 'safe' when things like this compile (without warning, on Nightly rustc) and "panic"? Rust is about as safe as C.

fn main() {
let a = 4;
let v = [0,1,2,3];
println!("{}", v[a]);
}

result:

rustc 1.15.0-nightly (71c06a56a 2016-12-18)

thread 'main' panicked at 'index out of bounds: the len is 4 but the index is 4', <anon>:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Intrusion and Exfiltration in Server-Less Architectures (33C3 Video)
DreamerMade – the world's collaboration community
I mentioned a few in this thread on top of Cyclone already referenced:

https://news.ycombinator.com/item?id=13266736

Note that, while C developers ignored Cyclone, Rust built on its safety techniques. It's not that people aren't making the safe C's. It's that C developers at large don't care about them. So few write them. Then they die.

More work in CompSci, industry, and FOSS is therefore going into static analysis or automatic transformations of C into safe code.

EDIT: You might also like a version of Modula-2 with C-like syntax. It was a language for OS writing small like C but with modules & safe-by-default features.

http://modula-2.info/m2r10/pmwiki.php/Spec/DesignPrinciples
Hi everyone! I started DreamerMade to be a collaborative community where you can build awesome stuff on your own or with others. From that book you've always wanted to write to that crazy idea nobody understands. We've got the space for you to get started for FREE. We launched in June 2016 and are starting to get some great traction. I hope to see you on there!
I have almost the exact inverse view: when I write C++ code, I shed a tear if I can't disable exceptions and use something very analogous to Rust's Result type. I can't tell you how many times I've written some version of 'class Result<T> { union {int, T} }' (obviously, that's illustrative, given all the extra work that has to go into writing a proper tagged-union in C++) for use with C++ code at jobs I've had in the past. Rust's implementation here is great, in my opinion.
To be clear, then, I would not use a 16GB DIMM of RAM for swap. I would use all the RAM I had as RAM.

Having something faster than an SSD for swap would be a win; hence my original point. Specifically, if the latency is only 10x higher than RAM (as shown in the image I linked to), then it would allow for trade offs to be made from an engineering perspective regarding scaling up vs scaling out.
Yellow light turns are predictable in that you know that they'll happen, just not when. So if you have a heavy load or other adverse conditions you should slow down to a speed where you could stop at the correct distance. Software should do an even better job of predicting the weight to speed to stopping distance ratios.
Earliest code? Maybe but there are other codebases that are open source that use hungarian notation.
> I dunno if Gravitational is interested in providing support contracts beyond the best effort open source software support.

They do offer commercial support. I talked to them earlier in the summer just to get a feeling for the company after playing around with teleport some.

I agree about Teleport being the bees knees. They keep adding great features. Only problem is we need something cross platform at work that can do RDP/windows with all the same auditing; so I'm stuck trying to justify the cost of Bomgar PAM or CyberArk, which are INSANELY expensive.
Bell Labs is in Murray Hill, Morristown is ~30mins away.
Does your source account for number of miles driven per capita?
Bell Labs was not in Morristown. Murray Hill and Holmdel. Holmdel is where they found the noise from the Big Bang

https://en.wikipedia.org/wiki/Holmdel_Horn_Antenna
Note that he is talking about OSX not iOS.
I don't know Go, so I don't really understand what the issue is with the code you posted. In Rust, the closure used to spawn a new thread needs to own its environment; if it does then there's no problem. If it doesn't that's a data race and you have a compile time error about it.
It's a really hard problem that big companies show no signs of helping to solve because they have no economic interest in doing so. They use whatever packaging helps their short-term profits without consideration of long-term environmental damage.

It's a typical externalities problem - the full cost of using some types of packaging is not paid by the one doing the packaging.
How Principle Centered Trading Can Help You
Sweden’s Unique Defense Against Russian Submarines
A panic can not lead to memory unsafety, unlike the same code in C.
Assuming (and I know this is unfair) that programs are doing a good job of sanitizing inputs, what other classes of error do these checks prevent?
Good you asked. We have MarvinJS on the way. It's a javascript port of the project. It's going to be released in the next weeks.

Perhaps you can help in the beta test phase.

What kind of image processing operations do you want to perform?

Please, you and anyone else interested in using image processing in Javascript, send an e-mail to leirbag.arc@gmail.com
Many friends of mine disabled that feature right after the story about someone's wife unlocked it while he was asleep. That can be orders of magnitude more expensive than $250, in one touch.
So I'm not criticizing Trump here per se (I mean I really dislike him, but that wasn't what I was getting at.) My point is more that this distinction between "skin in the game"/"no skin in the game" that Taleb portrays as binary is really quite murky, and people's perceptions of who's taking risks are affected by factors other than the truth. I agree that bankruptcy laws often add value, but that wasn't the point; they add value precisely because they reduce the "skin in the game" of the person going bankrupt, whereas Taleb had indicated that Trump had shown his risk-taking by losing his own money. And it's exactly this idea that leasing out one's name, putting one's reputation on the line, turning yourself into a celebrity could also be considered having "skin in the game" that makes this distinction murky: isn't that what Taleb's IYIs do? Aren't all columnists, academics, journalists and so on playing in the same system, and self-promoting as a form of hustling their way to the top? It depends more on your perspective than on any objective definition of "skin in the game."

Also with respect to Trump being "successful on his merits"... being born into hundreds of millions is better than most connections. More importantly, Taleb isn't talking about success/failure on one's own merits, but taking on risk, and I think that's one of his better points. That's the difference between the "skin in the game" concept and judging based on some abstract idea of meritocracy: people understand that Trump was given advantages in his life, but they respect him because (they perceive!) he's opened himself up to risk and put those earnings, unfairly gotten as they may be, on the line.
As someone who's been in the system programming space for a while and played with Rust for ~1.5 years here's my highlights.

1. I haven't written any multithreading code yet but I love the borrow-checker since it does a fantastic job of dealing with mutable state. I find I get better architected programs with single-ownership long before I start writing Rust and I love to see the compiler enforce it.

2. ADTs. Simply the best way to represent State + Data bar none. Combine with pattern matching and it's just sublime.

3. Iterators. Never seen a language do them so well with so little overhead. The focus on zero-cost abstractions really shines here.

4. Cross platform support. This is a huge one. Having dealt with MSCV/GCC/LLVM/custom compiler toolchains I can't stress to wonderful it is to have a consistent compiler that can build other targets on a different host.

5. Cargo, other people have covered it, enough said.

6. The community. Truly one of the better ones out there who not only want to help but also provides releases like clockwork with clear semantics on stability and APIs.
Yes. Meaningfully means that the overall state of security is increased. A single user's actions don't count.
To get a job at a company you have to be given the opportunity to interview, and to succeed at the interview. If you only evaluate performance at the job level, you don't evaluate performance of anybody who failed the interview. This is one of the fundamental challenges in hiring - you have a biased sample when trying to determine how effective the hiring process is at screening candidates.
I don't understand why people continue to believe that SUVs are safer just because they are huge. Seems like a very common myth.

Also Tesla's radar which can detect vehicles 2 cars in front of you by bouncing signals off the car in front is pretty neat tech. Who else is doing this? I'd assume most of the luxury car makers with auto pilots have this too?
Not the least because truck autopilot don't play videogames while they drive!

A too common practice in Europe is to drive by ear. The truck driver will not watch the road unless the wheels are running over the side lines which makes a noise.
Biometrics are _not_ passwords! You can never change them. You know, if everyone starts spreading their biometrics around willy-nilly, one day one of those databases WILL be hacked. And then what? Oops all the biometric data leaked and now every service that uses them as a password just got pwned.

I will never be providing any biometrics to a service that uses them as a password if I have the power to do so. Biometrics work great as a _username_, not passwords!
In what way does that take you out of the running for jobs, though?

In my experience there's nothing about a startup failure that indicates a candidate isn't suited for a development position.
Drivers maintain themselves, so this is pretty much purely maintained drivers vs. little-to-not maintained autopilots.

That said, I agree there's plenty of incentives for the trucking companies to go the autopilot route.
This road is primarily used by heavy trucks. There are signs with flashing lights indicating "PREPARE TO STOP" before the crossing exactly for that reason. That driver sure knew what he was doing.
https://en.wikipedia.org/wiki/Mass%E2%80%93energy_equivalenc...
Opus/sort.c implements Merge Sort, limited to 16383 records.
The primary thing missing from all of these guides is that you need to have two things for ML:

1. A purpose for utilizing it

2. A data set to train/act on

Without that, all you get are a bunch of shovels and picks, but no idea of what kind of wood/bricks you need or a plan for the house.
Did you have farming experience before launching this app? How'd you come up with the idea?
Appreciate feedback on pkg. Far as other thing, I was hesitant to say that given mainframes or minicomputers connected over leased lines might have had something built-in or from 3rd parties. Some tool to easily package and push stuff from HQ to branch offices, warehouses, stores, etc. Just speculating. Strange if nobody automated the process.
You're right.

It is weird that so much effort is spent on interviewing and so much effort is spent on performance reviews. But AFAIK, hardly any organization tries to use performance evaluation of current employees to inform their hiring decisions.
As I stated previously, it's not about this one thing.
Well, yes and no.

I think part of the problem is that more and more technology products are being sold as "simple to use", although they might actually be really complex tools with far reaching implications not necessarily understood by the end users.

Compare this to, say, driving a vehicle. In most (all?) countries you need a driving permit which implies you have some training to operate said tool. In part because not knowing how to drive could cause damage and/or injury to third parties. And you also have some sort of liability if things go awry.

However consumer technology products are not considered as tools capable of damage (in most cases at least, e.g. computers, routers, phones, etc) and so the implication is that anyone can use them without proper training, since there's no way you can affect a third party.

Obviously those of us who have some sort of training realize that this is not the case, and so I would guess most HNers would secure their routers or Internet connected cameras (I hope...).

So in this context, can you actually blame those that have no training at all, to be doing "unsafe" things, especially since no one will tell them otherwise, including the manufacturer?

It's definitely a non-trivial subject.
The stated integer divide-by-zero behavior of golang is incorrect.

Whether the process is sent a SIGFPE or not, from the programmer's experience a x/0 will cause the offending goroutine to panic with a divide by zero runtime error (integer divide by zero) which, unlike a signal, can be recovered.
There was a similar site, who's name I cannot remember, that was up for a year as a infosec experiment around 2011, 2012. The neat feature about that one was the ability to put in a zip code and see all of the unsecured cameras in that area.
This is unfair of me; there are lots of pundits as bad as him or worse, but he's become the designated punching-bag on parts of the internet of people who thought Trump would never make it. Throughout the primaries, he was incredibly dismissive towards anyone who thought Trump had a chance, mocked the idiots who didn't see the obvious truth that Marco Rubio would win every primary, responded to every Trump dip in the polls with "I TOLD YOU SO I TOLD YOU SO I TOLD YOU SO YOU DIDN'T BELIEVE ME," then predicted that Rubio and Cruz would never endorse Trump, then predicted someone else would snatch the nomination at a contested convention... and still has a job for the New York Times, educating the masses on what the future holds. No punishment for being wrong: no skin in the game.
Close. :-) Closures are anonymous types which implement one of the Fn traits (which are not anonymous). Traits are usually not implemented with vtables; they are usually monomorphized and statically dispatched (this includes most higher order functions). If you need dynamic dispatch, they can be cast into "trait objects" with vtables. This is a pretty big deal - static dispatch is why functionalish abstractions like map and filter can compile to a very tight loop.
Holy shit they're even responsive and don't look like someone stuck in the 00's designed them. Honestly kind of blown away right now
Yes I would. In modern C++ we use exceptions and RAII for automatic cleanup.
Sure, it' a privilege to fly business class. But dingo_bat explicitly said he would pay more. How would it not be relevant that paying more for better seats is actually an option.
What's the advantage of using U2F for SSH compared to using public-key authentication with a password-protected smart card (e.g. a Yubikey 4)? I can think of one big disadvantage, which is that with U2F the password has to be shared with the remote end, which is inferior to a password that never leaves the local device.
What would you have it do? Solving the general dataflow problem so you identify out-of-bounds array accesses at compile-time is impossible (equivalent to the halting problem), so would it really be worth investing in identifying in finding them in simpler cases, particularly since simple cases are much less likely to make it to deployment anyway?

And if you don't find the problem before runtime, what's a better strategy than panicking here?
Interesting bit on the MS degree. I followed the link, and I'm not quite as surprised that the correlation is poor, or even negative, given the way the data was collected and analyzed.

Absolutely agree that some MS degrees are pretty much less rigorous cash cows by now, that allow students to skip the fundamentals such as data structures, operating systems, and compilers.

However, many CS MS degrees actually do require this as a background, to the point where some programs have emerged to prepare non-CS majors for MS degrees, kind of like those post-bac premed programs. It's hard to believe that those MS degrees, which require a decent GPA in those core courses, along with high GRE scores (sorry, but we are talking about interviewing skill, which may be more related to exam taking ability than job performance), wouldn't result in a similar profile to people with CS degrees from top schools.

This is fully acknowledged in the text of the article referenced in a link, but unless people follow it, I do think the message may be a bit misleading.

That's an aside, though. The value may very well be in the prep for these degrees (ie., the post-bac CS coursework required for admissions to a reputable MS program). If you can get that through online courses (udacity or coursera) through genuinely rigorous self-study? Yeah, that might do it, for far less money. I've audited a few of them, and they're the real deal, that's the real coursework there.
The great scandal here, the 97' fluoro pink elephant, is that we have come to accept these devices lasting longer than a work day is good.

And that's out of the box. Batteries degrade. This time next year expect to be recharging these flagship devices twice a day.
The Smalltalk and LISP methods were successful in the commercial space. Still are at software level with LISP machines doing it at hardware level with incredible benefits for a while. Reasons for failure seem social or economic instead of technical so far. I'm not dismissing them for customizable OS's yet as we might see a comeback of such things in new form.
My point was in how we frame these things--the human relationship to technology. Specifically, it's about how we can raise the important point that humans can be made safer by technology, without it being a value statement about the human race.
It's a great phone when he lag isn't bad. It's particularly noticeable when using the camera. My wife had the same phone and same issues, but I also know two people with a 6 who do not have the issue.
>It's closer to an optimal solution if you're squeezing max performance out of old hardware with a higher-than-assembly language.

That was what was happening when C got popular.
Yep. We tried this before making the automated feeder. Gave it a 2-week trial period. The initial reaction was surprise and delight with the abundance of food. Initially they decided to eat 3-4X what I normally feed them twice a day. I was hoping once the initial party tapered down they would get sensible. Two weeks in I had 2 happy tigers and two very sluggish fat sad tigers that did pretty much nothing but eat and poop. And Oh man the litter boxes were a nightmare. I needed to clean them 3x day to keep up. I never figured out a way to get _all_ tigers to be responsible with open buffet policy.
That's my experience with the 6P. The first few months, I used it as a phablet and didn't put a SIM card in, and battery usage was fine. Then I moved to the US, activated Project Fi on it, and battery life is horrible -- I suspect the way Fi frequency-hops between cellular providers and known open WiFi hotspots means it taxes the location services even more than if you're on a standard carrier.
Yeah, for sure. I was implying that the other 74% will be avoided by cars with self-driving features, since the parent comment was suggesting that getting driverless trucks was more important.
Yes! This cannot be stressed enough.

Not just for car accidents, but this is true for emergencies in general. Always check your surroundings!

For example, if you find a guy laying on the sidewalk, he could have stepped on a down power line, slipped on ice, or recently gotten attacked by some punk who might still be nearby. If you don't know why he is unconscious, proceed with caution.
Use v.get(a).

v[a] is equivalent to v.get(a).unwrap(a), and unwrap() may panic.
Except then you're screwed if your phone bricks while you're out somewhere without a paperclip or similar implement. Holding down the power button for X seconds seems a far simpler and more user friendly solution. (Although I'm obviously in the camp that has never had my power button held down by something in my pocket for 10 seconds. Tough to imagine that happening.)
Well, we are trying to reduce the other numbers. 10 million in the US is still a big number. We are 4% of the world population. As per capita energy use increases throughout the world, we're going to generate a lot more clean energy.

http://world.bymap.org/ElectricityProduction.html

Is there a reason we need to kill tens of millions of additional birds every year so we can have "clean" energy?
Super Mario Bros supercharged my interest in appdev and eventually indie game making.

My first computer was an IBM PCjr with various games on floppy, a cartridge BASIC, and a spiral-bound programming manual. Not sure how old I was, old enough to read, but as I was flipping through the manual one day, I noticed one of my brothers had scribbled words next to the colors in the section on drawing to the screen: brown had "block", cyan had "sky", etc. It was a mapping of Super Mario Bros tiles to BASIC colors. It was at that point that I realized I didn't just have to play games made by others. I could make my own!

A couple decades later and I'm still making them. I like to think my skills have improved some since those days :)
And when you start managing memory you will discover that GC are more powerful than you thought because your simple memory allocator cannot beat 20+years of engineering in the JVM.
Note, I get
warning: this expression will panic at run-time
when compiling it, but that's besides the point.

Panicking is exactly what makes it memory safe, it doesn't access any out of bounds memory. Write an equivalent program in C, and nothing will error, but instead will output something like 140733019311920. Which of those is preferable?
my bet is they just put it somewhere so they dont loose it and can access it from literally anywhere !
Sapir-Whorf is not just "not fully accepted". Most linguists believe that linguistic determinism, which is what most people are talking about when they refer to Sapir-Whorf, is false.

Linguistic relativity is the weaker form of the Sapir-Whorf hypothesis that is largely accepted, but it doesn't come close to supporting the 1984 can't form treasonous thoughts without the requisite language scenario.
New Startup Plans to Transform Supermarkets into Mini Warehouses with Robots