Author |
Message
|
hughson |
Posted: Thu Jul 07, 2016 7:56 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
Might be worth finding an introductory C programming course, then you'll be all good. _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
santy84 |
Posted: Thu Jul 07, 2016 10:11 pm Post subject: |
|
|
Novice
Joined: 11 May 2016 Posts: 12
|
hughson wrote: |
Might be worth finding an introductory C programming course, then you'll be all good. |
 |
|
Back to top |
|
 |
tczielke |
Posted: Fri Jul 08, 2016 5:07 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
"The C Programming Language" by Brian Kernighan and Dennis Ritchie is a good book to learn the basics of C. Java is based on C, so you have a leg up in learning it.
Java has A LOT of overhead, so you will find that your MQ C applications are much more cost effective and efficient to run than Java. _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Jul 08, 2016 6:35 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
tczielke wrote: |
"The C Programming Language" by Brian Kernighan and Dennis Ritchie is a good book to learn the basics of C. Java is based on C, so you have a leg up in learning it.
Java has A LOT of overhead, so you will find that your MQ C applications are much more cost effective and efficient to run than Java. |
With a bit more precision, much of the overhead is the Java Virtual Machine (JVM) as it translates Java byte code to machine instructions. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
tczielke |
Posted: Fri Jul 08, 2016 6:54 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
An example of the performance difference is runmqakm (C) vs. runmqckm (Java). _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun Jul 10, 2016 5:03 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
In terms of performance, efficiency and resource utilisation, compiled C or C++ wins hands-down every time over Java.
However, Java has a lot of nice features, and C requires quite low level programming and has terrible string handling. _________________ Glenn |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun Jul 10, 2016 9:30 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
gbaddeley wrote: |
However, Java has a lot of nice features, and C requires quite low level programming and has terrible string handling. |
Very true. do I use strcpy or strncpy or memcpy or ?????
But, any competent developer soon creates their own toolbox of functions they trust to do this stuff. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
PaulClarke |
Posted: Sun Jul 10, 2016 9:45 pm Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Personally I don't think Java's handling of strings is anything to write home about  _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jul 11, 2016 4:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I generally find the Java language itself capable of being very simple, if one uses it in a straight forward way.
It also suffers from the piling on of lots of object interactions that make the code extremely difficult to read and manage.
But at least it doesn't rely on whitespace to indicate code blocks. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
PaulClarke |
Posted: Mon Jul 11, 2016 8:59 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
The problem with Java is that if you use it in a 'straight forward way' you end up with code which is very inefficient. Strings are a fairly good example of this. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jul 11, 2016 9:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
PaulClarke wrote: |
The problem with Java is that if you use it in a 'straight forward way' you end up with code which is very inefficient. Strings are a fairly good example of this. |
I said simple, not performant...  _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|