Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

low level coding in java

Thread view: 
Ishwor Gurung - 23 Aug 2007 08:18 GMT
hi all,

Regarding coding for low level stuff, is Java good enough? thanks.
with the C and C++ already there, is java missing something in there ?
i read the serial comm api for java called javacomm which as posted has
bleak support for low level serial communication. I am just investigating
how far other people have gone.

thanks a lot!

Signature

Cheers,
Ishwor Gurung
/* humpty dumpty */

Ishwor Gurung - 23 Aug 2007 08:53 GMT
> hi all,
>
[quoted text clipped - 5 lines]
>
> thanks a lot!

It seems to me rather that developing all the low-level stuffs (file systems
abstractions, drivers, serial comm etc..) are somewhat limited in Java.
Everyone seems to say that Java is geared more for enterprise and such but
I like Java but still those above can't be done! any ideas fellow
usenetters ?

Signature

Cheers,
Ishwor Gurung
/* humpty dumpty */

Roedy Green - 23 Aug 2007 12:30 GMT
>Regarding coding for low level stuff, is Java good enough? thanks.
>with the C and C++ already there, is java missing something in there ?
>i read the serial comm api for java called javacomm which as posted has
>bleak support for low level serial communication. I am just investigating
>how far other people have gone.

Basically anything platform or hardware specific you need to write the
code it C/C++ and glue it in with JNI.  You can write several versions
of it, and have Java Web Start plug in the correct one for any given
platform.

See http://mindprod.com/jgloss/jni.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Daniel Pitts - 23 Aug 2007 21:22 GMT
> hi all,
>
[quoted text clipped - 10 lines]
> Ishwor Gurung
> /* humpty dumpty */

Java is not design to support "low level" programming. It is designed
to allow abstracted interaction with the parent platform. While it
might be possible to write drivers in pure Java, its unlikely to see
whole Operation Systems written in Java, simply because Java itself
"requires" an OS to run on.

Although, I could see a specialty JVM implementation that doesn't
require a parent OS, I'm not aware of any of the top of my head.
Mark Thornton - 23 Aug 2007 21:39 GMT
> Java is not design to support "low level" programming. It is designed
> to allow abstracted interaction with the parent platform. While it
> might be possible to write drivers in pure Java, its unlikely to see
> whole Operation Systems written in Java, simply because Java itself
> "requires" an OS to run on.

See http://www.jnode.org

Mark Thornton
lyallex - 24 Aug 2007 14:32 GMT
> hi all,
>
[quoted text clipped - 5 lines]
>
> thanks a lot!

Actually, I think Java is rather good at certain 'low level' tasks.
It's threading model is easy to learn and it has support for byte
arrays, What more do you need?

Your state machine lives in one Thread and you listen to the comm port
on another. Nice !

Rgds
Duncan
anders - 24 Aug 2007 18:14 GMT
I worked before with develop a machine, running lolevel stuff with C+
+,
Handling rest i java.
We have java and c++ talking by socket and sharing a postGreSQL
database.

Eg the c++ colect data from eg. a serialport send this thrue a socket
to
the javaprogram.
Don't know if this is the best but... it worked fine.

Anders


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.