ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Regarding amqsput and amqsput0.c program

Post new topic  Reply to topic Goto page Previous  1, 2
 Regarding amqsput and amqsput0.c program « View previous topic :: View next topic » 
Author Message
hughson
PostPosted: Thu Jul 07, 2016 7:56 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1916
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
View user's profile Send private message Visit poster's website
santy84
PostPosted: Thu Jul 07, 2016 10:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
tczielke
PostPosted: Fri Jul 08, 2016 5:07 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
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
View user's profile Send private message
bruce2359
PostPosted: Fri Jul 08, 2016 6:35 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
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
View user's profile Send private message
tczielke
PostPosted: Fri Jul 08, 2016 6:54 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
Location: Illinois, USA

An example of the performance difference is runmqakm (C) vs. runmqckm (Java).
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sun Jul 10, 2016 5:03 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
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
View user's profile Send private message
smdavies99
PostPosted: Sun Jul 10, 2016 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulClarke
PostPosted: Sun Jul 10, 2016 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Mon Jul 11, 2016 4:04 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulClarke
PostPosted: Mon Jul 11, 2016 8:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Mon Jul 11, 2016 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » Regarding amqsput and amqsput0.c program
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.