help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixed Languages Programming


From: Yasuaki Kudo
Subject: Re: Mixed Languages Programming
Date: Thu, 11 Mar 2021 22:35:59 +0900

Thank you both,

It feels like using the web API as the interface between the languages would be 
the simplest.

Guix might come in really handy if the web services are all running on the same 
Guix machine in which they can share the resources of the OS such as the file 
system.

Then, using RAM-based or the real disk, different processes compiled in 
different languages can efficiently exchange data!

That's something that Guix and Nix can do more easily than using Docker web 
services on other OSes? 😄

Yasu




> On Mar 11, 2021, at 09:00, divoplade <d@divoplade.fr> wrote:
> 
> Hello,
> 
>> Le jeudi 11 mars 2021 à 08:23 +0900, Yasuaki Kudo a écrit :
>> Does anyone have an insight into mixing different programming
>> language?  Say Visual Basic, Java, Racket, Haskell, etc
> 
> I am aware of 3 different kinds of approaches:
> - writing programs in different languages, with one programming
> language occupying a whole process (so, web services as you say, or
> scripts, or an org-mode file, for instance);
> - extending a "managed" programming language with C or C++ code; in
> theory it could be possible to do the same for two different
> programming languages and link both C interfaces together; this is what
> SWIG (http://swig.org/) does, but using some language in another
> language that way feels a lot like coding in C;
> - using a common virtual machine as the target for the compilation of
> many different languages (like elisp and scheme for guile).
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]