skysight-inc/HackerNews huggingface dataset:
Notice how tight this loop is. In particular, we're dealing with a single simple load to read our u64.

Notice that you're reading the data into a statically allocated buffer, and doing it in such a way that it's trivial for the compiler to prove alignment. This is a classic case where the benchmark is irrelevant for a general purpose implementation.

Try running the code so that the buffer is dynamically allocated, and so that the first access is unaligned.

Now, I'm not saying that type-punning can't be faster, but to do it properly from a general-purpose library it should be done correctly so that every case is as fast as possible.

Assuming I'm correct and that the modified benchmark sees substantially different results, reimplement byteorder such that it produces the same tight loop even when the data isn't aligned.

I don't think it can be done without modifying the byteorder interface to expose something more iterator-like, because it needs to maintain state across invocations for doing the initial unaligned parse followed by the aligned parse.

If you can get it done in a reasonable amount of time[1], look at the difference between type-punning and byte-loading. I'll bet that relative difference will be much smaller than the difference between the unaligned performance before you refactored the interface, and the unaligned performance after refactoring the interface. In that case my point would stand--the most important part is refactoring code at a higher-level; gains quickly diminish thereafter.

If my argument is over-specified, that's because it's meant as a rule of thumb. Specifying a rule of thumb but then qualifying it with "unless" is counter-productive. For inexperienced engineers "unless" is an excuse to avoid the the rule; for experienced engineers "unless" is implied.

Note that I'm no stranger to optimizing regular expressions. I wrote a library to transform PCREs (specifically, a union of thousands of them, many of which used zero-width assertions that required non-trivial transformations and pre- and post-processing of input) into Ragel+C code and got a >10x improvement over PCRE. After that improvement micro-optimizations were the last thing on our minds. (RE2 couldn't even come close to competing; and unlike re2c, the Ragel-based solution would compile on the order of minutes, not lifetimes.)

We eventually got to >50x improvement by doubling-down on the strategy and paying someone to modify Ragel internally to improve the quality of the transformations.

[1] Doubtful as I bet it's non-trivial and you have much better things to do with your time. But I would very much like to see just benchmarks numbers after making the initial changes--dynamic allocation and unaligned access. I don't have a Rust dev environment. I'll try to do this myself later this week if I can. However, given that I've never written any Rust code whatsoever it'd be helpful if somebody copy+pasted the code to dynamically allocate the buffer. I can probably figure the rest out from there.
Cyber security is one continuously evolving puzzel, hence this very broad tool.
It is disgusting that this newyorker article is flagged. HN has really jumped the shark, if this isnt on topic nothing is.
Probably the funniest writeup of a twitter account I've seen: http://www.slate.com/blogs/lexicon_valley/2016/09/08/merriam...

A guy writes about his brush with fame when MW was rude to him on Twitter.
> state owned security cameras

There is a difference between security cameras and surveillance cameras. Surveillance cams are broadcasted somewhere else (maybe even over internet) and stored and reviewed. Security cameras - are for security incidents and shouldn't be broadcasted or footage stored longer than necessary (matter of hours or days depending on location).

Too bad often times these state owned security cameras are actually surveillance cams disguised as innocuous things which they aren't. There is this Will Smith movie "Enemy of the State", it's fiction but our dystopic society is becoming ever more scary.
http://pdf2mobi.com/
Which is just the pile of unassembled parts, thousands of miles from where they eventually need to be :)

Meaning BOM != cost
>criminal issues are not open to market forces

That part irks me the most.
He's driving drunk, injured 3 people. After running away paid some compensation, which in Cambodia is likely to be small change. No further action required as far as police are concerned.

It's disgusting. Compensation should be part of criminal proceedings rather than void them

It's a sad state of affairs. Cambodians are wonderful people, but the corruption and inequality is all pervasive.
It'll work fine, but the problem with low radioactivity sources is that they are also low energy sources. So you need a lot of material.
Residency Options for Panama
If you're put on a PIP, and you want to leave, you can use that as leverage to get some severance. Call it a resignation bonus. Getting a month or three of pay is money in your pocket, plus time to line up something better. An imperfect solution to an imperfect situation. Managing steps to PIP-can (methodically fire) a worker is taxing for everyone, and liability exposure. It may make financial sense for the company to cut its losses, paying a small certain liability to prevent a larger one.
I'm more concerned about counterfeiting. The benefit of new, counterfeiting-resistant notes is severely limited if you keep accepting the old, now-easily-counterfeited notes for eternity.
> but the system would need to be restarted before the ME would read the changes.

# shutdown -r now

?
Yep, you just identified the whole trick.

Takes awhile to get a hang of it. You've already picked up on a couple of the harder challenges, and are aware of your own short comings in these regards: that puts you ahead of 80% of managers! Now try every day to get better. Buy some books, read some websites, and now you are on the manager journey.

Best managers I know, find talent and grow it. So delegate, train, motivate. Strait shooting is better then being passive aggressive or allowing people to fail. Feels worse up front sometimes, but better for all concerned. Can't tell you how many times I've had a dialog in my own head about an under performing employee then eventually confronted them and they said "Oh, that's what you want me to do, sure." And then, by god, they went and did it. Be repetitive. Be helpful to others in the org. Margret Thatcher famously said "Everybody brings me problems, he brings me solutions." Be that guy. .... point is there is a million things like this shit.
It's so crazy what you can do with affordable tech these days...
As one person remarked to me once, "when you hear that someone works at Amazon, ask them if they need a shoulder and a box of tissues".

Also as a Seattle local, all you have to do is ask around a little bit and these stories start crawling out. A few people have a good time, but that's not normative.
It's evidently a power and money grab.

See:

Binney: 'The NSA's main motives: power and money'
http://www.dw.com/en/binney-the-nsas-main-motives-power-and-...

He designed it, and then blew the whistle.
Very interesting and well written post. I own a lot of boardgames and follow the hobby in BGG, YouTube, etc. There are a bunch of famous game reviewers in YT that bring sales if they like a game but to be honest I think they won't like your game as it's yet another clone of Cards Against Humanity, which is loathed among the board game community. That's the same reason I won't buy your game as I've no interest in CAH but I wish you the best of luck.
Fair. As a compiler engineer (full-time on clang/LLVM), I wouldn't make such ridiculous claim (even though the compiler is capable of nasty tricks that "normal" humans wouldn't be able to pull).

Someone that pretends that it is not possible to beat the compiler should start by taking something like a GEMM routine (for example from there https://github.com/flame/blis/tree/master/kernels/x86_64 ) and reimplement it to show how a mainstream optimizing compiler can do better using C/C++ or Fortran.

A good starting point to understand the gap between hand-written optimized assembly and what you can get with C is http://apfel.mathematik.uni-ulm.de/~lehn/sghpc/gemm/index.ht...
Couldn't you just dump your files in VLC for iOS and play them that way? There are probably more tailored music apps where you could put your local music collection too.
There's been a lot of that going around the past couple of months. You feel pretty strongly about it. What makes this submission particularly on topic? Note that even though it was flagged (but not killed), it's garnered 129 comments so far. Reviewing the discussion, what in particular do you find substantive and civil about it? Why do you think users flagged this submission?
Top Rated PlayStation 3 Hard Drive
Clickworker for Digital Nomads
IMO alumina is a much better choice. Ruby age instead of diamond.
This New Threat to Taiwan's Economy Is Sitting Right in Front of You
Sedgewick's 1978 paper[0] on implementing quicksort has some interesting hand optimizations of the assembly code -- loop rotating, unrolling, etc. I wonder if modern compilers do the same?

[0] http://penguin.ewu.edu/cscd300/Topic/AdvSorting/Sedgewick.pd...
Managers are cogs too. The way to work that kind of system is to identify and exploit the fears of the boss or his boss.

I've seen this happen with employees under the thumb of micromanaging PMs in particular. They start spreading rumors, then undermine PM. My solution is to eliminate micro managers asap.
Alexa top 1M sites is retired. Here’s the Majestic Million
Amazon screws employees in ways unseen in other companies. From the perspective of an engineer, this is a terrible place for people to work and grow. To list a few things:

- Equity vesting schedule is 5%, 15%, 40%, 40% over 4 years

- Relocation package is prorated for TWO years. If you leave after staying for a full year, you still need to return 50% of it.

- 401K matching only vests after working for 3 years. If you leave within 3 years, no matching for you whatsoever.

- No tuition reimbursement. Want to get a part-time masters in CS? Pay it yourself!
- No catered food. No free soda. No free snacks. If you are hungry, you can eat at one of the shltty cafes.

- Obnoxious oncall routines. You are woken up 3:30am waiting for the event to be over. Why not automate things? Because replacing people is cheaper than building great software!

This is Amazon's mindset TOPDOWN. The root of the problem is that the leadership does NOT care about employees or technology. This is a retailer and a powdered Walmart, what do you expect?!

SDE 1 and SDE 2 are simply the slaves working at a sweatshop. Some of my co-workers are hired without onsite interviews. They do some video chat and they are hired at Amazon. They don't even know how to write bash scripts. Our team used to have technical program managers who can't even write a Python script. With simple things like running a command line tool, he cuts a ticket and let the engineers do it.

The managers at Amazon pocket bonuses and don't give a damn. They don't carry pagers and when they do, they just page lower level employees. The only reason people take offers at Amazon is that they can't get better packages from Facebook/Google.

* I worked at AWS for 2 years.
12 story building, but he jumped from the 4th floor and hit a balcony midway down. Still resilient, but not the full impact imagined.
http://bankd.co/blog/1 is the actual article.
Thats why some states will scale the punitive measures to the wealth of the individual. $5000 might be terrible for you and I, but maybe that scales to $50M for a billionaire?
Samsung Electronics, Pushed by Investors, Will Consider Restructuring
can confirm 100% true. Awful place to learn and develop. Look elsewhere. Do some research.
I was interviewing for AWS, and it was a circus. Completely disorganized. However, I have to say, I enjoyed the parroting back of "the leadership principles" part. It was like being in the Soviet Union again and singing praises to the great party leaders. Very much worth wasting a day over it.

However my nephew didn't have such a fun time. He was working for one of their warehouses in Kentucky and they were ruthless to the workers like him. They had a snow storm, he got stuck in the snow and instead of being understanding they reprimanded him for it. He liked the pay but couldn't take the humiliating treatment, so he quit.
Yeah. Don't suppose anybody has the equivalent of an actual "cookbook"? It would be a great resource for helping to skill up product owners on A/B and multivariant testing when they don't have a math-heavy background.
Imposter Syndrome – Is This Psychological Phenomenon Undermining Your Success?
Any user action that you didn't have a test case for can provoke catastrophic UB that valgrind never saw, so catching most issues has almost no value. This is why every OS and every app I have ever used were always unreliable shit.
Hmm. /r/thinkpad doesn't seem to agree with you [1]. Did something change in the last 9 months? Whenever I look into thinkpad reviews it's always the same - crappy screen, more expensive than macbook when specced similarly, but expandable. And when it comes to touchpads I've yet to come past something that can compete with Apple's, even though they're now actively making them worse as well.

[1] https://www.reddit.com/r/thinkpad/comments/46jjdw/which_thin...
Small change by Western (or "Huawei boss") standards, but potentially a large amount of money by local standards -- this is a country where the average income per year is under $1000.

But the issue is that, even if this compensation is judged fair (and there's not a whole lot of incentive for the perp to be fair...), without the criminal charge there's effectively no deterrent against this happening again.

Incidentally, in Finland most fines (including speeding fines) are computed as units of income. So a millionaire is still incentivized not to speed, because they might get hit with a $100k fine: http://news.bbc.co.uk/2/hi/europe/1759791.stm
1)Yes. 2)I do not know.
How helpful is just being named on the paper? I've been working on a project for a year that just had its submission, not sure if I should try for good grad schools though or just target industry (Big4+Unicorn) instead.
Understanding the State of JavaScript Modules
Tl;dr - The creators made a startup version of Cards Against Humanity. $25 a pop.

Some cards include:

- How my startup failed and I discovered ________.

- A hockey stick chart.

- Getting acquired by Yahoo.

- Brogrammers

The FAQ is pretty entertaining too.
https://ncatlab.org/nlab/show/motivation+for+higher+differen...

Without category theory, certain generalizations of differential geometry would be virtually impossible to describe in any useful matter. These generalizations are extremely important for applications to physics and elucidate a lot of the fundamental structure of the classical theory. Furthermore, you get a much nicer theory when you consider higher geometric structures.

The power of category theory as foundations is that it lets you efficiently study the structure of a theory and how to modify that structure in principled ways.

Sure, the mathematician who is doing hard analysis probably does not care too much about category theory, but every mathematician being educated today knows at least a little category theory because it is the natural setting for certain key mathematical ideas, like cohomology.

In contrast, Set Theory is powerful but it doesn't organize mathematics the way logic/languagecategory theory does.
After the S&L crisis in the '80s, quite a few execs went to prison. The same should have happened after the latest crisis, but W's DOJ had reassigned all the fraud investigators in the FBI to anti-terrorism, and neither they nor Obama's assigned very many back. (As well as just not being willing to try to prosecute white-collar crime very hard – much rather get big headlines for big "settlements").
Amazon aims for total compensation, cash + stock.

So, the package for a typical SDE I will look like the following:

Salary: x
Starting bonus year 1: 0.2x
Starting bonus year 2: 0.15x

RSU grant is 0.6x, vesting 5/15/40/40 (4 years).

So when you add it up, assuming a constant stock price, you get:

Y1:1.23x
Y2:1.24x
Y3:1.24x
Y4:1.24x

So at a basic level the back loading of stock is just making up for the starting bonuses ending. Thinking more broadly, many employees get promoted within 2-3 years and the stock has generally gone up over time so the predictions after the 2 year mark aren't exactly set in stone.
Libertarian != Anarchist

This "faith in the law" is libertarianism's biggest weakness, and the reason why the older I've gotten, the more appealing anarchism has become. The ways we see the law working in this case, are just the ways that law actually works. Screw the little guy and protect the big man? A feature, not a bug!

The reasonable way to oppose unfairness is to actually oppose unfairness, not to imagine that some contingent and evolved phenomenon called "law" is going to magically give us what we want. If utopia comes and police are devoted only to the enforcement of contract, those entrusted with interpreting contracts will be our rulers. Those in power, will exercise power. This recursion can't be defined out of existence.
I've always found the pro-privacy argument "well let me see your email than" to be weak. But when someone responds to this "here, no problem" this indicates exactly what the problem is: Apathy.

A lack of privacy induces apathy. This is exactly what your friend responded from and acted upon. The better argument to start with, and one that counters apathy, is: I do not value privacy because I have many things to hide but rather because I have many things I value.
How to debug Wayland problems
Telecom Infrastructure Design
This idea really excites me. People and voters need to realize, there's a whole lot more at stake than just the length of your commute. Increasing transportation can greatly improve the housing situation, something desperately needed.

Being able to commute from longer distances vastly increases the pool of available employees as well as employers for job seekers, with the square of the distance increase. Hence 3X commute range increase could potentially increase the pool of applicants by 9x!
Kindle should be able to read pdf. If you don't mind me asking, which kindle version are you using?
Some places do 10/20/30/40. I think Snapchat is one of them, but I'm not 100%. My last employer was on this schedule. Left after 2 years, got 30%. Would not accept this sort of offer again.
> If you're the smarter one, you ought to be able to teach them and do a deal with them, despite their flaws.

While I agree with the premises, this is mostly not true in corporate environment. Most of the advice is ignored in favour of unrealistic goals which obviously are not met. But none the less it allows them to keep their jobs a little bit longer and when shit hits the fan, consultants gets blamed.

Toxicity of corporate environment is so unbelievably high.
I don't think you know what you're talking about. There was a voluntary recall prior to the CPSC action to improve the language on the warnings. Additionally, Buckyballs were never sold to toy stores, nor were they marketed as toys, nor were they allowed to be sold in the toy section of stores that carried other kinds of products.

I am not sure where you got the idea that the companies were trying to sell these thing to children. They never attempted to do that, and if they had they would be liable for millions in damages. They did everything they could to save their business and cooperated with the CPSC in every possible way.

Disclaimer: I am not directly involved with these companies but I am a freelancer who built and ran the Buckyballs website for almost four years.
The Brain, the Beautiful, and the Sublime (2016)
How to Execute a Data-Driven Approach to the Cloud
Those terms are insane.
Fedora 25 is best ever, you should try it. Now that then replaced X with Wayland it should become be ever more secure.
I mostly aced my math degree. The keys for me were:

1. Read and get a basic understanding of the material before lecture.

2. Attend every lecture and take notes very few if any notes. Most of what you need is in the book and math is about understanding. You cannot grok and write at the same time, and it's better to try to grok while an expert is explaining it to you.

3. Do a shitload of problems / proofs, depending on the class. Be honest with yourself when you don't fully understand something and stick with it until you do.

Math is different from other subjects, and you need to treat it that way.
Pay TV's Newest Innovation: Giving Users Control
This question comes up fairly regularly on HN. Here are a couple of old discussions that have some interesting perspectives:

- What are common mistakes that new or inexperienced managers make?

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

- What do technical managers do, anyway?

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

Here's a comment I made a few years ago in the "common mistakes" thread, which I still think is true:

https://news.ycombinator.com/item?id=7770321
Any research on how to disable AMD PSP.
oh hey an even more thoroughly government controlled media outlet. their reporting is so biased and so far politically left its embarrassing to listen to. fuck those guys
New Tryton release 4.2
The testimony seemed to me to have no purpose other than to put Stumpf "on trial"

Think about it. Who would benefit from putting a banker on public trial? I'll give you a guess, their initials are EW.
So, I totally agree with this but would like to know more, specifically, about why you believe it, to avoid talking past you. What are your specific concerns?
No. In fact, on regular gift cards these things are prohibited by law in some jurisdictions, including California.

http://www.dca.ca.gov/publications/legal_guides/s-11.shtml
Right now there are open implementations that have been taped out into chips and various open FPGA implementations, but nothing for sale. lowRISC seems like the most promising open RISC-V implementation for that.

http://riscv.org/
http://lowrisc.org/
I spent some number of years as a consultant helping startup founders do exactly that, and would be happy to chat directly about your situation -- email is in the profile if you're interested.

In terms of general must-have knowledge, I recommend reading "Drive" by Dan Pink, "Tribal Leadership" by Dave Logan, and "How To Make Sense Of Any Mess" by Abby Covert.
Mostly I'm implying that your argument doesn't hold weight. You don't throw someone in prison because if you don't there's a double standard with some other offence. You throw them in there because the crime they committed warranted it.

I'll play anyway for funzies though. First offence?

All 3 should be a non-bankruptable fine with a floor that also scales with historical earnings and wealth. I can't give specific numbers because I think it should be set at figures large enough to act as a suitable deterrent which I don't know and would need to research. Since in a scenario where I'm magically put in charge of the legal system I would have the means and incentive to do that research, I think that's fair on my part. Potentially some public shaming involving stocks and vegetable throwing depending on its cost effectiveness as a deterrent as well.

I imagine the fine amount would be far greater for the fraud though, which would help with the lack of proportionality.
Create Password Protected OneNote Document, Load and Saving of Notebook to Stream
...which is why for determining if something is unknown, you ask SQL...are you indeed NULL? And SQL should say 'true' or 'false'.

SQL null IS null
Apparently they estimate there will be a Raspberry Pi equivalent for RISC-V in about a year (whole talk worth watching):

https://youtu.be/QTYiH1Y5UV0?t=39m20s