Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 7y ago · link · parent

Regarding strlcpy and co https://developers.redhat.com/blog/2019/08/12/efficient-stri...

comment 7y ago · link · parent

Reminder that DropBox now uses a background web server instead of a native interface for their bare minimum client.

comment 7y ago · link · parent

I don’t know what I was thinking. I completely misread and didn’t sanity check the numbers.

comment 7y ago · link · parent

Well, yes. I guess it depends on the context but I suppose you’re right since when you’re sending or receiving data that fast, you likely are going point-to-point and not switching/routing it, meaning you’ll end up mostly doing more of one than the other.

comment 7y ago · link · parent

The standards get ratified years (literally) before the first implementations ship out, but note that PCIe 6.0 is already slated to provide 4 TB/s in a x16 slot.

TBH, I’m kind of surprised x32 didn’t happen in the time between PCIe 3.0 and 4.0 (or maybe it did and I just didn’t hear about it), as there are now “plenty” of enterprise-class chips that have sufficient lanes to make it feasible to saturate such a pipe, although I’m guessing custom silicon already makes sense at that level of specialization where you can do x32 if you want to without waiting on a formalized interface.

comment 7y ago · link · parent

That’s not the worst for sure. Now not packing a proper italicized version leaving the text renderer to draw each glyph at an angle to make oblique text (which is the difference between oblique and italic) for a truly hideous result.

comment 7y ago · link · parent

Or “mostly” ;)

comment 7y ago · link · parent

It’s there but it isn’t guaranteed nor part of the sales contract.

comment 7y ago · link · parent

I’m much more interested in the wording of “in the ordinary course,” which I don’t think is just a quirk of the language and I believe it is an indication that certain differing measures can take place after being compelled to provide information.

comment 7y ago · link · parent

That’s not what the quote said. It was “that he might have something in common with a friend or brother of the crowd,” which I took to mean that “they thought he might share their sexual proclivities.”

comment 7y ago · link · parent

It’s not rape if they were aroused by it, right?

(Once upon a time I wouldn’t have needed to put a /s here.)

comment 7y ago · link · parent

The author has an axe of gargantuan proportions to grind. The whole piece is trash and incredibly sanctimoniously written. A huge shame given that it contains many historical and linguistic nuggets.

comment 7y ago · link · parent

> The Fugates he treated ingested this dye and within a few minutes, the blue coloration of their skin disappeared, and their skin turned pink.

Really? Within a few minutes??

Nitpick aside, such an interesting article! The world is such a big and interesting place!

comment 7y ago · link · parent

The API hasn’t changed, and remains backwards compatible. However it has been annotated, so that when targeting it with a compiler configured to validate/verify nullability you get a better (read: safer) experience. It can configured as an error or a warning.

MS does this sort of thing a good amount, preserving backwards compatibility but enhancing the experience.

comment 7y ago · link · parent

To be clear, this has nothing to do with .NET Core 3.0 but rather is a feature of C# 8.0, which depends on compiler support that can be targeted to any previous version of .NET Core or Framework, all the way back to Framework 2.0 (tested myself, although MS says not to target 2.0 or 3.5).

comment 7y ago · link · parent

You only need one result (the latest) at any given time, so you allocate room before your loop, set an atomic indicating that a calculation is in progress, then have exclusive rw access to that memory.

It’s a really old trick, lots of unixy APIs returning strings or objects that you are not expected to free do a similar thing (function local static variables to storing results) at the cost of not being thread-safe.

comment 7y ago · link · parent

It depends on the constants. This one doesn’t look retrievable.

comment 7y ago · link · parent

They can’t even get their phone batteries to last a full day because they’ll continue to prioritize form over function.

I had several smartphones I didn’t need to charge more than every other day or even every three days if I wasn’t using them nonstop. Apple could do that today.

comment 7y ago · link · parent

Yes, when measured at surface levels, but I believe that, unlike CO2, methane is extremely concentrated within a region of the stratosphere (being significantly lighter than CO2 and O2); it’s not hard to imagine strategically placed sequestration “facilities” being able to get to it better. But I’m on my phone and it’s hard to find out what the max ppm at the elevations it is most concentrated at are.

https://en.m.wikipedia.org/wiki/Atmospheric_methane#/media/F...

comment 7y ago · link · parent

We’ve mainly been focused on carbon sequestration directly aimed at capturing atmospheric CO2, but ton-for-ton, methane isn’t significantly worse for climate change. I’m not aware of any ongoing (research, even) efforts for sequestering methane, does anyone know?

(As opposed to research into reductions which is also An extremely worthy cause (better to prevent 1 ton of methane than to sequester anywhere from 20 to 80 tons of CO2), although it seems no one is interested in any follow through. We’ve pretty much definitively identified a fairly low cost path forward to significantly reduce worldwide methane outputs related to food production by simply tweaking bovine diets, but it seems no one cares to actually implement it.)

comment 7y ago · link · parent

It’s a runaway reaction with a positive feedback loop feeding into itself. Current scientific opinion is that within a certain range, increases in temperature caused by CO2 emissions can trigger a negative feedback loop but beyond a certain horizon (which we passed long ago) and up to the point of a doomsday scenario, the warmer it gets the more it causes secondary results that directly contribute to accelerating CO2 and methane emissions. Melting of permafrost being a chief source of the latter, in this case.

comment 7y ago · link · parent

That’s very high and noble but look at France and les Gilets jaunes. Even voting in people willing to bite the bullet and pull the trigger on much needed actions is not enough.

And that’s a shame because the general consensus is that in terms of effectiveness (i.e. not accounting for economic fallout), simply directly taxing CO2 emissions at “only” $60-100 per metric ton would work instant miracles.

comment 7y ago · link · parent

I wish it were that simple. It’s truly a global economy and between the spike in oil prices, the looming brexit/not-brexit, the US-China trade war, and everything else, I think it’s all one big cluster%]+} and it doesn’t make a difference which of the two currencies you store your money in, long term.

comment 7y ago · link · parent

That’s nothing new, though. If you have a memcmp that isn’t memcmp (and don’t explicitly call a lib-provided memcmp anywhere) and build without libc, your memcmp will incorrectly be used, too.

MSVC is even more notorious for this kind of issue, silently adding a number of function calls it assumes the standard library will provide even when your code doesn’t use the standard library at all.

comment 7y ago · link · parent

I want to say Intel was advertising compiling the kernel with ICC around 2009 or so. (ICC and I parted ways around 2010).

comment 7y ago · link · parent

Yes, and that would be accounting for the wrong thing. Battery life can be stretched out with user hostile things like lowering the brightness to two-digit nits and disabling all background tasks, none of which really help gauge the efficiency.

In fact, what mobile device manufacturers have learned is that the best way to save power is to ramp up power to complete a non-IO task in as little time as possible then go back to a lower TDP as that is where peak efficiency (rather than minimal consumption) lies.

comment 7y ago · link · parent

Sorry, I missed that in the discussion. Thanks.

I’m willing to bet if the stack enforced tighter tolerances for modern non-rotating disks, manufacturers wouldn’t be able to slip such shoddy firmwares into production.

comment 7y ago · link · parent

I think you misunderstood. I was saying in a typical stack, time from POST to desktop is significantly overshadowed by userland bloat, not that Clear kernel is not worth the optimization.

comment 7y ago · link · parent

I’m not aware of anything other than a MacBook or some micro ultra books that do that because they try to keep the power brick size down. Any device with a user-removable battery should be able to do that, provided you’re using an adapter that provides sufficient current.
1
143144145
277