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 18:27

>>132
Is it like type-safe in haskell?

So, you started whining about something you don't even know? Perfect.

(defmacro aif (p t f)
  `(let ((it ,p))
     (if it ,t ,f)))

; later...

(defun if (x) x)
(aif (if 2) it 3) ; expands to: (let ((it (if 2))) (if it it 3))
; but now if it's being shadowed by if!!!
; it doesn't work



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

; later...

(define (if x) x)
(aif (if 2) it 3)
; this expands to (let ((it (if 2))) (the-old-if it it 3))
; OMG IT WERKZ!!
; `if' it's just looked up in the scope of the macro definition!!

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