×
Programming in Assembly Is Brutal, Beautiful, and Maybe Even a Path to Better AI

Programming in Assembly Is Brutal, Beautiful, and Maybe Even a Path to Better AI

Rollercoaster Tycoon wasn’t the most fashionable computer game out there in 1999. But if you took a look beneath the pixels—the rickety rides, the crowds of hungry, thirsty, barfing people (and the janitors mopping in their wake)—deep down at the level of the code, you saw craftsmanship so obsessive that it bordered on insane. Chris Sawyer, the game’s sole developer, wrote the whole thing in assembly.

Certain programming languages, like Python or Go or C++, are called “high-level” because they work sort of like human language, written in commands and idioms that might fit in at a poetry slam. Generally speaking, a piece of software like a compiler transforms this into what the machine really reads: blocks of 1s and 0s (or maybe hex) that tell actual transistors how to behave. Assembly, the lowest of the “low-level” languages, has a near one-to-one correspondence with the machine’s native tongue. It’s coding straight to metal. To build a complex computer game from assembly is like weaving a tapestry from shedded cat fur.

Why would anyone do this? I recently asked Sawyer, who lives in his native Scotland. He told me that efficiency was one reason. In the 1990s, the tools for high-level programming weren’t all there. Compilers were terribly slow. Debuggers sucked. Sawyer could avoid them by doing his own thing in x86 assembly, the lingua franca of Intel chips.

We both knew that wasn’t the real reason, though. The real reason was love. Before turning to roller coasters, Sawyer had written another game in assembly, Transport Tycoon. It puts players in charge of a city’s roads, rail stations, runways, and ports. I imagined Sawyer as a model-train hobbyist—laying each stretch of track, hand-sewing artificial turf, each detail a choice and a chore. To move these carefully crafted pixels from bitmaps to display, Sawyer had to coax out the chip’s full potential. “RollerCoaster Tycoon only came about because I was familiar with the limits of what was possible,” he told me.

Working within the limits? A foreign idea, perhaps, in this age of digital abundance, when calling a single function in an AI training algorithm can engage a million GPUs. With assembly, you get one thing and one thing only, and it is the thing you ask for—even, as many a coder has learned the hard way, if it is wrong. Assembly is brutal and beautiful that way. It requires you to say exactly what you mean.

I’ve done assembly’s creators a disservice. They wanted things to be easier, not harder. I imagine they were tired of loading up punchcards and flipping switches on their steampunk leviathans. Perhaps they dreamed of a world like ours, where computers can do so much with such minimal guidance.

Source link
#Programming #Assembly #Brutal #Beautiful #Path

The New Moon has now passed, which means each night the Moon will appear bigger and brighter in the sky. This happens as more of its sunlit side comes into view from Earth. From now, it will become more illuminated each night until the next full Moon.

What is today’s Moon phase?

As of Saturday, April 18, the Moon phase is Waxing Crescent. Tonight, 1% of the moon will be lit up, according to NASA’s Daily Moon Guide.

The Moon is starting to brighten again, but for now, there’s still to little of its surface lit up to see anything.

When is the next Full Moon?

The next Full Moon is predicted to take place on May 1, the first of two in May.

What are Moon phases?

NASA states that the Moon takes about 29.5 days to orbit Earth, during which it passes through eight distinct phases. We always see the same side of the Moon, but the amount of sunlight reflecting off it changes as it moves along its orbit, creating the familiar pattern of full, partial, and crescent shapes. These shifting appearances are called lunar phases, and there are eight in total:

New Moon – The Moon is between Earth and the sun, so the side we see is dark (in other words, it’s invisible to the eye).

Waxing Crescent – A small sliver of light appears on the right side (Northern Hemisphere).

First Quarter – Half of the Moon is lit on the right side. It looks like a half-Moon.

Waxing Gibbous – More than half is lit up, but it’s not quite full yet.

Full Moon – The whole face of the Moon is illuminated and fully visible.

Waning Gibbous – The Moon starts losing light on the right side. (Northern Hemisphere)

Third Quarter (or Last Quarter) – Another half-Moon, but now the left side is lit.

Waning Crescent – A thin sliver of light remains on the left side before going dark again.

#Moon #phase #today #explained #Moon #April">Moon phase today explained: What the Moon will look like on April 18, 2026
                                                            The New Moon has now passed, which means each night the Moon will appear bigger and brighter in the sky. This happens as more of its sunlit side comes into view from Earth. From now, it will become more illuminated each night until the next full Moon.What is today’s Moon phase?As of Saturday, April 18, the Moon phase is Waxing Crescent. Tonight, 1% of the moon will be lit up, according to NASA’s Daily Moon Guide.The Moon is starting to brighten again, but for now, there’s still to little of its surface lit up to see anything. 
When is the next Full Moon?The next Full Moon is predicted to take place on May 1, the first of two in May.What are Moon phases?NASA states that the Moon takes about 29.5 days to orbit Earth, during which it passes through eight distinct phases. We always see the same side of the Moon, but the amount of sunlight reflecting off it changes as it moves along its orbit, creating the familiar pattern of full, partial, and crescent shapes. These shifting appearances are called lunar phases, and there are eight in total:New Moon – The Moon is between Earth and the sun, so the side we see is dark (in other words, it’s invisible to the eye).
        
            Mashable Light Speed
        
        
    
Waxing Crescent – A small sliver of light appears on the right side (Northern Hemisphere).First Quarter – Half of the Moon is lit on the right side. It looks like a half-Moon.Waxing Gibbous – More than half is lit up, but it’s not quite full yet.Full Moon – The whole face of the Moon is illuminated and fully visible.Waning Gibbous – The Moon starts losing light on the right side. (Northern Hemisphere)Third Quarter (or Last Quarter) – Another half-Moon, but now the left side is lit.Waning Crescent – A thin sliver of light remains on the left side before going dark again.

                    
                                    #Moon #phase #today #explained #Moon #April

Moon phase is Waxing Crescent. Tonight, 1% of the moon will be lit up, according to NASA’s Daily Moon Guide.

The Moon is starting to brighten again, but for now, there’s still to little of its surface lit up to see anything.

When is the next Full Moon?

The next Full Moon is predicted to take place on May 1, the first of two in May.

What are Moon phases?

NASA states that the Moon takes about 29.5 days to orbit Earth, during which it passes through eight distinct phases. We always see the same side of the Moon, but the amount of sunlight reflecting off it changes as it moves along its orbit, creating the familiar pattern of full, partial, and crescent shapes. These shifting appearances are called lunar phases, and there are eight in total:

New Moon – The Moon is between Earth and the sun, so the side we see is dark (in other words, it’s invisible to the eye).

Waxing Crescent – A small sliver of light appears on the right side (Northern Hemisphere).

First Quarter – Half of the Moon is lit on the right side. It looks like a half-Moon.

Waxing Gibbous – More than half is lit up, but it’s not quite full yet.

Full Moon – The whole face of the Moon is illuminated and fully visible.

Waning Gibbous – The Moon starts losing light on the right side. (Northern Hemisphere)

Third Quarter (or Last Quarter) – Another half-Moon, but now the left side is lit.

Waning Crescent – A thin sliver of light remains on the left side before going dark again.

#Moon #phase #today #explained #Moon #April">Moon phase today explained: What the Moon will look like on April 18, 2026

The New Moon has now passed, which means each night the Moon will appear bigger and brighter in the sky. This happens as more of its sunlit side comes into view from Earth. From now, it will become more illuminated each night until the next full Moon.

What is today’s Moon phase?

As of Saturday, April 18, the Moon phase is Waxing Crescent. Tonight, 1% of the moon will be lit up, according to NASA’s Daily Moon Guide.

The Moon is starting to brighten again, but for now, there’s still to little of its surface lit up to see anything.

When is the next Full Moon?

The next Full Moon is predicted to take place on May 1, the first of two in May.

What are Moon phases?

NASA states that the Moon takes about 29.5 days to orbit Earth, during which it passes through eight distinct phases. We always see the same side of the Moon, but the amount of sunlight reflecting off it changes as it moves along its orbit, creating the familiar pattern of full, partial, and crescent shapes. These shifting appearances are called lunar phases, and there are eight in total:

New Moon – The Moon is between Earth and the sun, so the side we see is dark (in other words, it’s invisible to the eye).

Waxing Crescent – A small sliver of light appears on the right side (Northern Hemisphere).

First Quarter – Half of the Moon is lit on the right side. It looks like a half-Moon.

Waxing Gibbous – More than half is lit up, but it’s not quite full yet.

Full Moon – The whole face of the Moon is illuminated and fully visible.

Waning Gibbous – The Moon starts losing light on the right side. (Northern Hemisphere)

Third Quarter (or Last Quarter) – Another half-Moon, but now the left side is lit.

Waning Crescent – A thin sliver of light remains on the left side before going dark again.

#Moon #phase #today #explained #Moon #April

Post Comment