Better HN
topnewbestaskshowjobs
Log inSign up

mcronce

1,005 karma · joined Mar 31, 2020 (6y ago) · 374 submissions

Submissions

comment 4y ago · link · parent

When last I checked (and contacted support :)), there was no way to get per-panel generation data from the API. It's been, like, at least a year, but if it hasn't already been added, that'd be a thing I'd love to see so I can integrate it with the monitoring/alerting I already have setup.

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

I have nothing to add, but I'm using IQ7+s on the roof. It's grid-tied, but they've consistently worked great, and Enlighten's API is shockingly (pun intended) nice to use.

comment 4y ago · link · parent

Also, 0.1ns would be a single clock cycle at 10GHz

comment 4y ago · link · parent

I would also bet that getting the game to perform the exact same series of allocations would be an intractable problem to solve. I don't think Doom 3 has a benchmark mode; the author just recorded themselves loading the game, loading a level, doing a bit of gameplay, etc.

comment 4y ago · link · parent

I agree. It's not like there aren't plenty of improvements to be made, but I write a lot of async Rust and the limitations (which are well enumerated elsewhere in the comments) just aren't really an issue for what I do.

comment 4y ago · link · parent

I'm with you. Ignoring the inconvenience of sorting through junk mail every day, just thinking about the energy required to move all that trash to people's mailboxes, only to then be thrown in the trash and moved to a landfill, makes me itchy.

comment 4y ago · link · parent

They recently-ish lifted the restriction on only replying/voting in threads 6 months and younger - I'm not sure if that also applies to editing, though, nor how far back it goes

comment 4y ago · link · parent

The default AVX offset for Ice Lake is indeed only 100MHz (and it doesn't exist starting with Rocket Lake), but 512b SIMD instructions use a lot of power, and as a result generate a lot of heat - so they certainly can cause thermal throttling or throttling due to power limits

comment 4y ago · link · parent

Not for recent hardware - Ice Lake eliminated the throttling on 256b ops (they already didn't exist for certain 256b ops and all smaller ops), and reduced the throttling to almost nothing for 512b ops. Rocket Lake eliminated the throttling for 512b ops.

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

Sure, obviously you can generate strings containing HTML and send those. I'm imagining something like the serverside rendering you get with e.g. React. That said, I don't know what specifically the previous poster was looking for.

comment 4y ago · link · parent

Nope, as far as I know there's no serverside HTML generation crate. Granted, I haven't looked, but I feel like it would have come up on /r/Rust sometime.

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

Better suited in what way? I've written HTTP APIs in all of the above - plus Python and PHP - and choose Rust for new ones 99% of the time.

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

> I can see how it might be easy to get nerd-sniped trying to get rid of every last allocation

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

That's what tokio does under the hood.

comment 4y ago · link · parent

On the subject of phones with keyboards, I miss sliders :(

comment 4y ago · link · parent

Hand-waving away the transmission/storage required to make intermittent energy sources "reliable" does not magically make them trivial, or even solved, problems.

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

I recall one with the CPU socket on the back of the board, maybe that's what you're thinking of? IIRC both LTT and GN did videos about it

comment 4y ago · link · parent

It also removes a big chunk of metal and fans taking up space on your motherboard, covering other slots. It adds complexity, not really sure what the "overhead" here is that you're referring to.

comment 4y ago · link · parent

> rust also incurs a non-negligible ongoing productivity cost for its complexity

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

When you ("you" in this comment is probably most usefully read as "a compiler" :) ) monomorphize a generic function or data structure with the various type parameters that it's been called with, you make a copy of the code for every set of type parameters it's been called with.

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

I was thinking as I read that comment that it seemed unlikely you would not only (1) attempt to use companies' logos without their permission and without accurately representing the relationship, but also (2) get away with it

comment 4y ago · link · parent

This seems to have worked pretty well with the "core return" system on used 12V batteries for ICE vehicles. Even with a pretty small (usually $15-20 in my experience) financial incentive, people do tend to bring them in.

comment 4y ago · link · parent

> the costs of the backup generators and batteries

Just to put an extra-fine point on this...the backup generators are typically fossil fuel fired, so the unpaid externalities apply to those as well.

comment 4y ago · link · parent

I've only ever seen OKRs attempt to be used by ineffective management who want to reduce everything, people included, to a number.

comment 4y ago · link · parent

Yep - I never really have an issue with a safety razor. At least, not on my face...the one time I tried to shave my head with it I looked like some shit out of Hellraiser until I showered haha

comment 4y ago · link · parent

Having used both, one is no more "brainless" than the other. It's the same shaving process. The only difference is cost.

comment 4y ago · link · parent

Also, in what universe are those expensive multi-blade razors faster or more convenient than a safety razor with a Feather blade?

comment 4y ago · link · parent

I use Rust for just about everything and I can definitely think of plenty of warts, but none of them make it "not quite ready for serious work" for my definitions of "serious work". I guess my point is that I'm curious what serious work this user is doing that Rust is unsuitable for - that kind of information is useful for language evolution, among other things.

comment 4y ago · link · parent

In practice, it's been a pretty common problem at organizations I've worked in.
1
8910
13