Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

LUA is FFOC

Name: Anonymous 2011-02-05 9:01

LUA is the toy language for those who enjoy the Forced Flushing Of L1/L2 Cache per operation. In fact, every operation causes several L2 cache misses during table look-ups, flushing both the L1 and L2 caches.

http://www.slideshare.net/hughreynolds/optimizing-lua-for-consoles-allen-murphy-microsoft

Enjoy your FFOC.

Name: Anonymous 2011-02-07 17:19

>>114
Macro in Racket:

(define-syntax (aif stx)
  (syntax-case stx ()
    ((~ p t f)
     (with-syntax ((it (datum->syntax #f 'it)))
       #'(let ((it p))
           (if it t f))))))


With my hygienic define macro:
(define-macro (aif p t f)
  #:capture it
  #'(let ((it p))
      (if it t f)))

Name: Anonymous 2011-02-07 17:28

>>117
With some other macros:

(define-syntax-case (aif p t f)
  (with-literal stx (it) ; stx is unhygienic, contains the called syntax.
    #'(let ((it p))
        (if it t f))))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List