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

C++ is the only language I need?

Name: Anonymous 2011-04-04 15:18

I've been looking to learn programming (technically I did a little Pascal in high school) to program some small video games. The thing is, every time I look at programming languages to use, it keeps coming back to C++. Java is too slow, Python is too slow, C# is for fags, nobody uses Delphi, etc.

Is C++ really the only good language for video games?
Is there anything C++ SHOULDN'T be used for? From what I've seen, C++ is recommended for everything, and all other languages are just for amateurs, very specific platforms, etc.

Name: Anonymous 2011-04-06 12:47

>>20
http://en.wikipedia.org/wiki/CLOS
http://community.schemewiki.org/?Tiny-CLOS
http://www.gnu.org/software/goops/goops.html
http://wiki.call-cc.org/eggref/4/coops
http://docs.racket-lang.org/swindle/index.html
http://docs.racket-lang.org/reference/mzlib_class.html
http://www.forcix.cx/software/prometheus.html
http://community.schemewiki.org/?ClosureTalk
http://community.schemewiki.org/?object-systems

(define-syntax λm
  (λ (stx)
    (syntax-case stx ()
      ((λm args v ...)
       (with-syntax ((self (datum->syntax #'λm 'self)))
         #'(λ (self . args) v ...)))
      ((λm (a ...) v ...)
       (with-syntax ((self (datum->syntax #'λm 'self)))
         #'(λ (self a ...) v ...))))))

(define mmap
  (λ (m t b)
    (cond ((null? m) (list (cons t b)))
          ((eq? t (caar m)) (cons (cons t b) (cdr m)))
          (else (cons (car m) (mmap (cdr m) t b))))))

(define make-dispatcher
  (λ (m)
    (define dispatcher
      (λ (z . a)
        (cond ((eq? z 'mmap) m)
              ((eq? z 'set-method) (set! m (apply mmap (cons m a))))
              ((assq z m) => (λ (h) (apply (cdr h) (cons dispatcher a))))
              ((eq? z 'get-class) "UNKNOWN")
              ((eq? z 'to-string) (symbol->string (dispatcher 'get-class)))
              (else (error (format "Undefined method "~a" for class "~a"" z (dispatcher 'get-class)))))))
    dispatcher))


Enjoy your nothing.

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