Re: Guile Steel: a proposal for a systems lisp

2022-07-15 Thread Christine Lemmer-Webber
I'm glad there's been such interest.  I've gotten quite a few messages
offline about the idea of "Guile Steel" too, one person has even begun
porting pre-scheme to Guile (Andrew Whatson) and I know Jakob has also
been pondering how to pull things off.

I've made a channel on irc.libera.chat... not sure if there's enough
excitement to do anything, but you can join #guile-steel if you'd like
to talk about this and how it might be pulled off?

We might be doing a call about designing Guile Steel stuff also, and
about PreScheme's design, potentially with some of the people who worked
on PreScheme.  If you'd be interested in attending that, send me a ping.
I'm not sure how big of a group we can accomodate at once but it would
be fun to do a call about this.  We could probably record it at least.

 - Christine



Re: Using guile (running on a port) in Org Mode

2022-07-15 Thread Tim Van den Langenbergh


Munyoki Kilyungi  writes:

> [[PGP Signed Part:Undecided]]
>
> Hi Guilers!
>
> Recently I worked out a way to point an org src
> block to any python environment I want:
> .
> WRT to scheme code, is there a way to tell a
> scheme source block to run a guile interpreter
> that runs on a given port?

Hello there,

it's been a little while since I looked at the ob-scheme code, but I believe
that you should be able to use an existing Geiser session as the execution
session for your Org buffer.  So if you connect Geiser to a running Guile
instance, give the Geiser buffer a unique name, and use that name as the
session parameter for your src block (plus or minus earmuffs) I think it should
work.

Vale,

- Tim



Re: Using guile (running on a port) in Org Mode

2022-07-15 Thread Munyoki Kilyungi
Tim Van den Langenbergh 
anaandika:

> Munyoki Kilyungi  writes:
>
>> [[PGP Signed Part:Undecided]]
>>
>> Hi Guilers!
>>
>> Recently I worked out a way to point an org src
>> block to any python environment I want:
>> .
>> WRT to scheme code, is there a way to tell a
>> scheme source block to run a guile interpreter
>> that runs on a given port?
>
> Hello there,
>
> it's been a little while since I looked at the ob-scheme code, but I believe
> that you should be able to use an existing Geiser session as the execution
> session for your Org buffer.  So if you connect Geiser to a running Guile
> instance, give the Geiser buffer a unique name, and use that name as the
> session parameter for your src block (plus or minus earmuffs) I think it 
> should
> work.
>

So I've renamed my buffer to "GUILE"

and now I have this:

#+begin_src scheme :results output :session "GUILE"
(+ 1 1)
#+end_src

But I get:

#+RESULTS:
: Geiser Interpreter produced no output

Anything I'm doing wrong?  I'll look into the
ob-scheme source later though.  Perhaps I'll find
answers there.

-- 
(Life is like a pencil that will surely run out,
but will leave the beautiful writing of life.)
(D4F09EB110177E03C28E2FE1F5BBAE1E0392253F
(hkp://keys.gnupg.net))


signature.asc
Description: PGP signature


Re: Using guile (running on a port) in Org Mode

2022-07-15 Thread Zelphir Kaltstahl

Hello Munyoki!

On 7/15/22 16:44, Munyoki Kilyungi wrote:

Tim Van den Langenbergh 
anaandika:


Munyoki Kilyungi  writes:


[[PGP Signed Part:Undecided]]

Hi Guilers!

Recently I worked out a way to point an org src
block to any python environment I want:
.
WRT to scheme code, is there a way to tell a
scheme source block to run a guile interpreter
that runs on a given port?

Hello there,

it's been a little while since I looked at the ob-scheme code, but I believe
that you should be able to use an existing Geiser session as the execution
session for your Org buffer.  So if you connect Geiser to a running Guile
instance, give the Geiser buffer a unique name, and use that name as the
session parameter for your src block (plus or minus earmuffs) I think it should
work.


So I've renamed my buffer to "GUILE"

and now I have this:

#+begin_src scheme :results output :session "GUILE"
(+ 1 1)
#+end_src

But I get:

#+RESULTS:
: Geiser Interpreter produced no output

Anything I'm doing wrong?  I'll look into the
ob-scheme source later though.  Perhaps I'll find
answers there.


I think you are facing the same problem I faced: 
https://gitlab.com/emacs-geiser/guile/-/issues/21


Long story short: ob-scheme needs a patch applied, and your version of ob-scheme 
probably does not have it yet.


Best regards,
Zelphir


--
repositories: https://notabug.org/ZelphirKaltstahl