Hacker News new | past | comments | ask | show | jobs | submit | ktg's comments login


Author here. L++ (Lisp-flavored C++) https://bitbucket.org/ktg/l


Good article



In for, in-range is faster.

http://docs.racket-lang.org/reference/sequences.html?q=in-ra...

An in-range application can provide better performance for number iteration when it appears directly in a for clause.

    -> (for ([i (in-range 1 16)])
        (match (list (modulo i 3) (modulo i 5))
          [(list 0 0) (displayln "fizzbuzz")]
          [(list 0 _) (displayln "fizz")]
          [(list _ 0) (displayln "buzz")]
          [_          (displayln i)]))


Oh, thanks for that :)


See also fn.js (Functional JavaScript Library)| https://bitbucket.org/ktg/fn



Man, apparently dr racket format looks like a hot mess.


A normal Racket file is a straight forward text file.

In Flappy Bird I used inline images, as in (define bird <the-bird-image-here> ) This makes it simple to distribute the source and images as a single file, but unfortunately the resulting file is not pretty.

In short: to see the source open it in DrRacket.


L++ is a programming language that transcompiles to C++. It uses Lisp-like syntax. Macros are supported via Racket's macro system define-syntax, define-syntax-rule and defmacro.

L++ | https://bitbucket.org/ktg/l


v0.2: Macros are supported via Racket's macro system define-syntax.



Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: