skysight-inc/HackerNews huggingface dataset:
This is a uop cache issue. You can replace the entire body of the loop with some big NOPs as long as they are the same size as the existing instructions and see the same effect: as soon as the loop spans two different 64-byte (!! see my reply below) aligned blocks, performance goes down. This holds even for larger iteration count if your LSD is disabled by microcode: asymptotically the fast loop approaches 1 cycle/iteration and the slow one 2/cycles per iteration.

This happens because the uop cache (also known as DSB) can only deliver instructions from one cache set at a time, and 64-byte (??) blocks map to different sets (that is, the uop cache holds a totally opaque decoded format unrelated to the instruction encoding, but the cache organization still depends on the original instruction sizes and alignment in the binary).

So if your loop spans 2 different 64-byte blocks, it will never run faster than 2 cycles per iteration. Normally, this is unlikely to be a problem: the vast majority of loops take more than 2 cycles per iteration anyways, and so this won't be a bottleneck. Loops that do take 1 cycle have, by definition, only a few instructions, so they aren't that likely to span a 32-byte boundary. This loop happened to have very long VEX-encoded instructions with offsets and so took up 28 bytes, even though it's still capable in running in less than 2 cycles, so it's got nearly a 50/50 chance to span a 64-byte boundary...

Now in principle compilers should come to the rescue here, but they are still busy aligning loops to 16-byte boundaries, which is the old advice that applied to the pre-uop cache days. So with 16-byte alignment, you pretty much have a 75% chance of getting lucky: this means that the only the 64N + 48 alignment ends up crossing a 64B boundary,so as it turns out, 16-byte alignment is still better than nothing: with no loop alignment at all, a 28-byte function often cross a 64B boundary (about 42% of the time for randomly distributed starting bytes).

The various other alignment effects are second-order issues, such as splitting a macro-fused branch slowing things down, or just adjusting the number of nops that have be executed.
Six ways to find a new career
Most police are funded at the local or state government level. The police employed by the federal government still stay on the job they just won’t be paid until the situation is resolved.
Posting incomes publicly online reduces income inequality [pdf]
It's a new country launching a rocket though. That seems like reasonably big news to me.

Not front page, stop the press news, but still news.
Not only spot, but also invests the energy in calling it out and explaining it.

Many business failures i've witnessed happened ultimately because nobody had the energy to cut down the bullshit forest that constantly regrows around a company.
Oh yes, as long as the anti-patterns that emerge don't cause other bugs, they're OK; but some may lead to logical bugs. I'm not sure how likely that is, though- not enough history to go off of yet.

Rust is certainly a step in the right direction. I hope the toolchain and so forth end up in a state where all forms of users can love it, though; I have seem some reasonable opposition to including Rust in kernel code, and that sucks.
Developers are responsible for their own releases. We have a lot of tooling around our canaries that helps keep track of everything. A lot of stuff happens via chat; we have a chatbot that creates a channel for every canary, and invites everyone that has any code in the release (and interested parties that want to know whenever code is released to a certain platform). It tells the room whenever there are conflicts, and will say information about the canary as it progresses. You can also control the canary, advancing or reverting via commands in the channel.

Whoever is advancing the canary is responsible for checking the A-B graphs for any problems, and verifying that everything is working before advancing. The system will tell you if it sees issues, but it is up to the person who wrote the code to make sure things are good.
An SSD with the highest random-read/write IOPS you can afford. Something like this:

https://www.computerworld.com/article/2987956/solid-state-dr...

Or FusionIO ioDrive2 Duo, which is above 900K IOPS for both reads and writes.
Drugs are also some of the most fun things that a person can do on this planet
See also: https://en.wikipedia.org/wiki/Groupthink

From the article:

> Groupthink is a psychological phenomenon that occurs within a group of people in which the desire for harmony or conformity in the group results in an irrational or dysfunctional decision-making outcome. Group members try to minimize conflict and reach a consensus decision without critical evaluation of alternative viewpoints by actively suppressing dissenting viewpoints, and by isolating themselves from outside influences.
Thank you for clarifying - my immediate reaction was "oh shit, do we have warp drives now?"
Great analogy. I tried to paint my own flat. Was a disaster.
I find this article very frustrating. What do they even mean by "key members of the civilian workforce"? I wish they'd include examples of what kind of people aren't working. Since I have absolutely no connection to this industry, I have no way of understanding the impact of a government shutdown on the space industry. Why is it considered reasonable or unreasonable that they halt certain space-related activities due to a government shutdown?
Good luck working in anything software or hardware which isn't somehow involved with military technology.
Different solution: Just use the browser that came with the OS. Works perfectly in Safari.
It's a shutdown in almost all distribution of funds that consequently includes a prohibition on work by non-essential personnel; “department” in the federal government is a very large organization, and a much higher level of organization than the one at which the non-essential vs. essential distinction is made at.
Receive Spring Boot errors alerts via email using Logstash
Rust's problem is not correctness. The borrow checker is the good part of the language. It's feeping creaturism. The language started out as imperative, and then became semi-functional. It started out as thread-oriented, and now is acquiring "green threads"/coroutines/cooperative multitasking. The generics system and library started where C++ and Boost left off. The "trait" system was more "objects bad, must do something else" than an improved idea.

The Go guys knew when to stop. The Rust guys don't.
A TCP/IP stack isn't fundamentally faster for running in user- or kernelspace, but avoiding user/kernel transitions helps. So maximum-performance implementations that don't need to care about playing nice with others might be best off choosing one or the other and staying there; running in userland is then more convenient (but e.g. the TUX in-kernel webserver exists/existed.)

Mind you, most high-performance software doesn't need to go this far, and stuff like PF_RING / Linux' packet_mmap or "batched" systems calls like recvmmsg() (or even read()) further reduces the number userland/kernel transitions.
This isn't the case, he works for Amazon. Unless he also works for Intel but that seems unlikely.

Edit: Just to make this clearer you can see his email in the Signed-off-by of the patch under discussion: https://lkml.org/lkml/2018/1/20/163
Try to use the borrow checker of this decade to write callbacks in GUI frameworks, without polluting the code with Rc and RefCell, even though it is obvious there is only one path to the data being used.
Very cool game. Best score is 41 so far. Gave you a quick review and 5* rating in the Android store.
There is but it's from a limited selection of media and you can't know the identities of the reviewers and the set of reviewers changes all the time, as well as the set of available media. (I am talking of course, about Netflix.)
They check visually at the door to see if you took something you shouldn't. It's not airtight, but it's enough to prevent abuse.
This is actually a principal of Islam, to what I understand. Interest is against the doctrine [0]. I’m not Muslim, so I can’t speak to how well it’s followed.

[0] https://en.wikipedia.org/wiki/Riba
Have you tried to write GUI code in Rust?
What about youtube though? On websites where the video is the main content it should be autoplaying imho
Tried surfing last summer when I was at Bali. It was one of the best experiences of my life. In the next few days I also started scuba diving which I like even more.

It's a shame I currently live in a landlocked country.
Excellent resource with many study tips. As a high school student, it's hard to balance school, leisure, and code, and any sort of advice is appreciated.

In addition, I've found Cal Newport's blog both inspiring and also interesting, as he focuses on "hacks" to get higher quality studying for your time ("more bang for your buck")

Edit: Cal Newport's blog: http://calnewport.com/blog/

Edit 2: Another one of my sources of study inspiration is the MIT Challenge[1] by Scott H. Young. Not only does he finish an entire MIT CS undergrad curriculum, but does so in 1/4 the time, something that I wish to emulate once life permits.

[1]: https://www.scotthyoung.com/blog/myprojects/mit-challenge-2/
When letting the user put system into an invalid state is a desirable property
Episode 33 is my favorite
Go does not perform "extremely fast idiomatically". There are a lot of cases where replacing channels with semaphores or atomics, avoiding too many go routines etc. can lead to significantly better performance.

But Go does perform good enough if one uses simple idiomatic code style while making things relatively safe and maintainable. That is its huge advantage.
The vast majority of police in the USA are not federal police, only federal government workers, not state government workers, are affected by this.

Essential workers, such as military, are still required to turn up to work, they just don't get paid. It's not the US Government would stop wars just because they can't pay their bills.

Congress, funnily enough, is actually except from the shutdown and members of congress still get paid, which is a bit perverse in my eyes.

As for things like electricity, I assume they just put it all on credit, it's not like the government isn't going to pay the power companies when they finally approve the budget. I usually have a month after my power bill comes in to pay it.
Shameless plug - I run https://betterdev.link

I like a bunch of language from Go/Elixir/Clojure/Ruby/Elm and also work as a DevOps engineer so my links tend to be spread out between many language/stack with focus on infrastructure(Kubernetes, Docker, Security etc)

It kinds of my personal reading list that I put up and hope it deliver value to people.

The code is also open source: https://github.com/yeo/betterdev.link It also have an Elixir application(which I has not deploy yet) that allow peple to submit links and bookmark etc(frontend is in MithrilJS).

Let me know if you like it.
Look into the Rothschild family. They’ve profited greatly from wars over the centuries. This actually seems counterproductive to the point.

https://en.wikipedia.org/wiki/Rothschild_family#The_Napoleon...
There are many other similar projects, which may be of more or less interest / difficulty than the ships logs.

https://www.zooniverse.org/
The USPS isn't a government department though, it's an independent agency, that generates its own funds separate from the federal budget.
Teen Trades Virginity for iPhone, Things Turn Seriously Dark
> Neither of them have REPLs.

Sure they do, FOSS developers just don't look into the right places.

Already in the 90's there were companies selling C interpreters.

CERN created CINT and Cling for C++.

Microsoft has quite a good interactive debugger, and edit-and-continue, which is a kind of very poor man's REPL.
Thanks for pointing that out - I was under the impression he still worked for intel, before commenting I checked and all the top Google results suggested as much, I’ve corrected my comment.
You may like my own news letter https://betterdev.link

It isn't as good as cron weekly since it more like my own personal links, target to my taste(I like infrastructure and many programming languages).

Give it a try and let me know :)
This type of reasoning is completely out of place in the context of a developer having full control of the license they release their own code under.

There are literally hundreds of different software licenses. You can just pick the exact one that matches your ethical world view.

There is no reason to pick one that doesn't reflect your intent, then being a passive aggressive asshole about it when others follow the license as described.
Technically speaking, Angular 2.0 was released in sept 2016. So it is only 1.5 years old.
Space-X was supposed to be building their own launch facility in Brownsville, TX, and it was supposed to be open now, but it's still just a vacant lot. They brought in some tracking antennas and some dirt fill; that's it.[1]

[1] http://www.brownsvilleherald.com/news/local/spacex-progress-...
This is a misnomer. This hasn't been an issue since 1.0. Before then, the language designers specifically warned people that they were taking the time to learn what works together.

Lightweight threading isn't being re-added to the language. It might emerge from some of the asynchronous I/O work, but that's part of a third party library.
82% of Wealth Created in 2017 Went to the top 1%, says Oxfam
Couldn't you equally say that about games where everybody plays until the end after some arbitrary time limit is reached? Like uh football (of all kinds), basketball etc etc etc - most games/sports.
Watched the video on the page demoing the falcon heavy concept. The real pictures don’t have the water tower at the launch site like the concept video. Is there some reason the water tower was in the demo design but not the real thing ... — maybe the water tower is mobile and only in place during an actual launch? Or is this closer to a case where somebody thought the water tower would look cool so they put it in the demo video ...?
Fun tidbit: Three letter intelligence agencies have known about this attack vector since before this paper was published, and are worried it could be exploited in the wild.

https://www.theguardian.com/world/2013/aug/20/nsa-snowden-fi...

[British government officials] expressed fears that foreign governments, in particular Russia or China, could hack into the Guardian's IT network. But the Guardian explained the security surrounding the documents, which were held in isolation and not stored on any Guardian system.

However, in a subsequent meeting, an intelligence agency expert argued that the material was still vulnerable. He said by way of example that if there was a plastic cup in the room where the work was being carried out foreign agents could train a laser on it to pick up the vibrations of what was being said. Vibrations on windows could similarly be monitored remotely by laser.
There's lots of shutdown primers in major media sites right now; here's one decent one: http://www.politifact.com/truth-o-meter/article/2018/jan/19/...
Certainly. But that sort aren’t the kind who intimate something like that in private. Everybody knows what they think of themselves. And in some cases they know what I think of them too.

I’ve been indispensable before. It’s a great feeling if you don’t know any better. But there are other ways to be indispensable besides holding all the important bits in your head and refusing to share it.
Why doesn't Intel just go to Linus and ask politely: "Ok, we f-ed up, here is a million dollars (or whatever, 10x his normal salary or something) can you please work with us tightly for some time? Thank you."

I would really respect Intel if they would.
Wish I'd noticed before that about 90% of the sentences I quoted at the top are crap! They got the name right and the number.. apart from that, nothing.
Super Train Driving Simulator 2k18
Get ready to drive the fast Super train simulator where you play as train driver and collect checkpoints carefully in the Super Train Driving Simulator 2k18 games. Super Train Simulator is the latest cutting edge train simulator that will allow you to become the best train driver in beautiful town. Drive the beautiful train carefully and don’t hit the traffic vehicles otherwise you lose your life in this driving simulator.
Whoever changed the title managed to make it less clear. With "Linus" in the title it was clear that it was Linux.
The most striking thing here is that Linus has apparently dismissed incompetence as a rational explanation. Yes, he is often brash, but usually he is accusing someone of sheer stupidity. He does not do that here. Linus alleges that we are being lied to - that we don’t know the full story, nor Intel’s motives.

Furthermore, we are left to wonder if Microsoft is also being fed “bullshit” patches, and if they may be less discerning than Linus regarding a proper solution.
I have been volunteering in a group to teach children from low-income family Math and English. I found out some kids are struggling to simple math like addition and subtraction (since they rely too much on their fingers to do the math). so I created Math Jutsu to help them familiarize with mental calculation. Hope this will help others as well.
Well, Torvalds has been heard from, along with Bloomberg and The Economist, as saying that Intel is in denial about this being a big, big problem.
Ten More Things I Wish I’d Known About Bash
Ah right, that makes sense. Thanks!
Thanks, mate. Really appreciate the rating.
Right, but the complexity the author complains about is then not on the individual services’ developer teams.
2018 foreign profit repatriation is a $592Bn taxpayer ripoff
That's a store selling food for public consumption. Stocking the shelves with old containers seems like it might carry some health risk? Or Amazon might not be very happy about what you are doing to the image of their store (and they'll know who you are because of the cameras.) Seems like a big risk to take to save a few dollars on lunch.
One thing to understand about the US is that it is actually a federation of states. Much of the day-to-day work happens at the state or local level, not at the federal level. Police, fire departments, emergency first responders mostly employed at that level, and when the federal government is involved, a lot of it is in doing some coordination between states, setting standards, funding for various programs, and so on. Even things like building interstate highways, which are funded by the federal government, are generally done by allocation to the state governments to actually construct them.

However, the military is entirely part of the federal government, as are many other organizations. In the case of not having a budget, the government is required to shut down all functions that are not essential for safety and security. So things like the military, the TSA, and so on can continue to function, but office workers doing jobs like allocating the funding for highway construction are furloughed, put on temporary unpaid leave from their jobs.

This is, of course, terrible for the efficient functioning of government; when the impasse is over, they will have to come back to their jobs and try to catch up. Oh, and in the time leading up to the shutdown, many of them would have been busy preparing for the shutdown, documenting which functions would be considered essential and thus able to continue during the shutdown; because the deadline was no surprise, and there had been many temporary funding bills leading up to this point, there was always a pretty high chance that this shutdown would happen.

Of course, this inefficiency plays well into the politics of one of the parties, who hold a religious belief that private enterprise is always more efficient than government, and so playing games like this that increase its inefficiency help to sell their case and get government functions sold off to private enterprise, who just so happen, in so many cases, to be some of the largest donors to campaigns of this particular party.
It's mostly federal services that will close. Like national park etc.
> Higher levels of abstraction makes it easier to get something up and running fast

More layers of indirection in a system and more dependencies on external libraries and tooling does not necessarily get you any abstractions. To take a contemporary example, there is no "abstraction" in being driven to use Docker because your dependencies have gotten unmanageable otherwise.
I've actually done this in a lab with a laser - it's a fun trick. What the original article talks about though is passively measuring sound from objects using a camera - no laser. Although they're measuring the same thing (physical vibrations of objects) the way they're doing it is actually quite different.
There is no such thing as "microservices", it's just services, otherwise known as a service-oriented architecture (SOA). A service is a logical grouping of functionality as it makes sense in your business domain. A small service for a large company can be bigger than the entire product of a startup; there is no standard unit of measure.

Computers also don't care how code is deployed and different services can be bounded by classes, or namespaces, or assemblies, or packages, or processes, or completely separate APIs reached over the internet on the other side of the planet.

Microservices can perhaps be defined as more of a deployment model but even then it's 99% about the team and organization structure. As companies get larger, there is a trend towards smaller teams in charge of separate functionalities that create, deploy, and operate their own service. This can be effective in managing complexity and creating efficiency, although definitely not absolutely necessary.

All that being said, outside of the major software companies, I have seen exactly 0 uses of microservices where the benefits were worth the effort, if any benefits even appeared at all.
> Linus having issues with a patch is, well, not particularly newsworthy.

Why not? The lead engineer of the linux kernel project has specific issues with security patches from a major hardware vendor.

I understand the constant distaste that some users here have with Linus' style, but I don't understand the constant need to denigrate his positions by attempting to paint them as particularly diminutive.
Laser vibrometers are neat. They can also be used to sniff keystrokes remotely by pointing them at a laptop lid. Research also released before this paper.[1]

[1]https://www.youtube.com/watch?v=xKSq9efXmh8
Chromaticity and Chrominance in Color Definition [pdf]
Well, for one thing, modern CPUs aren't microcoded much. Real microcoded CPUs went out with the 1980s. The microcode in today's fast CPUs is mostly initialization, and maybe emulation support for some instructions nobody uses any more, like decimal arithmetic or 16-bit mode. The microcode can maybe turn some stuff off and tweak some tuning parameters. Anyone know what Intel's "fixes" really do?