Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror

Comment Re:Meh (Score 2, Interesting) 255

Ouch, i thought the formatting would be preserved with tags. Posting as plain old text now :P

----- test.c

const char msg[]="Hello World\n";

void _start(){
        asm("int $0x80;"::"a"(4),"b"(1),"c"(msg),"d"(12)); // write (1, msg, 12);
        asm("int $0x80;"::"a"(1),"b"(0)); // exit(0);
}
---------
$ gcc -m32 -Os -nostdlib -nostartfiles -s -o test test.c
$ wc -c test 436 test
$ ./test
Hello World

And this is just scratching the surface. Of course, in a real 4K you would want to use some compression, too, as pointed by another replies.

Comment Re:Meh (Score 1) 255

/* Look ma! No libc */ const char msg[]="Hello World\n"; void _start(){ // write (1, msg, 12); asm("int $0x80;"::"a"(4),"b"(1),"c"(msg),"d"(12)); // exit(0); asm("int $0x80;"::"a"(1),"b"(0)); } $ gcc -m32 -Os -nostdlib -nostartfiles -s -o test test.c $ wc -c test 436 test $ ./test Hello World And this is just scratching the surface. Of course, in a real 4K you would want to use some compression, too, as pointed by another replies.

Comment Re:finally! (Score 1) 255

So tell us, how'd they pull it off? Specifics, please.

Well, a full-fledged engine is obviously overkill for a 4K intro. Usually you code the specific effects you want to show directly into the intro, and generate on the fly all the data you can, so you don't store triangles or sound waves, but the parameters for some formula you have coded. And you do this in the most compressor-friendly way you can :D. In4K is a wiki with useful tips and discussions for 4K intro coders.

You can find lots of information at Iñigo Quilez's (the main coder of Elevated) home page, too.

His NVscene08 presentation "Rendering worlds with two triangles" is specially relevant here :)

I'm not a top intro coder, but I've made a few ones myself, so ask if you want more details ;)

Comment Re:"Required"? (Score 3, Interesting) 129

Sure it's one setup, but it's hardly "required" otherwise it wouldn't have been possible to do the same trick with the wii-mote.

The wiimote acts as an infra-red camera (the "sensor bar" is a misnomer, it only has some leds), and IIRC the head-tracking trick involves a wiimote pointing at the user and some leds in the user's head.

Music

Financial Crisis Soundtrack 31

German musician Johannes Kreidler made a soundtrack of the global economic crisis composed by running financial graphs through SongSmith. It gets political in a few spots, but is bleakly funny.
Software

(Useful) Stupid Vim Tricks? 702

haroldag writes "I thoroughly enjoyed the recent post about Unix tricks, so I ask Slashdot vim users, what's out there? :Sex, :b#, marks, ctags. Any tricks worth sharing?"
Music

Submission + - Linux: A Musician's OS?

lazyeye writes: Keyboard Magazine has an in-depth article about the state of music production on Linux. While it does introduce Linux to the average musician, the article does get into some of the available music applications and music-oriented Linux distributions out there. From the opening paragraph:

You might think there's no way a free operating system written by volunteers could compete when it comes to music production. But in the past couple of years, all the tools you need to make music have arrived on Linux.
Wii

The Wii - Is the Magic Gone? 492

Computer And Video Games asks the tough question: is the Wii's magic gone? After the flurry of excitement around the launch, lackluster ports and a persistent inability for Nintendo to keep units on the shelves has made it hard for gamers to sustain their enthusiasm for the system. It doesn't help that most of the good games slated for this year won't be out for months. In some cases, there's doubt they'll even make it out this year: Reggie Fils-Aime appears to be backpedaling on Metroid Prime 3 by Christmas, which would be a shame. GigaGamez has additional commentary. Are you still as excited about the Wii as you were when it launched?

Slashdot Top Deals

Biology grows on you.

Working...