トップ «前の日記(2013-09-26) 最新 次の日記(2013-09-29)» 編集

はじめてのにき

ここの位置付け

2004|11|
2005|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|09|10|11|12|
2024|01|02|03|04|

ToDo:


2013-09-28

_ whitespace

いつ見てもセンスがイマイチな言語だなぁ…今日思ったのは dup と copy は同じ命令にすれば copy が 1 byte 減るんだけど、っていう。

[Space]	Number	Push the number onto the stack
[LF][Space]	-	Duplicate the top item on the stack
[Tab][Space]	Number	Copy the nth item on the stack (given by the argument) onto the top of the stack
[LF][Tab]	-	Swap the top two items on the stack
[LF][LF]	-	Discard the top item on the stack
[Tab][LF]	Number	Slide n items off the stack, keeping the top item

[Space]	Number	Push the number onto the stack
[Tab][LF]	-	Duplicate the top item on the stack
[Tab]	Number	Copy the nth item on the stack (given by the argument) onto the top of the stack
[LF][Tab]	-	Swap the top two items on the stack
[LF][LF]	-	Discard the top item on the stack
[LF][Space]	Number	Slide n items off the stack, keeping the top item

とかでいいはず。正確に言うと dup っていう別の命令がいらんというか…

他にも read 系がなんで heap 使うんだろうとか、いつ見ても突っ込みどころが多い…

(16:01)

_ ↑ウソだった

数字のエンコードがそのままじゃダメだな。符号があるから。それにしたって数字のエンコード方式がロクでも無いっていうか 0 スタートなら負数とかでいいんだよね…

(17:01)

お名前:
E-mail:
コメント:
人生、宇宙、すべての答え
本日のリンク元

2013年
9月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

search / home / index

全てリンクフリーです。 コード片は自由に使用していただいて構いません。 その他のものはGPL扱いであればあらゆる使用に関して文句は言いません。 なにかあれば下記メールアドレスへ。

shinichiro.hamaji _at_ gmail.com / shinichiro.h