Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:C++/CLI + C# (Score 1) 296

C++ can be used in Managed Mode, if you're working with Microsoft Tools. You can write your critical code in C++/CLI that also gives you access to low level stuff for the parts that you need, compile as a static library, then use C# for everything else.

No, just NO.

From a performance perspective, you immediately run across thunking between C# and C++/CLI, not to mention the API idiocies like not being able to sent a buffer from C++ to the network directly (you have to write a loop and send integer sized chunks at a time, then at the end send the final few bytes).

So unless you want to screw yourself well, just avoid C++/CLI. You'll thank me later.

Comment Re:If you cannot answer your own question.. (Score 1) 296

Okay, basically I need to be able to allocate and release memory manually and without waiting for any garbage collection. I need complete control over concurrency and memory sharing, and as little overhead as possible when accessing the hard disk. I have not been able to find a way during prototyping to control memory enough in Java or C#. A language with a great cross platform library but no memory management would be perfect, and right now C++ is the only language I know of that comes close to those requirements.

. Since you mentioned you have existing libraries, etc - QT certainly seems to be very beneficial here. With the QSharedPointer types (weak, strong, etc) and concurrency functionality (QtConcurrent, QtFuture) it seems to have the main tools you're looking for, and it will integrate well with other projects in that bringing in an existing library won't be much of an issue (well, unless it's a MSVC COM or something like that; those would need to be re-written). The main caveat is that it's a little harder to share Qt code in a static way (e.g libmyqtlib.a) from a Qt project to a non-Qt project; at least, I haven't tried that. Most just use a dynamic linker which works fine to do that.

There's also a very health e-mail list and forums at qt-project.org that you can use to ask questions and get answers reasonably fast. I can't say the same for Boost, where each library may have its own list if anything at all.

Comment Re:If you do go with C++ (Score 1) 296

There is no UI required for the project, although I realize you can use modules like QtNetwork without the UI libraries. I am a bit worried about tying myself too closely to the QT event loop. Can anyone provide any insight on if the event loop will complicate concurrency throughout the rest of the application or if it is even necessary?

The QT Event Loop actually makes concurrency far easier. You can start each thread with its own event loop, and just pass objects back and forth between the threads using Signals/Slots. The Qt Signal/Slot automanages moving the objects between the event loops, and it all just works.

So you can easily have one thread that just reads data from disk, while 5 other threads receive the data to process, all using Qt signal/slots and not give a lick about which thread it's running in.

Furthermore, if you need to reduce it to one thread to debug, you can easily do so by changing which thread stuff lives in. So concurrency issues become easy to diagnose.

Of course, there are also several Concurrency frameworks within Qt as well - QtConcurrent, QtFutures, etc. - so if you have massive parallism capabilities you can just use those instead. They're all very easy to use.

Also, Qt integrates well with Boost. You can even use the Boost Signal/Slots (choose your version) if you like.

Comment Re:If you do go with C++ (Score 1) 296

If you're not writing GUIs there's no need to use Qt's signal slot system.

I would disagree. Even in a daemonized application the Qt (WxWidgets, Gtk, and Boost) signal/slot system works wonders.

Like with anything else, it can be abused, but it is by far superior to alternatives like the Message Maps (Gtk, MSVC, WxWidgets).

Comment Re:Where are the round-abouts (Score 1) 203

I am always surprised that American cities don't learn from the rest of the world and install round-abouts instead of intersections.

Because roundabouts consume a lot more land and are not that much safer for pedestrians. The drivers are busy looking for traffic going around the circle and not compelled by personal protection to look both ways like they are at intersections. I care what vehicles are coming from the left. The ones coming from the right have to stop for me.

But you still have to care about what's coming from the right - namely pedestrians as you're still required to stop for them.

Comment Re:Gay activists killed polling (Score 1) 292

Between that and pollsters having questions and multiple-choice answers that were designed to give a desired answer...

Seriously, I had a Democrat pollster back 2005-2006 that asked a question regarding Bush and Iraq. The question was designed to give a very specific answer I didn't agree with, and I flat out told them that. But the kid doing the poll didn't have any way to record that in the poll. We discussed it for a few minutes. Last poll I ever got...

Comment Re: Liberty (Score 1) 609

if you are in business and you deny someone on the basis of sexual orientation race religious affiliation etc you are denying someone the liberty of doing as they please in general society. you are standing against freedom. this is simple fucking common sense, nevermind the actual law of the land:

http://civilrights.findlaw.com...

this is different than denying someone in your own house, or a church: those are private places. a mosque can deny you the right to draw muhammad on those premises, but no muslim can deny you the right to walk around in public with muhammad on your t shirt

they may of course scream "religious liberty" but what they mean, like you, is that they are whining they don't get to limit someone else's freedoms in public. that's not liberty

i would ask if you understand the difference, but you obviously do not. your intent is clearly malicious and you clearly do not have the intellectual capacity to understand simple concepts like public and private.

you're a dimwitted bigot, and whether you admit it or not, your low intelligence "opinions" stand against freedom and liberty and the founding principles of this country

And you obviously do not even comprehend what I and others are saying - you cannot impose your right over someone else's equal right just because you want them to enter into a contract with you. You cannot force them to. It's that simple.

At no point did I make an argument for using a religious basis for that.

So until you can actually understand the argument at hand refrain from commenting further because you're not making any points that you have not already repeated, and not contributing to the conversation.

Please also look up reverse discrimination and think of how it applies.

Comment Re: Liberty (Score 1) 609

because who someone has sex with has nothing to do with a fucking cake purchase

but what someone does in a church is very much bound by the purpose of that church

you can't tell the fucking difference between a bakery and a church?

a muslim store owner cannot refuse to sell me a pencil because there is a picture of muhammad on my t shirt

Only because it's a public service. They could use that as a means of judging your character and saying "I don't like you " and thereby not enter into a contract with you to provide a private service - and that's perfectly legal.

Comment Re: Liberty (Score 1) 609

you have no right to deny a business transaction to someone because of their sexual orientation

Correct, you don't. But you also don't have the right to force someone into a business transaction either.

your understanding of contracts is completely ignorant

if some guy is buying a cake from you, and you deny him the cake because he's gay, you are destroying someone else's rights, you are not exercising your rights

You cannot force someone to enter into a contract. And a simple reason of "I don't like the person" is sufficient and not discriminatory in any way.

There is a difference in service between someone coming in a picking a cake off the shelf, and a cake that is being pre-ordered to certain specifications for a specific date and time, possibly (though not necessarily) including delivery.

In the first, the cake is on the shelf and the buyer walks in, picks it up, and pays for it. No contract has been entered. For a bakery or restaurant this falls under public service as long as the doors are open to the public. If the doors are not open to the public then there is no public service and this service is hence not available. It has a different burden under the law than private services do.

In the second, a contract is used to ensure that both parties understand what is being provided, by whom, when, and how. This is a private service provided by the business, and the business is allowed to have a greater choice with whom it provides private services to since they are contracted services. If they for any reason (of which there are many legal reasons, and some illegal reasons) choose not to enter the contract then they do not have to provide the private service. Illegal reasons are the discriminatory reasons - race, sex, etc - while legal reasons are pretty much anything else, including "I don't like you".

You cannot force someone to enter into a contract, and a simple thing of "I don't like the other person" is sufficient and non-discriminatory. No reason must be provided for why you don't want to enter into the contract either.

And since you mentioned a bakery, I'll assume you mean the one in Oregon that went through this in the courts. Their failure was to try to argue religious reasons; they should have just stuck to basic contract law and avoided that whole part of the issue, even if the other side pushed. They never stated a reason when they denied the contract; nor were they required to. They went a step further and actually provided references of other bakeries in the area. They could have used any number of legal reasons to not enter the contract, and they should have. Because the case was really much simpler than what it was made out to be.

And honestly, the outcome is not one I find favourable either simply because of that - you cannot force someone into a contract. Doing so is trying to eviscerate someone else's rights for your own - which is just as wrong.

Comment Re: Liberty (Score 2, Insightful) 609

the amazing lie in national politics nowadays is "religious liberty"

i thought "religious liberty" means you can practice your religion how you want and government can't regulate that

that makes sense. i support that

but mindblowingly we have people telling us they are offended at, for example, gay marriage, so their "religious liberty" has to be preserved by allowing them to oppress others and respect other people's basic rights

The practice of one's "religious liberty" which you claim to support also means being able to live it in daily life. Operating one's business in line with one's religious liberty is simply living out their religious liberty.

Now, aside from the that issue, everyone - business and individual alike - has the right to enter or not enter into a contract. You cannot force someone to enter into a contract - that is actually illegal, and voids the contract (by law) as there is no mutual agreement. This is the challenge often used against EULA's - that there is no mutual agreement by both parties, that one side is dictating the terms in their entirety. The issue has been that various LGBT individuals have been trying to force companies into entering contracts that the company - for unspecified reasons - chose not to enter. One side wanted the contract, the other did not; there was no mutual agreement and no signed contract. The reasons for doing so were not stated.

If a reason that was illegal was given, then I'd 100% agree with you. But the reasons were not given, nor were they required to give a reason. Religious liberty does not even need to enter into the picture, and honestly I wouldn't want to do business with an individual that turned around and sued over such frivolity anyway - something completely orthogonal to sexuality or religion, and something 100% allowed by the law.

how dumbfoundingly ignorant about what liberty and freedom really is!

orwellian even: "my liberty means i have the right to deny you your liberty"

Stop. And think. Then reverse the question and you've got the problem with the line of thinking you're following and all its illogic fallacies. Neither side has the right to deny the other their right, both of which are equal.

The "right" issue should never have entered into the equation because it the real issue was much simpler, but completely ignored because it wouldn't survive at any level of the judicial system.

Comment Re:Not really what you should be worried about (Score 1) 60

Inspecting the tail fins, and the top of the fuselage is far easier, quicker, and cheaper with a drone.

I agree that it might be easier, quicker and cheaper with a drone. However I don't really care. As a passenger I'm far more interested in whether it is just as effective as spotting problems as the human eyeballs it replaces. On the plus side images can be zoomed and you might see more detail than a human eye. On the downside the image is probably not going to be 3D and it sounds like the person taking the pictures with the drone will not be the engineer who inspects them.

It could probably be more effective since you could run a standard visual analysis run, then make another pass with IR/X-Ray/etc filters to check for defects that the human eye can't see, of course that's assuming you couldn't load the drone to do them all at the same time.

In fact, this kind of thing will probably be very beneficial to airlines running next-gen technologies like Carbon Fibre body/wings (e.g Boeing 787) as you need these kinds of analysis to see the problems long before they're visually apparent so you could fix them earlier when it's cheaper to do so.

Comment Re:Social mobility was killed, but not this way (Score 1) 1032

Me too, for my CS degree. I met them in an honors-level course studying Ancient Greek. By the end of the course, we were translating passages from the Bible (which was the goal). By doing this, I was able to see with my own eyes just how ambiguous, slanted, and (in some very doctrinally-significant passages) flat-out wrong the English translations of the Bible are.

I have done the same; however, in translation of New Testament (since you really need Hebrew for the Old Testament) the only complaint I have is when translators push some doctrine into the translation, as is often the case when see the word "predestined". However, even then it's few and far between that that is done.

Comment Re:Social mobility was killed, but not this way (Score 1) 1032

Thanks. FYI, I had a 2 semester foreign language requirement with my stem degree.

I did too - which I completed with 4 semesters of Ancient Greek for a minor (nearly a second major, 1 class short) that I enjoyed more than I did my CS major, in part because it was harder, even though I didn't do as well grade-wise.

Some of the schools I looked at considered the Computer Languages sufficient to satisfy the foreign language requirement for their CS students.

The drop of foreign language is especially pronounced in Engineering programs. But it all depends on the school and how much they're trying to cram in in the 4 year degree.

Comment Education is not an entitlement... (Score 2) 1032

If people groaning under the weight of student loans simply said, 'Enough,' then all the pieties about debt that have become absorbed into all the pieties about higher education might be brought into alignment with reality. Instead of guaranteeing loans, the government would have to guarantee a college education."

The USA provides education K-12, normally paid for by local taxes but increasingly being federally subsidized; but beyond that nothing is nor should be guaranteed.

The real problem, in this respect, is employers requiring a college level or higher degree where one is not really necessary. Yes, it's useful to help weed-out candidates, but it may also cost some really good potential employees. If students refused to play the "degree game", then colleges/etc would be forced to lower tuitions, and businesses would be forced to consider more people without degrees, and more people would get put to work.

Of course, you'd then also have a number of companies complaining that they can't get qualified workers so the H1-B visa program should be expanded...which is why this really all comes down to how do you properly help a free market regulate itself to encourage the employment qualifications that avoid all the above issues?

Not an easy question to resolve. But guaranteeing a college education will not resolve it, only make it worse as a college level education will simply become the new High School Diploma.

Comment Re:Social mobility was killed, but not this way (Score 1) 1032

It may be that people majoring in subjects like philosophy and art history are not being required to take a truly liberal education at these schools and are being allowed to skip calculus, finance, economics and other subjects that should be required of any liberal arts degree.That would not qualify as being a wide ranging (liberal) education and would, to my point of view at least, require the university to stop proclaiming itself a liberal arts school.

Typically, the non-STEM students are allowed to take "lower" matches - like Business Math, Math 101 - that provide cursory overview of the subject; and STEM students are often opted out of several areas (usually foreign languages) to keep them in the 4 year graduation time frame.

Slashdot Top Deals

Always draw your curves, then plot your reading.

Working...