HNHacker News
TopNewBestAskShowJobs

pixel_fcker

419 karma · joined January 5, 2016

submissionscomments
pixel_fcker··on How to average floating point numbers (2015)
How did you force using the x87 fpu?
pixel_fcker··on Ethereum community has solved a major problem of the Internet: Single Sign-On
> nowadays employees authenticate not much more than once or twice a day to get access to everything.

Unless you have multiple devices, in which case it feels like you’re logging in constantly

pixel_fcker··on Generating Coherent Noise Using Fourier Transforms
You’d never do a DFT for generating a fBM, but the same technique using a different noise spectrum is how we’ve been generating ocean waves in the VFX industry since forever: https://people.cs.clemson.edu/~jtessen/reports/papers_files/...
pixel_fcker··on Rust Is a Wave of the Future
> rustc 1.48, is already out of date and unable to compile most rust programs written for the rust spec just 3 months later.

What are you talking about?

pixel_fcker··on Hash Functions for GPU Rendering
Graphics uses a lot of Monte-Carlo integration, for which you need (pseudo) random numbers. You want your random numbers to be fast to generate, and have completely uniform so as not to introduce bias in the result.
pixel_fcker··on Bringing GNU Emacs to Native Code (2020)
Yes it’s a shame. I really like emacs but the lagginess is just too jarring while working.
pixel_fcker··on Bringing GNU Emacs to Native Code (2020)
It makes LSPs usable for me on my desktop 5950x. Still a bit laggy on my laptop.
pixel_fcker··on Linus Torvalds on Rust support in kernel
Because you just don’t use the types in the alloc crate, or you use the (only partially implemented) APIs that return a Result<> instead of panicking on allocation failure.

For that kind of low-level work I’d probably do the former and implement my own data structures, which is what you do with no_std currently.

As others have said there’s nothing in Rust the language which assumes allocations always succeed. The standard library made the choice to panic on allocation failure, which was the right choice in order to make an ergonomic API that’s suitable for higher-level work. If you’re not using the standard library (which currently includes people on eg embedded targets) then you can handle allocation any way you like. And if you’re writing drivers for the kernel you’d assume you’re ok handling that.

GP was pointing out that the Clone trait doesn’t allow for returning a Result, so you can’t use that trait to clone anything that allocates. But that’s not really a big deal since you can just make your own TryClone that does.

pixel_fcker··on Linus Torvalds on Rust support in kernel
No not at all.
pixel_fcker··on Rust in the Android Platform
Macros baby
pixel_fcker··on Jump in cancer diagnoses at 65 implies patients wait for Medicare: study
2. The US federal government already spends about as much on healthcare per capita as countries where it is free at the point of use. You’re currently getting massively ripped off so insurance CEOs can buy another yacht.

3. All civilised countries have private healthcare as well as public. If you really want to pay more to avoid waiting lists and fancier wards, you can do so.

pixel_fcker··on Hacker's Guide to Numerical Analysis
I’ve been using wikipedia for years and never knew about this. I wish there was a prominent link on the page “Switch to simplified explanation” or something. As someone who knows barely enough maths to get by this would have helped me immensely over the years.
pixel_fcker··on Out of the top fifty games on Steam, 70% work on Linux
What distro?
pixel_fcker··on Speed of Rust vs. C
This says much more about the type of programs Jonathan Blow tends to write than anything else.
pixel_fcker··on Virtual Particles: What are they? (2011)
How do virtual particles play into the Casimir effect?
pixel_fcker··on Rust for web development: 2 years later
I get the same with emacs (gccemacs nativecomp) but it works just fine in vim and vscode.
pixel_fcker··on How I survive 12 hour flights
To add to the other advice - bring a change of underwear in your carryon to change into before arrival. Makes a huge difference to how you feel the rest of the day when you arrive.
pixel_fcker··on Apple Silicon M1 supports “billion of colors” a.k.a. HDR 10-bit output
No the dynamic range and wider color gamut is. Your argument is that 10-bit sRGB doesn’t give you anything over 8-bit sRGB, which I don’t agree with but it’s reasonable.

But that’s not what HDR is. 8bpc is definitely not enough to represent HDR Rec.2020 or DCI-P3 without significant banding.

pixel_fcker··on Apple Silicon M1 supports “billion of colors” a.k.a. HDR 10-bit output
“If you calibrate the HDR screen to be as dim as the LDR screen they’ll look the same” isn’t a great argument.
pixel_fcker··on Apple Silicon M1 supports “billion of colors” a.k.a. HDR 10-bit output
For low-dynamic range maybe, but for HDR 8-bit is definitely not enough.
pixel_fcker··on Pony – High-Performance Safe Actor Programming
What domain is that?
pixel_fcker··on Facebook and Twitter largely 'culpable for all the harm': former Obama adviser
Yes those practices definitely accelerate the process but they are not the root cause.
pixel_fcker··on Facebook and Twitter largely 'culpable for all the harm': former Obama adviser
Pressing charges only happens after the fact. We need to find some way to avoid huge numbers of people becoming radicalised in the first place.
pixel_fcker··on Facebook and Twitter largely 'culpable for all the harm': former Obama adviser
This is such a stupid take. Social media isn’t the problem: people are.

The internet was supposed to bring us all together as one global community based on our shared interests. Instead it’s created ghettoes and echo chambers where people of all political stripes work together to reinforce their existing prejudices.

We as a society are going to have to figure out how we want to deal with this because it’s not going away. The idea of government policing what people say on the internet is anathema to most people here, and with good reason. But the alternative is private corporations doing it based on their shareholders’ whims, and only when the situation gets bad enough to cause them potential legal exposure.

pixel_fcker··on Rust is now overall faster than C in benchmarks
Graphics software.
pixel_fcker··on Raytracing won't simplify AAA real-time rendering
> though looking at Soul, they seemed to chose a less realistic Special World that was easier to render

Interestingly my wife said the same thing when watching it but I think the opposite is true. Everything in the great before is volumetric, so not easy to render at all.

pixel_fcker··on Non-Māori-speaking New Zealanders have a Māori proto-lexicon
Interestingly the written form uses a different pronunciation to the most common spoken form today, so e.g. “whanau” is pronounced “fa-nau” not “wha-nau”
pixel_fcker··on Hallucinations re: the rendering of Cyberpunk 2077
I’m having a great time with it. To each their own I guess.
pixel_fcker··on My Journey to Finally Ditching Windows for Good
Just add the graphics-drivers ppa in Ubuntu and nvidia drivers install fine with an apt-get.
pixel_fcker··on Monads and GATs in Nightly Rust
const generics are very close to being done, which will fix the array issue you mention by allowing code to be generic over integers as well as types. This is already in for built-in arrays and traits but user traits currently require nightly.

I agree with you about the orphan rule being annoying and wish they’d relax that, but I much prefer traits to C++ duck-typed templates, if only because it makes error messages from passing an unsupported type to a generic function clear and concise as opposed to the thousands of lines of confusing output you often get in C++.

← PreviousPage 2 of 6Next →