Go Back   DaemonForums > DaemonForums.org > News

News News regarding BSD and related.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 24th January 2010
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,134
Default mg gets tinyscheme

From a post by Ted Unangst to the OpenBSD tech mailing list:
From: Ted Unangst <ted@xxxxquwe.xxxx>
To: OpenBSD Tech <tech@wwxxxx.org>
Date Sun, Jan 24, 2010 at 11:22 AM
Subject mg + tinyscheme

So one of mg's bugs is that it's not extensible. This doesn't
normally bother me, because I use vi. But I decided to do something
about it. A full lisp like emacs would be a little crazy, given the
point is to have a small editor. But tinyscheme isn't too bad. So in
it goes.

Now just having an extension language isn't too useful unless you an
do something with it. So far, the only thing you can do from mg is
run scheme code (M-x scheme). But you can't see the results. The
scheme code can write into the current buffer with (insert string).
It's not really challenging to add more links, I just didn't do it

So what can we do? Not a whole lot, unless we add networking. So I
also wrote a small C module that lets tinyscheme open sockets, and a
stupidly simple HTTP client in scheme. Put this all together, and you
can download the source of web pages directly into your text editor.
If you're lucky and you got all the moving pieces together, that is.

It's still pretty alpha and there's some rough edges, but the concept
is working. I put together a little web page with links to the

You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote

emacs, mg, tinyscheme

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick