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


Forgot your password?

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).


Comment: Pity it is done in iD Tech 5 (Score 1) 59

by Sycraft-fu (#49186897) Attached to: New Wolfenstein Game Announced: The Old Blood

But other than that, wonderful. New Order was a fantastic game. Such a strong showing for a first game from a studio. It isn't often you can have a game that is good, silly fun where you do crazy shit like dual wield assault rifles, and yet still have a solid story that makes you care. Good mechanics, good levels, good story, good visuals, good setting, just well done all around.

Only thing I would ding it on is the engine choice. iD Tech 5 just isn't very good compared to Unreal Engine, Cryengine or Frostbite. Even on my system with a XP941 SSD I can get some texture pop-in when I move the camera fast and while the visuals are good from a distance, they break down close up. I understand the choice, Bethesda owns the engine so it makes sense to use it, but I can't help but think it would look more impressive in a better engine.

Comment: Re:Do pilots still need licenses? (Score 1) 342

by Dutch Gun (#49186761) Attached to: Would You Need a License To Drive a Self-Driving Car?

Well, I wasn't really talking about adaptive cruise control, which has actually been available for quite a while. But those only control throttle and braking. I was thinking more like fully autonomous steering on freeways within a decade.

I was poking around to see if I could find some other predictions, and ran across this Wikipedia article. The section on predictions by major automobile manufacturers and others in the industry was really interesting. It looks like it may only be a year or two until cars can drive themselves on the freeway. Some highlights:

By 2016, Audi and Nissan plans to market vehicles that can autonomously steer, accelerate and brake at lower speeds, such as in traffic jams.
By 2016, Mercedes plans to introduce "Autobahn Pilot" aka Highway Pilot, the system allow hands-free highway driving with autonomous overtaking of other vehicles.

So, damn... it's probably going to happen in just a couple of years. No way they'd make those predictions if they weren't already well prototyped and gearing up for production. So, how about fully autonomous?

By 2020, Google autonomous car project head's goal to have all outstanding problems with the autonomous car be resolved.
By 2025, Daimler and Ford expect autonomous vehicles on the market. Ford predicts it will have the first mass-market autonomous vehicle.

Again, faster than I would have predicted. Possibly optimistic, but who knows? And longer term predictions?

By 2035, IHS Automotive report says will be the year most self-driving vehicles will be operated completely independent from a human occupant’s control.
By 2040, expert members of the Institute of Electrical and Electronics Engineers (IEEE) have estimated that up to 75% of all vehicles will be autonomous.

Awesome. We may never see flying cars ourselves, but self-driving cars won't be a bad runner-up.

Comment: Re:Do pilots still need licenses? (Score 1) 342

by Dutch Gun (#49186133) Attached to: Would You Need a License To Drive a Self-Driving Car?

I agree that adoption will be gradual. The first generation of "self-driving" cars will probably have "smart cruise-control" and "self-parking" modes, but the driver will still be expected to be at the wheel and ready to take control if needed. Next, the vehicle will be smart enough to take you from start to destination by itself, but only in good weather and relatively common driving circumstances. Eventually, engineers will probably figure out how to make these systems so smart and reliable that we can simply take out the manual controls, or at least have them stowed away for emergencies.

At some point, people will be far worse drivers than their cars not just because the AI drivers are better, but also because they don't have as much of an opportunity to practice. At that point, it will actually be safer to prohibit any manual driving on the road except in emergencies, as they'd be more of a liability. You'll only need a driver's license if you have a need to operate a car manually, and that will be an increasingly rare occurrence.

The only part I really disagree with is your timeline. I'm guess early "limited" self-driving cars will be here well within a decade, while completely hands-off, license-free driving will happen about thirty years from now. Between those two points will be a very gradual transition from partially to fully autonomous, as systems improve and people learn to trust their cars more and more.

Comment: Re:There might be hope for a decent adaptation (Score 1) 318

by Dutch Gun (#49185839) Attached to: 'The Moon Is a Harsh Mistress' Coming To the Big Screen

In the first Heinlein book I read, The Number of the Beast, the already-insufferable-yet-amazingly-forgettable characters eventually ended up in the land of Oz in a flying car... What. The. Fuck. At that point I put the book down and decided my time was better spent with other authors. Or sorting my lint collection. Anything else.

Starship Troopers was better, but nothing really special. I also read it after seeing the movie, so I had pretty low expectations going into it - but people kept telling me how much better the book was.

I never bothered with anything of Heinlein's after those two utter disappointments. Maybe those weren't representative of his best works, but The Number of the Beast was so atrocious and the Starship Troopers movie so vapid, it probably forever tainted my opinion of his other works.

Comment: Re:Breakthrough? (Score 4, Interesting) 421

Yeah, Windows has some penetration on low-end devices, but you know that's not where they really want to be.

Interestingly enough, Microsoft is now in the same position on the phone as Linux is on the desktop. They have an extremely competent offering, but they can't seem to really break though to make significant gains in the market. As we've seen time and time again with Linux, it's not enough to offer something "almost as good" to get someone to switch. You can't even compete with "just as good". You need to provide something that's significantly better than the competition in some fashion - some significant advantage that will compel people to move from Android or iOS to Windows phones.

In the article, Microsoft stated that a Microsoft phone would provide a "more consistent experience across smartphones, tablets, and PCs". Interestingly, that was exactly why I hated Windows 8 so much, because it was obviously a mobile UI bolted rather clumsily on top of my desktop. Windows 10 is unfortunately using the same "modern fugly" visual design, but is at least fixing the usability and integration problems. So, in theory, a cross-platform app store could end up being a win for them. If you can buy an app and run it on all three of those platforms, I could see that as being attractive for consumers.

Another possibility is if they provide businesses some great tools to help manage mobile corporate devices. Apple has been notoriously bad at this - not sure how easy it is with Android. But for consumers? I don't know. At the moment, I just don't really see how they're going to crack into this extremely competitive market.

Comment: Re:Also can be some of one and some of the other (Score 1) 651

by Sycraft-fu (#49179099) Attached to: Snowden Reportedly In Talks To Return To US To Face Trial

Just saying that is an issue that would have to be overcome. It is a case where the trial could be fair, and the jury could believe he acted in good faith and the best interests of the public and still find him guilty, and have that upheld. Just further emphasizing how tricky the situation is. It isn't a case of "If they give him a fair trial he'll walk." No, in fact in a fair trial he could be convicted if the jury decided not to nullify.

Comment: Re:Bad idea (Score 1) 651

by Dutch Gun (#49177811) Attached to: Snowden Reportedly In Talks To Return To US To Face Trial

Do you see Cheney up on charges? Or Bush? Or Obama? Or the head of the CIA?

Of course not, because those clowns are operating under a different set of laws than you and I do.

Not that I disagree with your general point, but... the US president and members of Congress actually do constitutionally operate under a different set of rules than everyone else.

Comment: Re:Easier to Analyze or Change == More Maintainabl (Score 4, Insightful) 244

by Dutch Gun (#49177145) Attached to: Study: Refactoring Doesn't Improve Code Quality

Nope, it's when I take the awful, unmaintainable spaghetti code someone else produced when they were in a deadline crunch and convert it into something maintainable.

Sigh... I wish I could say that with a straight face.

Interestingly, in my experience, poorly structured code seems to come about often less often because of "rushed code" but instead a lack of foresight in the original structure of a system to deal with continuously evolving features (which happens in most projects), along with a lack of willingness to refactor those systems as soon as it's apparent it's starting to break down.

This is the "golden time" to refactor code, because it's just now become apparent where the structural flaws are in the architecture, but it's still early enough to refactor without causing a significant amount of pain. It's often hard to justify, because you've only got a couple of ugly special cases that complicate things here and there. However, if you procrastinate too long, you're going to start piling on more and more "ugly special cases", and the code is going to get harder and harder to read and maintain.

Comment: Re:c++? (Score 1) 394

It has dick-all to do with "correctness" or whatever. It's simply because even if a subclass has its own implementation of a parent's method, it'll still call the parent method - this goes against one of the core principles of OO: polymorphism. This means that even *if* you wanted to override a method from a parent class in your subclass, unless the parent has it marked as virtual, you're SOL.

If you read about Stroustrup's design intentions, he absolutely believed that strong type safety was an important part of making programs safer and less bug-prone. Obviously, the creators of Objective-C (and many other languages) chose to follow a different design philosophy. It's probably not helpful to get into a debate about which one is "correct", as that's obviously going to be pretty subjective.

As far as the example you give, this is because C++ always adheres to the "zero-cost principle", meaning that the language designers don't believe C++ developers should pay for features they're not using. Virtual functions are more expensive to call than non-virtual, and you can't always determine at compile time whether one will be called or not, so it's left to the programmer to tag the function. It has nothing to do with "going against the core principles of OO". It just means C++ will happily let you shoot your own foot by ignoring the language rules it requires the programmer to adhere to.

This is why people consider it one of the more difficult languages to master. It's a powerful tool, but has many sharp edges. For programmers like me who value C++ primarily for it's runtime efficiency, this is absolutely the correct design decision. There are plenty of better languages to use if your primary goal is programmer efficiency.

BTW, you're a bit out of date regarding C++ and allocation. Modern C++ now has several built-in smart pointers (including ref-counted versions) which makes modern C++ feel a lot closer to C# with it's garbage collection than to C-style manual memory management.

Comment: Re:Also can be some of one and some of the other (Score 1) 651

by Sycraft-fu (#49176779) Attached to: Snowden Reportedly In Talks To Return To US To Face Trial

Well in the case of civilians, you are in a special situation when you have access to classified data. You agree not to release it on penalty of criminal charges and you do so explicitly to be granted access. If you aren't ok with the restrictions, then you don't agree, and don't get clearance. Normal people like us aren't under any such restrictions, which is why the press doesn't get in trouble publishing it. They never agreed to shit.

As such it could be a situation where even if they agree it was just, it was still illegal.

Comment: Re:Then, How Best To Learn? (Score 1) 394

I think this question has been answered pretty well on Stack Overflow. C++ is too deep and complex to learn from a few web tutorials of unknown quality. Get a good tutorial book and just follow along - that's how I learned it. Then get a good reference book for more in-depth knowledge as you move past the basics.

Anything that at least covers C++ 11 is fine, as C++ 14 was more about some minor tweaks that you can learn on your own.

Be careful about learning bad habits from C++ code examples you find on the web, or in older projects. Essentially, if you see the code using new, delete, and raw pointers, it's likely outdated. You may still need these on occasion, but their use is vanishingly rare in modern C++.

Comment: Also can be some of one and some of the other (Score 1) 651

by Sycraft-fu (#49175649) Attached to: Snowden Reportedly In Talks To Return To US To Face Trial

He's leaked a lot of things. So even if the jury agreed that some of it was justified, a situation where the public's need to know outweighed his promise to keep it secret, they could rule that on other things that wasn't the case. It isn't the sort of thing that would have to be taken as part and parcel.

As you said though, even in cases that people feel are justified, he still might be held guilty. The agreement regarding classified information you undertake doesn't have exemptions, it doesn't say "You agree to keep this secret unless you think the public needs to know," it is pretty cut and dried. So even if the jury believes he did the right thing, they very well could find him guilty because he still broke the law.

Comment: Re:c++ (Score 1) 394

Or you should in theory at least.
In the 8-bit arena (Embedded or old) C++ support is pretty much nonexistent or incomplete.

Heck, once you leave the architectures supported by GCC the portability of C++ becomes questionable.

Was anyone confused that I might be talking about an Apple II or Commodore 64 when I said "just about every platform"? And regarding embedded, it seems relatively easy to find C++ compilers for embedded hardware.

Comment: Re:c++ (Score 1) 394

Well, it definitely wasn't perfect. I cross-compiled code with Microsoft, Borland, gcc, Watcom, and others years ago, but I don't recall it ever being as bad as you seem to remember. If you used a reasonably conservative set of language features, it was definitely possible to keep your code quite portable.

Nowadays, as you mentioned, it's an entirely different situation, as full standards compliance seems to be getting a lot more attention.

Comment: Re:serious question (Score 1) 167

by Dutch Gun (#49169341) Attached to: Marissa Mayer On Turning Around Yahoo

The fact that few people seem to know this could be part of Yahoo's problem. They just don't seem to have a strong corporate identify. I'll bet that just about anyone here could tell you what products and services Microsoft, Google, Apple, Amazon, HP, IBM, Oracle, Cisco, and other companies are best known for. For Yahoo, I probably would have answered "mediocre e-mail, crappy search, and some decent services like news and Flickr", but beyond that, I really had no idea.

ASHes to ASHes, DOS to DOS.