Questions tagged [cross-language]

In programming, "cross-language" or "multi-language" refers to features that operate across multiple programming languages.

In programming, "cross-language" or "multi-language" refers to features that operate across multiple programming languages.

Cross-language features include type systems, data formats, storage layouts, etc. which are common across multiple languages. They help applications or services written in different languages to inter-operate and exchange information.

132 questions
1
vote
1 answer

Add pointer to defined Objective-C class in .h file of Objective-C++

Is possible to create class in Objective-C++ which has field that is a pointer to an Objective-C interface ( inside the .h file ) ? To clarify a little, I created one Objective-C interface: // Our platform independent class @interface…
PaolaJ.
  • 10,872
  • 22
  • 73
  • 111
1
vote
2 answers

Scala Object in Java

I have zero encounter with Scala. I'm returned an scala object by a library(kafka) of the following type: kafka.coordinator.GroupMetadataManager$$anon$2@2b9ee60f I tried to pass this to Scala to get some meaningful information. i.e. to access the…
Ansel Zandegran
  • 636
  • 8
  • 18
1
vote
0 answers

How to use a Perl code inside a php code

I have this Perl script: use strict; use warnings; use WordNet::QueryData; use WordNet::Similarity::random; use WordNet::Similarity::path; use WordNet::Similarity::wup; use WordNet::Similarity::lch; use WordNet::Similarity::jcn; use…
VFX
  • 496
  • 4
  • 13
1
vote
6 answers

How to compare different language String values in JAVA?

In my web application I am using two different Languages namely English and Arabic. I have a search box in my web application in which if we search by name or part of the name then it will retrieve the values from DB by comparing the "Hometown" of…
IamIronMAN
  • 1,871
  • 6
  • 22
  • 28
1
vote
2 answers

Unity Calling C# function from UnityScript file

I'm trying to run a function in C# from UnityScript. My UnityScript file has: GetComponent("C#File").C#FunctionName(); But in the editor it's telling me that the function isn't a member of UnityEngine.Component.
1
vote
2 answers

Protobuf binary<->JSON serialization option / alternatives?

I've been investigating about protobuf/gRPC. I really like the idea of being able to use a common *proto file as IDL to centralize the definition of structs and services, as well as all the existing tooling around it to create common code for…
1
vote
1 answer

Interacting with C# applications via PHP

Recently I have been thinking combining C# applications with a website, so that we can run multiple threads in C# and complete more tasks in the time it would take PHP would to do 1. Most of us know that PHP Runs on a single thread and therefor we…
RobertPitt
  • 56,863
  • 21
  • 114
  • 161
1
vote
1 answer

IPython (Jupyter) cell magics and cross-language interaction

In a normal ipython notebook or repl session, I can refer to previously-run cells using the _# notation. However, this is not possible when using cell magics such as %%perl or %%bash because these cells do not have entries in _oh. Nor can I find a…
Rache
  • 236
  • 2
  • 11
1
vote
0 answers

Access violation using PyRun_SimpleFileEx in loop

I try to use a Python script in my C++ project in Visual Studio 2013. If I use the script one time, it works fine. But when I try to loop on it, I got this error message : Access violation writing location 0x0000000000000002 And here is my code…
Ed Nio
  • 593
  • 2
  • 11
  • 27
1
vote
2 answers

How to create an enum for both Swift and ObjC with standard naming?

I am writing an OS X/iOS framework in Objective-C, and I would like for the framework to be useful for developers using either Objective-C or Swift. In normal Objective-C enums are defined like this (this example is taken directly from Apple's own…
1
vote
1 answer

How to create a wrapper that would work for multiple languages at the same time?

I have a simple C API (N simple functions). I want to wrap it into C#, Java and Python at the same time. How to call SWIG to create wrapper for multiple languages at the same time? Something like this swig.exe -c++ -csharp -java -namespace Bla…
DuckQueen
  • 772
  • 10
  • 62
  • 134
1
vote
1 answer

Wrappers for C API in programming languages

I came across a feature in some programming languages to call methods in other programming languages. Its called the Foreign Function Interface. For example, I would be able to call a C Language function inside a Python program. Or I could I write a…
shar
  • 1,988
  • 2
  • 18
  • 25
1
vote
1 answer

Cross-language web workers?

Is this possible, from say : app.js : ... var w = new Worker("data:application/dart;charset=US-ASCII," + dart_code ); // will this break or continue? Does anyone who uses Dartium (the Chromium + Dart VM browser) do this?
Cris
  • 441
  • 3
  • 11
1
vote
1 answer

Is there are a convention for the order of arguments in a constructor, especially for subclasses?

This might seem like a weird question to ask, but is there a convention on how to order arguments in a constructor, and especially where to add arguments the constructor "gains" in subclasses? It seems to me there should be one, after I found myself…
Callid
  • 79
  • 1
  • 6
1
vote
3 answers

Flex -- C++ connection?

How do I connect a Flex Application( Internet Site ) and C++ togehter ? a minimalistic example from what i mean (User Story): Frank goes to www.myflexsite.de there are 2 textboxes and 1 Button( Label = add two numbers) . He inserts 2 in the first…
mr.bio
  • 1,646
  • 4
  • 19
  • 27
1 2 3
8 9