1,005 karma · joined Mar 31, 2020 (6y ago) · 374 submissions
comment 4y ago · link · parent
Since per-panel data is available in the UI, it seems like information that Enlighten does track, it's just not made available via API.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#Dow...
They do use a lot of power (and as a result, generate a lot of heat), so they can still cause thermal throttling, or throttling due to power limits - but there's no more "AVX offset"
comment 4y ago · link · parent
Everything else you mentioned is out there, although I didn't love the websocket experience the one time I needed them for something.
comment 4y ago · link · parent
Just recently I had a need for a fairly simple webapp. Whipped up the back end in Rust in, like, an hour; only had to bolt on a couple tests for the single complex bit of business logic, because I have a high degree of confidence that the compiler has me covered for everything else.
Now it sits there quietly using 4.9 MiB of physical memory and 1.5 millicores on two of my servers, primarily serving a k8s healthcheck every couple seconds.
comment 4y ago · link · parent
Honestly, this is a really good way to put it, and that one minute rule sounds like a pretty good rule (ignoring cases where performance requirements led to profiling, which pointed you at some specific piece that you need to optimize, obviously)
comment 4y ago · link · parent
I don't really care whether or not nukes are cheap when they're the only reliable low-carbon energy source we have, and when they're the safest energy source we have. Some things are more fundamentally important than economics.
comment 4y ago · link · parent
This isn't really consistent with my experience. Compared to writing other languages with varying levels of strictness (C, Python, Go to name a few), Rust's compiler saves me a lot of time writing tests and finding bugs.
It doesn't save me the work of fixing them, but in my experience, bugs that are hard to find and easy to fix drastically outnumber bugs that are easy to find and hard to fix.
That said, I haven't tried Zig. It's on my radar, but just haven't had a new project to start lately.
comment 4y ago · link · parent
Each of these copies requires space for the instructions...this means a larger binary on disk, more memory required when it runs, and more pressure on the CPU's caches, especially precious L1I.
The cache pressure issue is typically the big one worth thinking about, although binary size itself can be an issue for some cases - I've primarily got embedded use cases in mind, but I'm sure there are others I'm not thinking of.
Anyway, back to cache pressure. If there are a whole bunch of different monomorphizations of a given function, and they're all called frequently, that could mean that the CPU will frequently need to refer to slower L2$, or much slower L3$ (or much much slower RAM) to load instructions. That's no bueno from a performance standpoint.
Because of this, there are cases when dynamic dispatch can outperform monomorphization - it's definitely not as simple as "vtable slower, monomorphization faster" across the board, even if that is an OK rule of thumb.
comment 4y ago · link · parent