Better HN
topnewbestaskshowjobs
Log inSign up

connorcpu

33 karma · joined Mar 23, 2017 (9y ago) · 22 submissions

Submissions

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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

comment 9y ago · link · parent

Perhaps the government only cares about who is calling who and for how long?

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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

comment 9y ago · link · parent

I think the point is more, in what way does google have any power to stop other browsers from implementing this API?

comment 9y ago · link · parent

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

comment 9y ago · link · parent

Wouldn't Apple Pay just be more of a 6th intermediary that just obfuscates the actual payment card from certain parties in that chain?

comment 9y ago · link · parent

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

comment 9y ago · link · parent

They're not really focused on making a consumer version, they're trying to turn it into an enterprise product first

comment 9y ago · link · parent

I already pay $5/mo for Discord. Animated avatars and cross-server custom emoji were enough to entice me

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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...

comment 9y ago · link · parent

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

comment 9y ago · link · parent

And there is exactly 1 polynomial of degree n-1 that will match n points ;)

comment 9y ago · link · parent

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?

comment 9y ago · link · parent

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

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

Rust can currently statically link the VC CRT, looks like servo doesn't compile with that option at the moment is all

comment 9y ago · link · parent

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