Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
a_e_k
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
91.
▲
by
a_e_k
1y ago
Good list. A few more for me: * Implementation/header pairs in C++ * Language REPLs (e.g., Python) * Quick calculations in Calc while coding * Checking dates on the calendar * Magit status * Diff buffers (esp
92.
▲
by
a_e_k
2y ago
It was fun to try to golf this a bit with Z3Py. I'm not an expert at writing for Z3, so it might be possible to do better, but here is a solution in 7 lines: import z3 res = [("bbababbabb", 7), ("baaababaaa&qu
93.
▲
by
a_e_k
2y ago
Having implemented DDA code a bunch of times, I find it easiest to think about it in lazy functional terms: it's like a takeWhile on a merge (or union) of infinite ordered streams of ray t-values. In other words, decompose the problem
94.
▲
by
a_e_k
2y ago
I find that building and testing my code with -Ofast and -ffast-math from the beginning helps to avoid a lot of the issues with them. Any new code that breaks with them on probably wasn't particularly stable anyway and should be retho
95.
▲
by
a_e_k
2y ago
Yes, not so much because I'm trying to anthropomorphize it or interact with it like a human, but because I view such things as conversational signals that may influence the direction of the model. - "Please" = Call to action
96.
▲
by
a_e_k
2y ago
Oddly, trying to occasionally place on the Advent of Code global leaderboard was the thing that got me most fluent in Python as its own language. Before that, I tended to write Python in a much more imperative style, since C++ is my main la
97.
▲
by
a_e_k
2y ago
In graphics, we also often try to avoid any kind of rejection sampling because it wrecks importance sampling.
98.
▲
by
a_e_k
2y ago
I was going to mention the Shirley and Chiu mapping. A copy of the original paper can be found here and is nice and easy to read, with pseudocode: https://web.archive.org/web/20190223095317id_/http://pdfs
99.
▲
by
a_e_k
2y ago
The funny thing is, in my neck of Seattle (the city this post is complaining about), I've seen some of the harsh white LEDs that went in switched over to a warmer color. I remember being quite shocked when I pulled into a city-owned p
100.
▲
by
a_e_k
2y ago
Neat! I remember contributing the expression parser code for the Knoll et. al 2009 work that you cited in your SIGGRAPH paper. That just rewrote a single user-friendly expression into nested function calls to our IA library in GLSL, witho
101.
▲
by
a_e_k
2y ago
For Fedora, at least, there's been a recent proposal to upgrade KDE to the same status as Gnome. https://www.phoronix.com/news/Fedora-KDE-Desktop-Promoted
102.
▲
by
a_e_k
2y ago
As I understand it, that's how the original MMX got started. It was largely reusing the x87 ALU, but breaking the carry chains at the obvious points.
103.
▲
by
a_e_k
2y ago
Interesting. I've been using the Hacker's Keyboard with Termux, but it doesn't seem to have received any updates in a long time. (I'm fine with programs being considered complete, but I also realize that Android is unf
104.
▲
by
a_e_k
2y ago
Or the classic tweet ( https://x.com/AlexBlechman/status/1457842724128833538 ): > Sci-Fi Author: In my book I invented the Torment Nexus as a cautionary tale > Tech Company: At long last, we have created the T
105.
▲
by
a_e_k
2y ago
Yep, I've taken several three-week vacations and it's never been a problem. The main thing is just giving plenty of advance notice (and reminding people as it gets close) so my manager can schedule around it, and making sure proj
106.
▲
by
a_e_k
2y ago
The big ones for me with log/printf debugging are: - I can get a good idea of the temporal behavior of the program, and I can just scroll up to see earlier state, rather than having to restart the program in the debugger. (I know that
107.
▲
by
a_e_k
2y ago
> Emacs is really struggling with it's tools. First I've heard of this. As a long-time vanilla Emacs user, I'm using consult-ripgrep and rg-project for ripgrep interfaces, consult-buffer for fast buffer and file switching
108.
▲
by
a_e_k
2y ago
Came here to say exactly this. I've noticed that when I'm standing at my desk, I'm much more likely to start walking around the room, go look out the window, or go pet the cat while thinking something through.
109.
▲
by
a_e_k
2y ago
Anecdotally, my cat's definitely know the word "Greenies" for their favorite treats. Fairly recently, I was calling one who was napping to let her know I was about to dispense them. She woke up, lifted her head, perked her e
110.
▲
by
a_e_k
2y ago
Wow. I'd totally missed the Settings screen. Tiny little gear icon on the right... (And cute: it spins when I click it. Blech.)
111.
▲
by
a_e_k
2y ago
> there is only a single buyer for the mud Monopsony!
112.
▲
by
a_e_k
2y ago
I like to sleep on my back, but with a pillow over my forehead and eyes (i.e., nose and mouth exposed to fresh air).
113.
▲
by
a_e_k
2y ago
My first thought when I read the article was that that image must have been run through something like a contrast-limited adaptive histogram equalization (CLAHE) process. See here, for an example: https://imagemagick.org/scr
114.
▲
by
a_e_k
2y ago
Crazy thought: something like BorgBackup. If only 20% of the content gets changed, the rolling hash that Borg does to chunk files could identify the 80% common parts and then with its deduplication it would store just a single compressed co
115.
▲
by
a_e_k
2y ago
That was the first alternative that I thought of. Experimenting with this: int sign_extend(int val_11b) { struct { int v : 11; } t = { val_11b }; return t.v; } in Compiler Explorer produces pretty much the same
116.
▲
by
a_e_k
2y ago
The famous "Your scientists were so preoccupied with whether they could, they didn't stop to think if they should" line from Jurassic Park comes to mind.
117.
▲
by
a_e_k
2y ago
Is it the shape or the material? I notice that the destroyed house next to it seems to have been made of the typical light timber frame and regular glass windows. By comparison, my parents' house in Puerto Rico isn't dome-shaped -
118.
▲
by
a_e_k
2y ago
I'm exactly the same on all those (and add kicking to the right-sided list). Cross-dominant [1] is the usual term I use for it. [1] https://en.wikipedia.org/wiki/Cross-dominance
119.
▲
by
a_e_k
2y ago
> Basically it is trying to squeeze blood from a stone and the image out of renderer is going to be far sharper than anyone will see because it will go through multiple stages. Even compositing almost never leaves a render verbatim. Don&
120.
▲
by
a_e_k
2y ago
Historically, Pixar's RenderMan defaulted to a 2x2 Gaussian filter [1], and from what I can see, that hasn't changed [2]. Essentially it uses a truncated isotropic (non-separable) Gaussian defined by exp(-2.0 * (x*x + y*y)) with a
More ›