Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 938121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:35:25+00:00 2026-05-15T21:35:25+00:00

I have a question to ask: suppose I create a extensible software application with

  • 0

I have a question to ask: suppose I create a extensible software application with a plug in architecture, so that new applications can be integrated in this tool. If a new application is written in a different language and needs to be integrated in this application of mine, do I need to use tools such as SWIG and the Java Native Interface (depending of the languages used of course)? If not, what do I need?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:35:26+00:00Added an answer on May 15, 2026 at 9:35 pm

    suppose I create a extensible software application with a plug in architecture

    Okay. You’ve written some code. I’ll pretend it’s in Java because you mention SWIG and JNI.

    If a new application is written in a different language

    How did this happen?

    1. You planned for it. In which case, your application had an API that supported at least one additional language. "different language" doesn’t mean much because you — as developer — need to decide what languages you’ll tolerate. New languages aren’t a random event. They’re something you designed for.

    2. You didn’t plan for it. In which case, someone else — contrary to your design — is demanding another language. A language you did not design for.

    Choice 1 is the most common. You planned for specific languages, and wrote specific API libraries for those languages. You wrote — in those other languages — the necessary API library that would make those languages work with your application.

    You probably don’t use tools such as SWIG and the Java Native Interface to create this API. If you want to support Python, you’d use a bunch of Python tools to permit Python programmers to use your application.

    Choice 2 is less common. Either you didn’t plan, or you have someone who insists on writing their own API library based on their choice of language.

    You probably don’t use tools such as SWIG and the Java Native Interface to create this API. If someone else wants to support Python, they’ll use a bunch of Python tools to use your application.


    The real question is not "do I need to use tools such as SWIG and the Java Native Interface (depending of the languages used of course)?" Or anything like it.

    The real questions are

    1. How do I choose an additional language to support above and beyond the implementation language? You appear to be using Java. You want to support more languages than Java. [Just guessing — your question is incomplete.]

      Answer: Toss a coin. Whatever languages you think the marketplace will demand. C is popular. So is C#. So is Python. Pascal not so popular.

    2. How to I write my framework to permit "foreign" languages?

      Answer: This is challenging.

    To write application which allows multiple language interfaces you have to do a bunch of things.

    1. Know a bunch of languages well enough to know their limitations.

    2. Write your application so that the API can be successfully used by all your various languages.

    3. Have very, very clear use cases and unit tests to prove that the application really works that way.

    4. Avoid language-specific features. Avoid hardware-specific features. This means avoid all "native" or "primitive" data types in the API, and use real standard types. Often Unicode strings represented in UTF-8. The kind of thing that is universal and ubiquitous.

    5. Avoid quirky non-standard protocols. HTTP, FTP and the like are so widely adopted that you can’t go too far wrong with these as an interface. They can be slow. For better speed, you’ll can create named pipes between the "foreign" code and your application. If you want the foreign code to have "direct" access to your framework, think twice.

    6. Or, do what many API’s do and embrace C as the "lingua franca" of interfaces. Design everything to be callable from C programs. Use C conventions and C-friendly data types. This has limitations, but many people do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 488k
  • Answers 488k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can hook to Form Closing event and cancel the… May 16, 2026 at 8:42 am
  • Editorial Team
    Editorial Team added an answer In general, you can't. Even if you could transform all… May 16, 2026 at 8:42 am
  • Editorial Team
    Editorial Team added an answer Barrier #2 guarentees that the write to _complete gets committed… May 16, 2026 at 8:42 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.