News for hackers. Stuff that matters.

hcs

Re:Nibnib: Image compression with extreme decompression speed on Monday November 02, 2026 @07:20AM (#50335855)
I had some similar ideas for an assembler targeting MIPS, I wanted to use symbolic names, reserved within called scopes, and have the assembler find an allocation or error (requiring an explicit decision of what to spill), didn't find relevant examples at the time (circa 2018). Ultimately I decided I was wasting too much time on the assembler and went with global allocations for the most part.
if ... then ... neht ... fi
There are numbers between 0.1% and 20%
Re:Borges Labyrinth in Venice reopens to the public on Tuesday September 01, 2026 @12:59AM (#49518136)
I recently picked up this recently, it uses The Library as a way of discussing a few different mathematical topics. I can't strongly recommend it but it's interesting. https://en.wikipedia.org/wiki/The_Unimaginable_Mathematics_o...
Re:The title cards in Blade Runner are amazing on Wednesday August 05, 2026 @06:19PM (#49189844)
I would expect the LLM-ese to not repeat "called" like that.
Re:There Will Come Soft Rains [pdf] on Tuesday August 04, 2026 @11:31AM (#49170389)
Events of Back to the Future II (2015-10-21)
Same, seeing the title and having not read Bradbury for a long time I was thinking either The Veldt or that one (The Long Rain). I did remember it on reading, though, and it's an unsettling feeling.
Maybe I'm not communicating the point clearly. In order to use a table to do the whole multiplication it has to be much larger than the largest number you would want to multiply with it. A lot of the analysis of algorithms, especially multiplication as discussed here, is about astronomically large numbers, so you don't want the existence of an even more astronomically large table as a prerequisite.
Well, yes, which is why they don't measure it your way, as it doesn't lead to discovering anything interesting about computation to have a shortcut like that. Or if they do it's part of a larger analysis, called an oracle machine.
An algorithm is a finite sequence of instructions, and so can't include an infinite table. More generally, https://en.wikipedia.org/wiki/Effective_method
Re:Tokenmaxxing is dead, long live tokenmaxxing on Sunday June 28, 2026 @04:09PM (#48711096)
> If you're a carpentry shop that just bought power tools for the first time and you're worried that your employees are sticking with hand tools because that's what they know, then you look for sawdust.

Or count the fingers, I guess. It's all fun and games until someone looses AI.

Though the ancients did recognize as occult forces magnetism (Thales, according to Aristotle, gave the motive power of magnets as an example that even apparently inanimate objects have souls) and electricity (from triboelectic effects with amber, whence comes the name, and which Thales discussed as induced magnetism, also Plato mentions the stunning caused by electric rays), though it would be a while before the connection was made between these phenomena.
Pitch is the offset between the start of consecutive rows of pixels in the image, used to convert y coordinates into the start of any given row, so you access a pixel as buffer[y*pitch+x]. Often this is the image width, but can be greater depending on required alignment.
If we're collecting anecdotes, it happened for me in more of my office jobs than not. Might have been relevant that these were smaller offices.
Re:Nobody cracks open a programming book anymore on Tuesday May 26, 2026 @01:06AM (#48275238)
I liked it, still find good answers, and it was gratifying to provide answers when I could.
Re:The case against boolean logic on Friday May 22, 2026 @11:26AM (#48237211)

    enum Bool
    { 
        True, 
        False, 
        FileNotFound 
    };
https://thedailywtf.com/articles/What_Is_Truth_0x3f_
Re:DBase: 1979-2026 on Monday May 11, 2026 @01:12AM (#48091270)
Some of my earliest programming exposure was a dBASE IV book my dad had for work, though it was some time before I put any of it into action. At that time I was reading manuals like fiction, only slowly realizing that I could actually use some of it with our computer.
Re:The fun has been optimized out of the Internet on Tuesday May 05, 2026 @11:17AM (#48023707)
> millenials got the birth of social media

..and a lot of us weren't thrilled about it.

It's a honeypot for pedants
> Or you do not consider MUL/DIV "arithmetic", or something.

Multiplier and divider are usually not considered part of the ALU, yes. Not uncommon for those to be shared between execution threads while there's an ALU for each.

Re:The 1987 Game "The Last Ninja" was 40 kilobytes on Tuesday April 07, 2026 @01:15AM (#47670993)
I phrased that badly, Dragon's Lair was the example of low process intensity.
Re:The 1987 Game "The Last Ninja" was 40 kilobytes on Monday April 06, 2026 @12:01PM (#47662669)
Even on NES a lot of games use CHR-RAM so arbitrary bitmaps are at least possible, though only a small part of the screen is unique without some rarely used mapper hardware. Zelda and Metroid mostly just use this to compress the graphics in ROM, Qix is a simple example with line drawing, Elite is an extreme one.

I made a demo of the Mystify screensaver using the typical 8KB CHR-RAM. Even with a lot of compromises it has pretty large borders to avoid running out of unique tiles. https://youtube.com/watch?v=1_MymcLeew8

Re:The 1987 Game "The Last Ninja" was 40 kilobytes on Monday April 06, 2026 @03:30AM (#47657932)
Chris Crawford called this "process intensity", it was a distinction he saw even back to 1983 with Dragon's Lair: https://www.erasmatazz.com/library/the-journal-of-computer/j...
Re:Some Unusual Trees on Sunday April 05, 2026 @01:09AM (#47646285)
Or you can just hit the Random button https://en.wikipedia.org/wiki/Special:Random
There's a restrictions on games with even simulated gambling
You are more quickly being carried by the ground further from where you would otherwise be. Hope that clears it up.
Not the same thing but I was reminded of a joke about the puzzle game Stephen's Sausage Roll:

> I have calculated the value of Pi on Sausage Island and found it to be 2.

https://web.archive.org/web/20240405034314/https://twitter.c...

Re:On The Need For Understanding on Monday March 16, 2026 @07:58PM (#47406744)
As they say in a somewhat different context: worse is better
> But what if you could push?

There are a number of so-called "bounty" programs like this for software, I don't know how well any of them work.

Re:Ask HN: Please restrict new accounts from posting on Sunday March 08, 2026 @07:53PM (#47302984)
Or grade accounts by the logarithm of how many accounts were registered before them, like Slashdot. (This is tongue in cheek as I assume yours was.)

Older »