LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-01-2004, 12:09 AM   #46
chewysplace
Member
 
Registered: Sep 2003
Distribution: Slackware 10 w/ Kernel 2.6.8
Posts: 176

Rep: Reputation: 30

Quote:
Originally posted by xarius
Hey, if you don't like C/C++ don't use it. And if you don't like people questioning *your* choices, then don't talk about them in a public forum.
the man has a point Strike.
 
Old 03-01-2004, 07:15 AM   #47
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Quote:
I Love C
I Like C++
I Love Linux
I Dont Like Java
thats the reason
Use Python, Lisp, Haskell, Smalltalk or O'Caml then :P

Alex
 
Old 03-01-2004, 07:20 AM   #48
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Quote:
Basically, programs written (and written well) in C/C++ are fast. That is the prime reason for anyone using C++. Even in this day and age with fast machines, speed is of the essence. a few seconds of performance loss might not seem important, but then how many programs/daemons/scripts etc. do you run on your machine in a day?

Let's say 50 (for the sake of the argument). If all these programs were written in Java, and perform at about 3/4's the speed of C++, how much time have you lost just waiting for things to happen.

Also the "memory management" argument is ludicrous, I hardly ever have to bother with managing memory, if I don't want to.

Yeah, umm. C++ is amazing. It's been around for a long time, has a standards committee etc. Just use it like everyone else instead of trying to be controversial and non-conformist ok?
There are other programming lanuages which are as fast as C++ and don't have manual memory management. The alternative is not necessarily Java/Python, haven't we established this yet? Speed cannot be an argument for using C++.

I agree with Strike on your memory management point, I'm constantly thinking about memory management in C++. To the point of actually writing "smart pointer" classes and stuff, but then you're just writing your own inefficient GC.

I think the only good reasons for using C/C++ are that it's portable, faster than a portable scripting language, and there are a lot of libraries available for it. If I just want to do simple I/O, I've got no reason at all to write a program in C -- much better to write it in LISP or Haskell, say.

Alex
 
Old 03-01-2004, 07:22 AM   #49
eshwar_ind
Member
 
Registered: Feb 2004
Location: Bangalore
Distribution: Redhat
Posts: 144

Rep: Reputation: 15
Are you comparing those languages with the power of C as a systems and embedded programming language ?
Na na na
Impossible buddy.
C is a Sea.
dont try to ...... it ?
 
Old 03-01-2004, 07:24 AM   #50
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Quote:
Are you comparing those languages with the power of C as a systems and embedded programming language ?
Sure, why not? Just take a look at a LISP machine if you think C is the only language you can write operating systems in...

Last edited by llama_meme; 03-01-2004 at 07:26 AM.
 
Old 03-01-2004, 07:31 AM   #51
eshwar_ind
Member
 
Registered: Feb 2004
Location: Bangalore
Distribution: Redhat
Posts: 144

Rep: Reputation: 15
then you are telling Lisp is better than C in those domains. Then why the more than 75% embedded market uses C and all most all systems programming is done using C ?
Actually i dont even know a,b,c,d...s in Lisp.
Is lisp so powerfull than C?
 
Old 03-01-2004, 07:33 AM   #52
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Yes LISP is better. The only advantage C has is that it's more popular, which leads to better support for various platforms, etc. But that's nothing to do with the C language itself. We all know that popular technologies aren't necessarily the best technologies. VHS vs BetaMax, Windows vs Linux

Alex
 
Old 03-01-2004, 07:37 AM   #53
eshwar_ind
Member
 
Registered: Feb 2004
Location: Bangalore
Distribution: Redhat
Posts: 144

Rep: Reputation: 15
Linux oneday will erase windows from software field (my feeling) because it is better than the windows. When lisp was created? When C was created?
 
Old 03-01-2004, 07:54 AM   #54
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Lisp was created sometime in the late 1950s, it peaked in popularity when it was used in AI in the 1980s, but then as the "AI revolution" collapsed, LISP sort of went down with it. But that has nothing much to do with its technical merits. Anyway, LISP is just a case in point, there's other languages that would be suitable for writing an OS (e.g. O'Caml).

Alex

Last edited by llama_meme; 03-01-2004 at 07:59 AM.
 
Old 03-01-2004, 08:01 AM   #55
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by chewysplace
Quote:
Originally posted by xarius
Hey, if you don't like C/C++ don't use it. And if you don't like people questioning *your* choices, then don't talk about them in a public forum.
the man has a point Strike.
People aren't questioning my choices, because I'm not talking about my choices. I'm asking about other people's choices and questioning them as to why they made such choices. So you directing the quote at me seems misplaced.

Last edited by Strike; 03-01-2004 at 08:02 AM.
 
Old 03-01-2004, 09:07 AM   #56
chewysplace
Member
 
Registered: Sep 2003
Distribution: Slackware 10 w/ Kernel 2.6.8
Posts: 176

Rep: Reputation: 30
Quote:
Originally posted by Strike
the man has a point Strike.

People aren't questioning my choices, because I'm not talking about my choices. I'm asking about other people's choices and questioning them as to why they made such choices. So you directing the quote at me seems misplaced.
[/QUOTE]

no, its properly placed.
 
Old 03-01-2004, 10:54 AM   #57
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Come on, let's not stop talking about programming languages and start talking about Strike. On an argument thread like this, it's inevitable that people will irritate each other a little bit, but there's no need for the thread to descend into metadiscussion just because feelings are strong.

Alex
 
Old 03-01-2004, 11:21 AM   #58
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
I guess, i'll repeat myself, again:

Programmers get used to something and stick to it. Unless they or someone else 'forces' them to look at something new they'll stick to it forever. C and C++ are popular because we are surrounded by it everywhere. The linux kernel is C, all popular apps for linux are written in C/C++. C/C++ is people's introduction.
That doesn't mean that C/C++ are the best languages, same as since Windows is the most popular OS, doesn't mean it's the best either. Now i personally love C and C++, they are amazingly powerfull languages. But because i'm a student i was sort of forced to look at alternatives, and yes, like always, there are better suited languages in some areas. It's natural.

Lisp is a very powerfull language, much older than C or C++. Why hasn't it caught on in popularity if it's so powerfull? Fuck knows, but mainly because most people had the misconception that it's only an AI language. Some have used it in their applications, some have not.

Either way, there will always be better languages available, but that doesn't mean people will use them.
 
Old 03-01-2004, 01:16 PM   #59
chewysplace
Member
 
Registered: Sep 2003
Distribution: Slackware 10 w/ Kernel 2.6.8
Posts: 176

Rep: Reputation: 30
Quote:
Originally posted by llama_meme
Come on, let's not stop talking about programming languages and start talking about Strike. On an argument thread like this, it's inevitable that people will irritate each other a little bit, but there's no need for the thread to descend into metadiscussion just because feelings are strong.

Alex
i agree, but does Strike? show me a thread that he has yet to get personal on.
 
Old 03-01-2004, 01:47 PM   #60
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Original Poster
Rep: Reputation: 31
chewy: seriously, if you have issues with me or this thread, take them to the appropriate place and let this thread contain real content instead of you posting your issues about me. This is the last time I'm going to say that in this thread, because I just want it to be known publicly that I'm asking you politely to please keep things that are unrelated to the intended topic out of the thread. Anything else like this in the future should be handled through other channels.

Quote:
Originally posted by coolman0stress
Lisp is a very powerfull language, much older than C or C++. Why hasn't it caught on in popularity if it's so powerfull? Fuck knows, but mainly because most people had the misconception that it's only an AI language. Some have used it in their applications, some have not.

Either way, there will always be better languages available, but that doesn't mean people will use them.
Well, I have my theories about why Lisp hasn't caught on, one of which includes the whole "AI language" misconception. Another one is the fact that it's just not very fun to read for the beginner programmer (though I do think that if you coach it right, Lisp can be very easy to learn ... and I think Scheme is a great first language). But part of the reason of this thread was to probe the question of why no one bothers to investigate other languages when they start a new project. I can see that it does happen and several people have already admitted in this very thread that they tend not to not do such an investigation for their projects. But I'm wondering if it's pure laziness (every good programmer has to be lazy to some degree) or a lack of knowledge about the alternatives, or something else entirely. That's what I'm trying to find out from people (note to everyone: I'm not trying to evangelize anything in particular or bash anything in particular, I may use specific examples to prove points/counterpoints but they serve no purpose in this thread but to be evidence for points/counterpoints ... trust me, you can tell when I'm evangelizing or bashing )
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: How To Do Eveything With DD AwesomeMachine LinuxAnswers Discussion 23 03-09-2017 06:50 AM
Discussion LinuxRam General 5 08-24-2004 06:58 AM
A Discussion On Certification LinuxRam Linux - Certification 2 07-31-2004 11:49 PM
webmail discussion illtbagu Linux - Software 2 11-11-2003 11:03 PM
Serious Discussion nbjayme Linux - Newbie 2 09-24-2003 10:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration