Re: [racket-users] Long live SDRAW.LISP -- in Racket pict!

2019-01-03 Thread Jack Rosenthal
Thanks Jens Axel!

I think your metapict library is very cool --- I will have to play with
it a bit more in the future. I linked your code in my GitHub README as a
potential alternative.

I made substantial improvements to my code, and it's a Racket package
now (raco pkg install sdraw), complete with documentation:
http://docs.racket-lang.org/sdraw/

I'd be interested if anyone has any suggestions to improve the
interface... I think there are currently a lot of options, and it may be
a bit confusing.

Thanks,

Jack

-- 
Jack M. Rosenthal
http://jack.rosenth.al

There's only two hard problems in computer science: cache invalidation,
naming things, and off-by-one errors.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


[racket-users] Long live SDRAW.LISP -- in Racket pict!

2018-12-28 Thread Jack Rosenthal
Greetings Racketeers,

In case you are not familiar with the SDRAW program from Touretzky's
"Common Lisp: A Gentle Intro to Symbolic Computation", it is a program
which draws cons-cell diagrams in an X-window using CLX. The program is
pretty dated, and getting it up and running on a modern machine is a
little bit of work, so why not remake it in Racket -- better yet, using
pict! This is exactly what I've been working on...

What I've got so far is here:
https://github.com/jackrosenthal/sdraw-racket

Go ahead and clone it: there's only one function you need to know:
sdraw. It takes either a datum or syntax and produces a pict. There's
also optional keyword arguments to control some of the output
parameters. You can even do things like this:

(sdraw (list (face 'happy) 2 (list* 3 4 (face 'happy

(and those faces will be rendered in the picture!)

I'm relatively new with working in Racket, and I'm interested in:

1. Hearing any thoughts from others on how I can improve my code: either
   to make the code more readable, or the interface easier to
   understand.

2. I am still working on documentation etc., and am wondering if people
   think I should submit this as a pull request to the pict library, or
   as a separate library. I think it could be particularly useful in
   pict, and it is only one function anyway.

Thank you,

Jack

-- 
Jack M. Rosenthal
http://jack.rosenth.al

We guarantee that each number is random individually, but we
don't guarantee that more than one of them is random.
-- early PMMLCG vendor

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature