Skip to content

Instantly share code, notes, and snippets.

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
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])
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
# coding: utf-8
class Tree
def initialize(*children)
@children = children
end
attr_reader :children
def each_node1
class Tree
def initialize(*children)
@children = children
end
attr_reader :children
def each_node1
return to_enum(:each_node1) unless block_given?
Rehearsal ----------------------------------------------
#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) {
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}"
def ap(*args, &block)