Skip to content

Instantly share code, notes, and snippets.

View bakkdoor's full-sized avatar

Christopher Bertels bakkdoor

View GitHub Profile
bakkdoor:~/Desktop/fancy[bootstrap]> rake bootstrap
(in /home/bakkdoor/Desktop/fancy)
rbx /home/bakkdoor/Desktop/fancy/lib/parser/ext/extconf.rb
checking for main() in -lfl... yes
creating Makefile
make -C /home/bakkdoor/Desktop/fancy/lib/parser/ext
make: Gehe in Verzeichnis '/home/bakkdoor/Desktop/fancy/lib/parser/ext'
gcc -I. -I. -I/home/bakkdoor/projekte/ruby/rubinius/vm/capi/include -I/home/bakkdoor/Desktop/fancy/lib/parser/ext -fPIC -ggdb3 -O2 -fPIC -c ext.c
gcc -I. -I. -I/home/bakkdoor/projekte/ruby/rubinius/vm/capi/include -I/home/bakkdoor/Desktop/fancy/lib/parser/ext -fPIC -ggdb3 -O2 -fPIC -c parser.c
gcc -I. -I. -I/home/bakkdoor/projekte/ruby/rubinius/vm/capi/include -I/home/bakkdoor/Desktop/fancy/lib/parser/ext -fPIC -ggdb3 -O2 -fPIC -c lexer.c
bakkdoor:~/projekte/fancy/fancy-lang[bootstrap]> rake
(in /home/bakkdoor/projekte/fancy/fancy-lang)
rbx /home/bakkdoor/projekte/fancy/fancy-lang/boot/load.rb /home/bakkdoor/projekte/fancy/fancy-lang/boot/compiler/boot.fyc /home/bakkdoor/projekte/fancy/fancy-lang/boot/compiler/compiler.fyc /home/bakkdoor/projekte/fancy/fancy-lang/boot/compiler/compiler/command.fyc /home/bakkdoor/projekte/fancy/fancy-lang/boot/compiler/compile.fyc -- /home/bakkdoor/projekte/fancy/fancy-lang/lib/fdoc.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/fancy_spec.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/version.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/directory.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/enumerable.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/object.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/hash.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/set.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/number.fy /home/bakkdoor/projekte/fancy/fancy-lang/lib/main.fy /home/bakkdoor/projekte/fancy/fancy
bakkdoor:~/Desktop/fancy[(no branch)*]> rake bootstrap
(in /home/bakkdoor/Desktop/fancy)
flex --outfile /home/bakkdoor/Desktop/fancy/boot/parser/lexer.c --header-file=lexer.h /home/bakkdoor/Desktop/fancy/boot/parser/lexer.lex
bison --output /home/bakkdoor/Desktop/fancy/boot/parser/parser.c -d -v /home/bakkdoor/Desktop/fancy/boot/parser/parser.y
/home/bakkdoor/Desktop/fancy/boot/parser/parser.y:177.17-25: Warnung: Typkonflikt bei Default-Aktion: <object> != <>)
/home/bakkdoor/Desktop/fancy/boot/parser/parser.y: Konflikte: 261 Schiebe/Reduziere, 40 Reduziere/Reduziere
rbx /home/bakkdoor/Desktop/fancy/boot/parser/extconf.rb
checking for main() in -lfl... yes
creating Makefile
make -C /home/bakkdoor/Desktop/fancy/boot/parser
bakkdoor:~/projekte/fancy/fancy-lang[bootstrap]> rake default boot_lib
(in /home/bakkdoor/projekte/fancy/fancy-lang)
flex --outfile /home/bakkdoor/projekte/fancy/fancy-lang/rbx/parser/lexer.c --header-file=lexer.h /home/bakkdoor/projekte/fancy/fancy-lang/rbx/parser/lexer.lex
bison --output /home/bakkdoor/projekte/fancy/fancy-lang/rbx/parser/parser.c -d -v /home/bakkdoor/projekte/fancy/fancy-lang/rbx/parser/parser.y
/home/bakkdoor/projekte/fancy/fancy-lang/rbx/parser/parser.y:175.17-25: Warnung: Typkonflikt bei Default-Aktion: <object> != <>)
/home/bakkdoor/projekte/fancy/fancy-lang/rbx/parser/parser.y: Konflikte: 252 Schiebe/Reduziere, 40 Reduziere/Reduziere
rbx /home/bakkdoor/projekte/fancy/fancy-lang/rbx/parser/extconf.rb
checking for main() in -lfl... yes
creating Makefile
make -C /home/bakkdoor/projekte/fancy/fancy-lang/rbx/parser
bakkdoor:~/projekte/fancy/fancy-lang[bootstrap*]> rbx boot/load.rb boot/compile.fy examples/class.fy
An exception occurred running boot/load.rb
Error trying to compile examples/class.fy (Rubinius::CompileError)
Backtrace:
Rubinius::Compiler.compiler_error at /usr/local/rubinius/1.1/lib/compiler/compiler.rbc:11
Fancy::Compiler.compile_file:to:line:print: at boot/compiler/compiler.fy:35
Fancy::Compiler::Command.compile:info:print: at boot/compiler/command.fy:12
{ } in Fancy::Compiler::Command.run: at boot/compiler/command.fy:6
{ } in Rubinius::BlockEnvironment#Block at rbx/fancy_ext/block_env.rb:18
str.gsub(/(\s+)@(\S+)@(\s+)/, "#{$1}*#{$2}*#{$3}").gsub(/(\s+)@(\S+)(\s+)/, "#{$1}**#{$2}**#{$3}")
def foo: arg1 bar: arg2 {
"""
@arg1 A argument description for `arg1`
@arg2 another description for `arg2`
@return Specify the return value
Some documentation text, possibly with more details.
"""
}
Building Melbourne for Rubinius
Building openssl
There was an error loading the compiler.
It appears that your compiler is out of date with the VM.
Please use 'rbx --rebuild-compiler' or 'rake [instal]' to
bring the compiler back to date.
rake aborted!
Command failed with status (1): [~/downloads/rubinius-head/bin/rbx-buil...]
LD vm/vm
(in ~/downloads/rubinius-head/lib/ext/melbourne)
Building Melbourne for MRI
(in ~/downloads/rubinius-head/lib/ext/bigdecimal)
(in ~/downloads/rubinius-head/lib/ext/readline)
LDSHARED readline.so
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [g++ -shared -lstdc++ readline.o -L. -lreadline -lcurses -o readline.so > /dev/null]
def async do_something_slow_with_each: array {
results = []
array each: |x| {
# await basically tells the compiler that we'll switch context and
# resume when "x do_something_slow" is finished
# note that the method seems synchronously since we're just
# defining a loop etc.
# the compiler knows how to transform all of this since it knows
# it's a "async" method (see method def at top)
result = await x do_something_slow