Jump to content

Liking different programming languages

- - - - -

  • Please log in to reply
8 replies to this topic

#1
vaironl

vaironl

    Programmer

  • Members
  • PipPipPipPip
  • 117 posts
Hello forum I have a simple question , is it possible to link more than two programming languages in one applications?
I was wondering if it's just possible

#2
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
Depends on the languages.
If you take for example vb.net and c#, than yes.
Other language can be a little more difficult to do, you could use some dll, or calling a program from a other program (via tcp/ip for example)

Give us more details about what you are trying to do, and we'll be able to help you more

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It definitely depends on the language, and also the compiler. Trying to compile Delphi with other languages is tricky, because it doesn't use .dll files as easily as other languages, and creates very different object files. Interpreted languages have even more issues, since they don't get compiled.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
vaironl

vaironl

    Programmer

  • Members
  • PipPipPipPip
  • 117 posts

Vaielab said:

Depends on the languages.
If you take for example vb.net and c#, than yes.
Other language can be a little more difficult to do, you could use some dll, or calling a program from a other program (via tcp/ip for example)

Give us more details about what you are trying to do, and we'll be able to help you more

Well I'm doing Arcgis using Arcmap and I wanted to make an interface that takes some files with a VB GUI but uses python for the variables and similar things.
I don't understand it that much myself , but Arcmap has python inside of it and you can use it as a script.

Arcmap is on ESRI website if you want to check it out, is use for Geospatial Analysis.

---------- Post added at 11:52 AM ---------- Previous post was at 11:51 AM ----------

WingedPanther said:

It definitely depends on the language, and also the compiler. Trying to compile Delphi with other languages is tricky, because it doesn't use .dll files as easily as other languages, and creates very different object files. Interpreted languages have even more issues, since they don't get compiled.

Python and VB?

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
How about linking Python and JavaScript?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
vaironl

vaironl

    Programmer

  • Members
  • PipPipPipPip
  • 117 posts

WingedPanther said:

How about linking Python and JavaScript?

Will I still be able to make a GUI?

That can for example transport a folder to another directory.

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Python has bindings for a variety of GUI toolkits. wxPython (a wxWidgets binding, which is a C++ library) is a powerful one.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
vaironl

vaironl

    Programmer

  • Members
  • PipPipPipPip
  • 117 posts

WingedPanther said:

Python has bindings for a variety of GUI toolkits. wxPython (a wxWidgets binding, which is a C++ library) is a powerful one.

I have used wxPython, but I thought it wasn't good. Now that i notice that is what i should be doing.

#9
abzero

abzero

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 217 posts
In general the Language doesn't define a reason to why it can't link to another language. The simple barriers are compiler formats and library formats etc; the complicated barriers are the execution model, stack definitions, storage standards etc...

If you look at the COM technology of Windows for instance (which is basically RPC,) the idea is the object can exist in any language on any computer; and you can interface as if it is native code; the amount of work required for this is huge; but that is the idea.

However as alluded to by the other posts; you probably will find a single language which will allow you todo what you want. Or you look at use a distributed Client-Server achtecture; which say a C++/C/Python/whatever server and a VB front end.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users