Created Quill, Shadertoy, Pixar's Wondermoss. Math & Art Videos at * piped.video/Inigo_Quilez * tiktok.com/@inigoquilez * iquilezles.org

san francisco
Joined October 2011
hey look, an AI artist got hurt because somebody stole his prompt
Never do this: Passing off someone else’s work as your own. This Grok Imagine effect with the day-to-night transition was created by me — and I’m pretty sure that person knows it. To make things worse, their copy has more impressions than my original post. Not cool 👎
The four ways to solve all your problems*: 1) reparametrize ("hi trigonometric substitution") 2) change the frame of reference ("from here, this looks simpler!") 3) make the cow spherical ("I think nobody will notice") 4) computationally simulate many possibilities, pick best** ("I really have no idea what I'm doing") * in electrical engineering, probably other domains too ** you could see modem deep neural network training as an evolution of 4
5
18
2
233
This is an improved design, with paddles at 100 degree or so, which improves throughput by almost 4x (can't do 90 degrees exactly because paddles would collide).
41
0
We improvised a marble elevator with some lego technique and regular legos, for a duplos marble run we had around.
For those who didn't peep the comments, f(x) is: ∣x∣ˣ or in code pow( abs(x), x ) Beautiful, but unfortunately the derivative f'(x) = (1+ln ∣x∣)⋅∣x∣ˣ shoots to -∞ at the origin.
6
1
110
Here's a game - Can You Guess the Function? hint - it's way shorter than you're probably thinking
A library I'm considering uses Boost for a few basic containers (small_vector, bimap, etc). Because of Boost's non-modular design (every header includes most other headers), build times are ridiculous. I removed the Boost dependency and implemented equivalents to all required containers in less than 120 lines in standard C++ each, which was trivial and very quick. * Lib build times are down from 3 minutes to 7 seconds. * Lib package is down from 800 MB to 0.5 MB. * Lib no longer interferes with other modules' requirements. * Lib is easier to install, debug, customize and maintain. I understand that always avoiding all dependencies shouldn't be a goal. But I'm still bewildered by the opposite mindset of bloating everything, especially for cases like this library design where the pros to cons are really one sided, and doing it right was actually less work than doing it wrong.
I've been giving a serious attempt at using Cursor in a C++ code base. I might still be using it wrong, but I've only managed to get it to write code that compiles and is also actually useful, once every 20 attempts or less. When it does succeed, it's limited to very narrow tasks, never large enough to offset the time wasted by commanding and helping the AI do the work. So as of today, the more I use Cursor, the bigger the productivity loss (and frustration), very far from the advertised claims. I haven't tried other competitor products though, but I'd expect the same unless there's some model out there trained through reinforcement learning instead of basic pattern memorization? Regardless I'll keep trying though because I really want the super-powers; live is short and I have lots of ideas to try. Or is my experience an outlier, and are other C++ developers actually successful with these tools?
I think calling them the "laws" of physics is misleading, it makes it feel like the universe has some sort of obligation to follow a set of external rules. Maybe the "models" or "behaviors" of physics, whether you need to highlight the human should be in the loop or not?
Also GOOD: float c; if( x<0.5 ) c=a; else c = b;
3
2
1
150
Hey, don't "optimize" conditional moves with mix()+step(). Please stop advising that. Why: iquilezles.org/articles/gpuc…
42
208
14
1,571
I did a comparison of Posit32 vs Float32 numbers. Posit gives such better precision for the same bit size, but is 1.7x slower (I compared software implementations).
The reason I've never been able to use any open source library is that "you only need python, npm, node, yarn, make, ninja and ssh, but only some pecific versions, and then type these things in the command line like it's still the 90s, only they never work, fuck this shit".
0.92387953 = cos( π/8) 0.38268343 = cos(3π/8) 0.70710678 = 1/√2 Shader here: shadertoy.com/view/M3ycWd
1
2
178