This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 1 "vulkan_bug" received signal SIGSEGV, Segmentation fault. | |
0x00007fffef6fba69 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67 | |
(gdb) bt | |
#0 0x00007fffef6fba69 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67 | |
#1 0x00007fffef70305f in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67 | |
#2 0x00007fffef703363 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67 | |
#3 0x00007fffef984da7 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67 | |
#4 0x00007fffef738db0 in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67 | |
#5 0x00007fffef72f96c in ?? () from /usr/lib/libnvidia-glvkspirv.so.550.67 | |
#6 0x00007fffef72f9e6 in _nv002nvvm () from /usr/lib/libnvidia-glvkspirv.so.550.67 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pry(main):12> ab = 1 | |
=> 1 | |
pry(main):13> c = 2 | |
=> 2 | |
pry(main):14> abc = Set.new [ab, c] | |
=> #<Set: {1, 2}> | |
pry(main):15> abc > c | |
ArgumentError: value must be a set | |
from /usr/lib/ruby/2.2.0/set.rb:226:in `proper_superset?' | |
pry(main):16> abc > Set.new([c]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pry(main):1> ab = Set.new(['a', 'b']) | |
pry(main):1> require 'set' | |
=> true | |
pry(main):2> ab = Set.new(['a', 'b']) | |
=> #<Set: {"a", "b"}> | |
pry(main):3> c = Set.new(['c']) | |
=> #<Set: {"c"}> | |
pry(main):4> abc = Set.new [ab, c] | |
=> #<Set: {#<Set: {"a", "b"}>, #<Set: {"c"}>}> | |
pry(main):5> abc.include? c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
class Tree | |
def initialize(*children) | |
@children = children | |
end | |
attr_reader :children | |
def each_node1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tree | |
def initialize(*children) | |
@children = children | |
end | |
attr_reader :children | |
def each_node1 | |
return to_enum(:each_node1) unless block_given? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rehearsal ---------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
//; def int(*args); end | |
//; def main(*args, &block); | |
//; Object.class_eval { define_method("foo", &block) }; foo; end | |
//; def argc; end | |
//; def char; 3; end | |
//; def argv; 3; end | |
int main(int argc, char ** argv) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ap(*args, &block) | |
lambda do |recv, *new_args, &new_block| | |
recv.send(*(args + new_args), &(block || new_block)) | |
end | |
end | |
class Object | |
def try_it(*arguments, &block) | |
puts "Called try_it on #{inspect} with #{arguments.inspect} and " + | |
"block: #{block.inspect}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ap(*args, &block) |
NewerOlder