Better HN
topnewbestaskshowjobs
Log inSign up

magicalhippo

18,530 karma · joined Aug 21, 2017 (9y ago) · 7,644 submissions

Submissions

comment 2d ago · link · parent

It stems from the Arrhenius equation[1] for chemical reactions.

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.

[1]: https://en.wikipedia.org/wiki/Arrhenius_equation

[2]: https://www.ti.com/lit/an/snva509a/snva509a.pdf

comment 5d ago · link · parent

But alcohol intake is associated with elevated cancer risk[1], so this would be more about the mechanism, no?

Or does those mechanisms vary substantially between mice and men, so to speak?

[1]: https://pmc.ncbi.nlm.nih.gov/articles/PMC10867516/

comment 5d ago · link · parent

Sounds like the usual "new and improved recipe" trick, where the "improved" bit is all about making it cheaper to produce.

comment 6d ago · link · parent

I wonder if it's also that it gives them a better sense of analogies. In my experience small LLMs do really poorly with analogies, but the large frontier models seem to get them much, much better.

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 6d ago · link · parent

This[1] BBC article argues that at least for Canada it's not, and that the cause is similar to that of the US: low vaccination rates. Drivers seem to be a bit different, but not primarily immigration-related (recent immigration that is).

https://www.bbc.com/news/articles/c4g8d39gdr0o

comment 1w ago · link · parent

Especially given the statment from Lean experts, currently discussed here[1], where they seem quite satisfied the proof is correct and importantly proves the correcy statement.

[1]: https://news.ycombinator.com/item?id=50589618

comment 1w ago · link · parent

If you'd taken that view on battery capacity you'd be happy with a smart phone that weighs as much as a brick and lasted 20 minutes fully charged.

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

Since I'm not terribly familiar with Lean, math folks are generally satisfied the provided proof encodes the RH correctly I presume?

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

Yes. And it had a very distinct dithering pattern which I can't say I've seen in any other games or such.

comment 1w ago · link · parent

Michael Abrash talks about it[1] in his Ramblings in Realtime[2], which covers a lot of the other tricks they did which still seems quite amazing to me still.

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.

[1]: https://valvedev.info/archives/abrash/chap68.html

[2]: https://valvedev.info/archives/abrash/contents.html

comment 1w ago · link · parent

Back on my desktop I finally found the link I was searching for, the proper newsgroup post:

https://groups.google.com/g/sci.nanotech/c/QlsQPORilE8

Sorry about the previous sloppified link.

comment 1w ago · link · parent

Oh wow, completely missed that bit. That was not the intention.

Sadly, Google has locked away the original it seems behind sign-up bars. I have the original somewhere, guess I'll have to put it somewhere public.

comment 1w ago · link · parent

Ridiculons[1] travels faster than the speed of light, so not unlikely bad news does too.

[1]: https://gist.github.com/pmarreck/7092d28f3d9bf8dff99faa61d01...

comment 1w ago · link · parent

Not op but...

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.

[1]: https://news.ycombinator.com/item?id=50529463

comment 1w ago · link · parent

Didn't try that. I did however state I was deciding between BSD and GPL and that did nothing to calm it down.

comment 1w ago · link · parent

Yeah I noticed this when I wanted to do a cleanroom implementation of a program, using available papers for the formulas etc and the original program as a blackbox reference to ensure compatibility.

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

From what I can gather it's mainly a holdover from Quake[1] and the limited colors afforded by an 8-bit palette.

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

[1]: https://quake.fandom.com/wiki/Colored_lightning

comment 1w ago · link · parent

I ran uMatrix as well for a long time, and in general there were very few sites where you had to enable JS across the board.

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 didn't remember the amount of screen time that was spent on somewhat irrelevant personal drama

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

> I think it's interesting because LLMs (at least if used in the terminal) quickly create their own scripts to do a certain task.

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

I've been enjoying Color Nerd's YouTube channel[1].

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

From the article:

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 1w ago · link · parent

How to read JSON at 277 GB/s in Python, a summary: don't use Python, and use all the cores.

Ok so I jest a bit, but calling a highly optimized C++ library and using a lot of cores makes it a fair bit less impressive than the headline makes out.

comment 2w ago · link · parent

Depends on how unique the needles are. If they're fairly unique then even Qwen 3.5 27B @ Q5 with 128k context and Q4 KV cache has perfect recall of at least up to 5 needles, according to my tests.

But I'm sure if you make them less unique they'll start to struggle.

comment 2w ago · link · parent

> DJ Delorie's djgpp project

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

Similar with my new NUC which also used DDR5. I genuinely thought there was something wrong, powered it off and reseated RAM and such. Kept debugging it for about 30 minutes before I searched and found out it might be training. Left it alone and sure enough after about 15 minutes the display started showing stuff.

comment 2w ago · link · parent

Well AMD and Intel were too, and they've not delivered remotely close to the same performance as NVIDIA.

Ok AMD had some financial woes, but it also has made a lot of less optimal technical and business decisions that were entirely unforced errors.

comment 2w ago · link · parent

> It has always been like this

Nah. I recall putting multiplication tables in RAM because it was faster to read the tables than doing the multiplication.

RAM used to be relatively fast. These days it's dog slow unless you're streaming.

comment 2w ago · link · parent

Yea ended up with my own PNG decoder in JS due to such issues.
12345
255