johnnovak

Joined 10 years ago

Karma
313
Submissions
45
Member since
Mar 13
http://www.johnnovak.net/
View on Hacker News

Recent submissions

Comment · 5 years ago
Greetings fellow Nim adventurers! Below you will find 16 handy Nim tips & tricks I came across while developing a medium-sized GUI program this year, Gridmonger (and related libraries). Some of them are about less known or undocumented Nim features or standard library functions, a few are workarounds for some rough edges of the language, and there’s also a handful of useful techniques I read about in forums or have invented on my own.
Comment · 10 years ago
Not divide by two; you have to use the gamma transfer curve.
Comment · 10 years ago
Looks like you missed all the other artifacts I gave examples for, which are all calibration independent (colour blending, compositing, rendering etc.)
Comment · 10 years ago
More even = an even gradation from black to white.
Comment · 10 years ago
If you read the article carefully, you'll realise that this is not just an optimisation (check for example the sections on colour blending and rendering; those artifacts are gamma calibration independent.)
Comment · 10 years ago
Care to elaborate on the technical inaccuracies you spotted in the article? I would like to correct them, that's why I'm asking.
Comment · 10 years ago
Thanks for the suggestion, I'll look into the scrset thing!
Comment · 10 years ago
Yes, we need greater precision, ideally floats, but maybe 16 bits would be enough (haven't tested this or thought much about it.) But for multiple passes of processing floats are definitely the way to go due to rounding errors. I don't think you'd get worse performance when using floats on current hardware.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton