Skip to content

Instantly share code, notes, and snippets.

# can GitHub correctly highlight Ruby syntax?
a.collect {|x| x + "!#{x}" } + ["#{1}"]
x = "abc x#{a.collect {|x| x + "!#{x}" } + ["#{1}"]}x cba"
@tomprimozic
tomprimozic / obj.terra
Created November 22, 2013 00:56
Playing with Terra - a simple object system with unboxed floats
stdlib = terralib.includec("stdlib.h")
stdio = terralib.includec("stdio.h")
struct void {}
any = &&void
struct Type {name : rawstring}
StringType = global(&Type)
IntType = global(&Type)
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes