From mboxrd@z Thu Jan 1 00:00:00 1970 From: garjola@garjola.net Subject: C++ sessions for Babel with cling interpreter Date: Sun, 05 Nov 2017 18:12:15 +0100 Message-ID: <87po8wir9s.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBOTQ-0005yQ-Sz for emacs-orgmode@gnu.org; Sun, 05 Nov 2017 12:12:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBOTN-00053d-Om for emacs-orgmode@gnu.org; Sun, 05 Nov 2017 12:12:40 -0500 Received: from 7.mo179.mail-out.ovh.net ([46.105.61.94]:39508) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eBOTN-00051k-Il for emacs-orgmode@gnu.org; Sun, 05 Nov 2017 12:12:37 -0500 Received: from player716.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo179.mail-out.ovh.net (Postfix) with ESMTP id 4B103765F6 for ; Sun, 5 Nov 2017 18:12:30 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi all, I use C++ source code blocks in babel frequently and I am very happy with the results. As C++ is a compiled language, ob-C.el does not support sessions. Unfortunately, this breaks a little my litterate programming workflow, since I don't know how to use small code snippets without sessions. I have recently discovered cling [1], [2] a C++ interpreter which comes with de Root package [3]. I have also found a cling inferior mode [4] to interact with the interpreter in a comint buffer. I was wondering if it would be difficult to update ob-C.el to use cling for session support. My elisp knowledge is too poor to understand what is involved in doing such a thing, but I would be interested in trying or helping somebody do it. Unfortunately, I have the impression that the developers of ob-C.el are not around this list anymore? I would very much appreciate suggestions on how to proceed. Thank you. Garjola. Footnotes: [1] https://root.cern.ch/cling [2] https://www.youtube.com/watch?v=Lbi7MLS03Yc [3] https://root.cern.ch/ [4] https://github.com/brianqq/inferior-cling -- Dr. Dindi Dad, Philosopher, Hacker