Slashdot: News for Nerds


Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!



Soccer Superstar Plays With Very Low Brain Activity

GiganticLyingMouth Re:Not too surprising... (155 comments)

Of course, when you get kneed in the back and get a fractured vertebrae, not much acting is required.

12 hours ago

Linus Torvalds: "GCC 4.9.0 Seems To Be Terminally Broken"

GiganticLyingMouth Re:Each new GCC version has regressions (656 comments)

4.8 was also the first GCC version that (more or less) had full support for C++11. It's not terribly surprising to get more regressions when adding (many) new features.


'Just Let Me Code!'

GiganticLyingMouth Re:"Just let me build a bridge!" (368 comments)

I read the article/rant, and he's bitching about the complexity and time required to learn and use modern frameworks and tools, not so much about planning and management. The summary is a bit misleading.

5 days ago

Math, Programming, and Language Learning

GiganticLyingMouth Re:Your Results Will Vary (241 comments)

I think part of the problem is that "programming" is itself so diverse. If you were to be a graphics programmer, you would certainly need your linear algebra, geometry, etc. If you worked with scientific computing, you'd need even more math (e.g. differential equations, statistics, etc). If you worked as a DSP programmer, you'd need to know calculus (and then some). In contrast, web development doesn't really require any of these. However, they all involve "programming", and the people writing the software can all be called "programmers", even if one's writing a website (no math) and another is doing a fluid dynamics simulation (lots of math).

about two weeks ago

More Forgotten Vials of Deadly Diseases Discovered

GiganticLyingMouth Re:Thanks Obama! (55 comments)

These vials are from over 50 years ago. Your comment would have made more sense if meant facetiously. From TFA:

FDA officials estimate the collection was assembled between 1946 and 1964 by government scientists.

Tell me again what role Obama had in this?

about two weeks ago

French Blogger Fined For Negative Restaurant Review

GiganticLyingMouth Re:Freedom of Expression... (424 comments)

I was in Paris just last week. There were no "locked down" monuments, and there were no armed personnel patrolling the streets. There were some military-types at the Arc De Triomphe, but that's because of Bastille Day celebration preparations -- that is, they were there for a celebration, not for a patrolling. You're spouting nonsense.

about two weeks ago

After Non-Profit Application Furor, IRS Says It's Lost 2 Years Of Lerner's Email

GiganticLyingMouth Re:The corruption is amazing (372 comments)

Well, Lois Lerner was appointed by Bush in 2006.

about a month and a half ago

AMD, NVIDIA, and Developers Weigh In On GameWorks Controversy

GiganticLyingMouth Re:Optimizing the driver stack... (80 comments)

Their OpenCL drivers are pretty bad. Completely arbitrary changes can have huge impacts on things like VGPR usage. Optimizing an OpenCL kernel on an AMD card is like black magic. Not that I'm praising NVIDIA here, they're still on OpenCL 1.1...

about 2 months ago

GnuTLS Flaw Leaves Many Linux Users Open To Attacks

GiganticLyingMouth Re:C strikes out again (127 comments)

Or... if you're using C++, use a Standard Library container? They all keep track of their sizes, and can perform runtime bounds checks (by using say, at() rather than the bracket operator). Or Write your own class with an array member and an accessor that does bounds checking. It's not difficult to do. At all. And templates aren't meant for addressing buffer overflow problems, or as a replacement for raw pointer (use STL containers). Or garbage collection (use RAII). I get the feeling you aren't too familiar with C++?

about 2 months ago

Ask Slashdot: Beginner To Intermediate Programming Projects?

GiganticLyingMouth Re:Something else? (172 comments)

Take a look at "The art and science of programming" by Donald Knuth, it's examples are in Pascal but if you inhale the wisdom in the book you will understand when I say that the language it uses is irrelevant.

Just in case this confuses the submitter, the actual title is "The Art of Computer Programming". And IIRC the code examples aren't in Pascal, but rather in "MIX" assembly, which is a hypothetical language for a hypothetical machine. Also, be forewarned that it has a steep learning curve...

about 3 months ago

C++ and the STL 12 Years Later: What Do You Think Now?

GiganticLyingMouth Re:Back in the day I did a lot of c++ (435 comments)

Not sure if I'm missing the joke here (if so, apologies), but just because the book title is "Exceptional C++" doesn't mean the whole thing is about exceptions.

Exceptions are covered for a few chapters in that book, but some of the recommendations aren't really relevant anymore; C++11 deprecated many of the problematic parts of exceptions (e.g. exception specifications), and much like valarrays, no one really used them anyways

about 3 months ago

C++ and the STL 12 Years Later: What Do You Think Now?

GiganticLyingMouth Re:Meh (435 comments)

Well, C++ threads and the new memory model would take more than just a little more typing. Same for rvalue references.

about 3 months ago

C++ and the STL 12 Years Later: What Do You Think Now?

GiganticLyingMouth Re: 1M lines? Really? (435 comments)

My normal rules of thumb are: - No operator overloading, especially type casts. - Templates are mostly used for container classes, or in rare cases algorithms. - Spare use of method/function overloading. - Try to use template parameters that are themselves of as simple of a type as is practical.

Some operators shouldn't be overloaded (e.g. &, && and ||), but good luck writing any non-trivial container classes without overloading the assignment operator. You may think you're not overloading these, but the compiler is simply auto-generating them for you since you didn't provide one (namely, copy-assignment operator and move-assignment operators). As with any language feature it can be abused, but they can be quite useful when used judiciously. (i.e. if you're writing a Matrix library, you'll probably want to overload the arithmetic operators).

It's true that there are pitfalls to using templates, but I think you're grossly overstating their dangers (while ignoring all their benefits). You can do some pretty amazing things with templates; in the least they reduce code duplication, and at best they allow compile-time polymorphism, better error detection, and a whole different paradigm for using C++ (metaprogramming can pretty closely resemble functional programming).

about 3 months ago

C++ and the STL 12 Years Later: What Do You Think Now?

GiganticLyingMouth Re:Why use it? (435 comments)

In a word, C++ has the best binding support for GPGPU.

Both CUDA and OpenCL started off as C-based API -- CUDA has since moved to C++, and is moving towards more modern, idiomatic C++, both for its host-side API and device-side code (e.g. has support for kernel templates). OpenCL is a bit behind in this respect, although it also has both C and C++ bindings. You can also use fortran, but the majority of use-cases for GPGPU work is C++, and will be for the foreseeable future.

OpenCL and CUDA both do have other bindings (off the top of my head, .NET, java and python), but these are 2nd class support-wise.

about 3 months ago

C++ and the STL 12 Years Later: What Do You Think Now?

GiganticLyingMouth Re:still bad, getting worse with time (435 comments)

Features are added and behavior is changed for the sake of changing, with no benefits to any software quality whatsoever.

Spoken like someone who doesn't know what they're talking about.

No benefits to software quality? Point out any new feature in C++11 that was added that didn't have a reason. (I would be very interested in fact, as I can't think of any off-hand); the newly added features are done with specific problems in mind. They might not be the problems that YOU encounter, but someone else has.

about 3 months ago

C++ and the STL 12 Years Later: What Do You Think Now?

GiganticLyingMouth Re:Why use it? (435 comments)

I use C++ almost daily -- if you're doing any CUDA (or OpenCL) work, then you'll want to be using C++.

about 3 months ago

C++ and the STL 12 Years Later: What Do You Think Now?

GiganticLyingMouth Re:STL issues... (435 comments)

If template error messages bother you, use Clang. It outputs much saner template error messages.

about 3 months ago

C++ and the STL 12 Years Later: What Do You Think Now?

GiganticLyingMouth Re:Delayed. (435 comments)

The "complex" rules for templates are laid out in painstaking detail in the standard. There can be surprising interactions with other language features(e.g. explicit template function specialization), but (based on personal experience), after having encountered them once or twice, you learn about them and avoid them in the future. On the other hand, having what would otherwise be runtime errors reported at compile time saves time on debugging, and generates more robust code.

about 3 months ago

Paris Bans Half of All Cars On the Road

GiganticLyingMouth Already Over (405 comments)

Those with odd-numbered plates lucked out; apparently they've already discontinued the practice, after having issued roughly 4000 tickets.

One especially pertinent quote from the linked article: ""I know it's not great to say it but I'm willing to take my car and pay the fine to get my kids to school, because I don't have the choice," one woman told the TV network."

about 4 months ago


GiganticLyingMouth hasn't submitted any stories.


GiganticLyingMouth has no journal entries.

Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account