Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-15-2015, 06:27 PM   #1
LQ Newbie
Registered: Jun 2015
Posts: 24

Rep: Reputation: Disabled
Programming with 2 languanges.Guidance neede!

How to programm with 2 languanges which code simbols look alike.I mean is it possible to adjust part of a background on which we write code to specific languange.
Old 06-15-2015, 06:36 PM   #2
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,703
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405

LOL, welcome to the forum...
TWO languages???? You're not even trying...hehe
Okay, nuf giggles.
There is not really a good way to do that. I inter use PHP and JavaScript, sometimes even me, JavaScript says:

var someName
and PHP, it's just

so, try a debug on a PHP module, that is called from client-side AJAX, confusion waiting to happen...
I use one tool: discipline...that and a debug stategy...errors will light up the room...soon enuff
1 members found this post helpful.
Old 06-15-2015, 08:55 PM   #3
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,555

Rep: Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574
You mean: how do you get your mind into the state where it's ready to work with two programming languages at the same time? There's really no explanation more complicated than "know and be experienced with both languages".

My wine_env project is a relatively simple one that uses two languages: BASH and Python.
Old 06-16-2015, 08:53 AM   #4
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171Reputation: 3171
The question (which might be posted by a non-English speaker ...?) could also refer to the practice of writing a single application in more than one source-language at a time. For instance, a gcc program which calls a gfortran subroutine.

This works, because the object-code file format produced by both systems is compatible. The linker and loader components know how to process these files no matter what source language(s) were used to create them.

Care must be taken that the runtime environments of the two "strange bedfellows" are also compatible. For instance, you couldn't hand a "C++ object" to a FORTRAN subroutine and expect FORTRAN to know what to do with it. You might have to consider that some languages store array values "row-wise," others "column-wise," and so on. You must take care not to "muck-up the stack," which would bring the whole contrivance crashing down. But otherwise, yes, it works.

Last edited by sundialsvcs; 06-16-2015 at 08:55 AM.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please give me some guidance on C/C++ programming with Linux Violin Programming 13 05-17-2009 02:39 PM
Guidance on GTK+2.0 programming required. deepankar15 Programming 10 05-13-2009 01:56 PM
Where can I look for guidance on Shell Programming? Ian D Linux - General 4 08-23-2006 02:00 PM
Tutorial neede for VIsual Programming on Linux (having knowledge of Text based C/C++) dhirsolo Programming 3 08-02-2006 02:05 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:00 AM.

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