HNHacker News
TopNewBestAskShowJobs

Remnant44

558 karma · joined April 25, 2014

submissionscomments
Remnant44··on Perlin Noise: The Near Universal Texture
Better and simpler for who?

Simplex noise is arguably inferior in quality to improved perlin noise.the difference usually doesn't matter. It's also faster, but on an order of difference that usually also doesn't matter.

All of the other noise types can give you different things for different purposes. Most of them look pretty similar, but there are differences! for example, value noise is quite similar to perlin noise (which actually interpolates gradients instead of values). Some of the popular perlin noise tutorials actually teach value noise instead accidently! What that means though, is that the low frequencies are unbounded in value noise, because you may randomly have clumps of like values in a row. Perlin noise is guaranteed to have zeros at the lattice points of the noise and so produces band-limited noise that is useful when you're doing a summation.

Remnant44··on Linearly interpolating pixels that are in a gamma encoded color space
Whenever linear RGB / gamma discussions come up, you know there's going to be a lot of folks going on about how frustrating it is that the default for most apps is to do their blending/filters/etc in gamma space (as TFA does).

And they're right. But there's an entire flip side of this coin, called Linear is Not Always The Answer.

Are you dealing with the behavior of light? Then you should be a linear colorspace.

But if you're performing artistic operations or other things that need to look right to a human, this is not what you want. What you actually want is a perceptually-uniform colorspace. Linear RGB is most definitely _not_ perceptually uniform! It's in fact, much worse than sRGB!

sRGB for all its flaws is at least roughly perceptually uniform for grey tones, a kind of "poor man's perceptual space". Color mixing, gradients, etc etc all work much better in a uniform space.

I've fallen in love with Oklab as a colorspace. (https://bottosson.github.io/posts/oklab/ ), which has in practice provided excellent results.

Light? Use linear rgb. Human vision? Use Oklab.

Remnant44··on Show HN: Filmbox, physically accurate film emulation, now on Linux and Windows
It's particularly surprising in a place where people who create software gather. You'd think we'd all know better...
Remnant44··on AMD is 'undershipping' chips to keep CPU, GPU prices elevated
I wouldn't expect any company to continue running their factories at peak capacity when there is weak demand. The outcome of doing so is, of course, destroying your own profit. And while that sounds great in theory for consumers (cheaper prices!), in a capital intensive industry, this is a great way to go out of business.

Another example from another industry: agriculture subsidies cause farmers to do exactly this, producing massive amounts of crops despite a low price for them; a wasteful outcome by most societal standards, and the low profit margin for farming means none but the most efficient, massive operations can survive.

Remnant44··on Loneliness is a measure of self-understanding
I feel this one deeply. I was in a similar situation in a past relationship; The traditional male role of "unshakeable pillar" meant that support was a one directional flow only, and any mention of feeling down or bad would cause a huge fight or fear response.

Unfortunately I don't have any great advice to solve this, except that therapy can be really helpful here, if just to provide a compassionate person to talk to.

Remnant44··on Sapling: A new source control system with Git-compatible client
The way Mercurial is structured is, to me, intuitive, easy, and powerful. I'm still using it for all of my local projects; luckily hg-git lets you pull in dependencies from github, which would otherwise require me to switch to git.

I wish it had won the DVCS wars.

Remnant44··on The pool of talented C++ developers is running dry
Jokes on you, they probably didn't fix big either ;)
Remnant44··on Intel can’t grow profits in a global chip shortage
It's extremely possible for a product to be strictly dominated by another on technical merits and still be successful.

"Intel is done" because Apple produced a great chip focuses on only one small (albeit very important!) part of the puzzle.

Remnant44··on Belief in Having Had Covid-19 Linked with Long Covid Symptoms
Yes! I don't have the link here now, but lingering symptoms are common after a viral infection; the one that I saw said that the incidence of some flu symptom remaining months after infection is as high as 40%.
Remnant44··on Please don't ask founders existential questions
This.

Turn the situation around. How often do you enjoy hearing someone's opinion on something where they haven't even tried to understand your goals, motivations, and values? And instead just spouted off what they think?

Remnant44··on It's now your fault they don't know about it
I hadn't considered that perspective but it is brilliant.

Making requests explicit rather than veiled by an invisible contract is a good practice at work and in basically any kind of human relationship.

"The trash is full" vs "will you take out the trash for me?" Is a world of difference.

Remnant44··on The Theory of Gut Bacteria Value
To be fair, this is not inconsistent with the position of the article.

If the disease states are a result of pathogenic invasion, restoring the natural inhabitants of the gut by transplant and driving out the 'bad guys' by doing so is completely consistent.

Whether you call that 'doing nothing' is of course a different matter; it's a bit like explaining armor as 'doing nothing' because it just sits there and soaks up incoming physical damage!

Remnant44··on I was deceived about Covid vaccine safety
Agreed. Nothing easier than setting up a ridiculous straw man to then punch down.
Remnant44··on Letter from Union Pacific to LA District Attorney re: train thefts, safety [pdf]
You're making a claim without evidence here. I'd like to believe as you do, but "people would rather not steal" is a statement of faith, not fact.
Remnant44··on Ask HN: Not liking my first dev job. Any tips?
Lots of "get used to it" advice here, which is honestly pretty good and honest. Like, if you were a founding developer, you'd have the joy of watching your creation turn from an exciting new thing into a legacy product. Since all products become legacy codebases, learning to work in one is vital if you want to be more than a dilettante.

With that said, don't let the passion for fun and interesting projects die! Small, start-to-finish projects are exactly what hobby, side project, and open source is for.

Remnant44··on Obesity Is Contagious (2007)
Fruits are MUCH better than nuts thanks to their lower caloric density. but it's still easy to mindlessly eat hundreds of calories of fruit if you're not careful.

Given that even a hundred calories of surplus a day will certainly make you fat over time... basically any mindless eating is dangerous, in my experience.

Remnant44··on Obesity Is Contagious (2007)
Nutrition makes me think of Tolstoy's famous quote in reverse: every bad diet is the same, while every good diet is unique.

By that I mean that I have to be very careful with fruit and nuts - having them around the house means that I can mindlessly eat at least an entire extra meal worth calories a day, a handful at a time.

For me beans, lentils, and "veggies" more broadly are very helpful with appetite control though, I agree.. and are pretty easy to make unless you're on the go all the time.

Remnant44··on No, the real inflation rate isn’t 15 percent
I'm curious why you think this is true. The aggregate economic output of the US economy is no the inflation rate in any meaningful sense, or else 'economic growth' could be achieved simply by inflating your currency.
Remnant44··on Pre-industrial workers had a shorter workweek than today's (1991)
I mean, you know, except for the peasants..

Being part of the merchant class in feudal times was a very high class outcome

Remnant44··on In C++, is empty() faster than comparing the size with zero?
This seems like a pretty silly way to look at performance - If I'm working in C++, I 'care' about performance, but performance always exists on a continuum.

If I "truly cared" I could write it in assembler; but I don't, because chasing down the diminishing returns isn't worth it.

C++ w/STD is a perfectly valid (and extremely powerful!) point in the continuum that runs from Python to Assembly :)

Remnant44··on Why Figma Wins (2020)
At first I was assuming that the critique of $45/mo for the enterprise license was that it was too cheap, something I agree with! It's definitely not too much.

For large companies making dozens-to-hundreds of millions in revenue, $45/mo is a completely irrelevant rounding error. And the power of tightening the feedback loops that the article alludes to is worth far, far more than that.

Remnant44··on Rockstar thanks GTA Online player who fixed load times, official update coming
This is very insightful. If you make a mistake = shameful, you probably aren't going to meaningfully decrease the number of mistakes made, but you will ensure that no one wants to admit they've made one.

And I guarantee anyone who's written code long enough has written plenty of footguns of their own.

Remnant44··on Latency Numbers Every Programmer Should Know (2012)
This gets posted here frequently - I submitted it a year ago - but imo that's not a problem because it's insightful and useful. Should have a (2012) tag though.

I also ran across this version that updates the numbers to 2020 values:

https://colin-scott.github.io/personal_website/research/inte...

edit: it appears they're just estimating for a given time above, not measuring...

Remnant44··on It Is Never a Compiler Bug Until It Is
"It's not the compiler" is always a good first-approximation. And then bizarre things happen..

I ran into this with MSVC just a few months back. After an update of the compiler, a bizarre display issue emerged with lines criss-crossing the screen. Turning off optimizations to debug made the problem go away. Eventually tracked down the issue to the following line of code:

if (abs(delta.y) > abs(delta.x)) { …

changing this to:

bool yDominant = abs(delta.y) > abs(delta.x); if (yDominant) { …

fixed the problem. Yikes!

I don't know if they fixed the optimization in question by now.

Remnant44··on Cryengine Source Code
If you enable /Ox, the codegen basically drops to what you would expect: the vector version drops down essentially identical code to the new/delete (modulo a memset to enforce the clear to zero condition)

It is a good illustration of why debug stl builds are such hot garbage though...

Remnant44··on Blog of Inigo Quilez, Creator of Shadertoy
Inigo's blog has been one of my favorite treasure troves of information for a long time now. Especially for people who like to play with demoscene-esque types of computer graphics, but honestly there's a ton of industrially useful knowledge there that has informed my work as well.

If you like graphics and somehow haven't found it before, check it out!

Remnant44··on Show HN: Ryeboard – Visual Workspace
Very much this! I have a small business and my product has a lot of "big name" users, but consistently it's pretty much impossible to get sign-off to use their name or logo.

I don't know what the legality of just putting them up there whether they want to or not is, but obviously the social proof of doing so is huge.

How do people navigate this?

Remnant44··on Ask HN: Which is the most successful one-person business you heard of in 2019?
That's fantastic!

I have a one man software business but in creating and selling my own product, which has some strong pros and cons comparatively! I've been toying with the idea of taking on some consulting as well. The pivot to get into consulting seems much harder, however.

Remnant44··on Show HN: A raytracer to shade topographic maps in R
Neat project!

I'm not sure if the author is familiar with ambient occlusion, but the method described here can be extended to generate ambient occlusion data which helps with a couple flaws. In particular:

- Although the shading is very nice (see Figure 8), the long shadow rays are distracting and are not very useful for cartography.

Ambient occlusion extends the idea presented here, except that instead of sending rays towards a relatively small light source, consider the light source to be the entire hemisphere of the sky, like on an overcast day. The result is wonderfully soft light that conveys form much like Figure 8, but without shadows.

Simply send out more rays to the entire sky hemisphere to create this effect.

Remnant44··on Stripe Billing
Does this support international wire transfers as an invoice payment method?

If so, that's a killer feature for us, as US-based customers have other options including simply mailing a check; it is our international customers exclusively who are interested in wire transfer...

← PreviousPage 5 of 6Next →