Better HN
topnewbestaskshowjobs
Log inSign up

scialex

41 karma · joined Jul 9, 2012 (14y ago) · 11 submissions

Submissions

comment 11mo ago · link · parent

This sort of pattern can't be found by incremental lowering (and isn't common enough to have more sophisticated analysis written for it) so it ends up in a local maximum.

Basically the idea for most compilers is to do a series of transforms which incrementally improve the program (or at least make it worse in understood and reversible ways). To do this transform you need the optimizer to do the (not always trivial) proof that the 2*x is equivalent to x+y, do the replacement, do the gvn to duplicate the adds and finally do the branch elimination. Each of these steps is however totally separate from one another and the first one doesn't trigger since as far as it's concerned a shift left is faster than an add so why should it do the replacement.

This is all even more complicated since what representation is faster can depend on the target.

comment 1y ago · link · parent

They are hoping that those companies will become like synopsys and able to sell per seat subscriptions to their software for huge amounts.

That or they just drank the Kool aid

comment 1y ago · link · parent

I mean it's not much more unreasonable then the argument that iphones and android phones don't compete but courts bought that.

comment 2y ago · link · parent

The fact you can give things names means that there is rarely a need to follow the edges so the visualization is much less cluttered

comment 2y ago · link · parent

> Some of you may remember Google's much-hyped AI voice "Duplex," which was supposed to automate all those annoying phone calls and call centers. That was in 2018, six years ago. Since then, we've seen how it's turned out

Reasonably successfully?

Call screen is easily one of the best features of my phone. Call hold navigation is also really useful. It calling restaurants and the like is not something I commonly use but it works and I've used it sometimes.

comment 2y ago · link · parent

It's not. It's trying to access unmapped or protected memory in its own process.

Basically what its used for is to implement an 'if' that's super fast on the most likely path but super slow on the less likely path.

It's not super clear what its being used for (this is often used for the GC but the fact that graal isn't affected means that likely still works). Possibly they are using this to detect attempts to use inline-cache entries that have been deleted.

comment 2y ago · link · parent

YouTube, Google maps, Gmail ...

8.

Accelerating digital block design with Google’s open source XLS toolchain(antmicro.com ↗)

2 points · by scialex · 3y ago · discuss

comment 11y ago · link · parent

> what would be the "Rust way"?

I'm not sure there is one TBH.

comment 11y ago · link · parent

Thanks.

I believe HKT would have been useful but am not really sure how much HKT would have helped me overall. They would likely have been most useful (if at all) in the VFS/S5FS/VM stages that I was unable to fully get to.

Honestly, I have not used haskell enough to definitively say whether monads/arrows would have been useful.

comment 11y ago · link · parent

The actual kernel binary was smaller but the loader s limit was based on the amount of memory the kernel laid out in memory takes, including anonymous sections.

Also turning on optimizations in rust and the linker helped a lot but were not enough in the end.