LinuxQuestions.org
Help answer threads with 0 replies.
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 06-23-2005, 03:13 AM   #16
mohama
Member
 
Registered: May 2005
Location: solar-system->earth->northern hemisphere
Distribution: ubunutu+knoppix+suse
Posts: 197

Rep: Reputation: 31
data structure


hi ,
data structure is a data structure .... joking..!!

data structure is the - endless - kinds of structures which u use to save get remove and change the data u need in the program u write ... (((( with conditions that it should fill ))))
the simplest is array ( i quess ) but if u don't know what ' array ' is or what ' node ' is , then i will just wast my time if i start explaining ...
some of data structure u will know will studing the language like array and two dimentional array ( matrix ) but others u will not understand till u get the base concepts and from else where ( not from the language it self ) . so if u don't know to program then don't try to understand this now , but the buttom line is that u should know that it is parallel to programing and that u WILL need to know it .

so get started ... and good luck again ,

bye ,
mohammad ,
 
Old 06-23-2005, 10:32 AM   #17
mandrakelinux
Member
 
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
a lot of thanks to everyone
i get started
i have one question for knowledge could i write device driver with any language other than c ?
mohamed i think you got java . could you tell me what can i do with it ?
 
Old 06-23-2005, 10:47 AM   #18
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Rep: Reputation: 30
Quote:
Originally posted by mandrakelinux i have one question for knowledge could i write device driver with any language other than c ?
Yes, you can write a device driver using object pascal:

The compiler: http://www.freepascal.org/

The RAD IDE: http://www.lazarus.freepascal.org/

I've never written a device driver for linux, but I've already created a Windows vxd using object pascal.
 
Old 06-23-2005, 11:48 AM   #19
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
i have one question for knowledge could i write device driver with any language other than c ?
You can write a device driver in any language able to build a binary module respecting the target kernel APIs.
Quote:
mohamed i think you got java . could you tell me what can i do with it ?
You can do in java almost whatever you want, except precisely device drivers ...
 
Old 06-23-2005, 12:31 PM   #20
JoeUser11
Member
 
Registered: Dec 2004
Location: Austin, TX
Distribution: SuSe9.3
Posts: 143

Rep: Reputation: 15
If you're going to use a scripting language, use python. You'll love it. Very comfortable to use.
 
Old 06-23-2005, 01:05 PM   #21
mandrakelinux
Member
 
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
a lot of thanks guys
can i learn only the part how to write a device driver by c and not the whole of c ?
 
Old 06-23-2005, 01:40 PM   #22
mohama
Member
 
Registered: May 2005
Location: solar-system->earth->northern hemisphere
Distribution: ubunutu+knoppix+suse
Posts: 197

Rep: Reputation: 31
hi ,

mmmmmmmmm ,java java java ...

Quote:
mohamed i think you got java . could you tell me what can i do with it ?
java is a very recent language , one of it's disadvantages is that it's owened by sun ...
at first it was developed to microwaves and things like this but after that it inserts very strongly to the internet as i already said ...
there is onething unique about java and internet which is applets and flashes ... ( applet is a relativly small program , which u can run without any need to download it to u'r machine , that because when u click it's icon u'r computer get the compilation ONLY and u'r internet browser have 'jvm' that runs it ..


as jlliagre said

Quote:
You can do in java almost whatever you want, except precisely device drivers ...
((i quess ))

iam just interested to know what u choosed to start with ???


and accroding to :

Quote:
can i learn only the part how to write a device driver by c and not the whole of c ?
i my self don't think !!!!!!!!!!!? , from question like this i can see obviously that u have no idea what programming is !?

any way , hope that this helped , and have fun while programming and good luck !

bye ,

mohammad ,
 
Old 06-23-2005, 01:46 PM   #23
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally posted by sekelsenmat
Yes, you can write a device driver using object pascal:

The compiler: http://www.freepascal.org/

The RAD IDE: http://www.lazarus.freepascal.org/

I've never written a device driver for linux, but I've already created a Windows vxd using object pascal.
If you are specifically talking about linux, then it is doubtful you will get anything other then C to work with the kernel. The kernel is pretty picky about device modules... many people have tried (and failed) to write then in C++ and other languages.
 
Old 06-23-2005, 10:27 PM   #24
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
java is a very recent language
Not that much, It just celebrates its 10 years.
http://java.sun.com/developer/techni...s/javaone2005/
Quote:
one of it's disadvantages is that it's owened by sun ...
Is that really a disadvantage ?
Java runtime and developer toolkit have been free (like free beer) since the beginning
The specs are public, everyone is free to implement its own implementation, and there are many of them (gcj, kaffe, gnu classpath, iKVM, harmony project).
Sun JVM source code is freely available
http://java.sun.com/j2se/jrl_download.html
There is a couple of licensing agreements that allow you to modify Sun's code (http://java.sun.com/j2se/1.5.0/jrl_5.0-license.txt
http://java.net/jrl.html
http://java.sun.com/j2se/1.5.0/scsl_5.0-license.txt
) and more to come (JIUL)
The Java API evolution is not proprietary but a community process, open to everyone.
http://jcp.org/en/introduction/faq
Next Java version is developed in an open way, everyone can see the code and contribute to it: https://mustang.dev.java.net/
Sun has provided to the open source community more lines of code than any other commercial company OpenOffice, NetBeans, OpenSolaris.
http://www.sunsource.net/why.html
As an organization, only UC Berkeley has given more.
Sun is contributing to many open source projects (Apache Tomcat, Mozilla, Gnome, Grid, JXTA, ODSL, ant, cromson, xalan; ...)

Well, I would say Sun owning Java is one of its advantage, not disadvantage.
 
Old 06-24-2005, 11:31 AM   #25
mandrakelinux
Member
 
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
thanks to everyone who help me
i really got my decision and i'll start collecting resources and tools
again thanks
 
Old 06-26-2005, 06:17 AM   #26
mohama
Member
 
Registered: May 2005
Location: solar-system->earth->northern hemisphere
Distribution: ubunutu+knoppix+suse
Posts: 197

Rep: Reputation: 31
java...

hi ,

Quote:
Not that much, It just celebrates its 10 years.
well , happy birthday java !?
java is recent if compared to other famouse powerful languages like c++ ... .

Quote:
Well, I would say Sun owning Java is one of its advantage, not disadvantage.
oh , we are so lucky that java is owened to sun and not to other company like ...... , that is right , but it still OWENED ,

thats it ,
bye,
 
Old 06-26-2005, 07:24 AM   #27
twistedrhymes
LQ Newbie
 
Registered: Jun 2005
Distribution: redhat/koppix
Posts: 23

Rep: Reputation: 15
learn java first, its an easier language to get your head around, when your comfortable with classes and the basics of structured programming, then its a hop skip and a jump to c++..

but to start with c++ is like swimming with sharks, memory allocation and garbage collection is all manual, file points and memory pointers need to be assigned.. its a tougher lowerlevel language..
 
Old 06-26-2005, 11:30 AM   #28
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
well , happy birthday java !?
Certainly, don't you like parties ?
Quote:
java is recent if compared to other famouse powerful languages like c++ ... .
You previously wrote it was very recent, which doesn't apply for a 10 years old programming language in my opinion, but anyway, a language value is not in its age.
Are the languages fortran (51 years old), cobol (46), basic (41), Smalltalk (36), C (33), C++ (23), Perl (18), Python (15), Java (10), C# (5) ordered here by quality ?
Certainly not, and anyway such measure is worthless.
Quote:
oh , we are so lucky that java is owened to sun and not to other company like ...... , that is right
Thanks, you got my point !
Quote:
, but it still OWENED ,
thats it ,
Well, what's wrong with owning what one deserves to after creating it ?

Java is a trademark owned by Sun Microsystems,
Linux is a trademark owned by Linus Torvalds.

Products behind these trademarks are available for free, what do you want ?
More than that ?
 
Old 06-26-2005, 12:00 PM   #29
mohama
Member
 
Registered: May 2005
Location: solar-system->earth->northern hemisphere
Distribution: ubunutu+knoppix+suse
Posts: 197

Rep: Reputation: 31
hello ,

Quote:
Certainly, don't you like parties ?
ofcorse i do .. , what party it could be lights off , gatto with ten candles wretten on it ((( java 10 , tell 110 ))) , fassinating ..!

Quote:
fortran (51 years old), cobol (46), basic (41), Smalltalk (36), C (33), C++ (23), Perl (18), Python (15), Java (10), C# (5) ordered here by quality ?
thanks for showing that java almost the most recent one !? :-)
and i never said that it is recent so it's good !!

and now ---->> i have problem setting my class path , my shell throws 'no such command' if i uses >> setenv << , or CLASSPATH
and if i add it to ~/.bash_profile it does NOT work , so SOS , SOS , SOS , SOS .

thanks ,
ciao,
 
Old 06-26-2005, 12:37 PM   #30
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
setenv is for csh and csh like shells but you are probably using bash, which uses the ksh syntax:
Code:
export CLASSPATH=/path/zim.jar:/path2/boum.jar:/path3/tralala.jar:
 
  


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
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 12:57 PM
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 08:02 PM
2 Questions: java calling system commands? PERL vs Java? randomx Programming 28 11-28-2003 08:24 PM

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

All times are GMT -5. The time now is 03:20 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