ProgrammingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Would there be any interest in making a new site devoted to linux-unix programming ? It would contain forums for asking questions and an article submission system for programming articles in C/C++/PHP, etc. The model for this is CodeProject (http://www.codeproject.com). Excuse the post if something like this already exists.
I love Linux, but when I write code I prefer it to be platform independent. Thats why I use Java (maybe I'm just lazy). Most other languages can be used platform independently as well.
i think that coding in platform-indepent language like Java is at loss of performance, and keeping performance up to standarized common-architecture elements instead of specialized architectures features is like a communist economy: everyone is equally poor. But that's just my opinion
It would be very handy a *nix codeproject-like site, which everyone could bring his codes to everyone, and it could be organized on an architecture-language basis
Originally posted by Hano i think that coding in platform-indepent language like Java is at loss of performance
Platform independence does not necissarily bring loss of performance. For example, platform/hardware dependent optimizations can be localized in the Java runtime (or a native compiler). This way the platform/hardware dependant optimizations only need to be written once, rather than repeatedly.
Quote:
Originally posted by Hano organized on an architecture-language basis
Code does not necissarily have to be architecture dependent either. For example, most of the Linux kernel is architecture independent. The architecture dependent parts are carefully separated out.
You might be recognizing a trend here, its called modularity. It makes your code more reusable.
You're right, i don't know what was i thinking. but are you aware that some high-performance programs (i.e:games like quake, music software like cubase) which relay heavily on hardware are unavoidably oriented to specific hardwares/OS?
if it wouldn't, porting software would be trivial. And i'm sure that Java is very cool for small programs, but i don't think that in near future we'll see whooping-fast 3D-shooters written on Java.
Of course there're cool steps in that directions: ftlk is a very good platform-independent GUI enviroment, the SDL (simple directmedia layer) , and others i won't bother mention. But aside exceptions like openGL ( one of the few really hardware/OS independent graphics library ) even if these libraries are pretty independent of the *nix&&*BSD OS, there is a quantum leap to make these work on, say OS/2, or say BeOs, or say OS/X, or say windoze.
About a page for sharing code, You're right, there's no point in classifying code on differents architectures. Neither on Language. I think the better way of classifying code is on which level it talks to hardware. i.e: drivers (which are all written is ASM) are ground level, graphics/audio/video/intercommunications libraries (which are mostly written in C, like the linux kernel )are medium level, applications that handle all these things for a purpose like showing a web page or suming two numbers that can be easily written in Java are top level.
Well, I guess the point it's that would be very good to have such a page.
Originally posted by Hano i don't think that in near future we'll see whooping-fast 3D-shooters written on Java.
How do you define the near future? Hardware gets faster every day. In 10 years, our hardware may be 1000 times as fast (only guessing).
Quote:
Originally posted by Hano there's no point in classifying code on differents architectures. Neither on Language. I think the better way of classifying code is on which level it talks to hardware. i.e: drivers (which are all written is ASM) are ground level, graphics/audio/video/intercommunications libraries (which are mostly written in C, like the linux kernel )are medium level, applications that handle all these things for a purpose like showing a web page or suming two numbers that can be easily written in Java are top level.
From my point of view there is going to be a big splitup betwean programmers. I think your going to have RAD programmers doing al the standert things using java, c# and a like.
And you will have the programmers Who are going to write the resorses for the RAD crap and they are going to be the build the new tech. High and will alway`s be in the lower class code but the higher class code wil become faster as the lower class code gets better. Hardwere will get faster butt the demand for resourses will always be infenetly bigger then the systems can deliver.
Programming java and C# is like playing with Duplo comared with Technic Lego.
Originally posted by LabRad there is going to be a big splitup betwean programmers
I see this as a high-level / low-level division where the low-level programmers provide the foundation for the high-level ones. There will probably be some mixing between the two groups. High-level programmers of today may rely on the lower-level programmers of tomorrow to provide increased efficiency in the future.
Quote:
Originally posted by LabRad your going to have RAD programmers doing al the standert things using java, c# and a like
As our code becomes more reusable, RAD comes along to build stuff out of the reusable parts (preferably *GPL or *BSD).
Quote:
Originally posted by LabRad Hardwere will get faster butt the demand for resourses will always be infenetly bigger then the systems can deliver.
There will always be demand for better computers, and our computers get better every day. Sometimes we are forced to make software optimizations in order to make present hardware meet our demands. Some optimizations are more elegant than others. Sometimes we sacrifice efficiency for elegance and vice versa. It is nice if we can have both elegance and high efficiency simultaneously.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.