links · people · groups · tags | My: links · tags · groups · watchlists · notes login · sign up now! | help · blog
Simpy simpy
 
Michael Shook, member since May 27, 2004
.
Search Everyone: "scheme",

Top "scheme" experts: pablomarx, davidlittllefair, dmj111, vijucat, simpydan, airpocket,

Groups about "scheme": Car Insurance, Panama City Real Estate ,

1 - 15 of 15   Watch mshook
 
One page: http://www.google.com/notebook/public/17894154587286929730/BDV0B5goQxvPDrcEk
Moby
My take on how Moby Works ...
The Moby Scheme Compiler for Smartphones ...
1.2Simulations and Animations: "world.ss" ...
How to Design Worlds: Imagi...
Shriram Krishnamurthi: Talk...
YouTube - Handbells for the...
Handbells for the 21st Century
InfoQ: Javascript as Compil...
Another language that compiles to Javascript is...
examples/bell-choir.ss at m...
The CONTINUE Server Shriram Krishnamurthi Sy...
How to Design Programs: An ...
Contents Preface IProcessing ...
XML
Transformation-by-Example for XML Shriram Kri...
SXSLT: Manipulation Language for XML Oleg Kis...
Flapjax Demos Catch Up Delicious Dra...
Papers
Shriram Krishnamurthi: Publ...
Chronological List of All Papers These papers...
by mshook 2009-10-02 12:32 cool · interesting · eclectic · brown · javascript · scheme · lisp · functional · declarative · xml · xslt · mobile · application · gnb · pdafriendly
http://www.google.com/notebook/m/notebook?nbid=BDV0B5goQxvPDrcEk - cached - mail it - history
via
http://twitter.com/programmingjoy
Javascript as Compiler Target: Clamato, GWT Smalltalk, Python, Scheme
http://www.infoq.com/news/2009/09/javascript-compilation-target

(require moby/stub/world)

(define WIDTH 320)
(define HEIGHT 480)

(define (render w)
  (place-image 
   (text "Hello World" 10 "Black")
   20
   20
   (empty-scene WIDTH HEIGHT)))

(big-bang WIDTH HEIGHT 10 0)
(on-redraw render)

After a few minutes of poking around, I was able to compile this to Java and then run it on the Android Emulator:

by mshook 2009-10-01 16:40 scheme · android · javascript · compiler · lisp · java · mobile · example · code · interesting
http://benjisimon.blogspot.com/2009/03/plt-scheme-meets-android-platform.html - cached - mail it - history
(defprocess root (fuzziness)
 (defvariable blobs #’union)
 (always
  (when (eq (read-sensor ’image) ’black)
   (subprocess (measure-blob) :gradient fuzziness)
   (setf blobs
    (list (get-from-sub (measure-blob) blob)))))
 (avoid
  (read-sensor ’query)
  (let ((q (first (read-sensor ’query))))
   (cond
    ((eq q ’blobs)
     (actuate ’response (regional blobs)))
    ((eq q ’area)
     (actuate ’response
      (fold #’+ (mapcar #’second
       (regional blobs)))))))))
(defprocess measure-blob ()
 (defvariable uid #’max :atomic :base 0 :init (random 1))
 (defvariable area #’sum :reduction :base 0 :init 1)
 (defvariable blob :local)
 (always
  (setf blob (list uid area))))

Code to find a set of fuzzy blobs and their areas in a binary image. Each contiguous black area of the image runs a connected measure-blob pro- cess that names it and calculates its area. The set of blobs is collected by the root process and made accessible to the user on the response actuator...

by mshook 2009-10-01 15:01 saved · gmail · sensor · language · lisp · scheme · mit · pdf · mesh · network
http://74.125.113.132/search?q=cache:m4-mGhqle0MJ:web.mit.edu/jakebeal/www/Publications/lsmas-final.pdf+mit+sensor+netwo... - cached - mail it - history
1. XML and Scheme
 1. Tools: SSAX, SXML, SXPath, SXSLT
 2. Applications, Examples, Sample Code
 3. Papers and Presentations
 4. SSAX-SXML Mailing list  SSAX-SXML SourceForge Project
 5. Miscellanea
 6. Papers and Presentations
 7. Functional XML parsing framework SAX/DOM and SXML parsers with support for XML Namespaces and validation
 8. SXML specification
 9. SXPath -- SXML query language, XPath implementation
 10. SXML traversals and transformations
 11. HSXML: Typed SXML
 12. Applications, Examples, Sample Code
 13. HTML/XML authoring in Scheme
 14. Writing LaTeX/PDF mathematical papers with SXML
 15. Joint processing of two immutable SXML documents with update cursors
 16. Literate XML/DTD programming
 17. SXML as a normalized database
 18. Complete examples of practical (context-sensitive) SXML Transformations
 19. Complete examples of stream-wise (SAX) and DOM parsing
...
1. Last updated March 4, 2007
by mshook 2009-08-01 12:07 lisp · scheme · xml · interesting · xslt · theory · academic · list · links · tex · literate · example · xpath · toc
http://okmij.org/ftp/Scheme/xml.html - cached - mail it - history
for AI programming on arduino, how about scheme language? http://cli.gs/Q5nqEP http://cli.gs/3bZ51M http://cli.gs/1XHEbQ and read SICP! by mshook 2009-07-02 09:28 arduino · scheme · avr · interpreter · sicp
http://twitter.com/beagleboard/status/2434532878 - cached - mail it - history
* http://mshook.appspot.com/z/d4m.htm?/mshook/scheme
* The Ten Commandments
   1. How to recur on a list of atoms, a number and an S-expression | 23 64 83
   2. Cons to build | 37
   3. Typical element, cons & recur | 45
   4. Change >= 1 arg closer to termination & test | 57 65 84
   5. +, X & cons; test 0,1,() | 67
   6. When to simplify | 94
   7. Subparts: sublists & subexpressions | 103
   8. Abstract reps w/ funcs | 107
   9. Abstract patterns w/ funcs | 134
  10. Funcs to collect > 1 value | 140
* The Five Rules
   1. Car 5
   2. Cdr 7
   3. Cons 9
   4. Null? 10
   5. Eq? 12
* Dimensions of functions
   o On lats (lists of atoms - flat), numbers or S-expression (hierarchy)
   o Test, insert (L/R), replace, remove
   o Straight/single function, abstracted/generalized
* Data types and structures
   o atom 3
   o number
   o list 3 & 4
   o S-expression 3 & 4
   o lat (list of atoms) 15
   o set 111
   o pair 117 & 118
   o rel 119
more at http://tinyurl.com/kll3de
by mshook 2009-06-05 20:13 lisp · scheme · book · index · notes · good · 5 · june · 2009 · b · theory
http://mshook.appspot.com/z/d4m.htm?/mshook/5+june+2009+b - cached - mail it - history
About this document ... Recursive Functions of Symbolic Expressions and Their Computation by Machine, Part I

This document was generated using the LaTeX2HTML translator Version 2002-2-1 (1.70)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html recursive.tex

The translation was initiated by John McCarthy on 2006-08-13


John McCarthy
2006-08-13
by mshook 2009-05-30 21:27 classic · lisp · scheme · 1950s · history · latex · source · cool · theory
http://www-formal.stanford.edu/jmc/recursive/node8.html - cached - mail it - history
(define db (quote (
((content)(tags))
((here is an example of content) (example content))
((an entry is a list containing two lists. The first list is the content. The second list is tags) (explanation tags))
)))

(define get-content (lambda (entry) (car entry)))

(define get-tags (lambda (entry) (cadr entry)))

(define subset? (lambda (keys lat)
  (cond ((null? keys) #t)
        ((memq (car keys) lat) (subset? (cdr keys) lat))
        (#t #f))))

(define tag-query (lambda (tags db)
  (cond ((null? db) '())
        ((subset? tags (get-tags (car db))) (cons (car db) (tag-query tags (cdr db))))
        (#t (tag-query tags (cdr db))))))
by mshook 2009-05-22 16:02 lisp · scheme · code · tags · example · short · query · search
http://code.google.com/p/tinyprojects/source/browse/trunk/tag-query/tag-query.scm - cached - mail it - history
(defun eval. (e a)
  (cond
    ((atom e) (assoc. e a))
    ((atom (car e))
     (cond
       ((eq (car e) 'quote) (cadr e))
       ((eq (car e) 'atom) (atom (eval. (cadr e) a)))
       ((eq (car e) 'eq) (eq (eval. (cadr e) a)
                             (eval. (caddr e) a)))
       ((eq (car e) 'car) (car (eval. (cadr e) a)))
       ((eq (car e) 'cdr) (cdr (eval. (cadr e) a)))
       ((eq (car e) 'cons) (cons (eval. (cadr e) a)
                                 (eval. (caddr e) a)))
       ((eq (car e) 'cond) (evcon. (cdr e) a))
       ('t (eval. (cons (assoc. (car e) a)
                        (cdr e))
                  a))))
    ((eq (caar e) 'label)
     (eval. (cons (caddar e) (cdr e))
            (cons (list (cadar e) (car e)) a)))
    ((eq (caar e) 'lambda)
     (eval. (caddar e)
            (append. (pair. (cadar e) (evlis. (cdr e) a))
                     a)))))
  • http://www.paulgraham.com/rootsoflisp.html
by mshook 2009-05-20 11:25 lisp · eval · beautiful · elegant · minimal · concise · 20 · may · 2009 · a · how · scheme
http://mshook.googlepages.com/d4m.htm?/mshook/20+may+2009+a - cached - mail it - history

For something even smaller, download miniPicoLisp.tgz. It is a minimal version, without support for databases, UTF-8, bignums, IPC, networking and other system-dependent functions. A kind of "pure" Pico Lisp (not "pure Lisp"!). It supports the full Pico Lisp language, but runs faster, and uses even less memory space. It should also not be restricted to Unix. In addition, it compiles and runs also on 64-bit systems.

Jon Kleiser wrote an OpenGL library gl.tgz, and a Chinese Checkers program running on top of it.

by mshook 2009-05-17 19:45 lisp · c · small · tiny · scheme · up · how
http://www.software-lab.de/down.html - cached - mail it - history
(define (eval exp env)
  (cond ((self-evaluating? exp) exp)
        ((variable? exp) (lookup-variable-value exp env))
        ((quoted? exp) (text-of-quotation exp))
        ((assignment? exp) (eval-assignment exp env))
        ((definition? exp) (eval-definition exp env))
        ((if? exp) (eval-if exp env))
        ((lambda? exp)
         (make-procedure (lambda-parameters exp)
                         (lambda-body exp)
                         env))
        ((begin? exp) 
         (eval-sequence (begin-actions exp) env))
        ((cond? exp) (eval (cond->if exp) env))
        ((application? exp)
         (apply (eval (operator exp) env)
                (list-of-values (operands exp) env)))
        (else
         (error "Unknown expression type -- EVAL" exp))))
  • http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-26.html
by mshook 2009-05-16 17:56 sicp · eval · lisp · scheme · code · 16 · may · 2009 · b
http://mshook.googlepages.com/d4m.htm?/mshook/16+may+2009+b - cached - mail it - history
by mshook 2009-05-16 16:32 saved · stirling · engine · design · pdf · via · scheme
http://www.scribd.com/doc/2430599/Don-Clucas-Stirling-engine-generator-development - cached - mail it - history
We want to write a function that generates accumulators-- a function that takes a number n, and returns a function that takes another number i and returns n incremented by i.

JavaScript

function foo(n) { return function (i) { return n += i } }

Scheme

(define (foo n) (lambda (i) (set! n (+ n i)) n))

Try

JavaScript

function main() { function foo (n) { return function (i) { return n += i } } ; a = foo(5); print(a(1)); print("n"); print(a(4)); }

Scheme

(define (foo n) (lambda (i) (set! n (+ n i)) n)) (define a (foo 5)) (a 1) (a 4)
by mshook 2009-05-16 14:30 lisp · scheme · javascript · 16 · may · 2009 · a · example · code · theory · comparison · good · closure
http://mshook.googlepages.com/d4m.htm?/mshook/16+may+2009+a - cached - mail it - history
(I wrote this article to help myself understand exactly what McCarthy discovered. You don't need to know this stuff to program in Lisp, but it should be helpful to anyone who wants to understand the essence of Lisp-- both in the sense of its origins and its semantic core. The fact that it has such a core is one of Lisp's distinguishing features, and the reason why, unlike other languages, Lisp has dialects.)

In 1960, John McCarthy published a remarkable paper in which he did for programming something like what Euclid did for geometry. He showed how, given a handful of simple operators and a notation for functions, you can build a whole programming language. He called this language Lisp, for "List Processing," because one of his key ideas was to use a simple data structure called a list for both code and data.

by mshook 2009-05-15 22:59 lisp · why · theory · history · 1950s · scheme · recursion
http://www.paulgraham.com/rootsoflisp.html - cached - mail it - history
Experimental, built on Google App Engine
by mshook 2009-04-14 14:31 scheme · ruby · gae · javascript · cli · experiment · viapopular
http://lotrepls.appspot.com/ - cached - mail it - history
1 - 15 of 15  
Related Tags
 
- exclude ~ optional + require
Add Dates