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 203649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:23:50+00:00 2026-05-11T17:23:50+00:00

This is a question that I’ve always wanted to know the answer, but never

  • 0

This is a question that I’ve always wanted to know the answer, but never really asked.

How does code written by one language, particularly an interpreted language, get called by code written by a compiled language.

For example, say I’m writing a game in C++ and I outsource some of the AI behavior to be written in Scheme. How does the code written in Scheme get to a point that is usable by the compiled C++ code? How is it used by the C++ source code, and how is it used by the C++ compiled code? Is there a difference in the way it’s used?

Related

How do multiple-languages interact in one project?

  • 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-11T17:23:51+00:00Added an answer on May 11, 2026 at 5:23 pm

    There is no single answer to the question that works everywhere. In general, the answer is that the two languages must agree on “something” — a set or rules or a “calling protocol”.

    In a high level, any protocol needs to specify three things:

    • “discovery”: how to find about each other.
    • “linking”: How to make the connection (after they know about each other).
    • “Invocation”: How to actually make requests to each other.

    The details depend heavily on the protocol itself.

    Sometimes the two languages conspire to work together. Sometimes the two languages agree to support some outside-defined protocol. These days, the OS or the “runtime environment” (.NET and Java) is often involved as well. Sometimes the ability only goes one way (“A” can call “B”, but “B” cannot call “A”).

    Notice that this is the same problem that any language faces when communicating with the OS. The Linux kernel is not written in Scheme, you know!

    Let’s see some typical answers from the world of Windows:

    • C with C++: C++ uses a contorted (“mangled”) variation of the “C protocol”. C++ can call into C, and C can call into C++ (although the names can be quite messy sometimes and it might need external help translating the names). This is not just Windows; it’s generally true in all platforms that support both. Most popular OS’s use a “C protocol” as well.

    • VB6 vs. most languages: VB6’s preferred method is the “COM protocol”. Other languages must be able to write COM objects to be usable from VB6. VB6 can produce COM objects too (although not every possible variation of COM objects).

      VB6 can also talk a very limited variation of the “C protocol”, and then only to make calls outside: it cannot create objects that can be talked to directly via the “C protocol”.

    • .NET languages: All .NET languages communicate compile to the same low-level language (IL). The runtime manages the communication and from that point of view, they all look like the same language.

    • VBScript vs. other languages: VBScript can only talk a subset of the COM protocol.

    One more note: SOAP “Web Services” is really a “calling protocol” as well, like many other web-based protocol that are becoming popular. After all, it’s all about talking to code written in a different language (and running in a different box at that!)

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

Sidebar

Ask A Question

Stats

  • Questions 93k
  • Answers 93k
  • 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 The ASP.NET MVC project should only differs in Web Project,… May 11, 2026 at 6:35 pm
  • Editorial Team
    Editorial Team added an answer You shouldn't be passing Pattern.DOTALL; that causes newlines to be… May 11, 2026 at 6:35 pm
  • Editorial Team
    Editorial Team added an answer You can't rely on general statistics, you need to look… May 11, 2026 at 6:35 pm

Related Questions

I am currently running into a problem where an element is coming back from
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
This is also a question that I asked in a comment in one of
I use Delphi, but this is a question that I think is valid for

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.