which program language is better for BBB

230 views
Skip to first unread message

nima talebpour

unread,
Dec 17, 2014, 9:02:19 AM12/17/14
to beagl...@googlegroups.com
I want to start write application for BBB. but i am confused.
which program language is better for BBB?

Java or C++ and why?

which of these languages has a better examples and source codes ?

thank you for guiding me.

Robert Nelson

unread,
Dec 17, 2014, 9:29:40 AM12/17/14
to Beagle Board
On Wed, Dec 17, 2014 at 8:02 AM, nima talebpour <nta...@gmail.com> wrote:
> I want to start write application for BBB. but i am confused.
> which program language is better for BBB?
>
> Java or C++ and why?
>
> which of these languages has a better examples and source codes ?

Neither.

There's only one true language... COBOL...

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

William Hermans

unread,
Dec 17, 2014, 10:12:55 AM12/17/14
to beagl...@googlegroups.com
Neither.

There's only one true language... COBOL...

Regards,

 No way ! Action-script !!!


--
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 beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Syn

unread,
Dec 17, 2014, 2:44:15 PM12/17/14
to beagl...@googlegroups.com

From: nima talebpour <nta...@gmail.com>
Reply-To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Date: Wednesday, December 17, 2014 at 6:02 AM
To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
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.

--

William Hermans

unread,
Dec 17, 2014, 7:14:47 PM12/17/14
to beagl...@googlegroups.com
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.

david turvene

unread,
Dec 18, 2014, 12:53:02 PM12/18/14
to beagl...@googlegroups.com
On Wednesday, December 17, 2014 9:29:40 AM UTC-5, RobertCNelson wrote:


There's only one true language... COBOL...


Following that reasoning, I would choose java because:

Rick Reynolds

unread,
Dec 18, 2014, 9:15:13 PM12/18/14
to beagl...@googlegroups.com
Nah... Just go for the COBOL.

http://sourceforge.net/projects/open-cobol/

nima talebpour

unread,
Dec 20, 2014, 4:50:38 PM12/20/14
to beagl...@googlegroups.com
could you please tel more about this language? I do not have any information about cobol. and please tel me why are you suggest this language ?

nima talebpour

unread,
Dec 20, 2014, 4:59:00 PM12/20/14
to beagl...@googlegroups.com
1- yes
2- no
3- yes, for example communicate with usart and so on.
4- I dont get your answer exactly
5- yes, C,C# and java. but i am amateur in java :D
6-as i told you in section 3 :D yes, Usart , control IO pins ,I2C,SPI

Rick Reynolds

unread,
Dec 20, 2014, 5:00:27 PM12/20/14
to beagl...@googlegroups.com
What is your current level of programming experience? What laguages have you programmed in and on what platforms?

John Syn

unread,
Dec 20, 2014, 5:28:05 PM12/20/14
to beagl...@googlegroups.com
Date: Saturday, December 20, 2014 at 1:50 PM
To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Subject: Re: [beagleboard] which program language is better for BBB

could you please tel more about this language? I do not have any information about cobol. and please tel me why are you suggest this language ?
Cobol is mainly for financial industry and is a language that has been around for a long time. I don’t think this is suitable for your requirements.

Regards,
John


On Wednesday, December 17, 2014 5:59:40 PM UTC+3:30, RobertCNelson wrote:
On Wed, Dec 17, 2014 at 8:02 AM, nima talebpour <nta...@gmail.com> wrote:
> I want to start write application for BBB. but i am confused.
> which program language is better for BBB?
>
> Java or C++ and why?
>
> which of these languages has a better examples and source codes ?

Neither.

There's only one true language... COBOL...

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

--

John Syn

unread,
Dec 20, 2014, 5:35:22 PM12/20/14
to beagl...@googlegroups.com
Date: Saturday, December 20, 2014 at 1:59 PM
To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Subject: Re: [beagleboard] which program language is better for BBB

1- yes
2- no
3- yes, for example communicate with usart and so on.
4- I dont get your answer exactly
5- yes, C,C# and java. but i am amateur in java :D
6-as i told you in section 3 :D yes, Usart , control IO pins ,I2C,SPI
I would say you have a few choices. Because you have C experience, I would recommend Python which is an interpreted language, but is still pretty fast and interfaces with C code when you need better performance. Python has a large library which will help speed up your development. Another choice is C++ and QT development environment which is very powerful at producing amazing GUI displays and also has everything you need to interface with your I/O. You could always stay with C and use one of the GUI libraries, but I’ll defer to others who have more experience in this area. 

Regards,
John

Robert Nelson

unread,
Dec 20, 2014, 5:46:51 PM12/20/14
to Beagle Board
On Sat, Dec 20, 2014 at 3:50 PM, nima talebpour <nta...@gmail.com> wrote:
> could you please tel more about this language? I do not have any information
> about cobol. and please tel me why are you suggest this language ?

My response was sarcasm... Your question was too simplistic, without
know what you wanted to do there's really no true answer for the
original question.

John Syn

unread,
Dec 20, 2014, 6:24:00 PM12/20/14
to beagl...@googlegroups.com

On 12/20/14, 2:46 PM, "Robert Nelson" <robert...@gmail.com> wrote:

>On Sat, Dec 20, 2014 at 3:50 PM, nima talebpour <nta...@gmail.com> wrote:
>> could you please tel more about this language? I do not have any
>>information
>> about cobol. and please tel me why are you suggest this language ?
>
>My response was sarcasm... Your question was too simplistic, without
>know what you wanted to do there's really no true answer for the
>original question.
It went right over the heads of some, but I got a good laugh out of your
suggestion. Actually, I think one use thought it was a good solution.
Interesting.

Regards,
John
>
>Regards,
>
>--
>Robert Nelson
>http://www.rcn-ee.com/
>

rwrm...@gmail.com

unread,
Dec 20, 2014, 6:30:43 PM12/20/14
to beagl...@googlegroups.com
I was just following Robert's lead. Sorry... ;)

It was interesting however to see that a relatively current Open Source COBOL project actually exists. That's just what I do. Say something like that and I have to go look. Lol...

Sent from my iPad
> You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/naQIshlHQEY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Robert Nelson

unread,
Dec 20, 2014, 6:48:54 PM12/20/14
to Beagle Board
On Sat, Dec 20, 2014 at 5:30 PM, <rwrm...@gmail.com> wrote:
> I was just following Robert's lead. Sorry... ;)
>
> It was interesting however to see that a relatively current Open Source COBOL project actually exists. That's just what I do. Say something like that and I have to go look. Lol...

Considering we have "forth" for the pru... Maybe we need a COBOL port
for the pru.. ;) A banking language tied to the "Programmable
Realtime Unit", just think how fast we could trade!

pru schwab anyone?

Peter Lawler

unread,
Dec 20, 2014, 6:51:53 PM12/20/14
to beagl...@googlegroups.com
On 21/12/14 10:48, Robert Nelson wrote:
> A banking language tied to the "Programmable
> Realtime Unit", just think how fast we could trade!
>
> pru schwab anyone?

I lost my coffee over my keyboard. Well played!

P.

david turvene

unread,
Dec 20, 2014, 6:56:59 PM12/20/14
to beagl...@googlegroups.com
On Saturday, December 20, 2014 6:30:43 PM UTC-5, Rick Reynolds wrote:
I was just following Robert's lead. Sorry... ;)

It was interesting however to see that a relatively current Open Source COBOL project actually exists. That's just what I do. Say something like that and I have to go look. Lol...

Sent from my iPad

Yes! I also blame this on that cad.

@Nima - to seriously answer your question, I STILL would go with Java over C++.  The two are very similar in design patterns and code construction. The Java development cycle is much shorter because it was original designed as an interpreted language.  C++ has MUCH better performance because it compiles to machine code.  Java has a large number of forward-looking concepts (e.g. decorators.) C++ is "a better C" and can hit the bare metal hardware where Java cannot.  A quick, or lengthy, google investigation should give you the path with which to start.  I would also look at Python if you're a novice.

We are all guilty of over-engaging in the silliness of our profession.

Charles Steinkuehler

unread,
Dec 20, 2014, 7:38:28 PM12/20/14
to beagl...@googlegroups.com
How about a COBOL compiler written in Forth? That way everyone's happy!

:)

--
Charles Steinkuehler
cha...@steinkuehler.net

David Lambert

unread,
Dec 20, 2014, 10:34:02 PM12/20/14
to beagl...@googlegroups.com
I can't resist adding the expression - "Go Forth and Multiply" ;)

nima talebpour

unread,
Dec 21, 2014, 9:40:35 AM12/21/14
to beagl...@googlegroups.com
thank you john, your answer was very helpful. I think,for the first step I should  try python  :) .

William Hermans

unread,
Dec 21, 2014, 11:26:55 AM12/21/14
to beagl...@googlegroups.com
I know the OP seems to have made his/her choice, but I had to comment on this one statement as it is incorrect, and "noob" eyes are watching I'm sure.


"Java has a large number of forward-looking concepts (e.g. decorators.) C++ is "a better C" and can hit the bare metal hardware where Java cannot."

This statement is wrong. Two different tools for two different jobs - really. C++ is not a "better C" C++ is C++, and C is C. C++ has so much that is unique from C, and you can not have C++ with out C. Also, C in the strict sense is procedural, where C++ is object oriented. But as seen all over the web, anything can be warped to do just about - whatever.

david turvene

unread,
Dec 21, 2014, 2:16:46 PM12/21/14
to beagl...@googlegroups.com
On Sunday, December 21, 2014 11:26:55 AM UTC-5, William Hermans wrote:
I know the OP seems to have made his/her choice, but I had to comment on this one statement as it is incorrect, and "noob" eyes are watching I'm sure.

"Java has a large number of forward-looking concepts (e.g. decorators.) C++ is "a better C" and can hit the bare metal hardware where Java cannot."

This statement is wrong. Two different tools for two different jobs - really. C++ is not a "better C" C++ is C++, and C is C. C++ has so much that is unique from C, and you can not have C++ with out C. Also, C in the strict sense is procedural, where C++ is object oriented. But as seen all over the web, anything can be warped to do just about - whatever.

I was directly quoting Stroustrup's answer to "What is C++" (http://www.stroustrup.com/bs_faq.html#what-is)  It's a well-known statement and easily traced to him.

Rick Reynolds

unread,
Dec 21, 2014, 2:18:53 PM12/21/14
to beagl...@googlegroups.com
"Two different tools for two different jobs - really. C++ is not a "better C" C++ is C++, and C is C."

I think Mr. Stroustrup would agree with that William.

You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/naQIshlHQEY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Rick Reynolds

unread,
Dec 21, 2014, 2:20:07 PM12/21/14
to beagl...@googlegroups.com
Never mind.... DOTE! lol...

Lee Crocker

unread,
Dec 22, 2014, 5:11:20 PM12/22/14
to beagl...@googlegroups.com
Just because no one's mentioned it yet...Go works great on the BBB. Fully compiled like C with more modern features, won't rot your brain like C++.

William Hermans

unread,
Dec 24, 2014, 12:16:16 AM12/24/14
to beagl...@googlegroups.com
As usual, the question has a "loaded" answer. There really is no "best programming language" for the BBB. Just depends on what you know, what you want to do, and what is the least resistant to how you want to implement your code * for you*.
Reply all
Reply to author
Forward
0 new messages