Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
a_e_k
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
601.
▲
by
a_e_k
9y ago
I think the problem with that idea is that there's no guarantee that the input to the compiler is going to be ideal. It might be that the programmer write something in a suboptimal or naive way (possibly expecting the compiler to take
602.
▲
by
a_e_k
9y ago
Likewise, it makes me think of the Descolada virus from the Ender's Game sequels.
603.
▲
by
a_e_k
9y ago
True, but as a heuristic I it is safe to say that if you'd use integer units to represent a quantity then you should use "fewer" rather than "less". That tends to capture the majority of cases for using "fewer
604.
▲
by
a_e_k
9y ago
Same here. I think the reason it bugs me so much is because my mind views it as a type error: int fewer; float less; is how I tend to remember the distinction. (Fortunately in my family, my wife is the language nerd who first
605.
▲
by
a_e_k
9y ago
Probably my favorite to read out loud that way is A Christmas Carol . Dickens originally wanted to be an actor, found fame as a writer instead, and brought the two passions together by ging public performances reading/reciting his st
606.
▲
by
a_e_k
9y ago
I tend to view arXiv as mainly an aggregated repository of documents that would ordinarily be tech reports. It is accepted practice to cite tech reports when the paper author is aware of them and they are relevant. I don't really see
607.
▲
by
a_e_k
9y ago
"The Transparent Column"
608.
▲
by
a_e_k
9y ago
Thanks, just updated my profile. And no, intentionally not patented.
609.
▲
by
a_e_k
9y ago
The "Sampling and Reconstruction" chapter from PBRT is also pretty good. The authors have placed the 1st-edition version online as a sample chapter: http://www.pbrt.org/chapters/pbrt_chapter7.pdf
610.
▲
by
a_e_k
9y ago
> most computer-generated images are rendered as an average of point samples weighted according to estimated coverage of a square pixel This may be true in terms of the sheer amount of GPU rasterized imagery. I wrote the pixel filterin
611.
▲
by
a_e_k
9y ago
I'd say usually better quality rather than definitely better quality. While the Lanczos filter is always superior to the box filter in theory, there are some case in practice where the box filter may be better. If you're down
612.
▲
by
a_e_k
9y ago
You could also efficiently sieve down the list of candidates with a Bloom filter. Toss all the numbers into a Bloom filter, then scan through them again and cull any number, i, for which neither i-k nor i+k are present in the filter. Then r
613.
▲
by
a_e_k
9y ago
This is why I append .compact to the desktop URL to browse with their older mobile version. I find it much more usable.
614.
▲
by
a_e_k
9y ago
And OpenType Variable Fonts: https://medium.com/@tiro/https-medium-com-tiro-introducing-o...
615.
▲
by
a_e_k
9y ago
It doesn't need to be that complicated at all. The book "Hacker's Delight" gives some nice, fairly simple implementations. Here's one: http://www.hackersdelight.org/hdcodetxt/hilbert/lams
616.
▲
by
a_e_k
10y ago
It also depends very much the geometric complexity of your scene. With hundreds of millions of polygons it's not difficult for raytracing to outperform rasterization, especially if most of those polygons are instanced.
617.
▲
by
a_e_k
10y ago
Maybe [invited repost]?
618.
▲
by
a_e_k
10y ago
I've been planning lately on writing my own little 2d rasterizer for fun. While I really like the trapezoidal signed-area method, when reading STB's write-up I noticed that it can overestimate coverage when a path self-intersects
619.
▲
by
a_e_k
10y ago
You can. For my programming font [0], I provide versions of it that bake in the output from Freetype's hint interpreter applied at different point sizes and display DPIs. This way platforms such as macOS that don't always apply
620.
▲
by
a_e_k
10y ago
There actually is a first-party app from Google that can read QR codes: Google Goggles. Besides QR codes, I've also found it handy for scanning the ISBN bar codes of books that I want to remember.
621.
▲
by
a_e_k
10y ago
Hmm. Downloading the current viz.js from the releases page (v1.4.1) gives me a file that compresses down to 632K when I use 7-zip on its highest settings (7z -mx=9 -mfb=258 -mpass=15 -tgzip a viz.js.gz viz.js).
622.
▲
by
a_e_k
10y ago
It can indeed! Adapting the first example from the article, in Emacs type: M-x quick-calc RET integ(exp(-x^2),x) RET You'll see that it immediately responds back with: erf(x) sqrt(pi) / 2
623.
▲
by
a_e_k
10y ago
Emacs' calc can also be surprisingly powerful. Not quite at the level of Maxima, but still perfectly capable of basic symbolic algebra and calculus, arbitrary precision arithmetic, linear algebra, and other good things. I use it quite
624.
▲
by
a_e_k
10y ago
Assuming I felt that passionately about it? I'd start looking for other employment.
625.
▲
by
a_e_k
10y ago
Where I work, there's a fairly streamlined process for getting waivers for side projects, including open source contributions. Fill out a page-long form broadly describing the intended side project and send it to Legal. If approved (
626.
▲
by
a_e_k
10y ago
I wrote a detailed explanation last year which might also help some: http://eastfarthing.com/blog/2015-04-21-noise/
627.
▲
by
a_e_k
10y ago
An important factor is whether it can be branch predicted. If the virtual call nearly always goes to the same method implementation (e.g., always an OpenGL renderer or always a DirectX renderer), it can actually be pretty cheap. They get
628.
▲
by
a_e_k
10y ago
Articfox (1986) also deserves a mention as an early 3D game with filled polygonal graphics. Demo here: https://www.youtube.com/watch?v=pPsOOYZs7Bg
629.
▲
by
a_e_k
10y ago
Pixar: USD, OpenSubdiv, jss-api-gem WDAS: Reposado, SeExpr, Ptex, Partio, Dynamica, BRDF Explorer ILM: OpenEXR, Alembic (with Sony)
630.
▲
by
a_e_k
10y ago
In the case of TrueType hinting with the interpreter, it can. The SCANTYPE instruction [1] allows the hint program to request different scan conversion settings. It's mainly used to change the dropout control mode. Without dropout c
More ›