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
0
votes
1 answer

Update deprecated webkit objc items to enable native code running within javascript

I'm using legacy webkit based application to generate form on macOS native app (cocoa application written in objective-c) The following callback to called right before the javascript is loaded to view, and allow current class code (objc) to be used…
Zohar81
  • 4,554
  • 5
  • 29
  • 82
0
votes
1 answer

Shared configuration file format for both python and PHP

I'm maintaining a project in PHP and I'm using a .php file (namely "config.php") to hold all my configuration parameters. The file itself defines a multilevel PHP array: so far all I have to do is include() it in my files. Now I have to write some…
godzillante
  • 1,174
  • 1
  • 17
  • 32
0
votes
0 answers

How can I output information from a python script to a Node.js script?

I am making a twitter bot, and I want to generate text from a python script, and then send that information to a Node JS script. I have everything figured out, on how to generate the text and everything, I just need to know how to get the generated…
piffle
  • 33
  • 6
0
votes
0 answers

Edismax query in Solr using different strings for different fields

I could need some advice on how to handle a particular cross language search with Solr. I have documents in 3 languages (English, German, French). For simplicity let's assume it's just two languages (English and German). The documents are…
user13221904
0
votes
0 answers

Will c++ ctre regex have much performance instead of c# usual regex?

I have an application written by C#. I need to process a big text file. For each string, I need to parse 3-10 alphanumeric values and recalculate them. Regex is perfectly suitable for that. But c# regex is not fast enough. I tried to use ctre…
Noisy88
  • 181
  • 1
  • 14
0
votes
1 answer

How to use a string variable in Python in Java?

Let's say I have a variable in Python called test_text and is equal to "hello" I want to be able to use that inside a separate Java file using System.out.println(text_test); I have worked with Java and Python both but not together. I am not sure…
user10238840
0
votes
2 answers

How to estabilish communication between an erlang application & a nodejs server?

I have an erlang app with API and i need to call these API functions from a nodejs server and process the response. For example: Nodejs sends data to app, app processes the data then sends it back to nodejs and finally nodejs processes the…
BenJoe
  • 15
  • 3
0
votes
1 answer

Importing library in Python called by PHP

I'm trying to call a Python script from a PHP file, but it fails when I have to load a local library. My PHP is able to call my python if it doesn't load local libraries, and my python script works when launched manually. Here are minimal (non)…
Motiss
  • 72
  • 1
  • 13
0
votes
0 answers

How can I link a static library developed in iOS to an UWP .NET Project

I have a .a static library developed in Objective-C and built for iOS. Let's call it Encoders.a. I have been able to import such library as a project into Visual Studio 2017 using the vsimporter tool of the iOS Bridge…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
0
votes
1 answer

Echo local ASP.NET url FROM PHP

I have a php wordpress site that's running on IIS. I need to include, as part of that file, the response from a local ASP.NET page. PHP is reallly not my strongest language though. The code I have is:
Echilon
  • 10,064
  • 33
  • 131
  • 217
0
votes
1 answer

Python in HTML Code

I have a Python file, called function.py, which contains this code: def double(x): return x * 2 I also have this HTML code: Is there a way…
nedla2004
  • 1,115
  • 3
  • 14
  • 29
0
votes
2 answers

How to import a C function into C++ project that has not been declared in a C header?

I'm trying to include some functions written in C into a C++ project. I've come quite far following these instructions. Unfortunately not all of the C functions I require to call are declared in a c header file. Some are just static functions…
norritt
  • 345
  • 4
  • 16
0
votes
1 answer

Run MATLAB from Java every T seconds

I have a simulation in Java in which I need to call a MATLAB optimizer every 2 minutes (simulation time) and read the data back into the Java program. I know there are answers for running MATLAB scripts, but is there any way to run a single MATLAB…
Yousef Hindy
  • 73
  • 1
  • 1
  • 6
0
votes
1 answer

Writing a Perl hash to disk to be read by Python

How can I write a Perl hash to file, in such a way that it can be read from Python? For example: #!/usr/bin/perl my %h = ( foo => 'bar', baz => ['a', 'b', 'c'], raz => { ABC => 123, XYZ => [4, 5, 6], …
ajwood
  • 18,227
  • 15
  • 61
  • 104
0
votes
1 answer

Embed Python in C: unable to read python return integer value

I am trying to embed python in my C code. So the objective is that I want to run a python code inside C program, and when the python code finish running, it should return a integer value back to my C program. In my python code "try.py", I specify…
andy_ttse
  • 19
  • 2
  • 6
1 2 3
8
9