From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wDSiNp8jSmChFAAA0tVLHw (envelope-from ) for ; Thu, 11 Mar 2021 14:05:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0B1xMp8jSmBXYgAA1q6Kng (envelope-from ) for ; Thu, 11 Mar 2021 14:05:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3257920E60 for ; Thu, 11 Mar 2021 15:05:16 +0100 (CET) Received: from localhost ([::1]:55082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKLwA-00040y-8n for larch@yhetil.org; Thu, 11 Mar 2021 09:05:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKLTw-0005IJ-V3 for help-guix@gnu.org; Thu, 11 Mar 2021 08:36:05 -0500 Received: from mail1.g12.pair.com ([66.39.4.99]:51204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKLTv-000155-0m for help-guix@gnu.org; Thu, 11 Mar 2021 08:36:04 -0500 Received: from mail1.g12.pair.com (localhost [127.0.0.1]) by mail1.g12.pair.com (Postfix) with ESMTP id C7112730D2; Thu, 11 Mar 2021 08:36:01 -0500 (EST) Received: from [10.11.12.15] (w135107.ppp.asahi-net.or.jp [121.1.135.107]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail1.g12.pair.com (Postfix) with ESMTPSA id 6BF56730CF; Thu, 11 Mar 2021 08:36:01 -0500 (EST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Yasuaki Kudo Mime-Version: 1.0 (1.0) Subject: Re: Mixed Languages Programming Date: Thu, 11 Mar 2021 22:35:59 +0900 Message-Id: References: <8d77b850816a9d0d2bd4f244a994d832fd7c32d2.camel@divoplade.fr> In-Reply-To: <8d77b850816a9d0d2bd4f244a994d832fd7c32d2.camel@divoplade.fr> To: divoplade X-Mailer: iPhone Mail (18D52) Received-SPF: none client-ip=66.39.4.99; envelope-from=yasu@yasuaki.com; helo=mail1.g12.pair.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_SBL_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615471516; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1WyOqtEtlLeW3Jxe4MlG+lxVO1LQ5Bjn/wy9RPiQHwk=; b=k/UCs4yq8NHLPTdFqBKL1yigxQvid5dM1MpQlyfZKoPtp6jY31hveczktauwi1604Nrcy8 TVVr7X3EHZlx7UXyL8cJqznrRrfS/AIKjUQ34cYDXkQP8DigkP9XkuvOlmWGoCjnSKQWOR waRvZGpSTHENGgE5Y2NIGdRQnxxNv8WFKrpe1m1II99TpEmnC2X5U82t0d8vo+ahrNjMIo JWmcgzEmm7uW+FmV8fcMrzPItkSutQTvv8aV7ZjSCVPzfA/BESKMdbpHguYehRjBZnAcD9 Kq3rhWE/KqwE75i/gafOwuAS+K2tgUbbO3HBHZYo2rOkPWyzYOmWXX4wY89reQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615471516; a=rsa-sha256; cv=none; b=OywCu2jxZizUHrFZpxuDweygpJbDJdr4jQwLdmz6jfLaV9tA4tLkzrU9L9xMJ/5OqVpOHh +qGVsw8YNusGngwYM/K1jU9lH/JFGcWzOxVSvcjuuZ4FrIQ9PKfbNMk84zY48r6BRHyUq7 MwEa35Pz8czyZhf/e//86Ognra5DTlfhWpGb+rZEDsiKMQTgI+CORj45FG+Kd6Au6O7Upd i1kVthjhkmTbgia6F66Rgz0g+i5OMKiPBrNrAWfzdYr/hBVuw0Qyn0zumhdws4M+Kwgatt ws7zHsjlV3Pu8kVE2pVCxfyMq3ysrKWAhfRVaCCeXj1Q96+gOtb2PeREgAQ9GQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.89 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 3257920E60 X-Spam-Score: -1.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: sAZo6WjC6zv7 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 s= ame 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 diff= erent languages can efficiently exchange data! That's something that Guix and Nix can do more easily than using Docker web s= ervices on other OSes? =F0=9F=98=84 Yasu > On Mar 11, 2021, at 09:00, divoplade wrote: >=20 > =EF=BB=BFHello, >=20 >> Le jeudi 11 mars 2021 =C3=A0 08:23 +0900, Yasuaki Kudo a =C3=A9crit : >> Does anyone have an insight into mixing different programming >> language? Say Visual Basic, Java, Racket, Haskell, etc >=20 > 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). >=20