Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×
Emulation (Games)

Submission + - JavaScript Gameboy emulator, detailed in 8 parts (imrannazar.com)

Two9A writes: JavaScript has shed its image of being a limited language, tied to DOM manipulation in a browser; in recent years, new engines and frameworks have given JS a reputation as a language capable of bigger things. Mix this in with the new elements of HTML 5, and you have the capacity to emulate a game console or other system, with full graphical output. This series of articles looks in detail at how an emulator is written in JavaScript, using the example of the Gameboy handheld: starting at the CPU, and (as of part 8) running a copy of Tetris.

Comment Re:C++? (Score 1) 546

Let's ignore that C doesn't even have "pass by reference"; there's either pass by value or pass by pointer-to-a-value, which is itself a value.

I never understood the animosity against C++. Sure, it's a larger language (you just need to look at the difference in sizes between K&R and Stroustrup to see that); and sure, g++ spits out utterly incomprehensible errors when you work with the Template Black Magic; but on the whole, I find it makes for a more structured program than the equivalent C.

Of course, the only way to fly is Brainfuck; don't let anyone tell you otherwise.

Comment Re:BTDT (Score 1) 582

That sounds very similar to what I did back in 2006, on the Nintendo DS. I tried to put together the smallest DS ROM that could actually do something (in this case, turn the screen red):


I ended up embedding the code in the NDS header, which is 352 bytes long; I don't think it's possible to get a DS ROM smaller than that, but I'd be willing to be proved wrong.


Submission + - "Dead" Facebook User Gets Better (thulbourn.com)

Two9A writes: With the recent introduction of memorial accounts on Facebook, the potential arises for hilarity and abuse. Simon Thulbourn's Facebook page has been marked as "in memorial", on the word of a report submitted by one of his friends; unfortunately, the closest the report gets to Simon is that the funeral service in question was officiated by "Revd Simon Thorburn", which seems to be enough for Facebook to mark an unrelated user's profile as dead. Questions have previously been raised about the standard of proof required by Facebook for this service; it seems that those questions were pertinent, if the lax attention paid to these reports by Facebook staff continues.

Submission + - I'm getting better... (thulbourn.com)

sthulbourn writes: So a couple of days ago now, I posted a story from boing boing into my facebook feed, the one about how to register your friends as dead on facebook, it seems it's rather easy to make people dead and seemingly, you don't need to even know that much about them nor do you really have to prove it. I was registered as dead by a "friend" who managed to convince facebook that I was dead with little effort using an obituary notice that wasn't even about me.

Comment Re:Vaporware (Score 1) 1006

Your figures are very interesting, but bad.

You state that a million electric vehicles, charging all at the same time, will take 3TW of power for an hour. When was the last time you saw a million cars fuelling up at once?

If we assume that the car charging times are evenly distributed, and that the cars all need fully recharging once a day, we get 0.125TW of power for each hour of the day. That's worst case, with the stipulations I've just given; a long-range EV isn't going to need charging once a day, unless it's constantly going transcontinental. With 1.08TW of capacity, I don't think we'll have a problem.

Comment Re:Oblig xkcd reference (Score 1) 198

Of course, this neglects to mention the sterling work that members of the xkcd forums do to destroy and/or improve the comics, in the spirit of "Making xkcd Slightly Worse".

I'm currently building an archive of the xkcd/sw posts, and I'm looking to release a book of the "best" of the worsened comics. I will probably be buying Randall's book, if only to get ideas for layout and styling.

It's funny.  Laugh.

Submission + - Shooting Yourself in the Foot: Part Two (imrannazar.com)

Two9A writes: "Most developers have seen the list of how various programming languages would implement shooting yourself in the foot. If we were to assume success, and that the foot and a good piece of leg are both missing, how would we go about rebuilding the leg? I've attempted to continue the story, with a Part Two looking at how languages old and new would go about the job."

Comment Re:They missed the Apple ][ (6502) 16 bit index (Score 2, Informative) 731

I had a similar problem when I was writing an "extended text-mode" (80x25) software driver for the C64, recently. Since each character is encoded into 8 bytes, and there are 256 possible characters, the character definitions span over a wider space than the 8-bit index register can fetch.

Simple to fix: just self-modify the instructions that handle the font buffer, changing the base pointer as you enter a new page. Since the C64 has a 6510 chip, you'll probably understand the code quite well.

I wrote an article on the code a few months back, might be an interesting read.

Slashdot Top Deals

My sister opened a computer store in Hawaii. She sells C shells down by the seashore.