LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2015, 09:57 AM   #1
kumaresan k
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Object Interface


what is the object interface are using in linux?
can anyone tell me?
In Microsoft windows using Component Object Model (COM). It's a binary interface. So, i want to know object interface in linux.
 
Old 01-13-2015, 11:11 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Very few current Windows programs use the Component Object Model. COM was deprecated (in favor of .NET) years and years ago.

I'm not sure if I fully understand your question, but see if this helps:

http://stackoverflow.com/q/3063321

My personal answer is that Linux has no COM equivalent. COM was designed, very specifically, to deal with the ABI incompatibilities in the C++ compilers that were available for Windows at the time (1998).

Well, what does COM give you?
  • A common ABI, so that you don't need to worry about which C++ compiler you use. Not an issue on Linux; just link against the same glibc libraries. And C++ compilers are much more standardized now than they were when COM was deemed to be needed for Windows.
  • A way to call library functions from the programming language of your choice. Not an issue on Linux. Each programming language provides its own way to read the standardized ELF libraries.
  • Interprocess communication. Linux gives you multiple choices for that.
  • Memory management (and COM's implementation is one of the most difficult ones in existence). Use the implementation of your choice.

I have professional experience doing COM programming, so I know what I'm talking about.

Last edited by dugan; 01-13-2015 at 01:15 PM.
 
Old 01-13-2015, 03:08 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
Both COM and .NET are "vendor-supported infrastructures," which the (one and only) vendor of the system-in-question supports throughout their entire software architecture.

I-F you choose to "bite-off and accept 100% of the Microsoft® Way of Doing Everything," then these strategies might well be seen to have compelling advantages. But, since they are, themselves, the product of one vendor (and, until very recently, protected as a profound legal secret by that one vendor ...), they abruptly stop ... and lose much of their effectiveness therefore also their appeal ... when the "cross-vendor moment" is reached.

I think that it truly can't be argued that Microsoft achieved their lofty design goals for both systems. But, and necessarily, those solutions pre-suppose, "our way or no-way" with basically nothing in-between. I don't think they could have done it any other way, had they been inclined to, which of course they weren't. But, in a world where "Linux and so-forth aren't going away," the design is both a blessing and a curse.

Last edited by sundialsvcs; 01-13-2015 at 03:10 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
data sharing between c++ shared object and Fortran shared object Madhubala Debian 2 08-19-2011 02:22 AM
object detector (preferably infrared) that can detect an object 3 feet away schneidz Linux - Embedded & Single-board computer 5 01-21-2009 04:21 PM
To Object or not to Object...that is the question. graemef Programming 8 08-07-2008 12:18 AM
Allthough squid has 1 object, it still asks object to http server markraem Linux - Server 0 10-08-2007 11:40 AM
Event driven object-to-object: C++ template class mecanism ( NOT STL or STDC++) bretzeltux Programming 2 12-23-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration