From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IFKNGcxdSWA2HAAA0tVLHw (envelope-from ) for ; Thu, 11 Mar 2021 00:01:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +HUxFcxdSWAIOwAAbx9fmQ (envelope-from ) for ; Thu, 11 Mar 2021 00:01:16 +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 99B7D20E32 for ; Thu, 11 Mar 2021 01:01:15 +0100 (CET) Received: from localhost ([::1]:46600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK8lN-0000IP-Kr for larch@yhetil.org; Wed, 10 Mar 2021 19:01:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK8ks-0000Hn-2x for help-guix@gnu.org; Wed, 10 Mar 2021 19:00:42 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:37987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK8kl-0008Ha-Ba for help-guix@gnu.org; Wed, 10 Mar 2021 19:00:41 -0500 X-Originating-IP: 90.66.188.123 Received: from pruneau.home (lfbn-lyo-1-2020-123.w90-66.abo.wanadoo.fr [90.66.188.123]) (Authenticated sender: d@divoplade.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id D675160004; Thu, 11 Mar 2021 00:00:31 +0000 (UTC) Message-ID: <8d77b850816a9d0d2bd4f244a994d832fd7c32d2.camel@divoplade.fr> Subject: Re: Mixed Languages Programming From: divoplade To: Yasuaki Kudo , help-guix Date: Thu, 11 Mar 2021 01:00:30 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.195; envelope-from=d@divoplade.fr; helo=relay3-d.mail.gandi.net X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham 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: , 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=1615420875; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=6QG5JSfC4ZxsD7AzpDGciqgG0P+TRfz4dRN4sa2grTo=; b=KeKxn6HPozap0Au2QRnXaqE99old2eHrQcrwOHn7pyXP/IhcFWE2ph2kXtjlHOLMNq+2F+ az0WQbAM/ABJBQ1xUYsAafv7BGwOzyBdW+RJrsjYe4DNEzzsFwhA5kjuK1agy2SGIJSDIG Qqtq01SJrzVuhJbBtOV8N3lyffcLJNM3BoGzgYbmc1yMDSTohvI2E8o8YBKkV2ySUsnv4a nxEP5EoqHanUliWSOwY9eu2YP2IBXzj9fqg9edqRle+TdKwWclYdnzTRsCzmwcyxP4GHnw L74me+w0on4xoh8s7oT8INrQ/gNOldEn8XKpmtterK2ulGkbduiVwO+gvn75VQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615420875; a=rsa-sha256; cv=none; b=ImKep5C6c+/atD6NhEonk3POY8GsaDYgv+TT1Nf5oqCqzD7CsMKnNpOxvqLLt6wUtb4bOX zag7px8CGDo/xjewqibRx6RdImS9dPY9IJgRuiLNDMarsTAMSp7fmLBmW8UBvB16DcAXBd rGP+AKnruxkNKug4LraT97poocNh6jfJuofu/WjEYh0MrsUf7ICxdtOSOc58jsXDwYtUR7 97fqh3VyAPBLtjcL/+3G2GuGn3h2vpjYOglofmbOVVnLT20ghsQGa4EpM97Ser9eanCPpN pKR+AEGLrAY8eSI+z1+aHWmF/szCurMY8/7OvT2XHyI9Dzpj28fqJc6NFMpilA== 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: -2.39 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: 99B7D20E32 X-Spam-Score: -2.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: TWZntkG1R+as 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).