Sorry it took so long for me to reply but this really helped me. JCoder thanks! I have to say that ur post was very simple but informative. Like i said i kinda new the answer to these questions but getting outside perspective always helps.
I Feel comfortable in both languages though again I have never done gui stuff with C++. But i think i would rather drop the web development aspect for a self contained exe. I have always found that What ever u can do in Java u can do in C++ with more efficiency at the cost of some development time (atleast for me)! So i think im goin to leave my comfort zone slightly and go with C++. Im goin to have to learn GUI but i think it will be well worth it.
Try to override the && operator so that it is semantically equivalent to the builtin && operator. You can't. This is just one small example of inconsistency in the language design. Another one is that, although C++ aims to be an OOP language, it lacks encapsulation, both compile-time and run-time. Wow, there is even a large site all about C++ self-inconsistencies: http://yosefk.com/c++fqa/
You mean boost::foreach implemented as a pure old C macro or boost::smart_ptr which are a poor-man's inefficient GC as "elegant for the user"? Or lambda-expressions that are not true-lambdas because they force you to use some "macro-template-dialect" inside the closed blocks?Also, some of the Boost libraries would be very challenging to implement in Java with the same level of elegance for the user.
All these things have been fixed in Scala. No need to go back to C++.I like Java, but they need to admit the need for operator overloading (autoboxing, string and '+').
It is just another widely repeated myth - simply not true. You can get just as far or even further than as doing an OS in C. This is because JVM/CLR is an almost-complete operating system kernel - it manages memory, concurrency, dynamic module loading, linking and executing, it controls access privileges. They (MS, Sun) actually did some research operating systems in managed languages. These systems are much more advanced when it comes to security and dependability. Just take a look at the Singularity project by Microsoft.Won't get far trying to write an operating system in Java.
You try writing a bootloader in Java and see how far you get. And what's your VM going to run on top of? If it's native compiled it's going to have wonderful overhead.
EDIT: BTW I thought I'd just point out a few things about Singularity, namely that the HAL is written in C++ and parts of the kernel are written in C.
sudo rm -rf /
Try to write a bootloader in C++. Or any Linux kernel module. You also can't.
If your car has some parts made of plastic, it doesn't mean it is a plastic car.
Some low level parts can be only done in C or assembly. The rest 99% (together with device drivers) in a managed language.
BTW: Natively compiled managed code does not need to have an enormous overhead. It is just harder to make a good compiler. Excelsior's JET compiler for Java can sometimes outperform GCC in produced code quality.
Back to the topic: in webapps you don't need to access hardware directly. And also you usually have plenty of RAM. So C++ has no single advantage over managed languages in this case.
I did, actually, for my fuzzy bool class (posted in the tutorials section). It wasn't hard at all.
No, I was thinking of the utility classes for defining a class to be an Abelian group, or a field, etc. You only have to define a handful of the functions.You mean boost::foreach implemented as a pure old C macro or boost::smart_ptr which are a poor-man's inefficient GC as "elegant for the user"? Or lambda-expressions that are not true-lambdas because they force you to use some "macro-template-dialect" inside the closed blocks?
All these things have been fixed in Scala. No need to go back to C++.
It is just another widely repeated myth - simply not true. You can get just as far or even further than as doing an OS in C. This is because JVM/CLR is an almost-complete operating system kernel - it manages memory, concurrency, dynamic module loading, linking and executing, it controls access privileges. They (MS, Sun) actually did some research operating systems in managed languages. These systems are much more advanced when it comes to security and dependability. Just take a look at the Singularity project by Microsoft.
my best bet , jump into Delphi you will Never regret .Because delphi was developed for GUI programming and is .NET compliant also can make native executables.
As for as a Stand alone Java applications ,thats not possible![]()
There is a portable version of Java that makes zero-installs effectively possible. If you need cross-platform, Lazarus is a good alternative to Delphi.
@WingedPanther:
Your code is not consistent with the default && short-circuit property.Code:Fbool Fbool::operator&&(Fbool var) { double temp; if (this->probability < var.probability) return Fbool(this->probability); else return Fbool(var.probability); }
If the first (this) FBool had support 0, the second FBool should never be evaluated.
In C++ you can't do it. In Scala, Ruby or Python you can.Code:if (false && f(blablablah)) { // f is not called - standard built-in && operator short-circuits } if (FBool(0) && g(blablah)) { // g is called, although the result is always FBool(0), regardless of the g's result }
BTW: You use invalid terminology in your Fuzzy XXX tutorials. This should be called "support", not "probablity". Actually support has nothing to do with probablity.
Why on earth would I call it support? Fuzzy bools are precisely about probabilities.
"Or any Linux kernel module." As long as you know really know what you're doing, yes you can. You just need to know what to avoid. As far as a bootloader, you can write most of it in C or castrated C++, with a lot of effort.
Really? Where'd you get these statistics? Because if you're right I'm definitely writing my OS in progress in Java. (I'm not being disparaging, I'm serious.)
Well excuse me if I don't own my own server farm.
sudo rm -rf /
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks