[racket] Use of map and eval to evaluate symbol in namespace
Hi Henry
Racket is very suitable for writing DSLs, or even whole Ls (more
advanced!). As you'd expect, the idioms for DSL construction in straight
Racket are different from those in Forth and will take a bit of
familiarization and adjustment.
Would you be willing to share a more fully-fledged example of a shorthand
medical recipe (input) and reconstructed recipe (output) so that the Racket
Community can better understand what sounds like a very worthwhile project?
Dan
On Tue, Jul 29, 2014 at 6:21 AM, Henry Lenzi <henry.lenzi at gmail.com> wrote:
Of course, the ultimate purpose would be to re-evaluate the imported
> symbol and reconstruct a medical recipe. The purpose of these
> baby-steps exercises is porting a medical recipe program I've written
> originally in Forth that allowed me to service 5.000 patients creating
> a little database of shorthand recipes that then expand into real
> medical recipes. I got hundreds of patients on renewable recipes for,
> say, hypertension. Hand writing is no fun. Typing them in Word is no
> fun. The hospital has is its own software, but it's is a load of
> baloney, extremely buggy, if you ask me, so I'm rolling my own again,
> except I want to print directly on the model paper our service uses,
> so I want graphics like Racket Scheme has (very good capabilities, as
> far as my needs are concerned).
>
> With Forth, it's very easy to design DSLs, because there's no syntax
> and you get a lot of advanced features for free. For instance, there's
> no need to write a parser for my little language. However, since Forth
> implementations fall short of dealing with images, graphics (unless
> you take the royal road to pain and learn to program for the Win32 API
> and how it works for a particular Forth vendor), I'm looking at Racket
> Scheme.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140731/421a0347/attachment.html>