Re: Neat hacks for a birthday

2012-02-12 Thread Ludovic Courtès
Hello!

l...@gnu.org (Ludovic Courtès) skribis:

> PS: I personally intend to come up with a simple GCC plug-in interface
> for Guile.  Let’s see how it goes…

This is shaping up, and it can already say “hello, world”.  :-)

  https://gitorious.org/guile-gcc/guile-gcc

Anyone with ideas of neat hacks that could use this neat hack is welcome
to join.  :-)

Thanks,
Ludo’.




Re: Neat hacks for a birthday

2012-02-12 Thread Ludovic Courtès
Hi,

Atom X  skribis:

> “… [A]nd from the shimmering lake of parens rose a Scheme, small yet
> strong, bestowing upon the righteous the gift of Elegance and the power
> to tame the mighty beast known as C.  And the devout did embrace this
> gift and called it by the name of Guile, for it is truly a cunning
> Scheme.”

:-)

> I’ve been working sporadically on a Guile binding to the GPGME[1]
> library, with the hope that it will encourage others to integrate both
> Guile and privacy features into their software.  At this time
> GPGME/Guile (read as “GPGME-with-Guile") is not in a pretty (or
> functional!) state, but I've put it up on Github[2] both as a means of
> sharing and as a motivator to get to work.  I don't want any shoddy code
> to be marring my public image, after all.
>
> With that, I hope to have something worth showing in six days.  Till
> then!

Sounds cool, keep up the good work!  :-)

Ludo’.




Anniversary hack: Zile editor with Guile support

2012-02-12 Thread Mike Gran


Hello-

In response to Ludo's request for a Guile-2.0 anniversary hack, I'll
start by offering a release of a hack I made.  But this isn't my
official hack: it is just a building block.

Zile-on-Guile is a version of GNU Zile that uses GNU Guile as an
extension language.  The original GNU Zile was a small editor in the
style of GNU Emacs and it has its own tiny embedded Lisp interpreter.
I've replaced that interpreter with Guile.

You can find the download at

https://github.com/downloads/spk121/zile/zile-on-guile-0.0.tar.gz

This is a 0.0 release, so if it even builds on anyone else's machine,
I'd be totally surprised.

You can find the Git repository at 

https://github.com/spk121/zile

The Guile extension can be accessed this way.

-- Pressing Alt+C brings up a REPL.  You can do all your standard REPL
   things.

-- In the REPL, one can create and bind new commands.  Define a
   procedure of zero arguments, export it, and then bind it to a key
   using 'set-key'.

   For example:

 (define (blammo)
   (insert "blammo"))
 (export blammo)
 (set-key "\\F9" 'blammo)

   This creates a function that inserts the world "blammo" at the mark
   whenever  is pressed.

-- And, if really you wanted to, you could edit your current buffer in
   the REPL

   For example:

  (insert "here is some text")
  (forward-char)

   But that would just be silly.

Thanks,

Mike Gran