Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment Re:And Futurama (Score 4, Funny) 753

Maybe they put the SciFi shows on Friday nights because they think that the target audience doesn't have a social life and would take a break from their MMORPG or D&D game to watch an hour of TV and give the previous time slot to something that the mainstream audience.

Hey, I asked my DM if we could break for Dollhouse the last couple of weeks, and he correctly pointed out that I didn't have my priorities in order!

Comment "No Such Thing as a Null Pointer" (Score 1) 612

Our programming languages professor, Robert Harper, recently talked about this concept in class. Although he argued that there was "no such thing" as a null pointer, what he actually meant to say was either there shouldn't be such a thing, or that a properly designed language would not have such a notion.

Consider SML (which, incidentally, he helped design). There are of course basic types, ints and bools etc, but it also has the notion of an "option" datatype. A foo option can either be NONE, or SOME of foo. For example, if you are doing some calculation that returns an int but may somehow fail to calculate its result, it will return an int option, with either SOME(result) if there was success, or NONE if it failed. Due to SML's strong type system, the function using that result would have to do case analysis on the result -- you can't use an int option as if it were an int; you need to pattern match and grab the int out of the SOME case and otherwise handle the NONE case.

Java (and C and...) doesn't do this properly. Take an ArrayList, for example. When you say "ArrayList foo", what you actually have is an ArrayList option, he argued, since you really either have SOME(an actual ArrayList) or NONE, representing the null pointer. Except Java has no notion of option types. There's no way to actually get an ArrayList -- you always have an ArrayList option. You have to check for NULL every time.

Thus his argument for why Java et al are badly designed, and how you can properly design a programming language without a need for a NULL pointer -- you use a different type altogether, upon which you can properly case analyze.

Data Storage

On the State of Linux File Systems 319

kev009 writes to recommend his editorial overview of the past, present and future of Linux file systems: ext2, ext3, ReiserFS, XFS, JFS, Reiser4, ext4, Btrfs, and Tux3. "In hindsight it seems somewhat tragic that JFS or even XFS didn't gain the traction that ext3 did to pull us through the 'classic' era, but ext3 has proven very reliable and has received consistent care and feeding to keep it performing decently. ... With ext4 coming out in kernel 2.6.28, we should have a nice holdover until Btrfs or Tux3 begin to stabilize. The Btrfs developers have been working on a development sprint and it is likely that the code will be merged into Linus's kernel within the next cycle or two."
Security

Submission + - Hacker publishes notorious Apple Wi-Fi attack (computerworld.com.au)

inkslinger77 writes: "More than a year after claiming to have found a way to take over a Macintosh computer using a flaw in the system's wireless card, David Maynor has finally published details of his exploit. Maynor had been under a nondisclosure agreement, which had previously prevented him from publishing details of the hack, but the NDA is over now and by going public with the information, Maynor hopes to help other Apple researchers with new documentation on things like Wi-Fi debugging and the Mac OS X kernel core dumping facility."
Music

Submission + - Final Fantasy VII: Voices of the Lifestream (ocremix.org)

djpretzel writes: "Today OverClocked ReMix released its ninth album, Final Fantasy VII: Voices of the Lifestream. The album, made by fans for fans, honors the recent 10-year anniversary of the Square Enix PlayStation video game Final Fantasy VII with 45 arrangements of composer Nobuo Uematsu's original score. Available for free download at http://ff7.ocremix.org, Voices of the Lifestream is not affiliated with or endorsed by Square Enix. More than 40 artists from the OverClocked ReMix community contributed more than three hours of music to the album, with interpretations covering a variety of genres and styles from jazz to electronica to rock to symphonic."
Linux Business

Submission + - Painless way to buy a Linux computer?

An anonymous reader writes: So it's time for me to buy a new computer, and this time it's going to be a Linux-only desktop. Nobody has anything good locally, and I want something a little spiffier than a standard Dell, so I spent the better part of the weekend clicking away at online shopping sites and hardware database boards until my eyes seemed to permanently glaze over (they're almost better now). I want something decent, I don't have too many "must-haves" to meet, but the whole process doesn't seem clear at all. Is it 1992? No. Is it 1998? No. Is it 2001? No, it's 2007. Linux is how old? How come you still have to be a weekend tinkerer to shop for a good desktop computer and components that are free software friendly?
Space

Submission + - Lost Moon landing tapes discovered

de_smudger writes: For years 'lost' tapes recording data from the Apollo 11 Moon landing have been stored underneath the seats of Australian physics students. A recent search has uncovered them.

Recorded on telemetry tapes, they are said to be the best quality images of the landing (unconverted slow scan TV) yet to be seen by a public still fascinated by the early space race. These tapes were mislaid in the early 1980s on their way to NASA's Goddard Space Flight Centre in Greenbelt, Maryland.
Announcements

Submission + - Internet's Largest Internet Forum to Shut Down

Neo_Mushroom writes: "From the article: "2channel, the largest Internet forum in the world and an ISP in Japan, has been shuttered by a Japanese court ruling in a civil slander case. The corporation managing 2channel was declared bankrupt and its assets will be seized. The ISP will close on January 15th, and the future of the famous "mega-BBS" is uncertain."

For those who've never heard of 2channel, the BBS is massively popular, recieving over 2.7 million posts every day."
Wii

Submission + - Water contest for a Wii kills

priestx writes: A Californian woman who took part in a water-drinking contest to win a video game system has died of water intoxication, tests have shown. Jennifer Strange had taken part in the "Hold Your Wee for a Wii" game run by KDND 107.9 radio in Sacramento, which promised the winner a Nintendo Wii. A work colleague said Ms Strange had reported her head was hurting hours after the contest and was going home.

Slashdot Top Deals

Work without a vision is slavery, Vision without work is a pipe dream, But vision with work is the hope of the world.

Working...