Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Unicode in C, C++ and Perl (Score 2, Informative) 728

One thing many people aren't aware of is that for several years now (since GCC3), GCC and G++ accept UTF-8 as their default input encoding, and internally store narrow and wide strings as UTF-8 and UTF-32, respectively. It's recoded to the output stream locale when you do any output. This means you can write your source code in Unicode (in strings and comments at least) and it all works perfectly. It has full support in the C and C++ standard libraries. I've been using it for years; it works perfectly. It would be nice to get support for UTF-8 symbols in the linker, so we can have UTF-8 variable names as well. The same applies to Perl, though perl6 even gives you the ability to have Unicode operators, and possibly variable names.

I do routinely use UTF-8 symbols in R (example: "deltaCt" can be replace with the actual Delta symbol [Slashdot ate the Unicode--seriously poor!]). It makes the code more readable, and entry isn't the massive issue people make it out to be. AltGr/compose keys handle the common symbols, and you can look up the few odd ones that aren't in the compose tables.

Having the ability to use Unicode does not in any way detract from the ability to use ASCII. Since ASCII is a strict Unicode subset, the ability to use Unicode imposes zero overhead on those who wish to stick with ASCII, so the extent of the hate seen for wanting a bit of progress is a bit shocking. People pointed out how unreadable code could be made, but the reality is that when used sensibly and judiciously, it can make code more concise and readable.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522776 for information about some of the issues.
Having native Unicode support end-to-end by default is still a goal we want to achieve; the ASCII C locale is the last holdout. Getting a UTF-8 C locale is the last remaining step, though it'll take a few years to get there.

Regarding editing Unicode sources, both Emacs and vim have pretty decent Unicode support, and Linux distributions have had unicode support for a decade now, and really good support for at least six years. Broken tools are no longer an excuse for not using Unicode.

Regards,
Roger

Cellphones

Porting Lemmings In 36 Hours 154

An anonymous reader writes "Aaron Ardiri challenged himself to port his classic PalmOS version of Lemmings to the iPhone, Palm Pre, Mac, and Windows. The porting was done using his own dev environment, which creates native C versions of the game. He liveblogged the whole thing, and finished after only 36 hours with an iPhone version and a Palm Pre version awaiting submission, and free versions for Windows and Mac available on his site."
Censorship

North Korea's Own OS, Red Star 316

klaasb writes "North Korea's self-developed computer operating system, named 'Red Star,' was brought to light for the first time by a Russian satellite broadcaster yesterday. North Korea's top IT experts began developing the Red Star in 2006, but its composition and operation mechanisms were unknown until the internet version of the Russia Today TV program featured the system, citing the blog of a Russian student who goes to the Kim Il-sung University in Pyongyang."
Government

Secret Service Runs At "Six Sixes" Availability 248

PCM2 writes "ABC News is reporting that the US Secret Service is in dire need of server upgrades. 'Currently, 42 mission-oriented applications run on a 1980s IBM mainframe with a 68 percent performance reliability rating,' says one leaked memo. That finding was the result of an NSA study commissioned by the Secret Service to evaluate the severity of their computer problems. Curiously, upgrades to the Service's computers are being championed by Senator Joe Lieberman of Connecticut, who says he's had 'concern for a while' about the issue."
Unix

PC-BSD 8.0 Release Focuses On Desktop Use 154

donadony writes "Last Monday PC-BSD 8.0 was released. PC-BSD is based on FreeBSD and uses KDE as its default desktop environment. PC-BSD is designed to make BSD much easier for desktop use. The 8.0 release includes support for 3D acceleration with NVIDIA drivers on amd64 and improvements in the USB subsystem. The PC-BSD team has also developed a friendly package manager system with a simple-to-use GUI tool (see the screenshots tour). For a full list of changes, refer to the changelog."
Social Networks

Game Distribution Platforms Becoming Annoyingly Common 349

The Escapist's Shamus Young recently posted an article complaining about the proliferation of distribution platforms and social networks for video games. None of the companies who make these are "quite sure how games will be sold and played ten years from now," he writes, "but they all know they want to be the ones running the community or selling the titles." Young continues, "Remember how these systems usually work: The program sets itself up to run when Windows starts, and it must be running if you want to play the game. If you follow this scheme to its logical conclusion, you'll see that the system tray of every gaming PC would eventually end up clogged with loaders, patchers, helpers, and monitors. Every publisher would have a program for serving up content, connecting players, managing digital licenses, performing patches, and (most importantly) selling stuff. Some people don't mind having 'just one more' program running in the background. But what happens when you have programs from Valve, Stardock, Activision, 2k Games, Take-Two, Codemasters, Microsoft, Eidos, and Ubisoft? Sure, you could disable them. But then when you fire the thing up to play a game, it will want to spend fifteen minutes patching itself and the game before it will let you in. And imagine how fun it would be juggling accounts for all of them."

Kindle Pricing, Business Models and Source Code 156

narramissic writes "A trifecta of Kindle-related news surfaced this week, with Jeff Bezos speaking at Wired's 'Disruptive by Design' conference on topics including Kindle pricing and business models. And yesterday, reports blogger Peter Smith, 'there was a flurry of blogging activity yesterday stating that Amazon had released the Kindle source code. Once everyone caught their breath, it became apparent that the files in question were just some open source libraries that Amazon had modified (they're being good open source citizens and releasing mods they've made to open source code — good for them!), not the complete source code.' Now, back to the Kindle pricing: According to a post at Wired, Bezos said Amazon opted to sell the Kindle for 'something akin to the actual cost for hardware,' rather than subsidizing the hardware costs and requiring a monthly subscription or requiring the buyer to purchase a certain number of books per month because 'fees and minimum purchase requirements create friction.' Smith has a different take: 'If I'm buying a Kindle from Amazon that enables me to buy books from Amazon, I'm broadcasting a desire to buy Kindle books. I would welcome some subsidization of the hardware since I'm going to be buying content anyway. No, I really think Amazon priced the Kindle the way they did because they thought they could get away with doing so (and they were right, it would seem).' Meanwhile, over at the New York Times, Bezos said 'that he sees Kindle-the-device and Kindle-the-book-format as two separate business models, and that the Kindle iPhone App won't be the last software reader to appear.'"

Slashdot Top Deals

Living on Earth may be expensive, but it includes an annual free trip around the Sun.

Working...