emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tom Gillespie <tgbugs@gmail.com>
To: gmauer@gmail.com
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Updates to ob-racket mode, code review request
Date: Mon, 13 Jul 2020 22:54:42 -0700	[thread overview]
Message-ID: <CA+G3_PM4b5AciKQebGYi2r-sUkkgqyj_kvagZz2CyiRg3d2igw@mail.gmail.com> (raw)
In-Reply-To: <CA+pajWLyuzVKA3GFSHgXzeqhOfwiVG-FDhe4BPf7Z6fQwVasRg@mail.gmail.com>

Hi George,
  I took a glance at your additions, nothing jumps out as being problematic. I
have been using wallyqs ob-racket (https://github.com/wallyqs/ob-racket) for
about 4 years because it has support for specifying the #lang in the header,
and I seem to recall that there were some other features that were lacking in
all the (2? 3?) other ob-racket's that I tried. I do not think that any of the
existing ob-racket implementations should be put on melpa since they do not
interoperate with the recent work that Greg has done on racket-mode to
support comint and multiple repls (not to mention racket-xp-mode). Which is
to say, that I think that proper session support is a prerequisite for any
ob-racket implementation become "the" ob-racket on melpa or elsewhere. There
are also significant issues with how racket's "the top level is hopeless"
attitude interacts with things like org-babel's concept of a session (which
one might be able to make equivalent to a racket-mode repl). There are likely
ways around this, but I suspect they will involve something like
dynamic-rerequire and fiddling with namespaces to make it possible to
rerequire a module into an existing session. Alternately, compiled racket
modules load fast enough that running raco make on racket source blocks
behind the scenes might be able to fake a session-like experience. One place
to look for inspiration on this might be ob-clojure-literate which has to
deal with some similar issues. Another though related to sessions is around
the possibility of running racket blocks pointing to remote sessions. With
lisp blocks it is possible to switch to a session running on a remote server
and send the code to it that way. With the work that Greg has done for racket
mode it should be possible to spin up a remote racket session or connect to
one and then run the block in that session. Don't let this stop you though :)

  reply	other threads:[~2020-07-14  5:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-09 15:03 Updates to ob-racket mode, code review request George Mauer
2020-07-14  5:54 ` Tom Gillespie [this message]
2020-09-04 14:20 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+G3_PM4b5AciKQebGYi2r-sUkkgqyj_kvagZz2CyiRg3d2igw@mail.gmail.com \
    --to=tgbugs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gmauer@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).