skysight-inc/HackerNews huggingface dataset:
> the rep prefixed instructions for string operations

... are actually preferred over a hand-written vectorized loop on Ivy Bridge and up (see [1] section 3.7.7, "Enhanced REP MOVSB and STOSB operation (ERMSB)"). It's indicated by a CPUID feature flag bit (edit: grep for "erms" in /proc/cpuinfo to see this).

The reason is that microcode knows more about the dcache microachitecture, load/store units, special features (weak ordering with fence at end? [2]), etc., than you do, and can be specially optimized for the particular design. There's a slight cost to transitioning to microcode and back (to ordinary hardware-decoded instructions), of course, so for small operations it might not be a win.

The section cited above shows ERMSB as ~break-even vs. 128 bit AVX on Ivy Bridge from 128 bytes up to 2KB, and about 2% faster above that.

[1] Intel 64 and IA-32 Architectures Optimization Reference Manual (order #248966-026), April 2012. http://www.intel.com/content/dam/doc/manual/64-ia-32-archite...

[2] http://stackoverflow.com/questions/33480999/how-can-the-rep-...
There isn't really anything else -- if you look at a periodic table, you can see the next inert gas is Neon, but it is heavier than Nitrogen (which makes up most of the atmosphere).
I doubt that that model applies here.
I'm curious if you should use p at all. Unlike most other tags p doesn't not enclose block elements. So easy to break. Soooo many bugs related to starting with a paragraph, embedding something inside it, not realizing the content past whatever was embedded is no longer in any paragraph
As opposed to what? When discussing the existence of degrees in industry "CS degree" means Bachelor's 999 times out of 1,000.
http://www.cl.cam.ac.uk/~sd601/papers/mov.pdf
Depends (like most of these generalizations) on your college and teachers. I had two professors who hammered the point that the priorities are: clarity, correctness, and performance. In that order. Perhaps a bit dogmatic, but a useful idea.

We would often spend class time writing cleaner, simpler code after arriving at a correct answer.
Our Nearest Star Has a Planet, and These Are the Ways It Could Be Habitable
You can't ask a child's visual cortex to tell you anything about cats, either. But connect that visual recognition ai with something like Watson, and you have what you're looking for, no?
Of course it's relevant. I am certain that I am far from alone in expecting CPS to incorrectly take children more than 115/3.2 million = 0.0036% of the time, which means that even without knowing the exact percentage of the time that CPS is mistaken, I was convinced by those numbers that a random kid has a higher chance of being mistakenly taken by CPS than abducted by a stranger.

Are you telling me that even though you, like me, don't know the exact percentage of the time that CPS is mistaken, you expect it to be less that 0.0036%?
There's possibly a market for single serving condiments, or for a prison-safe condiment serving machine.

EDIT: Or a charity which distributes these.
paper: https://www.cl.cam.ac.uk/~sd601/papers/mov.pdf

compiler implementing it: https://github.com/xoreaxeaxeax/movfuscator

HN discussions of these links: https://news.ycombinator.com/item?id=6309631 (paper) and https://news.ycombinator.com/item?id=9751312 (compiler)
Well, I guess the Federal Government will just have to step in and underwrite the health insurance for millions of people who purchased new policies last year. Medicare should be able to handle the extra load, after some additional hiring and a tax increase to cover the costs. After the election, President Clinton will be happy to see her dream of a single payer system finally come to fruition.
3 दिनों में बदल जाएगी आपकी किस्मत I Learn Astrology in Hindi
Armies need resources; people are resources. So the argument isn't, "X is what the enemy wants," it's, "X allows the enemy to recruit more troops."

Thinking like chess -- you'd probably avoid moves that gave the opponent more pieces. Especially when those piece spawn by your king.
This is cool and all, but my question would be to what end? We can't know if there is water on it, life, or anything else about it really. We can't gauge it's atmosphere, it's 500 light years away so it's way too far to look at it. I guess it's cool to know that there are other planets the size of earth in a habitable zone, but with all the stars in all the galaxies, isn't it quite obvious that there would be some of these? Ok, so now we know there IS one at least, but now what?﻿
These are hilarious. I'm sure I'm not alone in saying some of them zipped right past me. E.g. "The Fellowship of Bacchus - P. Naur" - ???
Psychologist Uses Interactive Games to Help Children in Tajikistan Fight TB
According to official biographies, he was a child prodigy who mastered everything he ever came in contact with. He was also known to correct underlings who were domain experts, to demonstrate his superior understanding of all the issues -- rather like this Chinese CEO.
Java EE devotees plot to seize control from Oracle
Some choice excerpts from Williamson's wikipedia entry [0], and that of Raw Power (The Stooges' Bowie-produced third LP in 1973) [1]:

- Immediately following his graduation from Cal Poly Pomona, Williamson moved to Silicon Valley. For the next fifteen years, he worked for Advanced Micro Devices in San Jose, California, designing products around its chips. His coworkers never inquired about his earlier career as a rock musician; in a 2010 interview with Uncut, Williamson asserted that many of his colleagues were "nerds and geeks... they don't listen to The Stooges much." In 1997, he was hired as Sony's vice president of technical standards; in this capacity, he liaised with competitors and helped to codify nascent industry standards, most notably the Blu-ray Disc. [0]

- (...)Williamson's explosive and aggressive guitar playing on Raw Power has often been cited as a major influence on the emerging punk scene in the mid-seventies. Seminal indie pop guitarist Johnny Marr (The Smiths, Modest Mouse) has also lauded Williamson's abilities: "I'm his biggest fan. He has the technical ability of Jimmy Page without being as studious, and the swagger of Keith Richards without being sloppy. He's both demonic and intellectual, almost how you would imagine Darth Vader to sound if he was in a band." [0]

- Despite its weak initial reception, the reputation of Raw Power grew tremendously in subsequent years, and the album's volume and ferocity became benchmarks against which later albums were measured. Singer and guitarist Kurt Cobain of the band Nirvana wrote in his Journals numerous times that Raw Power was his favorite album of all time. In his list of the top 50 albums he thought were most influential to Nirvana's sound entered in his journal in 1993, "Raw Power" appears in the number one slot. [1]

[0] https://en.wikipedia.org/wiki/James_Williamson_(musician)

[1] https://en.wikipedia.org/wiki/Raw_Power
It's interesting to see the comments here on HN. It's like a compression of all the various things I've seen people talk about with martial arts. The same arguments, the same assumptions. There isn't really anything insightful. It tells me that as a society, we still have not figured out the role of martial arts.
'It's hard to make predictions, especially about the future.'

I only predict the future when I want to be wrong.
Your pro-liberty groups apparently didn't prevent America from becoming this racist nation. Take care of your black community instead of boasting about your moral superiority. We don't kill black people for the sake of it here.
Howdy all. I'm a member of the Technical Operations team at Eligible. I'm happy to answer any questions you may have and I'm sure other team mates are willing to do so as well.
Lots of different descriptions around this story:
"Damaged during flight"..."has been damaged after nosediving on landing"..."damage to its cockpit when it hit the ground"..."Collided with the ground"

But only one honest:
"The Air Accidents Investigation Branch has confirmed it is investigating the crash"

It crashed. During flight it collided with a fixed object (technically an "ollision") resulting in damage to the aircraft. On its second a test flight, the experimental aircraft crashed.
It's just the stereotype of the guy who got a black belt from some bullshido trainer: "Oh, I can't fight you, I'm too dangerous, my killer instincts and ninja training means I'd just rip your throat out immediately."
As an experienced developer who loves coding, how to sell myself to start ups?
Developing a disruptive technology, working in path breaking research teams, or being part of a kick-ass start-up, those are some jobs that would be my “dream”. So how I go about advertising my career aspirations ? How do I reach out to people who can help me reach my dream?
The important thing is to fully support first class functions - not the fact that they are anonymous - so I find it difficult to see how the lack of multiline anonymous functions is really a blow to functional Python

I think the argument against map and reduce was that there was better and more Pythonic ways to do both - not because they were 'too functional'.
Theres the legal theory and then there is the 100 years worth of experience with intelligence agencies, which is that they are mostly useless and will over time expand their influence and power and dig under the pillars of democracy.
> I'm not sure if rust targets that platform/arch combo

It's the PPC bit that's tough at the moment, we do provide tier 2 support for {free,net}BSD on x86_64.
Those are on their way to Firefox. I remember seeing them in someone's intern presentation this year. I'll try to dig up the video in a bit.
How big of a space telescope would we need to see this planet in any actual detail?

One of my sci-fi fantasies is to take a photo of an extrasolar planet and see someone else's city lights. :) Of course if we could see that we could also probably detect their radio emissions, but seeing someone else's lights would somehow be cooler.
Since P6, Intel's CPUs have used a RISC like core with a very heavy decoder that translates x86 CISC instructions to run on the internal ISA. With that in mind, do older or lesser used instructions actually perform poorly or are they just the wrong choice but actually preferred for other scenarios?
Tower Records spun off their Japan division and it is still going strong. Back at home, they declared bankruptcy closed all their US stores
Probably things like https://github.com/xoreaxeaxeax/movfuscator
But isn't our relevance a concept of our own design? We consider our works to be "achievements" because we tell ourselves they are - but I can't point to a single non-human entity that considers what we've managed an "achievement".

If we had autonomous vehicles would millions of people become irrelevant? Their "relevance" is solely constrained to trucking? Or are you projecting that "relevance" of people is constrained to their ability to work as a cog in your society?

I would love a future where so many pursuits are actively being consumed by computing that I can just enjoy a life of pursuing whatever I figured was interesting at the time. Where I wasn't constrained by work not because I was "irrelevant" but because the notion of needing work was.
If true, that's bad. If the site shows up again and this is still the case, we'll ban it.
Here is a paper and a mov only compiler.
http://www.cl.cam.ac.uk/~sd601/papers/mov.pdf, https://github.com/xoreaxeaxeax/movfuscator

PS: Found these links on hn.algolia.com, the HN threads are:
https://news.ycombinator.com/item?id=6309631
https://news.ycombinator.com/item?id=9751312
Baidu Takes FPGA Approach to Accelerating SQL at Scale
I don't think height is exactly equivalent because you can't affect your height and you don't have to put in work to maintain it. But in terms of how employers and potential partners judge you, then yes.
Professionals are taking microdoses of LSD before work
What if you just want to view the contents of input-file, unpaged. `<input-file` doesn't print anything unfortunately (curiously it doesn't error either).
And here's the paper describing the discovery: http://www.eso.org/public/archives/releases/sciencepapers/es...
Gawker’s Gone. Long Live Gawker
Yeah a simple word and I would have taken the post entirely differently :)
But that should validate the difficult politics of health care -- even in a country that gets it (mostly) right, it's because everyone has incorrect beliefs about what it actually does and how it actually controls costs.
While that is probably 'better' how in practice does it matter. SVG (esp with sprints) vs icon font are basically the same. Both are ways of embedding multiple vector images in one resource that you attribute meaning to using `title` attributes. In practice they will behave pretty much exactly the same.
In some cases it's garbage in, garbage out. They may have been terrible going into university and came out a little bit better. They scrape by barely passing and come out with a degree that is just as valuable as the person standing next to them with natural ability, drive, and passion who excelled through school. After all half the graduates are below average.
Does this mean I can donate my thousands of Kindle e-readers to developing nations as well?
What is “Immutable Infrastructure”?
As a student of UNIX history I find it interesting seeing some of these names (I've seen this article before). I'm curious where all these folks ended up, never saw Lorinda Cherry referenced much past this date although she was very active up until then.
Most Chromebooks don't cost the same price as macs.
So is just the x86 exception handing mechanism without actually executing any instructions.
Actually, I liked that it linked to mobile -- no paywall on mobile it seems.
A Habitable Planet Orbits Our Neighboring Star
One of the big benefits of HDR is made the 3D effect excellent. Zero eye strain, I didn't notice any ghosting effects, and overall it was a joy to watch.
I'm in my 30s and still climb trees with my close friends when nobody else is around to pass judgement. It's too much fun.
HP hit with age-discrimination suit claiming older workers purged
Certainly the BCD instructions are not used?
A simple google gives this https://www.cl.cam.ac.uk/~sd601/papers/mov.pdf
He is saying make the program spend less time computing. Thats what he means by not looking at every byte. The way he does that is by using more complicated algorithms. It's not simple.
I was going to post the same thing about satisfiability. The excerpt about the Y combinator is also misleading. There is no practical way in which the Y combinator "finds the fixed point of any function"; (Y cos) certainly does not magically evaluate to 0.793085.

I think books like this are a good idea, and having self-taught people write them is also a good idea. BUT it looks like this particular book is in serious need of quality control.

(Also it should be split up into several parts. Any book that teaches both the Y combinator and how to configure zsh is... weird.)
I wrote explicitly that this is a problem with CPython. I totally agree that this is not the problem of the language itself. Neither are the most of the points from the parent post(tooling, community, performance, error messages). Yet all that still greatly affects your experience with the language. Same applies to the default implementation. I think you would agree if I said that Sun(Oracle) JVM played an important role in Java adoption, wouldn't you? Unfortunately, it's not so easy to just switch to some other implementation of Python: PyPy uses GIL as well, IronPython and Jython don't but they are years behind the current version of the language. GIL is not a problem when you use libraries that handle concurrency natively(e.g. NumPy) but when you try to parallelize some computationally intensive algorithm written in Python you're probably going to hit the wall. I love Python but it's really not a one-size-fits-all tool.
It is _very_ useful when hand optimizing loops in assembly. But for the compiler, the newer processors have such incredible branch predictors it is usually a bad idea for the compiler assume a branch is poorly predicted.

Now if you are using profile guided optimizations (--prof-gen/prof-use) AND you use the processor's performance counters as part of the feedback to the compiler _then_ I could see the compiler correctly using this instruction.
Seven or eight levels, I would imagine.
DouweM, it is possible though to do this. Although a good seamless integration would require some extra work from our end. I've proposed this in an issue[1]. It is not planned though, at this time.

[1]https://gitlab.com/gitlab-org/gitlab-ce/issues/21251
Not the best solution - but the solution I've used in the past: `<a href="/" target="_blank" title="Facebook"><img class="sprite fb" src="/images/spacer.gif" alt="Text" background-image:url('/images/sprites.png')></a>`

I don't exactly like it but haven't come across a better solution.
For what it's worth, Fortune writer Dan Primack said on Twitter, "There is an amazing amount wrong with this ESPN piece on DraftKings/FanDuel. Awful." https://twitter.com/danprimack/status/768463010503467009

Then followed up: "ESPN and @DVNJr write that daily fantasy has 'imploded.' Really? Both leading players are still operating. [...] True neither FD nor DK are profitable. But they are young tech startups. Lack of profitability doesn't mean disaster at this stage" https://twitter.com/danprimack/status/768464361258098688
There are also very useful instructions that don't have semantics for most programming languages and have little or no use outside of booting a system. Like LGDT and some of the tricks to switch from real mode to protected mode.

What's maybe more curious, some instructions in certain modes aren't even implemented by some assemblers. I don't think it's entirely unusual to see hand crafted opcodes in an OS boot sequence. When the assembler doesn't do it, the compiler certainly isn't going to.
It deserves to be in the bookshelves. :)
I'll explain that one. In the 1970s Burge wrote a book "Recursive Programming Techniques" explaining cool things you can do with functional programming -- yes, a lot of that stuff goes back that far. Reynolds invented a functional language called Gedanken -- the paper was iirc 1972. (I don't remember if Burge used Gedanken in his book, or if it was just similar notation, both inspired by Landin. I think it was the latter and you couldn't actually run any of the code in the book.) The pun is about fluid mechanics and 'control flow'.
Aikido is a great art. The video you linked to is not anything to do with Aikido.
> Can you provide an example?

Gladly. Check the nested loop in [1]. That's exactly what I fought against (although that's not me asking that question). No other language AFAIK suffers from that issue.

[1] http://stackoverflow.com/questions/8097408/why-python-is-so-...
This is a great topic. Product managers like other roles come in different shapes and sizes. Some are great at strategy and some are stronger at execution. It's incredibly important to hire appropriately (based on team and need) and to set clear expectations on the product manager's role and impact. That said, what are the shared tools, methods and behaviors that all product managers should bring to work every day? Really interested to hear more on this.
lea's addressing mode arithmetic also doesn't wipe out any flags so it can be extremely useful for throwing in between arithmetic operations whose resulting flags you care about and the compare operation itself so as to obtain a greater degree of instruction level parallelism.
The Q1 2016 State of the Internet Security Report: What You Need to Know
Likely counterexample: GCC probably doesn't use AAA (ASCII Adjust after Addition). Or does it?
Careful. "Everyone" knows not to use DES, but lots of people still think Blowfish is OK. The problem is 64-bit blocks, not DES in particular.

There are related problems in CTR constructions, including modern stuff like AES-GCM (the number of bytes you need to encrypt is far bigger, but the security consequences are worse).
Most of the applications are heavily optimized for x86 processors for years. There are so many applications littered with intrinsics and x86 assembler coded blocks, algorithms are tuned for x86 and intel specific memory characteristics. Arm got some attention because of phones, but only in last few years.

Power8/9 are very decent processors with a lot of raw power, but it will take a more concentrated and long term effort to have a level playing field in the software landscape.
According to Wikipedia it's Google, Facebook, Amazon and Apple [1]. But I have also seen Microsoft substituted for Apple in other references.

[1] https://en.wikipedia.org/wiki/Big_Four
GCM has trouble after just 72PB, because of the way the initial block is divided between counter and IV.
And that response is why most of the skills you mentioned are not arts. They require some memorization but little mental effort. That is why boxers are paid more than MMA fighters there is less technique needed than artistic skill. Martial Arts are more focused on being a path for the whole of a person to interact with their world. And not simply to beat the piss out of it.
My question is if compilers use "new" x86 instructions, as then the program won't work at all on old systems.

For example, if Intel decided today that CPUs need a new "fast" hashing opcode (I don't know if they actually do), a compiler can't compiles to it, as programs won't work on older computers.

Is it like the API cruft in Android, where "new" Lollipop APIs are introduced for 10 years from now, when no one uses any phones from before 2014?
Eye of the Tiger
The idea that PPC was faster than x86 back in the PPC mac days is Apple hyperbole. There were a few occasions where the fastest PPC was faster than the fastest x86 available but they were far and few between and very slim. If all you looked at were the very carefully selected/tuned apple benchmarks you can be forgiven for thinking that (the photoshop filter benchmark using altivec comes to mind) there was a huge PPC advantage.

Here is a random google search for spec performance over time of assorted CPU arches.

http://preshing.com/20120208/a-look-back-at-single-threaded-...

The only obvious case in that graph where PPC>x86 is in mid 1995.

I can't find the one I saw a couple years ago detailing the core/clockrate comparisons of PPC's shipped in Macs with common PCs, that was much easier to read and far more obvious.
Hilarious.

"The Fellowship of Bacchus - P. Naur" is especially amusing as Backus and Naur were reputed to not get on.
The paywall being shown varies, and you can generally get around it by clicking the web link at the top.
This looks interesting but I got turned off by the site design -- there are too many self-help "gurus" out there who make promo materials that look just like this. Quotes on a book that isn't out yet, while plausible, is really kind of weird.
Wasted effort. Back in 1996 IBM did the exact same, laying off workers 50 and older in mass. A class action law suit was filed going all the way to the Supreme Court which ruled in IBM's favor sighting as long as all those age 50 years and over were being treated the same it was not age discrimination. The Fortune 2000 have been doing it ever since. Once kicked to the curb, most corporations won't hire them either for the same reasons unless they have very special skills.
An Intro to Templates in Go (pt 2) – Using Actions
Seriously, the author seems to have fairly limited knowledge of powershell.

A 13-line python script is presented, followed by a smug "you can almost hear the UNIX folks complain about how verbose the PowerShell version is".

First off, the provided Unix commands _don't work_ (should have used `sort -rn -k 2`), while the provided powershell, as verbose as it is, does work.

Second, the entire python script along with the wrapping unix commands is encapsulated with a powershell 1-liner:

cat ./names.txt | group | sort -d Count