Skip to content

Instantly share code, notes, and snippets.

View vic's full-sized avatar
🤮
puke nuke

Victor Borja vic

🤮
puke nuke
View GitHub Profile
@vic
vic / def.fy
Created October 28, 2010 15:00
def foo: x baz: y = 22 {
x + y
}
@vic
vic / long.fy
Created October 28, 2010 15:08
def foo: x = something very: long + expression,
baz: y = using: "," allows: "splitting a method_def with long default arguments" {
# method body using x and y.
}
try {
jojo: 22
} catch NameError => error {
error name() println
}
$ rake bootstrap
(in /more/vic/hk/fancy)
checking for main() in -lfl... yes
creating Makefile
make: Entering directory `/more/vic/hk/fancy/boot/parser'
gcc -I. -I. -I/more/vic/hk/rubinius/vm/capi/include -I/more/vic/hk/fancy/boot/parser -fPIC -ggdb3 -O2 -fPIC -c lexer.c
gcc -I. -I. -I/more/vic/hk/rubinius/vm/capi/include -I/more/vic/hk/fancy/boot/parser -fPIC -ggdb3 -O2 -fPIC -c ext.c
gcc -I. -I. -I/more/vic/hk/rubinius/vm/capi/include -I/more/vic/hk/fancy/boot/parser -fPIC -ggdb3 -O2 -fPIC -c parser.c
cc -shared -o fancy_parser_ext.so lexer.o ext.o parser.o -L. -L/more/vic/hk/rubinius/lib -lfl
make: Leaving directory `/more/vic/hk/fancy/boot/parser'
@vic
vic / gist:741243
Created December 14, 2010 22:35
Diff between rbx-compiler and fy-compiler output for lib/compiler/ast/message_send.fy
--- /more/vic/hk/fancy/diff/rb-compiler/compiler/ast/message_send.asm 2010-12-14 16:28:36.511543000 -0600
+++ /more/vic/hk/fancy/diff/fy-compiler/compiler/ast/message_send.asm 2010-12-14 16:27:46.175543001 -0600
@@ -1,720 +1,720 @@
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
Stack size: 6
Lines to IP: 83: 0--1, 82: 0-3, 1: 4-9, 82: 10-30
@vic
vic / gist:741255
Created December 14, 2010 22:41
Output for lib/rbx.fy
--- /more/vic/hk/fancy/diff/rb-compiler/rbx.asm 2010-12-14 16:28:16.151543001 -0600
+++ /more/vic/hk/fancy/diff/fy-compiler/rbx.asm 2010-12-14 16:27:17.175543000 -0600
@@ -1,172 +1,280 @@
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
-Stack size: 2
-Lines to IP: 8: 0--1, 1: 0-0, 8: 1-8, 1: 9-9, 9: 10-17, 1: 18-18, 10: 19-26, 1: 27-27, 11: 28-35, 1: 36-36, 12: 37-44, 1: 45-45, 13: 46-53, 1: 54-54, 14: 55-62, 1: 63-63, 15: 64-71, 1: 72-72, 16: 73-80, 1: 81-81, 17: 82-89, 1: 90-90, 18: 91-98, 1: 99-99, 19: 100-107, 1: 108-108, 20: 109-116, 1: 117-117, 21: 118-125, 1: 126-126, 22: 127-134, 1: 135-135, 23: 136-143, 1: 144-144, 24: 145-152, 1: 153-153, 25: 154-161, 1: 162-162, 26: 163-170, 1: 171-171, 27: 172-179, 1: 180-180, 28: 181-188, 1: 189-189, 29: 190-197, 1: 198-198, 30: 199-206, 1: 207-207, 31: 208-215, 1: 216-216, 32: 217-224, 1: 225-225, 33: 226-233, 1: 234-234, 34: 235-244
+Stack size: 56
@vic
vic / gist:741329
Created December 14, 2010 23:25
Diff for lib/argv.fy
--- /more/vic/hk/fancy/diff/rb-compiler/argv.asm 2010-12-14 17:22:49.907543001 -0600
+++ /more/vic/hk/fancy/diff/fy-compiler/argv.asm 2010-12-14 17:21:47.639543000 -0600
@@ -1,279 +1,235 @@
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
-Stack size: 9
-Lines to IP: 17: 0--1, 16: 0-10, 1: 11-18, 16: 19-25, 2: 26-28, 16: 29-58, 36: 59-69, 18: 70-77, 36: 78-84, 19: 85-87, 36: 88-119
+Stack size: 5
@vic
vic / gist:741331
Created December 14, 2010 23:25
Diff for lib/argv.fy
--- /more/vic/hk/fancy/diff/rb-compiler/argv.asm 2010-12-14 17:22:49.907543001 -0600
+++ /more/vic/hk/fancy/diff/fy-compiler/argv.asm 2010-12-14 17:21:47.639543000 -0600
@@ -1,279 +1,235 @@
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
-Stack size: 9
-Lines to IP: 17: 0--1, 16: 0-10, 1: 11-18, 16: 19-25, 2: 26-28, 16: 29-58, 36: 59-69, 18: 70-77, 36: 78-84, 19: 85-87, 36: 88-119
+Stack size: 5
@vic
vic / gist:741443
Created December 15, 2010 00:59
version.fy
--- /more/vic/hk/fancy/diff/rb-compiler/version.asm 2010-12-14 18:49:11.665591000 -0600
+++ /more/vic/hk/fancy/diff/fy-compiler/version.asm 2010-12-14 18:48:12.755061002 -0600
@@ -1,47 +1,47 @@
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
Stack size: 5
-Lines to IP: 2: 0-2, 1: 3-7, 3: 8-10, 2: 11-15, 4: 16-18, 3: 19-23, 5: 24-26, 4: 27-33, 7: 34-36, 6: 37-62, 7: 63-71
+Lines to IP: 2: 0--1, 1: 0-7, 2: 8-15, 3: 16-23, 4: 24-33, 6: 34-62, 7: 63-71
@vic
vic / gist:753629
Created December 23, 2010 22:27
TwinSrpnt - Typhon t-shirt.

Hey guys, just wanted to say I really like your t-shirt designs!.

I've created an OpenSource project named Typhon - An implementation of the Python programming language for the Rubinius VM. I chosed the name as an anagram of Python, but it turns out that Typhon was that gaint guy with lots of snakes on its head. And searching more about it, I found a t-shirt you sell featuring Typhon, I've added a link to it on the project's homepage. Also changed the tagline to "Typhon: snakes on rbx-head" (snakes as a reference to Python, rbx is the common abreviation of Rubinius, and head refers to the latest version of it).

Do you ship to Mexico? Would it be possible to have one with the tagline in the back?

Cheers.

--