18,530 karma · joined Aug 21, 2017 (9y ago) · 7,644 submissions
comment 2d ago · link · parent
Such a relationship also seems to hold for semiconductors, increase the componentoperatingtemperaturewith 10C and you roughly half the component lifetime[2]. However thermal cycling and similar adds additional stress so it's not as simple a relationship as with chemicals.
comment 6d ago · link · parent
In math at least I often use analogies to help solve problems, like "ah maybe if I think of this as a vector I might use linear algebra here" and such.
comment 1w ago · link · parent
I played with RC cars back in the 90s, 1200mAh was considered beefy before NiMh came and bumped it up slightly. Now we have lithium batteries with several times that capacity in the same form factor.
Most of that came from chipping away at it. Yes new technology got introduced but in the beginning they were not decisively superior, they had to be refined and improved little at a time.
Perhaps we'll find a miracle cure that fixes everything, maybe we have to chip away at it and get half a year here, another year there.
comment 1w ago · link · parent
edit: I need to learn to read, that's the first part of their statement.
The statement of the Riemann Hypothesis is correct. This statement is part of Mathlib: RiemannHypothesis and has been carefully vetted by experts in Lean and number theory.
comment 1w ago · link · parent
The surface-building inner loop is particular efficient, because it consists of nothing more than interpolating intensity, combining it with a texel and using the result to look up a lit texel color, and storing the results with a dword write every four texels. In assembly language, we've gotten this code down to 2.25 cycles per lit texel in Quake. Similarly, the texture-mapping inner loop, which overlaps an FDIV for floating-point perspective correction with integer pixel drawing in 16-pixel bursts, has been squeezed down to 7.5 cycles per pixel on a Pentium, so the combined inner loop times for building and drawing a surface is roughly in the neighborhood of 10 cycles per pixel.
comment 1w ago · link · parent
https://groups.google.com/g/sci.nanotech/c/QlsQPORilE8
Sorry about the previous sloppified link.
comment 1w ago · link · parent
[1]: https://gist.github.com/pmarreck/7092d28f3d9bf8dff99faa61d01...
comment 1w ago · link · parent
I've made a AviSynth/VaporSynt image manipulation program which runs on WebGPU in the browser. I wanted a script-like experience for reproducibility (apply exactly same transformations to several images) but also interactivity for fooling around with.
I made my own astrophotography camera controller for my Canon camera. It runs on a Pi and has a browser UI, so I just need the phone and the Pi. It does autofocus, helps reframe the same shot on a different day, polar alignment assistance, and sends data to Stellarium so I can see exactly what's in frame when back inside.
I made a true-color version of the Quake II software renderer[1], I've always preferred the gritty look of the software renderer over the GL renderer, but not the poor shadows and such which comes from the limited 8-bit palette. So now I'm playing Quake II the way I've dreamed of all these years.
I've made a Rust-based implementation of JPEG XR, not to to be confused with XL, so I could more easily convert OpenEXR images to and from JPEG XR. This format is what Windows requires for HDR background images, and existing tools didn't handle color spaces right.
comment 1w ago · link · parent
I wasn't sure which license I wanted to use for the project, BSD, GPL or similar. Claude would not shut up about the lack of license. Every piece of work it did, large or small, had a "nothing can be published yet as no license has been decided yet" or similar phrasing in the summary.
comment 1w ago · link · parent
The lightmaps and such support colored lighting, but by default the software renderer just used the max IIRC of the color channels as a monochrome light value.
Just for giggles I recently had Claude rewrite the software renderer for Quake 2 to support true-color output and so could enable `sw_colorlight 1` when using the software renderer. Doing so results in the same reddish tint as the GL renderer, but with the software renderer aesthetics.
I think you can set `sw_colorlight` to `1` even in the classic renderer, but it'll look quite bad due to the limited colors afforded by the 8-bit palette.
Makes sense I guess, the plot takes place on Mars, so perhaps that's why they went heavy on the red-orange.
edit: uploaded some screenshots to show the difference:
Classic SW with `sw_colorlight 1`: https://imglink.cc/cdn/fv5Z3WB_aS.jpg
True-color SW with `sw_colorlight 1`: https://imglink.cc/cdn/fx8prYfGs6.jpg
comment 1w ago · link · parent
Was a pain though on eCommerce sites as they'd often switch payment processors and then you had to do the whole dance of partially successful payments until you found the right set of allow lists.
comment 1w ago · link · parent
I saw Thief and Heat on the big screen recently, which was interesting as I hadn't seen Theif before.
Heat is very clearly Thief++. Beats are very similar, overall plot is nearly the same. In both though he spends a lot of time trying to show where the characters are from in a way to give some reason or motivation, twisted or not, for why they do what they do.
I agree these come across as a bit hamfisted in both, but I do think overall I prefer them in versus cut.
comment 1w ago · link · parent
Let me just write a small Python script to decompile a section of this DLL so I can verify the constants for this function matches what the reference said.
With the images, I'll write a small Python script to compute the motion error using the Lucas-Kanade method[1].
Almost literally what Claude (Opus) casually has written as it chipped away at a couple of my problems.
[1]: https://en.wikipedia.org/wiki/Lucas%E2%80%93Kanade_method
comment 1w ago · link · parent
It's mostly oriented towards painters and similar artists, but I find it fascinating as a non-artist.
Especially his color wheel Wednesday videos makes you appreciate just how much weird theories were about, and still linger around.
[1]: https://www.youtube.com/channel/UCXGRyrSH8Ak31H7QGpPlm9w
comment 1w ago · link · parent
Safety systems depending on a single service could lead to catastrophic results if that service fails.
Well duh, that's why safety systems are designed so that if a critical component breaks it fails safe. A red stop button breaks the current, because then a broken wire behaves as if someone pressed the stop button.
If it had been opposite then all sorts of failures could occur and you wouldn't know until the stop button was needed and it didn't work.
If it's not designed to fail safe it's not really a safety system.
A system designed to rely on email for delivering status messages isn't a safety system.
comment 2w ago · link · parent
Fun story time. I started programming on Turbo Pascal. I had read some C code from those demo scene guides, so felt I understood it fairly well by the time I got my hands on a copy of djgpp. I decided to port a relatively simple program I had written in Turbo Pascal, about 300 LOC, line-by-line. It was a small demo just doing a simple rotating, texture-mapped triangle.
I carefully converted it, and went over it several time one line at a time, fixing it until I had read over it three times and was happy.
I then ran the djgpp compiler...
Now, what I hadn't realized at the time was the difference between C and C++. The examples I had seen was C, and I didn't really know what C++ was.
The compiler churned on my code and spit out about 3500 errors and warnings (it counted for me).
I was shocked. How did my 300 line C program manage to produce over 10 errors and warnings per line, on average?!
I spent a long time trying to figure this one out. The first error was inside the first function, and the error made no sense to me.
After several days of carefully going over each line and banging my head against the table, I suddenly saw it. There, at the very start of the program, before the line the first error or warning pointed to.
In Turbo Pascal I had used const to define things like screen width and height. So I'd have
const SCREEN_WIDTH = 320;
const SCREEN_HEIGHT = 240;
Well, C doesn't have const, but I had picked up it had #define. However, my Turbo Pascal habits had kicked in, and so I had written #define SCREEN_WIDTH 320;
#define SCREEN_HEIGHT 240;
I removed the two semi-colons and the program compiled and ran just fine...I ended up staying in Turbo Pascal, I preferred a compiler that gave me sensible errors and quickly. I did pick up C++ much later, and I guess ironically came to appreciate its const correctness.
comment 2w ago · link · parent