Hacker Newsnew | past | comments | ask | show | jobs | submit | shaggie76's commentslogin

While I'm a fan of unsigned (size_t mostly) there have been a few times when the tax for converting them to float was shockingly high:

https://godbolt.org/z/96T4jTshc

1-2 instructions for signed vs 11 including a branch for unsigned.

(in times like these I found casting to signed first preferable)


That's a GCC skill issue. You can do it in five branchless instructions for unsigned by splitting the unsigned up in two 32-bit halves, converting those to floats simply by inserting their values as mantissa into constants 2^52 and 2^(52 + 32). This conversion is exact.

Then to finish the conversion you subtract 2^52 and 2^(52 + 32) respectively from the halves and add them together.

    vmovq       xmm0, rdi
    vpunpckldq  xmm0, xmm0, xmmword ptr [rip + .CONST1]
    vsubpd      xmm0, xmm0, xmmword ptr [rip + .CONST2]
    vshufpd     xmm1, xmm0, xmm0, 1
    vaddsd      xmm0, xmm1, xmm0
Here CONST1 = [0x43300000, 0x45300000, 0, 0] and CONST2 = [0, 0x43300000, 0, 0x45300000].

ICC profiles present a similar problem and remarkably Instagram, ostensibly a photo-sharing web-site, does not respect them when scaling images (or at least it didn't a few years ago when I started posting photos to it from my PC); when I uploaded full-resolution SLR-resolution originals the skin-tones would get all screwed up. If I exported at the final resolution, even with the same ICC profile, they were fine.


Not only is LEA more flexible I believe it's preferred to SHL even for simple operations because it doesn't modify the flags register which can make it easier to schedule.


It's more about the non-destructive destination part, which can avoid a move. Compilers tend to prefer SHL/SAL of LEA because its encoding is shorter: https://godbolt.org/z/9Tsq3hKnY


shlx doesn't alter the flag register.


SHLX does not support an immediate operand. Non-destructive shifts with immediate operands only arrive with APX, where they are among the most commonly used instructions (besides paired pushes/pops).


His point is well taken but I find the reverse helpful when you're shooting in some sort of official capacity: subjects are willing to put up with a lot more fuss and bother when staring down the barrel of a girthy lens.


We've quite enjoyed Linode (Akamai) for some custom servers (not http) over the last few years because they include DDOS scrubbing; it's not clear to what extent they'll defend us but our last partner would routinely null-route our servers when attacked and we haven't had any problems since we switched.


Evidently it's not all Steam Deck either; I checked our internal stats and on PC yesterday 1.24% of Warframe players were using WINE and another 0.76% were playing on Deck!


Just want to say that a decade ago Warframe was the first game I ever played on WINE when I was first learning Linux in school. If it hadn't been so friendly and easy to keep playing I wouldn't have the skills and job I do today. Thank you!


Cool! I have fond memories of playing Warframe on Linux with my 1050ti ~5 years ago.

Kudos to the team for keeping us in the loop, I apologize for the strange crashlogs my OOM killer sent.


I’ll never forget a rep from Warframe joined the teamspeak server I was in for a Planetside 2 group back in 2012 to pitch us on playing the game. :)


Coming from PS1, I am still waiting on PlanetSide 3 :(


My first thought was this blog article I saw on HN a while back:

https://lukeplant.me.uk/blog/posts/should-we-use-llms-for-ch...

He argued, persuasively I thought, that "this is an area where truthfulness is of paramount importance" and consequently would be extremely ill-suited to AI.


That's such a good article. I think because I didn't need convincing on this I didn't seriously evaluate its argument the first time around but like you said it is quite solid. Thanks for bringing it back into the conversation it's a really good read along with this one.


But this is not an area where truthfulness is remotely important, let alone paramount, so well suited?


This reminds me of the PlayStation/2 developer manual which, when describing the complicated features of system, said something like "there is no profit in making it easy to extract the most performance from the system."


When cameras became more affordable to the middle class did painters furrow their brows in disapproval at the unwashed masses breaking the rules with a carefree click of the shutter?


In effect, yes.

It took a supreme court case to declare that photography includes some amount of artistic expression, without which it wouldn't be eligible for copyright: https://en.wikipedia.org/wiki/Burrow-Giles_Lithographic_Co._...

At the time it was debatable whether or not photographs were really art, because the photographer need do nothing more than release the shutter. There was probably some protectionism involved, as photography put a lot of portrait artists out of work.


My Windows 7 laptop still seems to want security updates about once a week; maybe it's just Windows Defender and not kernel bugs but I find it interesting that MS still bothers.


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: