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

 



Forgot your password?
typodupeerror

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: Uh, what? (Score 1) 9

by TheRaven64 (#49171381) Attached to: Khronos Group Announces Vulkan To Compete Against DirectX 12

an LLVM-based bytecode for its shading language to remove the need for a compiler from the graphics drivers

This removes the need for a shader language parser in the graphics driver. It still needs a compiler, unless you think the GPU is going to natively execute the bytecode. If you remove the compiler from a modern GPU driver, then there's very little left...

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

I tend to agree, C++ gets its popularity just because you can code normal C in in it, but it does very little to put you in an OO mindset, you can use OO principles if you choose to do so, but thats it.
The issue that I have with C++ is the syntax get cluttered with symbols. ->, *, :: , >>, etc... When you are proficient at the language, they make sense, however while learning it, or having to relearn, after a period of inactivity, it isn't like riding a bike... You do forget, and have to relearn it again.

Comment: Re:Split on this. (Score 1) 177

Segregated emails annoying? Are you kidding me? I go out of my way to keep personal and business emails separate, to the point of having a stock"bounce" email I send to people who accidentally send to the wrong email address. Same with phone numbers - one personal, one business.

She's either lazy or evil. Given it's Hillary, I'm going to split the difference and call it both. Too lazy to have two emails, just evil enough to know that if she says something awful she can at least delete it from her end. (I mean, every email goes somewhere so it's not like you can delete all of the copies yourself.)

As a (mostly) Democrat, I sincerely hope she doesn't run for President. While I think she has been vilified by the right beyond her actual failings, I'm not a fan of her in general. More importantly, I might get stuck voting for her as a result of some nutjob who makes it through the GOP primaries. Either that or I'll have to write in Bill 'n' Opus.

Comment: Hmmm... (Score 1) 177

This one doesn't pass the smell test for me. If there wasn't something fishy going on it sure looks like there was. Why would she not only choose to use a private email account but not even have an official government email address during that four year period?

Not only that but "no actions to have her personal emails preserved on department servers at the time, as required by the Federal Records Act". I suspect that "no actions" is really 'we were told expressly by Ms. Clinton not to back up any of her email messages'. Everything that passes through State department servers should be backed up routinely. How can it be that for four years none of her emails were backed up anywhere?

This whole thing reminds me of the recent IRS scandal where email backups were suddenly just gone and nobody knows why.

Hillary has a long string of "things that make you go hmmmm...", all the way back to when Slick Willy was in the White House. This is just the most recent example. Politics aside, she is just a person that appears to be slippery and dishonest. What Bill has, that she never will, is a likability that allows some to look past imperfections. She is not to be trusted and will not get my vote.

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

C++ is a language that is very good for generic programming. It doesn't really meet Alan Kay's definition of OO (and he's the one who coined the term), nor does it pass the Ingalls Test for OO. It has classes, but method dispatch is tied to the class hierarchy so if you want to really adopt an OO style you need to use multiple inheritance and pure abstract base classes, which is a very cumbersome way of using C++.

The worst C++ code is written by people who are thinking in C when they write C++, but the second-wrost C++ code is written by people who are really thinking in Smalltalk. If you're one of these people, then learn Objective-C: the language is far better at representing how you think about programs.

Any programming language can be used to write code in any style. You can write good OO code with a macro assembler if you want. However, every language has a set of styles that fit naturally with the language and ones that don't. You can force C++ to behave in an OO way, and it sort-of works, but it's not using the language in the most efficient way.

Comment: Re:C++14 != C++98 (Score 1) 274

The main advantage of auto is in templates, where the type is something complex derived from template instantiations. You simply don't want to make it explicit. Oh, and in lambdas, where explicitly writing the type of the lambda is very hard (though you generally cast to std::function for assignment). As to using a float instead of an int... I have no idea how you'd do that with auto. The type of auto is the type that you initialise it with. If you're using a platform where you don't have hardfloat, then why do you have APIs that return floats? There's your bug, the use of auto was just a symptom.

And if you've never seen anyone use the algorithms library, then you must be using C++ in a very specialised environment. I've not seen any C++11 code that didn't use std::move. I've rarely seen a nontrivial C++ file that didn't use std::min or std::max, and most code will also use std::copy. The only code that I've seen that didn't use the algorithms library included is own, poorly optimised and buggy, versions of several of them.

Comment: Re:c++? (Score 2) 274

First, WindowsMaker doesn't use Objective-C, it's written in C. However, GNUstep, which is the open source implementation of the Cocoa frameworks (originally the OpenStep specification, but they're tracking Apple changes) could use more help! Oh, and we support (on *NIX) a superset of the Objective-C language that Apple supports on their products, so I wouldn't say that Obj-C is more limited on Linux.

That said, and I say this as the maintainer of the GNUstep Objective-C implementation, I'd recommend C++, but with the two caveats:

  • C++ is not an OO language. It sort-of supports OOP, but writing OO code in C++ is not the natural way of using the language.
  • Don't look at any version of the language before C++11. It's just terrible and will damage your brain.

C++11 and C++14 have cleaned up C++ a lot. With shared_ptr and unique_ptr, you can write code with sane memory management. With perfect forwarding, lambdas, and variadic templates, you can write code that has most of the benefits of a late-bound language. I like a lot of Objective-C, but Apple broke the 'simple, orthogonal syntax' when they added declared properties and a few other things. Any successful programming language eventually becomes a mess of compromises and ugly corners. Some, like Python and C++, start that way, but at least C++ has been slowly improving over the last couple of versions.

The one thing where Objective-C is still a clear winner is in writing libraries that want to maintain a stable ABI. This is insanely difficult in C++ because the language doesn't have a clean separation of interface and implementation and relies a lot on inlining and static binding for performance. The down side, of course, is that once you have a library in Objective-C you're limited to consumers who also want to use Objective-C.

Oh, and Qt GUIs suck beyond belief on OS X - not sure what they're like on Windows, but I wouldn't recommend them for a portable UI. Good MVC design and a native UI is the only way to go if you really want a cross-platform GUI app that doesn't suck.

Comment: Re:Jerri (Score 1) 466

again, you have no argument, just an empty personal attack. you haven't touched anything i said not even once, so my argument still stands

don't you want to say something in life? you think petty pointless personal attacks will get you anywhere on subject matter like this?

Comment: Re:Good question (Score 1) 171

because wires don't follow political boundaries

your fiber is our fiber and visa versa. it's all bound up. a message you send from Vancouver to Halifax may/ probably crosses the border into the USA

and If i am in Chicago and i send a message to Anchorage, that goes through Canada

Canadian and American data is intertwined

and our authorities coordinate and cooperate in managing that in ways that would make both Americans and Canadians uncomfortable if you don't want eyes from another jurisdiction seeing our data

Comment: Re:Brain drain-Meyer will win, no matter what (Score 5, Interesting) 147

by ebusinessmedia1 (#49168079) Attached to: Marissa Mayer On Turning Around Yahoo
At some point, Yahoo will be parted out, sold, or rolled up. Any one of these options will lead to a nice payday for Meyer and Yahoo's biggest investors. That's what this is all about. The same thing happened at hp, and is happening now, at IBM. This is an old story in Silicon Valley - company comes out of the chute like gangbusters; low barriers to entry eventually lead to competition; the company falters; someone is brought in to "save" the company (and paid a LOT of money); the company is parted out or limps along for 10+ years while a succession of "in-people" make a pile of $$$ in options, perks, etc. etc.

"Everyone's head is a cheap movie show." -- Jeff G. Bone

Working...