HNHacker News
TopNewBestAskShowJobs

connorcpu

33 karma · joined March 23, 2017

submissionscomments
connorcpu··on Why undefined behavior may call a never-called function
I assumed this was a side-effect of devirtualization. Obviously indirections are slower, so if the compiler can look at a dynamic call and realize that there's only 1 possible function it could be calling right there, that's a win. Only my 2c
connorcpu··on Winamp2-Js: A Reimplementation of Winamp 2.9 in HTML5 and JavaScript
I just use Groove on both android and windows. All my music is synced to both places and I can get music I acquired elsewhere onto everything by just sticking it in OneDrive
connorcpu··on Saudi lifting ban on Skype, WhatsApp calls, but will monitor them
Perhaps the government only cares about who is calling who and for how long?
connorcpu··on Sleeping barber problem
Well there would have been no such thing already implemented in a standard library back in 1965 ;) And it's still a useful exercise for exactly why you need a thread-safe blocking queue, and probably shouldn't just roll your own if you don't know what you're doing.
connorcpu··on OxiPNG: PNG optimizer written in Rust
You can actually just compile by setting $env:RUSTFLAGS="-C target-feature=+crt-static" and it will completely drop the dependency on vcruntime.dll. Rust is basically only pulling in memcpy/memset/etc. Not really things you'd be worried about statically linking.
connorcpu··on SKYACTIV-X: first commercial gasoline engine to use compression ignition
Given that its neighbors' top two electricity sources seem to be Nat Gas and Nuclear, seems probable that most of the electricity comes from those sources
connorcpu··on Browser Extensions Standard
I think the point is more, in what way does google have any power to stop other browsers from implementing this API?
connorcpu··on Announcing the `http` crate
Looks like this crate is merely trying to provide a standard set of types used in an HTTP pipeline to make different crates that want to have a part in that pipeline able to be combined together, without having to convert your types all over the place
connorcpu··on A brief history of credit cards
Wouldn't Apple Pay just be more of a 6th intermediary that just obfuscates the actual payment card from certain parties in that chain?
connorcpu··on Microsoft Paint to be killed off after 32 years
I think more likely will be users type 'paint' into the start menu and just click the first option which should be the new Paint 3D on a fresh system
connorcpu··on Second version of HoloLens HPU will incorporate AI coprocessor
They're not really focused on making a consumer version, they're trying to turn it into an enterprise product first
connorcpu··on How Discord Scaled Elixir to 5M Concurrent Users
I already pay $5/mo for Discord. Animated avatars and cross-server custom emoji were enough to entice me
connorcpu··on How we made compiler warnings fatal in Firefox
Perhaps not build systems, but I think editors that help you keep track of warnings should probably have a list of them per-file and only clear that list when the file actually gets rebuilt
connorcpu··on Show HN: Artpip – 4k fine art for your desktop
There may be a little more to it, but sadly after setting it up for a couple hours, it seems the TrySetLockScreenImageAsync method always returns failure from a non-UWP app :(

If anyone else wants to tinker with it https://gist.github.com/Connicpu/8b092b2c0ad539573b893dbca54...

connorcpu··on Dissecting objc_msgSend on ARM64
The missing bit is that objc_msgSend doesn't know how many parameters are being forwarded, and fptr is just a normal function on the other end, it isn't expecting a va_list, it expects arguments to be passed in the C ABI exactly how they're passed to objc_msgSend
connorcpu··on The electric car has dropped out of favor in Denmark
And there is exactly 1 polynomial of degree n-1 that will match n points ;)
connorcpu··on U.S. top court tightens patent suit rules in blow to ‘patent trolls’
I think it would more be that you have to find an entire state where the juries are decidedly opposed to patent trolls, since you could still get sued anywhere in any valid jurisdiction within the state, right?
connorcpu··on China, Addicted to Bootleg Software, Reels from Ransomware Attack
FedEx got hit, but I haven't heard about much spread over here. I guess people here are more likely to have installed a windows update in the last month and a half? :p
connorcpu··on United Broke Its Contract with Flyers
They were offering $800 worth of vouchers, but it's multiple vouchers where you can only use 1 at a time and they expire in a year.
connorcpu··on Servo nightly builds on Windows now available
Rust can currently statically link the VC CRT, looks like servo doesn't compile with that option at the moment is all
connorcpu··on Screeps – An MMO strategy sandbox game for programmers
I guess in theory you could use any language that can be compiled into asm.js, although you'd need to make a lot of bindings to their JS API