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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
|
View Poll Results: What is your favorite language?
|
|
C
|
  
|
51 |
40.80% |
|
C++
|
  
|
35 |
28.00% |
|
Java
|
  
|
15 |
12.00% |
|
Shell
|
  
|
16 |
12.80% |
|
Python
|
  
|
19 |
15.20% |
|
Other
|
  
|
33 |
26.40% |
 |
|
08-26-2007, 09:00 PM
|
#46
|
|
Senior Member
Registered: Sep 2003
Posts: 3,171
Rep: 
|
Quote:
Originally Posted by jhwilliams
You guys are writing applications in Assembly ?
|
I was doing some assembler earlier today. I'm integrating a single board computer running linux with a Texas Instruments digital signal processor over the PCI bus. I pretty well have my Linux kernel driver written, but in order to get the whole thing working, I need some code running on the DSP side.
The DSP doesn't have an operating system, so I am using a cross-compiling development environment for it, which lets me develop in Windows (actually, FORCES me to develop in Windows) and compile for the DSP. The development environment supports C and assembler, and I am doing my development in a mixture of both, inlining assembler where I need the speed.
Because at this point in time I am trying to make the PCI interface run as fast as possible, I have been doing some assembler work on the DSP AND I have been doing some x86 assembler on the single board computer.
Assembler is far from "useless" as someone posted on this thread; in fact, it is the lowest level of abstraction in the machine and all the other languages, ultimately, are built up from the underlying assembler - although by the time you get to the highest level languages, it is abstracted so far that you might never realize it.
|
|
|
|
08-27-2007, 05:32 AM
|
#47
|
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
No no no! I never said it's useless, I said my first experience with assembly language was very exiting but kindoff useless and only for education purpose. Then I said that in some cases it's needed. I love this language. I just couldn't let you pick only one sentence out of my post..
As an example I also developped for analogDSP an fft (canary) library used for triangulation for a robot. It (He?) was then able to detect its position based on three radio emitter placed in the room. What a pain when comparing x86 assembly to DSP assembly. Only comparison to 0, only one address and I had no high level environment, only a pot of nutella and lots of coffee 
Last experience was embended Linux 2.0 (TI tm320 or something like that) talking to an integrated modem which was using a DSP (the modem was made by us, from scratch) In the end, we did not manage completly (the modem sometimes didn't detect the carrier) and had to rent the guy who did the code.. He could natively speak assembly language and was able to generate some dtmf only with his mouth..
Last edited by nx5000; 08-27-2007 at 05:35 AM.
|
|
|
|
08-27-2007, 07:42 AM
|
#48
|
|
Senior Member
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 2,962
Rep: 
|
Quote:
Originally Posted by iwasapenguin
What about theoretical languages?
|
Are all theoretical languages self-hosting? If so, they should win by that virtue alone!
ta0kira
|
|
|
|
08-27-2007, 08:32 AM
|
#49
|
|
Member
Registered: Nov 2006
Posts: 344
Rep:
|
My favorite to code in is x86 Assembly. The one that I consider the best designed language is Modula-2. I also really like C and Java... The language actually selected though depends on the task... There's a lot of people that like Perl and PHP, but personally I consider them scripting languages and not heavy duty programming languages (sort of like Postscript, the "printer language" that can actually be used as a general purpose language as well).
|
|
|
|
08-27-2007, 04:49 PM
|
#50
|
|
Member
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 223
Rep:
|
Quote:
Originally Posted by jhwilliams
Obviously different languages are good for different things.. What's your vote?
|
Ruby by far.
|
|
|
|
08-27-2007, 09:00 PM
|
#51
|
|
LQ Newbie
Registered: Feb 2006
Posts: 9
Rep:
|
Quote:
Originally Posted by Tinkster
Omitting perl was a crime :}
|
I'd mod you up if I had mod points. 
|
|
|
|
08-27-2007, 09:30 PM
|
#52
|
|
LQ Newbie
Registered: Apr 2006
Location: West Long Branch, NJ
Distribution: Slackware
Posts: 9
Rep:
|
C is prefered but the key is the use
I generally prefer "C" for writing applications but as I have told many people over the years the key to a language choice is dependent on the project. I done serious coding in Assembler based environment (Series 3200 for those recognize the description), INTEL assembler, FORTRAN, Pascal, "C" and C++, various shell scripts, etc. I have played with web environments and would probably use PHP or Perl.
The key is to choose the right language for the project and to not lock yourself into a language that is not suitable for the project.
|
|
|
|
08-27-2007, 11:16 PM
|
#53
|
|
Member
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 223
Rep:
|
Don't worry...
Quote:
Originally Posted by the_scourge
I'd mod you up if I had mod points. 
|
I'd mod you down if I had.... ;-))
Ptui! Next you'll be saying vi's is Good! ;-)
(I'm just teasing....)
|
|
|
|
08-28-2007, 12:05 AM
|
#54
|
|
Member
Registered: Dec 2006
Location: Ogden, UT (Go OALUG!)
Distribution: OpenSuSE 10.1
Posts: 61
Rep:
|
Quote:
Originally Posted by jiml8
Never heard of Visual Basic? Granted that it isn't more than passingly related to the original Basic, it still carries the name.
*shrug* I last programmed some fortran about 2 years ago. It is still in widespread use, mostly in labs I think. There is a GNU fortran compiler.
And as far as that goes, I was doing major Fortran work for many years before you were born, and was publishing magazine articles using it when you were still not potty trained. 
|
Keep the anger down. Fortran is still in use, though to my knowledge the only people still using it program for either AT&t or telemarketing companies. That's not a joke, just the way I've seen it over the last few years.
VB is to basic as C is to C#: nothing more than the name in common anymore. Distant great^10 grandfathers from whence most languages came. It's just still useful.
My vote *would* be PHP or Perl, but I'm not much of a programmer so I stuck myself in other where I think I ought to be: I can script, I can write html. That's pretty much it. ^_^;;
Gryyphyn
|
|
|
|
08-28-2007, 04:06 AM
|
#55
|
|
Member
Registered: Aug 2007
Location: Ottawa
Distribution: Arch Linux
Posts: 279
Rep:
|
No Pascal?
|
|
|
|
08-28-2007, 04:40 AM
|
#56
|
|
LQ Newbie
Registered: Oct 2006
Distribution: Ubuntu - Feisty Fawn
Posts: 25
Rep:
|
I'm beside myself with rage that Perl, the one true language, is not an option.
|
|
|
|
08-28-2007, 06:08 AM
|
#57
|
|
Member
Registered: Apr 2005
Location: England
Distribution: Arch Linux
Posts: 223
Rep:
|
Pascal was the first language I attempted, got me started!
Now Im trying to learn C++, which is why I voted for it, even though Im still no good at it!
C#??
|
|
|
|
08-28-2007, 08:56 AM
|
#58
|
|
Member
Registered: May 2007
Posts: 206
Rep:
|
Quote:
Originally Posted by wolfger
I'm beside myself with rage that Perl, the one true language, is not an option.
|
How true, but Haskell rules!
|
|
|
|
08-28-2007, 11:44 AM
|
#59
|
|
LQ Newbie
Registered: Oct 2006
Distribution: Ubuntu - Feisty Fawn
Posts: 25
Rep:
|
Oh, I almost forgot... I am beside myself with rage that LOLCODE is excluded from the list, too.
|
|
|
|
08-28-2007, 11:49 AM
|
#60
|
|
LQ Newbie
Registered: Nov 2006
Posts: 4
Rep:
|
I was delighted to see some support for my favorite language (Ada) but how come only one commenter mentioned Ruby? I would have expected an uproar...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:51 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|