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
diff --git a/extlib/coru/coru_platform.c b/extlib/coru/coru_platform.c | |
index fb64002..bab7041 100644 | |
--- a/extlib/coru/coru_platform.c | |
+++ b/extlib/coru/coru_platform.c | |
@@ -68,8 +68,8 @@ __asm__ ( | |
// we startup a coroutine. | |
void coru_plat_prologue(void); | |
__asm__ ( | |
- ".globl coru_plat_prologue \n" | |
- "coru_plat_prologue: \n" |
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
excelsior:test$ ./cobench | |
[0x10b4e3600] measuring co_create+co_delete performance ... | |
[0x10b4e3600] 0.186263 usec | |
[0x10b4e3600] measuring switch performance ... | |
zsh: segmentation fault ./cobench |
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
excelsior:perfume$ cat t.prfm | |
set c [coro { | |
println "1st step"; | |
pause; | |
println "2nd step"; | |
}]; | |
$c next; # → "1st step" | |
$c next; # → "2nd step" | |
$c release; | |
excelsior:perfume$ perfumesh t.prfm |
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 evaluate(expr) | |
case expr | |
in ["value", x] | |
x | |
in ["+", x, y] | |
evaluate(x) + evaluate(y) | |
in ["-", x, y] | |
evaluate(x) - evaluate(y) | |
in ["*", x, y] | |
evaluate(x) * evaluate(y) |
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
Loaded suite test/textbringer/commands/test_isearch | |
Started | |
.F | |
=============================================================================== | |
Failure: test_isearch_backward(TestIsearch) | |
test/textbringer/commands/test_isearch.rb:132:in `test_isearch_backward' | |
129: buffer.end_of_buffer | |
130: push_keys("茶を\C-r\n") | |
131: isearch_backward(recursive_edit: true) | |
=> 132: assert_equal(7, buffer.current_line) |
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
b9007b6c548f91e88fd3f2ffa23de740431fa969 is the first bad commit | |
commit b9007b6c548f91e88fd3f2ffa23de740431fa969 | |
Author: Koichi Sasada <[email protected]> | |
Date: Wed Jan 8 16:14:01 2020 +0900 | |
Introduce disposable call-cache. | |
This patch contains several ideas: | |
(1) Disposable inline method cache (IMC) for race-free inline method cache |
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
kbd = Keyboard.new | |
kbd.split = true | |
kbd.init_pins( | |
[ 4, 5, 6, 7, 8 ], | |
[ 28, 27, 26, 22, 20, 23, 21 ] | |
) | |
kbd.add_layer :default, %i[ |
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
Welcome to PRK Firmware! | |
TUD task started. | |
Autoreload is ready. | |
Suspending keymap. | |
Trying to reload keymap. | |
keymap.rb found. |
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
require "open3" | |
cmd = "echo foo" | |
CONFIG = { shell_file_name: "/bin/zsh", shell_command_switch: "-c" } | |
signals = [:INT, :TERM, :KILL] | |
begin | |
opts = /mswin|mingw/ =~ RUBY_PLATFORM ? {} : {pgroup: true} | |
if CONFIG[:shell_file_name] | |
cmd = [CONFIG[:shell_file_name], CONFIG[:shell_command_switch], cmd] |
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
ArgumentError: wrong number of arguments (given 2, expected 1) | |
<internal:timev>:271:in `at' | |
/Users/shugo/.rbenv/versions/master/lib/ruby/gems/3.1.0/gems/rroonga-11.0.6/lib/groonga/record.rb:478:in `[]' | |
/Users/shugo/.rbenv/versions/master/lib/ruby/gems/3.1.0/gems/rroonga-11.0.6/lib/groonga/record.rb:478:in `method_missing' | |
/Users/shugo/src/mournmail/lib/mournmail/summary_mode.rb:598:in `block in show_search_result' | |
/Users/shugo/src/mournmail/lib/mournmail/summary_mode.rb:596:in `each' | |
/Users/shugo/src/mournmail/lib/mournmail/summary_mode.rb:596:in `map' | |
/Users/shugo/src/mournmail/lib/mournmail/summary_mode.rb:596:in `show_search_result' | |
/Users/shugo/src/mournmail/lib/mournmail/summary_mode.rb:444:in `block (3 levels) in <class:SummaryMode>' | |
/Users/shugo/src/textbringer/lib/textbringer/controller.rb:141:in `block in read_event' |