Just in the context of one language versus the other . . .

Java is interpreted, so requires what Oracle calls the Java Virtual
Machine( JVM ). Which leads to the second point I had on the tip of my
brain. Added install / usability complexity. Also since Java is
interpreted, it should technically be slower, but assuming that it is, the
difference may / may not be important. Many interpreted languages are
getting faster, but some require hardware acceleration to pick up the
"slack".  Here, I could not say about Java, Javascript does have processor
acceleration into some( maybe many by now ? ) processors. But Javascript
and Java really have nothing in common aside for "Java" in the name, and
some syntax similarities.

C++ on the other hand compiles into native code, and usually has a binary
easily installed from a given distro package manager. C++ should also be
faster compared to Java, but the performance difference may be minuscule,
or otherwise unimportant.

Both should have many, many libraries available to perform various
different "things". With Java being less intimidating to start with, and
possibly more R.A.D.( rapid application development ). Where C++'s strength
being speed, and binary size - where C++ can be much smaller over all.

Typically, stuff like games, that require absolute speed, are written in
C++. But at least one well known online game was written in Java (
runescape ). As far as what Java is best used for . . . Yeah I honestly do
not know. I do not use the language, as I find it technically horrible as a
language ( right next to Perl ). This is my own opinion though, and I do
have a friend who makes very good money as a Perl programmer - So it is
just a matter of perspective.

In all seriousness I think Robert's original answer was half correct.
Except I think C is probably the best suited for the beaglebone. are metal
or with Linux, as C is as far low level you get without diving into
assembly language, and C is what is used to develop the kernel. Then if you
have a want / need for a high level front end, then you have a choice to
make. My own latest personal favorite for the beaglebone black is
Javascript ( Nodejs ), but my own Beaglebone black's serve as headless, and
remote monitoring devices, that may need to present a web interface over a
network.

On Wed, Dec 17, 2014 at 12:43 PM, John Syn <[email protected]> wrote:
>
>
> From: nima talebpour <[email protected]>
> Reply-To: "[email protected]" <[email protected]>
> Date: Wednesday, December 17, 2014 at 6:02 AM
> To: "[email protected]" <[email protected]>
> Subject: [beagleboard] which program language is better for BBB
>
> I want to start write application for BBB. but i am confused.
> which program language is better for BBB?
>
> Java or C++ and why?
>
> The obvious answer, it depends on what your application does. Answer these
> and it will be easier to give you an answer:
>
>    1. Do you have a GUI?
>    2. Will your app display output to a web browser?
>    3. Does your app interface with I/O and if so, what type?
>    4. What are the performance constraints?
>    5. Do you have any programming language experience?
>    6. Do you have any communication requirements?
>
> There are several other distinguishers, but let’s start with these and go
> from there. BTW, Robert and William’s responses were hilarious. Really made
> me laugh.
>
> Regards,
> John
>
>
>
> which of these languages has a better examples and source codes ?
>
> thank you for guiding me.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>  --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to