Author Topic: Believe It Or Not !!!  (Read 127616 times)

0 Members and 5 Guests are viewing this topic.

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: Believe It Or Not !!!
« Reply #45 on: September 01, 2009, 10:17:04 pm »
  I heard somewhere that MS offers a "managed C++" that is a bit watered-down and does not allow certain key
provisions... Any truth in that?
"Patience is for the dead."

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Believe It Or Not !!!
« Reply #46 on: September 01, 2009, 10:18:59 pm »
C++ was derived from C because C wasn't good enough.

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Believe It Or Not !!!
« Reply #47 on: September 01, 2009, 10:25:38 pm »
  I heard somewhere that MS offers a "managed C++" that is a bit watered-down and does not allow certain key
provisions... Any truth in that?

Managed C++ has been around for years.  It is not watered down C++, though.  It is an extension to full blown C++ and allows you to write applications that run either totally in managed code or in both managed and native code.  But you can still use the compiler (Visual C++) to create native code if you don't use any of the managed C++ syntax.

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: Believe It Or Not !!!
« Reply #48 on: September 01, 2009, 10:51:06 pm »
  I guess this is just a bit over my head... Should I take the red pill or the blue one... Just how deep does the rabbit hole go? What exactly do the boys at MS use to code Windows itself???
"Patience is for the dead."

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Believe It Or Not !!!
« Reply #49 on: September 02, 2009, 12:35:14 am »
.net REQUIRES a framework. c++ (when compiled) is NATIVE code.

so i guess that c++ is just plain old computer science, no matter what OS you compile it for..

the thing is that c++ can be compiled for any modern OS where as .net is limited to windows.

That being said, .net is limited to running on top of software (windows, .Net framework) where as you could write an entire OS in c++ 

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Believe It Or Not !!!
« Reply #50 on: September 02, 2009, 01:40:26 am »
C++ was derived from C because C wasn't good enough.

C was developed in the late 60's to be the system level development language for UNIX. It is most definitely "good enough".

C++ was developed many years later to migrate the solid and familiar concepts and syntax of C to the new ideas of object oriented programming.

C++ is generally considered too complex and too easily misused to be "safe" for system level programming; like device drives, kernels, memory managements, file systems, etc...

Almost all of Linux, MacOS, UNIX, DOS, Windows, OS/2, etc... etc... etc... (probably every modern OS in use today) is written in C with the possibility of some parts written directly in processor specific assembler.

C++ is typically reserved for the applications that run within the OS.

C++ was actually created to make it possible to write windows like applications; in other words, event driven, human interactive GUIs.

"Managed C++" is an attempt to simplify C++ and remove some of the risks involved with "pure" C++. The main risk is memory leaks. It is very easy to take memory from the OS and forget to give it back in C++.

That is why it's OK for applications that get run and get shut down. Once the application is shut down all the memory gets returned to the OS. This is obviously not the case with system level code that runs all of the time.

http://en.wikipedia.org/wiki/C_(programming_language)
http://en.wikipedia.org/wiki/ANSI_C
http://en.wikipedia.org/wiki/C%2B%2B

C# is purely a Microsoft idea and was created to bridge the gap between MS Visual BASIC and MS Visual C++. A layer of ready-to-go code exists (actually written in C & C++) called the Common Language Infrastructure. Visual BASIC was a bit too under capable and Visual C++ was a bit too over capable. So they split the difference and came up with something that looks a bit like C++ but won't let you get into the kind of trouble that you can get with pure C++.

C# is C++ with training wheels.

C# was also developed so that MS would no longer have to answer to any ANSI standards for code or compiler compliance. It is an attempt to obsolete C++; which they did not invent and can not control.

Good luck with that!

James.  :)
« Last Edit: September 02, 2009, 02:17:51 am by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Believe It Or Not !!!
« Reply #51 on: September 02, 2009, 07:03:40 am »
Alec is just flat out wrong.  James, you have the facts mostly straight but then you jump to retarded conclusions (like MS is trying to obsolote C++ and C# is C++ with training wheels.)

C++ is the more powerful language if you need it.  I could benefit from the power of C++ a lot more than you could with LaserBoy.  LaserBoy could be written in QBasic since it doesn't really have any performance requirements.  Yet, my application runs just fine in C#, computing and spitting out frames in real time.  So, who cares if it is watered down a bit when it does what I need and easier?

I didn't come here to argue C++ vs C# with people who don't even know how to use .NET.  I only came here to reply to your FLTK post and answer why it wasn't the best thing to use for Windows development.  I didn't say that C# was the answer, did I?

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Believe It Or Not !!!
« Reply #52 on: September 02, 2009, 07:09:36 am »
Oh yea, Alec, you might want to research NGEN.EXE a bit before you talk much more about native code.

You should also look around and find out why it is better to compile code on the target machine as opposed to some developers machine in San Jose, CA.  (Maybe something to do with CPU optimizations??)
« Last Edit: September 02, 2009, 07:11:35 am by Hyena »

Offline drlava

  • Sr. Member
  • ****
  • Posts: 314
  • Milliwatts: 18
    • View Profile
Re: Believe It Or Not !!!
« Reply #53 on: September 02, 2009, 11:10:13 am »
There is one thing going for FLTK over MFC for windows development and that is that the free microsoft compilers support it while they don't support MFC.  In fact, any compiler (such as Dev-Cpp) can use fltk.
« Last Edit: September 02, 2009, 11:24:53 am by drlava »

Offline meandean

  • Sr. Member
  • ****
  • Posts: 466
  • Milliwatts: 13
  • It's about sight AND sound.
    • View Profile
Re: Believe It Or Not !!!
« Reply #54 on: September 02, 2009, 11:43:41 am »
Quote
LaserBoy could be written in QBasic since it doesn't really have any performance requirements.

  I once used QBasic... I got tired of having only about 256K of memory to work with, not to mention
sub-VGA quality video- it's why I learned to write to bitmap so I could see some real color. Kinda hard
to process a 2Gb wave file (in less than 13 sec)  or blow over a Gb/sec (byte, not bit) to video RAM with
those resources!
« Last Edit: September 02, 2009, 01:13:37 pm by meandean »
"Patience is for the dead."

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Believe It Or Not !!!
« Reply #55 on: September 02, 2009, 12:15:34 pm »
LaserBoy could be written in QBasic since it doesn't really have any performance requirements.

LaserBoy most definately does have performance requirements.

It is able to play waves in the display in real time and faster.

In the near future, it will be able to communicate directly with the sound card; like it did when it was Linux only.

LaserBoy has ALWAYS been built for speed!

James.  :)
« Last Edit: September 02, 2009, 01:59:29 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Believe It Or Not !!!
« Reply #56 on: September 02, 2009, 05:47:57 pm »
There is one thing going for FLTK over MFC for windows development and that is that the free microsoft compilers support it while they don't support MFC.  In fact, any compiler (such as Dev-Cpp) can use fltk.

That's a good point.  I didn't realize that the Express version doesn't support MFC or ATL.  I have never really looked into free compilers since I get all of the pro stuff for free.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Believe It Or Not !!!
« Reply #57 on: September 02, 2009, 06:19:00 pm »
GCC is perhaps the greatest gift of anyone to all of humanity and Dev-C++ is the second greatest gift, because it is GCC for Windows!  ;D ;D ;D ;D ;D

http://gcc.gnu.org/

http://www.bloodshed.net/devcpp.html

James.  :)
« Last Edit: September 02, 2009, 06:20:53 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Believe It Or Not !!!
« Reply #58 on: September 02, 2009, 06:29:06 pm »
I like how Dev-C++ was written in Delphi.  Awesome.

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Believe It Or Not !!!
« Reply #59 on: September 03, 2009, 01:23:17 am »
Gary, (since we are using first names :D)
NGEN looks pretty cool.. im not quite sure exactly how it all works but it looks like its a mini compiler that compiles .net into native machine code (is that correct)

you mentioned that its better to compile for the machine rather than get binaries from the developer.. but does that not require the source? it may be different in .Net (im not well versed in .Net) but at any rate, LB comes with source that can easily be compiled on the host machine.. so thats kinda a moot point.. but NGEN looks like something that would make just about ANY app run better.. are you using it in the spaghetti installer???

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal