539 karma · joined Mar 11, 2016 (10y ago) · 275 submissions
comment 3mo ago · link · parent
When one provides the full effect of the operation in the source code, a properly ported compiler backend should be able to spot the pattern and emit the instructions with matching non-C semantics. (Typically, saturated operations are a very low hanging fruit.)
That doesn't always work because the optimization passes targeting local optimum break these patterns while "optimizing" them, so they arrive to the instruction emitter unrecognizable. And these passes, living in the generic "good-for-all" area of the compiler core, cannot be made aware of what a particular target does or doesn't support. So ironically, such instructions appear more when the optimizations are disabled.
Intrinsics emit internal representation forms that optimization passes don't dare to touch.
comment 1y ago · link · parent
Look up the section for Anatoly Dyatlov
comment 1y ago · link · parent
The author, rather unfortunately, focuses primarily on the predation from the "generalized colleague", and that wasn't welcomed by many commenters, possibly because people in big-tech tend to be young and do need help, so have to ask for it.
But the way I see it, the predation is institutionalized in big companies.
-- The Intellectual Property department blocking the entire R&D of the entire product division for the whole day, to give a presentation on how to file a patent. Knowing full well that only a dozen of these people will every do, at best.
-- IT dept locking down everything, because, you know, there are risks and we don't want to take it. Doesn't matter if it slows down everyone else everywhere.
-- "Security" disabling access to slightest technical information, because, you know, someone could steal it. Just ask and you'll have access. (How does one asks for something one doesn't know exists?)
-- Purchasing that shortlists only some contracting shops and not accepting any others. Doesn't matter if the shortlisted one don't "carry" the competence (e.g., try EMC specialists).
All these people consider that as their achievements and are not shy about it when yearly appraisal comes. We all work as one team aren't we? And then comes the day of layoffs. One reason of it being that the R&D hasn't been performant enough. Guess what, we aren't so much of one team anymore.
comment 2y ago · link · parent
See also: <https://en.wikipedia.org/wiki/Paris_syndrome>
comment 3y ago · link · parent
I think you are arguing for the right cause but with wrong arguments. In C language, not understanding in details what exactly the code does, can be just as disastrous as in Verilog. Internet examples abound.
comment 4y ago · link · parent
When I think that in my industry, good mastership of C++ is, what, 30% of what it takes... Throw in real-time design principles and a few different kernels, several CPU architectures, unavoidable Linux and a one or two build systems (Yocto anyone?). And only then comes the real problem domain, communications protocol stacks or image-processing algos, or what have you.
comment 5y ago · link · parent
I use that a lot in constexpr computations -- to stop the compilation, I usually do 'throw __LINE__'.
-- Using a more complex type is not warranted -- there is no catching end in constexpr.
-- And in case the same routine ends up called non-constexpr, it will be easy to identify the place that called 'throw' -- line numbers are unique without additional effort. Just don't put two throws on the same line.
comment 5y ago · link · parent
"Empirical Study of Power Consumption of x86-64 Instruction Decoder"
https://www.usenix.org/system/files/conference/cooldc16/cool...
From the conclusion:
"The result demonstrates that the decoders consume between 3% and 10% of the total processor package power in our benchmarks. The power consumed by the decoders is small compared with other components such as the L2 cache, which consumed 22% of package power in benchmark #1. We conclude that switching to a different instruction set would save only a small amount of power since the instruction decoder cannot be eliminated completely in modern processors."
comment 5y ago · link · parent
Mmmm .. maybe in this specific case (didn't look). But if you meant this as general advice, then one should keep in mind that unsigned overflows are specified but signed overflow is UB (barring maybe the very latest version of C standard); because of that, unsigned division in many cases is trivially optimised to less complex ops, etc.
There are many advantages in using unsigned.
comment 5y ago · link · parent
> ... the low work ethic .. (I exaggerate, slightly).
is a very wide-sweeping generalization which insults many of us.
Why is it that, every time someone complains about "low work ethics", the underlying context is always "my employees don't want to spend mad hours working on my idea for the compensation I think should be fair for them"?
Work ethics goes both ways BTW, and your "glory to firing someone with less than six months notice" doesn't sit square with me. "firing" is terminating for serious misconduct, notice is not due. I assume you meant laying off for economical reasons. So you want exemplary work ethics from the employees, and then quickly get rid of them when you think you don't need them anymore, did I get that right?
comment 5y ago · link · parent
Maybe you did run in to it but haven't mentioned, or maybe 5 years is not enough to see it -- have you noticed that a big part of the "remote culture" that few know how to build, is proper recognition of remote workers in the mixed- or dominantly-office- teams?
Those CEOs are perfectly aware that your life quality is higher than theirs on a much lower income, they know full well you are not going away anytime soon...
comment 5y ago · link · parent
It is just that it feels hopeless either way: companies who strip it down bare to what the employed work really is -- a wolf-pack hunting together -- don't feel that great, and the opposite, pretending that we all are in the middle of a nice cozy great-place-to-work -- gets down on nerves after some point too.
The only solution, switch jobs regularly by all means. Play the national lottery.
comment 5y ago · link · parent
This is for everyone, workers and management.
True, people maybe feel more entitled. But I think we also are getting introduced to a phenomenon new since 2001 -- having a solid "living wage" (which Trubune says noting else replaces), but burning out repeatedly, hating the job but being unable to quit, as providing for family takes more now than it used to in 2001, too.
comment 5y ago · link · parent
https://rusneb.ru/catalog/000224_000128_0000488231_19751015_...
-- click on "Skachat' PDF" (second from the top on the left). Unfortunately it is in Russian, not sure whether English translation exists.
This patent seems only for (X,Y) coordinate capture, but the same authors later worked on 3D setups as well.
EDIT: let me know if you need help with translation
comment 5y ago · link · parent
[didn't read your article, your claim has put me off, sorry]
-- use an electric spark gap as the wideband acoustic source
-- use 3 simple electret mikes on 3 axes. Mikes don't need to be high quality (spark intensity can always be raised as necessary), so they were hand-assembled using metallised mylar film (used nowadays to pack some food, or ESD-sensitive electronics components).
The rest was data processing.