Better HN
topnewbestaskshowjobs
Log inSign up

hcs

1,690 karma · joined Aug 27, 2015 (11y ago) · 650 submissions

gashlin.net
Submissions

comment 1d ago · link · parent

Sometimes success is just having written.

comment 6d ago · link · parent

Neat! I've messed with something similar for ZPAQ, didn't realize RAR had it as well. And for a long time, this might need (2012)

In my case I wanted to compress CD subcodes, most of the unpredictability for these is from a CRC16 on every frame, so I made a filter to xor that out and then back in. If anyone finds that amusing: https://gist.github.com/hcs64/84d981f42cc9f3cfb0f4fc8b37d447...

comment 2w ago · link · parent

Even later printings of the first edition of Code lose a lot of that nice hefty handbook feel, unfortunately.

comment 2w ago · link · parent

Programmers at Work has a new edition, so might be easier to find now! https://www.programmersatwork.net/the-book

Agreed that Code is great! I'll pick up the second edition some day if I ever see it on a bookshelf.

comment 3w ago · link · parent

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.

comment 3w ago · link · parent

if ... then ... neht ... fi

comment 1mo ago · link · parent

There are numbers between 0.1% and 20%

comment 2mo ago · link · parent

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...

comment 3mo ago · link · parent

I would expect the LLM-ese to not repeat "called" like that.

comment 3mo ago · link · parent

Events of Back to the Future II (2015-10-21)

comment 3mo ago · link · parent

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.

comment 4mo ago · link · parent

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.

comment 4mo ago · link · parent

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.

comment 4mo ago · link · parent

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

comment 4mo ago · link · parent

> 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.

comment 5mo ago · link · parent

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.

comment 5mo ago · link · parent

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.

comment 5mo ago · link · parent

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.

comment 6mo ago · link · parent

I liked it, still find good answers, and it was gratifying to provide answers when I could.

comment 6mo ago · link · parent

    enum Bool
    { 
        True, 
        False, 
        FileNotFound 
    };
https://thedailywtf.com/articles/What_Is_Truth_0x3f_

comment 6mo ago · link · parent

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.

comment 6mo ago · link · parent

> millenials got the birth of social media

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

comment 6mo ago · link · parent

It's a honeypot for pedants

comment 7mo ago · link · parent

> 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.

comment 7mo ago · link · parent

I phrased that badly, Dragon's Lair was the example of low process intensity.

comment 7mo ago · link · parent

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

comment 7mo ago · link · parent

Chris Crawford called this "process intensity", he noted it at least back to 1983 with Dragon's Lair, discussed in this 1987 article https://www.erasmatazz.com/library/the-journal-of-computer/j...

comment 7mo ago · link · parent

Or you can just hit the Random button https://en.wikipedia.org/wiki/Special:Random

comment 7mo ago · link · parent

There's a restrictions on games with even simulated gambling
12345
22