Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
a_e_k
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
391.
▲
by
a_e_k
5y ago
I tried that but paradoxically found that it worked better when I did the opposite: just get one gel pen and always know where it is like my keys, cell-phone, wallet, etc. These days it's more common for me to replace a pen because it
392.
▲
by
a_e_k
5y ago
In the decade I spent working on RenderMan at Pixar, I learned just how immensely useful it was to have an image viewer running in a separate process talking to the renderer over a socket or pipe. (The Image Tool, or "It" is Re
393.
▲
by
a_e_k
5y ago
I think this is basically the "chaos game." https://en.wikipedia.org/wiki/Chaos_game
394.
▲
by
a_e_k
5y ago
Interesting. I just check for non-ascii on-demand with a tiny macro around occur (because I can never quite remember the regexp syntax for named character classes): (defun find-non-ascii () "Find and show all of the non-as
395.
▲
by
a_e_k
5y ago
It could be very interesting to try Gabor noise.
396.
▲
by
a_e_k
5y ago
This is the approach that I take! (Note: I write graphics and rendering code for a living. "Good enough" for me tends to mean quantizing to either identical pixels at the display bit depth or at least perceptually identical pixe
397.
▲
by
a_e_k
5y ago
Hell, yesterday I searched for `python string split`. Stupid w3schools was the first hit. The official library reference documentation on python.org (which was what I was looking for) didn't turn up until nearly the bottom of the 2nd
398.
▲
by
a_e_k
5y ago
I hadn't heard of that one before, but that's actually really nice. I really like how they're trying something new with the presentation and organizing the search hits by the source like that!
399.
▲
by
a_e_k
5y ago
I've had M-x emacs-uptime hit nearly 200 days before. It takes a little effort to get used to that style of working, but it's definitely handy once you do. (Also, I alias ec="emacsclient -n" in my shell.)
400.
▲
by
a_e_k
5y ago
I once used a little netbook at a conference in Germany on a crowded wi-fi connection to edit using Emacs within a terminal SSH connection to a desktop in the western U.S. It held up surprisingly well. The Emacs terminal display system dat
401.
▲
by
a_e_k
5y ago
This is very much how I type as well. A couple of other factors for me: 1) I learned to type as a kid at the same time that I was getting into programming. So my typing style tends to optimize for quickly hitting numbers, operators, rando
402.
▲
by
a_e_k
5y ago
QOI_DIFF16 { u8 tag : 3; // b110 u8 dr : 5; // 5-bit red channel difference: -15..16 u8 dg : 4; // 4-bit green channel difference: -7.. 8 u8 db : 4;
403.
▲
by
a_e_k
5y ago
> But what shocks me is how did absolutely no-one apply such a naive RLE in the 30 years of internet image formats? Off the top of my head, both PCX [0] and TGA [1] use similarly naive RLE as their compression method. And while they also
404.
▲
by
a_e_k
5y ago
I agree that de-interleaving is fairly complicated, but interleaving can be done fairly easily with a lookup from a table for each dimension and then combining them: xbits[x] | ybits[y] | channelbits[c]. The nice thing about this is that ju
405.
▲
by
a_e_k
5y ago
I'd wondered that as well. Playing with tldraw and excalidraw, it looks like it's using the center of the bounding box as the pivot point. Suppose that you have three boxes like this: * - - - * . . . * - - - * |
406.
▲
by
a_e_k
5y ago
Consider yourself one of today's lucky 10,000, then ( https://xkcd.com/1053/ ). It does help if you have some knowledge of the ways of the Catholic Church when reading the novel. I don't think I could have ful
407.
▲
by
a_e_k
5y ago
For your specific question, I really like the take from Walter M. Miller Jr.'s "A Canticle for Leibowitz" (one of my favorite novels): > The closer men came to perfecting for themselves a paradise, the more impatient they
408.
▲
by
a_e_k
5y ago
I don't know about that. At least for myself, when I say that I've read a paper I mean that I've read it thoroughly from end-to-end and thought deeply about it, not unlike what I do when I'm doing a peer review. (I.e.,
409.
▲
by
a_e_k
5y ago
C99 [0] and C++11 [1] both have fma() functions that let you directly request it without the need to mess around with sloppier FP contracts to infer it. [0] https://en.cppreference.com/w/c/numeric/math/fm
410.
▲
by
a_e_k
5y ago
I worked on a certain hopping lamp renderer for more than 11 eleven years. I can confirm that probably 99+% of the floating point math in it was in single precision. And to this day, typing out the 'f' suffix on single precision
411.
▲
by
a_e_k
5y ago
I wouldn't do it exactly this way, but for a CPU implementation I would consider a blocked rotate that decomposes the image into square tiles of about [cache-line x cache-line] in size (e.g., 8x8 for RGBA8 data with a 32 byte cache lin
412.
▲
by
a_e_k
5y ago
For my use, alpha is what I tend to miss in PPM. There's the PAM extension [0] but it's not nearly as widely supported as basic PPM. Usually at that point, I reach for PNG via stb_image_write [1]. [0] https://en.wikip
413.
▲
by
a_e_k
5y ago
The interesting thing to me is that compared to WebP and AVIF, JPEG XL is the only one that isn't just largely based on a video codec's I-frame compression.
414.
▲
by
a_e_k
5y ago
AFAIK, digital cinema packages (DCP) used for shipping movies to theaters and showing them on digital projectors are still based on JPEG2000 image sequences.
415.
▲
by
a_e_k
5y ago
Yes, IIRC it's about an 18 byte binary header and then BGRABGRABGRA... or BGRBGRBGR... bytes for uncompressed (there's also an RLE mode, but I never use it). The only real gotchas are the channel ordering and that the image might
416.
▲
by
a_e_k
5y ago
I believe that the developer of FLIF integrated much of the tech into JPEG XL. It seems to happen a lot with codecs (e.g., Xiph's Dalaa tech merging into AV1, or Xiph's CELT and Microsoft's SILK merging into Opus). I see FLI
417.
▲
by
a_e_k
5y ago
The OpenEXR format, from the film industry, can also store an image with that configuration.
418.
▲
by
a_e_k
5y ago
I've usually seen this done with colored dot stickers affixed near to or on the library label on the spine of the book.
419.
▲
by
a_e_k
5y ago
To me, even with good trust, the naked "let's talk" or "team meeting at X:XX" communications tend to come across like a dead canary. I've had good trust with most of my managers but since they'd usually in
420.
▲
by
a_e_k
5y ago
Even better, I repurposed C-z as the prefix for all my custom bindings. That's got a couple of advantages: 1) I don't have to worry about finding free bindings under C-x, C-c, or at the top level. Those spaces are pretty crowded
More ›