From 1630f564cd0cd20440b38c142bdee70e99d15175 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 2 Mar 2022 20:17:25 +0900 Subject: attach tags to each post --- docs/tags/conference/index.html | 121 +++++++++++++++++++++++++++++ docs/tags/conference/index.xml | 32 ++++++++ docs/tags/conference/page/1/index.html | 1 + docs/tags/cpp/index.html | 111 ++++++++++++++++++++++++++ docs/tags/cpp/index.xml | 22 ++++++ docs/tags/cpp/page/1/index.html | 1 + docs/tags/cpp17/index.html | 111 ++++++++++++++++++++++++++ docs/tags/cpp17/index.xml | 22 ++++++ docs/tags/cpp17/page/1/index.html | 1 + docs/tags/index.xml | 102 +++++++++++++++++++++++- docs/tags/php/index.html | 121 +++++++++++++++++++++++++++++ docs/tags/php/index.xml | 32 ++++++++ docs/tags/php/page/1/index.html | 1 + docs/tags/phperkaigi/index.html | 121 +++++++++++++++++++++++++++++ docs/tags/phperkaigi/index.xml | 32 ++++++++ docs/tags/phperkaigi/page/1/index.html | 1 + docs/tags/python/index.html | 115 +++++++++++++++++++++++++++ docs/tags/python/index.xml | 26 +++++++ docs/tags/python/page/1/index.html | 1 + docs/tags/python3/index.html | 115 +++++++++++++++++++++++++++ docs/tags/python3/index.xml | 26 +++++++ docs/tags/python3/page/1/index.html | 1 + docs/tags/ruby/index.html | 132 +++++++++++++++++++++++++++++++ docs/tags/ruby/index.xml | 40 ++++++++++ docs/tags/ruby/page/1/index.html | 1 + docs/tags/ruby3/index.html | 113 +++++++++++++++++++++++++++ docs/tags/ruby3/index.xml | 24 ++++++ docs/tags/ruby3/page/1/index.html | 1 + docs/tags/rust/index.html | 116 +++++++++++++++++++++++++++ docs/tags/rust/index.xml | 27 +++++++ docs/tags/rust/page/1/index.html | 1 + docs/tags/vim/index.html | 138 +++++++++++++++++++++++++++++++++ docs/tags/vim/index.xml | 46 +++++++++++ docs/tags/vim/page/1/index.html | 1 + 34 files changed, 1755 insertions(+), 1 deletion(-) create mode 100644 docs/tags/conference/index.html create mode 100644 docs/tags/conference/index.xml create mode 100644 docs/tags/conference/page/1/index.html create mode 100644 docs/tags/cpp/index.html create mode 100644 docs/tags/cpp/index.xml create mode 100644 docs/tags/cpp/page/1/index.html create mode 100644 docs/tags/cpp17/index.html create mode 100644 docs/tags/cpp17/index.xml create mode 100644 docs/tags/cpp17/page/1/index.html create mode 100644 docs/tags/php/index.html create mode 100644 docs/tags/php/index.xml create mode 100644 docs/tags/php/page/1/index.html create mode 100644 docs/tags/phperkaigi/index.html create mode 100644 docs/tags/phperkaigi/index.xml create mode 100644 docs/tags/phperkaigi/page/1/index.html create mode 100644 docs/tags/python/index.html create mode 100644 docs/tags/python/index.xml create mode 100644 docs/tags/python/page/1/index.html create mode 100644 docs/tags/python3/index.html create mode 100644 docs/tags/python3/index.xml create mode 100644 docs/tags/python3/page/1/index.html create mode 100644 docs/tags/ruby/index.html create mode 100644 docs/tags/ruby/index.xml create mode 100644 docs/tags/ruby/page/1/index.html create mode 100644 docs/tags/ruby3/index.html create mode 100644 docs/tags/ruby3/index.xml create mode 100644 docs/tags/ruby3/page/1/index.html create mode 100644 docs/tags/rust/index.html create mode 100644 docs/tags/rust/index.xml create mode 100644 docs/tags/rust/page/1/index.html create mode 100644 docs/tags/vim/index.html create mode 100644 docs/tags/vim/index.xml create mode 100644 docs/tags/vim/page/1/index.html (limited to 'docs/tags') diff --git a/docs/tags/conference/index.html b/docs/tags/conference/index.html new file mode 100644 index 0000000..71d75fa --- /dev/null +++ b/docs/tags/conference/index.html @@ -0,0 +1,121 @@ + + + + + + + + conference - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

PHPerKaigi 2021

+
+
+

PHPerKaigi 2021 参加レポ 2021/03/26 から 2021/03/28 にかけて開催された、PHPerKaigi 2021 に一般参加者として参加した。 弊社デジタルサーカス株式会社 (今年1月から勤務) はダイヤモンドスポンサーとなっており、スポンサー枠のチケットを使わせていただいた。 +このようなカンファレンスには初めて参加するのでかねてより心待ちにしていたのだが、生憎2日目から体調を崩してしまい、この記事も途中までとなっている。まだ見ていないセッションも多いが、ひとまず現時点での参加レポを書いておく。 +発表はトラック A、B に分かれていたのだが、今回はすべて A トラックを視聴している (切り替えるのが面倒だっただけ)。 +凡例 発表・スライドのメモ (引用ではない) + 感想など +Day 0 前夜祭 (2021/03/27) 17:30 [A] PHP で AWS Lambda + Rails のプロジェクトを PHPer のメンバのみでメンテ →他のメンバもわかる PHP にリプレースを検討 +サーバレス + サーバ・インフラの管理が不要 アプリケーションコードの知識だけで保守可能 ゼロベースで作れる案件が (Railsの件とは別に) あるため、そちらで試験的に導入? +AWSの学習 AWS のドキュメント DevelopersIO +AWS Lambda のカスタムランタイムで PHP を動かす +サーバのセットアップや維持管理を気にしなくて良い サーバーレスで PHP を動かすツールがすでにある サーバーレス構築はすんなり +今は Laravel がルーティングしている Laravel Livewire を Lambda に載せられないか? デプロイ方法は? バッチ処理は? (Lambda は 15分の制限)...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/conference/index.xml b/docs/tags/conference/index.xml new file mode 100644 index 0000000..7b93c38 --- /dev/null +++ b/docs/tags/conference/index.xml @@ -0,0 +1,32 @@ + + + + conference on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/conference/ + Recent content in conference on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Tue, 30 Mar 2021 23:22:40 +0900 + + PHPerKaigi 2021 + https://blog.nsfisis.dev/posts/phperkaigi-2021/ + Tue, 30 Mar 2021 23:22:40 +0900 + + https://blog.nsfisis.dev/posts/phperkaigi-2021/ + PHPerKaigi 2021 参加レポ 2021/03/26 から 2021/03/28 にかけて開催された、PHPerKaigi 2021 に一般参加者として参加した。 弊社デジタルサーカス株式会社 (今年1月から勤務) はダイヤモンドスポンサーとなっており、スポンサー枠のチケットを使わせていただいた。 +このようなカンファレンスには初めて参加するのでかねてより心待ちにしていたのだが、生憎2日目から体調を崩してしまい、この記事も途中までとなっている。まだ見ていないセッションも多いが、ひとまず現時点での参加レポを書いておく。 +発表はトラック A、B に分かれていたのだが、今回はすべて A トラックを視聴している (切り替えるのが面倒だっただけ)。 +凡例 発表・スライドのメモ (引用ではない) + 感想など +Day 0 前夜祭 (2021/03/27) 17:30 [A] PHP で AWS Lambda + Rails のプロジェクトを PHPer のメンバのみでメンテ →他のメンバもわかる PHP にリプレースを検討 +サーバレス + サーバ・インフラの管理が不要 アプリケーションコードの知識だけで保守可能 ゼロベースで作れる案件が (Railsの件とは別に) あるため、そちらで試験的に導入? +AWSの学習 AWS のドキュメント DevelopersIO +AWS Lambda のカスタムランタイムで PHP を動かす +サーバのセットアップや維持管理を気にしなくて良い サーバーレスで PHP を動かすツールがすでにある サーバーレス構築はすんなり +今は Laravel がルーティングしている Laravel Livewire を Lambda に載せられないか? デプロイ方法は? バッチ処理は? (Lambda は 15分の制限) + + + + diff --git a/docs/tags/conference/page/1/index.html b/docs/tags/conference/page/1/index.html new file mode 100644 index 0000000..0a923d6 --- /dev/null +++ b/docs/tags/conference/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/conference/ \ No newline at end of file diff --git a/docs/tags/cpp/index.html b/docs/tags/cpp/index.html new file mode 100644 index 0000000..0626288 --- /dev/null +++ b/docs/tags/cpp/index.html @@ -0,0 +1,111 @@ + + + + + + + + cpp - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

[C++] 属性構文の属性名にはキーワードが使える [[void]] [[for]]

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/94090937bcf860cfa93b + タイトル落ち。まずはこのコードを見て欲しい。 +#include <iostream> [[alignas]] [[alignof]] [[and]] [[and_eq]] [[asm]] [[auto]] [[bitand]] [[bitor]] [[bool]] [[break]] [[case]] [[catch]] [[char]] [[char16_t]] [[char32_t]] [[class]] [[compl]] [[const]] [[const_cast]] [[constexpr]] [[continue]] [[decltype]] [[default]] [[delete]] [[do]] [[double]] [[dynamic_cast]] [[else]] [[enum]] [[explicit]] [[export]] [[extern]] [[false]] [[final]] [[float]] [[for]] [[friend]] [[goto]] [[if]] [[inline]] [[int]] [[long]] [[mutable]] [[namespace]] [[new]] [[noexcept]] [[not]] [[not_eq]] [[nullptr]] [[operator]] [[or]] [[or_eq]] [[override]] [[private]] [[protected]] [[public]] [[register]] [[reinterpret_cast]] [[return]] [[short]] [[signed]] [[sizeof]] [[static]] [[static_assert]] [[static_cast]] [[struct]] [[switch]] [[template]] [[this]] [[thread_local]] [[throw]] [[true]] [[try]] [[typedef]] [[typeid]] [[typename]] [[union]] [[unsigned]] [[virtual]] [[void]] [[volatile]] [[wchar_t]] [[while]] [[xor]] [[xor_eq]] // [[using]] int main() { std::cout << "Hello, World!...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/cpp/index.xml b/docs/tags/cpp/index.xml new file mode 100644 index 0000000..6cd2016 --- /dev/null +++ b/docs/tags/cpp/index.xml @@ -0,0 +1,22 @@ + + + + cpp on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/cpp/ + Recent content in cpp on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Sat, 02 Oct 2021 09:38:30 +0900 + + [C++] 属性構文の属性名にはキーワードが使える [[void]] [[for]] + https://blog.nsfisis.dev/posts/cpp-you-can-use-keywords-in-attributes/ + Sat, 02 Oct 2021 09:38:30 +0900 + + https://blog.nsfisis.dev/posts/cpp-you-can-use-keywords-in-attributes/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/94090937bcf860cfa93b + タイトル落ち。まずはこのコードを見て欲しい。 +#include &lt;iostream&gt; [[alignas]] [[alignof]] [[and]] [[and_eq]] [[asm]] [[auto]] [[bitand]] [[bitor]] [[bool]] [[break]] [[case]] [[catch]] [[char]] [[char16_t]] [[char32_t]] [[class]] [[compl]] [[const]] [[const_cast]] [[constexpr]] [[continue]] [[decltype]] [[default]] [[delete]] [[do]] [[double]] [[dynamic_cast]] [[else]] [[enum]] [[explicit]] [[export]] [[extern]] [[false]] [[final]] [[float]] [[for]] [[friend]] [[goto]] [[if]] [[inline]] [[int]] [[long]] [[mutable]] [[namespace]] [[new]] [[noexcept]] [[not]] [[not_eq]] [[nullptr]] [[operator]] [[or]] [[or_eq]] [[override]] [[private]] [[protected]] [[public]] [[register]] [[reinterpret_cast]] [[return]] [[short]] [[signed]] [[sizeof]] [[static]] [[static_assert]] [[static_cast]] [[struct]] [[switch]] [[template]] [[this]] [[thread_local]] [[throw]] [[true]] [[try]] [[typedef]] [[typeid]] [[typename]] [[union]] [[unsigned]] [[virtual]] [[void]] [[volatile]] [[wchar_t]] [[while]] [[xor]] [[xor_eq]] // [[using]] int main() { std::cout &lt;&lt; &#34;Hello, World! + + + + diff --git a/docs/tags/cpp/page/1/index.html b/docs/tags/cpp/page/1/index.html new file mode 100644 index 0000000..c7ce5f2 --- /dev/null +++ b/docs/tags/cpp/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/cpp/ \ No newline at end of file diff --git a/docs/tags/cpp17/index.html b/docs/tags/cpp17/index.html new file mode 100644 index 0000000..082b9e1 --- /dev/null +++ b/docs/tags/cpp17/index.html @@ -0,0 +1,111 @@ + + + + + + + + cpp17 - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

[C++] 属性構文の属性名にはキーワードが使える [[void]] [[for]]

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/94090937bcf860cfa93b + タイトル落ち。まずはこのコードを見て欲しい。 +#include <iostream> [[alignas]] [[alignof]] [[and]] [[and_eq]] [[asm]] [[auto]] [[bitand]] [[bitor]] [[bool]] [[break]] [[case]] [[catch]] [[char]] [[char16_t]] [[char32_t]] [[class]] [[compl]] [[const]] [[const_cast]] [[constexpr]] [[continue]] [[decltype]] [[default]] [[delete]] [[do]] [[double]] [[dynamic_cast]] [[else]] [[enum]] [[explicit]] [[export]] [[extern]] [[false]] [[final]] [[float]] [[for]] [[friend]] [[goto]] [[if]] [[inline]] [[int]] [[long]] [[mutable]] [[namespace]] [[new]] [[noexcept]] [[not]] [[not_eq]] [[nullptr]] [[operator]] [[or]] [[or_eq]] [[override]] [[private]] [[protected]] [[public]] [[register]] [[reinterpret_cast]] [[return]] [[short]] [[signed]] [[sizeof]] [[static]] [[static_assert]] [[static_cast]] [[struct]] [[switch]] [[template]] [[this]] [[thread_local]] [[throw]] [[true]] [[try]] [[typedef]] [[typeid]] [[typename]] [[union]] [[unsigned]] [[virtual]] [[void]] [[volatile]] [[wchar_t]] [[while]] [[xor]] [[xor_eq]] // [[using]] int main() { std::cout << "Hello, World!...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/cpp17/index.xml b/docs/tags/cpp17/index.xml new file mode 100644 index 0000000..15cb391 --- /dev/null +++ b/docs/tags/cpp17/index.xml @@ -0,0 +1,22 @@ + + + + cpp17 on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/cpp17/ + Recent content in cpp17 on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Sat, 02 Oct 2021 09:38:30 +0900 + + [C++] 属性構文の属性名にはキーワードが使える [[void]] [[for]] + https://blog.nsfisis.dev/posts/cpp-you-can-use-keywords-in-attributes/ + Sat, 02 Oct 2021 09:38:30 +0900 + + https://blog.nsfisis.dev/posts/cpp-you-can-use-keywords-in-attributes/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/94090937bcf860cfa93b + タイトル落ち。まずはこのコードを見て欲しい。 +#include &lt;iostream&gt; [[alignas]] [[alignof]] [[and]] [[and_eq]] [[asm]] [[auto]] [[bitand]] [[bitor]] [[bool]] [[break]] [[case]] [[catch]] [[char]] [[char16_t]] [[char32_t]] [[class]] [[compl]] [[const]] [[const_cast]] [[constexpr]] [[continue]] [[decltype]] [[default]] [[delete]] [[do]] [[double]] [[dynamic_cast]] [[else]] [[enum]] [[explicit]] [[export]] [[extern]] [[false]] [[final]] [[float]] [[for]] [[friend]] [[goto]] [[if]] [[inline]] [[int]] [[long]] [[mutable]] [[namespace]] [[new]] [[noexcept]] [[not]] [[not_eq]] [[nullptr]] [[operator]] [[or]] [[or_eq]] [[override]] [[private]] [[protected]] [[public]] [[register]] [[reinterpret_cast]] [[return]] [[short]] [[signed]] [[sizeof]] [[static]] [[static_assert]] [[static_cast]] [[struct]] [[switch]] [[template]] [[this]] [[thread_local]] [[throw]] [[true]] [[try]] [[typedef]] [[typeid]] [[typename]] [[union]] [[unsigned]] [[virtual]] [[void]] [[volatile]] [[wchar_t]] [[while]] [[xor]] [[xor_eq]] // [[using]] int main() { std::cout &lt;&lt; &#34;Hello, World! + + + + diff --git a/docs/tags/cpp17/page/1/index.html b/docs/tags/cpp17/page/1/index.html new file mode 100644 index 0000000..fbe22d9 --- /dev/null +++ b/docs/tags/cpp17/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/cpp17/ \ No newline at end of file diff --git a/docs/tags/index.xml b/docs/tags/index.xml index f2ae147..6c9a44c 100644 --- a/docs/tags/index.xml +++ b/docs/tags/index.xml @@ -5,6 +5,106 @@ https://blog.nsfisis.dev/tags/ Recent content in Tags on REPL: Rest-Eat-Program Loop Hugo -- gohugo.io - ja-JP + ja-JP + Sat, 02 Oct 2021 09:39:27 +0900 + + rust + https://blog.nsfisis.dev/tags/rust/ + Sat, 02 Oct 2021 09:39:27 +0900 + + https://blog.nsfisis.dev/tags/rust/ + + + + + ruby + https://blog.nsfisis.dev/tags/ruby/ + Sat, 02 Oct 2021 09:38:50 +0900 + + https://blog.nsfisis.dev/tags/ruby/ + + + + + ruby3 + https://blog.nsfisis.dev/tags/ruby3/ + Sat, 02 Oct 2021 09:38:50 +0900 + + https://blog.nsfisis.dev/tags/ruby3/ + + + + + cpp + https://blog.nsfisis.dev/tags/cpp/ + Sat, 02 Oct 2021 09:38:30 +0900 + + https://blog.nsfisis.dev/tags/cpp/ + + + + + cpp17 + https://blog.nsfisis.dev/tags/cpp17/ + Sat, 02 Oct 2021 09:38:30 +0900 + + https://blog.nsfisis.dev/tags/cpp17/ + + + + + vim + https://blog.nsfisis.dev/tags/vim/ + Sat, 02 Oct 2021 09:37:25 +0900 + + https://blog.nsfisis.dev/tags/vim/ + + + + + python + https://blog.nsfisis.dev/tags/python/ + Sat, 02 Oct 2021 09:32:37 +0900 + + https://blog.nsfisis.dev/tags/python/ + + + + + python3 + https://blog.nsfisis.dev/tags/python3/ + Sat, 02 Oct 2021 09:32:37 +0900 + + https://blog.nsfisis.dev/tags/python3/ + + + + + conference + https://blog.nsfisis.dev/tags/conference/ + Tue, 30 Mar 2021 23:22:40 +0900 + + https://blog.nsfisis.dev/tags/conference/ + + + + + php + https://blog.nsfisis.dev/tags/php/ + Tue, 30 Mar 2021 23:22:40 +0900 + + https://blog.nsfisis.dev/tags/php/ + + + + + phperkaigi + https://blog.nsfisis.dev/tags/phperkaigi/ + Tue, 30 Mar 2021 23:22:40 +0900 + + https://blog.nsfisis.dev/tags/phperkaigi/ + + + diff --git a/docs/tags/php/index.html b/docs/tags/php/index.html new file mode 100644 index 0000000..0e05a74 --- /dev/null +++ b/docs/tags/php/index.html @@ -0,0 +1,121 @@ + + + + + + + + php - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

PHPerKaigi 2021

+
+
+

PHPerKaigi 2021 参加レポ 2021/03/26 から 2021/03/28 にかけて開催された、PHPerKaigi 2021 に一般参加者として参加した。 弊社デジタルサーカス株式会社 (今年1月から勤務) はダイヤモンドスポンサーとなっており、スポンサー枠のチケットを使わせていただいた。 +このようなカンファレンスには初めて参加するのでかねてより心待ちにしていたのだが、生憎2日目から体調を崩してしまい、この記事も途中までとなっている。まだ見ていないセッションも多いが、ひとまず現時点での参加レポを書いておく。 +発表はトラック A、B に分かれていたのだが、今回はすべて A トラックを視聴している (切り替えるのが面倒だっただけ)。 +凡例 発表・スライドのメモ (引用ではない) + 感想など +Day 0 前夜祭 (2021/03/27) 17:30 [A] PHP で AWS Lambda + Rails のプロジェクトを PHPer のメンバのみでメンテ →他のメンバもわかる PHP にリプレースを検討 +サーバレス + サーバ・インフラの管理が不要 アプリケーションコードの知識だけで保守可能 ゼロベースで作れる案件が (Railsの件とは別に) あるため、そちらで試験的に導入? +AWSの学習 AWS のドキュメント DevelopersIO +AWS Lambda のカスタムランタイムで PHP を動かす +サーバのセットアップや維持管理を気にしなくて良い サーバーレスで PHP を動かすツールがすでにある サーバーレス構築はすんなり +今は Laravel がルーティングしている Laravel Livewire を Lambda に載せられないか? デプロイ方法は? バッチ処理は? (Lambda は 15分の制限)...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/php/index.xml b/docs/tags/php/index.xml new file mode 100644 index 0000000..295c4f2 --- /dev/null +++ b/docs/tags/php/index.xml @@ -0,0 +1,32 @@ + + + + php on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/php/ + Recent content in php on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Tue, 30 Mar 2021 23:22:40 +0900 + + PHPerKaigi 2021 + https://blog.nsfisis.dev/posts/phperkaigi-2021/ + Tue, 30 Mar 2021 23:22:40 +0900 + + https://blog.nsfisis.dev/posts/phperkaigi-2021/ + PHPerKaigi 2021 参加レポ 2021/03/26 から 2021/03/28 にかけて開催された、PHPerKaigi 2021 に一般参加者として参加した。 弊社デジタルサーカス株式会社 (今年1月から勤務) はダイヤモンドスポンサーとなっており、スポンサー枠のチケットを使わせていただいた。 +このようなカンファレンスには初めて参加するのでかねてより心待ちにしていたのだが、生憎2日目から体調を崩してしまい、この記事も途中までとなっている。まだ見ていないセッションも多いが、ひとまず現時点での参加レポを書いておく。 +発表はトラック A、B に分かれていたのだが、今回はすべて A トラックを視聴している (切り替えるのが面倒だっただけ)。 +凡例 発表・スライドのメモ (引用ではない) + 感想など +Day 0 前夜祭 (2021/03/27) 17:30 [A] PHP で AWS Lambda + Rails のプロジェクトを PHPer のメンバのみでメンテ →他のメンバもわかる PHP にリプレースを検討 +サーバレス + サーバ・インフラの管理が不要 アプリケーションコードの知識だけで保守可能 ゼロベースで作れる案件が (Railsの件とは別に) あるため、そちらで試験的に導入? +AWSの学習 AWS のドキュメント DevelopersIO +AWS Lambda のカスタムランタイムで PHP を動かす +サーバのセットアップや維持管理を気にしなくて良い サーバーレスで PHP を動かすツールがすでにある サーバーレス構築はすんなり +今は Laravel がルーティングしている Laravel Livewire を Lambda に載せられないか? デプロイ方法は? バッチ処理は? (Lambda は 15分の制限) + + + + diff --git a/docs/tags/php/page/1/index.html b/docs/tags/php/page/1/index.html new file mode 100644 index 0000000..abae162 --- /dev/null +++ b/docs/tags/php/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/php/ \ No newline at end of file diff --git a/docs/tags/phperkaigi/index.html b/docs/tags/phperkaigi/index.html new file mode 100644 index 0000000..11113d5 --- /dev/null +++ b/docs/tags/phperkaigi/index.html @@ -0,0 +1,121 @@ + + + + + + + + phperkaigi - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

PHPerKaigi 2021

+
+
+

PHPerKaigi 2021 参加レポ 2021/03/26 から 2021/03/28 にかけて開催された、PHPerKaigi 2021 に一般参加者として参加した。 弊社デジタルサーカス株式会社 (今年1月から勤務) はダイヤモンドスポンサーとなっており、スポンサー枠のチケットを使わせていただいた。 +このようなカンファレンスには初めて参加するのでかねてより心待ちにしていたのだが、生憎2日目から体調を崩してしまい、この記事も途中までとなっている。まだ見ていないセッションも多いが、ひとまず現時点での参加レポを書いておく。 +発表はトラック A、B に分かれていたのだが、今回はすべて A トラックを視聴している (切り替えるのが面倒だっただけ)。 +凡例 発表・スライドのメモ (引用ではない) + 感想など +Day 0 前夜祭 (2021/03/27) 17:30 [A] PHP で AWS Lambda + Rails のプロジェクトを PHPer のメンバのみでメンテ →他のメンバもわかる PHP にリプレースを検討 +サーバレス + サーバ・インフラの管理が不要 アプリケーションコードの知識だけで保守可能 ゼロベースで作れる案件が (Railsの件とは別に) あるため、そちらで試験的に導入? +AWSの学習 AWS のドキュメント DevelopersIO +AWS Lambda のカスタムランタイムで PHP を動かす +サーバのセットアップや維持管理を気にしなくて良い サーバーレスで PHP を動かすツールがすでにある サーバーレス構築はすんなり +今は Laravel がルーティングしている Laravel Livewire を Lambda に載せられないか? デプロイ方法は? バッチ処理は? (Lambda は 15分の制限)...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/phperkaigi/index.xml b/docs/tags/phperkaigi/index.xml new file mode 100644 index 0000000..b71fc52 --- /dev/null +++ b/docs/tags/phperkaigi/index.xml @@ -0,0 +1,32 @@ + + + + phperkaigi on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/phperkaigi/ + Recent content in phperkaigi on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Tue, 30 Mar 2021 23:22:40 +0900 + + PHPerKaigi 2021 + https://blog.nsfisis.dev/posts/phperkaigi-2021/ + Tue, 30 Mar 2021 23:22:40 +0900 + + https://blog.nsfisis.dev/posts/phperkaigi-2021/ + PHPerKaigi 2021 参加レポ 2021/03/26 から 2021/03/28 にかけて開催された、PHPerKaigi 2021 に一般参加者として参加した。 弊社デジタルサーカス株式会社 (今年1月から勤務) はダイヤモンドスポンサーとなっており、スポンサー枠のチケットを使わせていただいた。 +このようなカンファレンスには初めて参加するのでかねてより心待ちにしていたのだが、生憎2日目から体調を崩してしまい、この記事も途中までとなっている。まだ見ていないセッションも多いが、ひとまず現時点での参加レポを書いておく。 +発表はトラック A、B に分かれていたのだが、今回はすべて A トラックを視聴している (切り替えるのが面倒だっただけ)。 +凡例 発表・スライドのメモ (引用ではない) + 感想など +Day 0 前夜祭 (2021/03/27) 17:30 [A] PHP で AWS Lambda + Rails のプロジェクトを PHPer のメンバのみでメンテ →他のメンバもわかる PHP にリプレースを検討 +サーバレス + サーバ・インフラの管理が不要 アプリケーションコードの知識だけで保守可能 ゼロベースで作れる案件が (Railsの件とは別に) あるため、そちらで試験的に導入? +AWSの学習 AWS のドキュメント DevelopersIO +AWS Lambda のカスタムランタイムで PHP を動かす +サーバのセットアップや維持管理を気にしなくて良い サーバーレスで PHP を動かすツールがすでにある サーバーレス構築はすんなり +今は Laravel がルーティングしている Laravel Livewire を Lambda に載せられないか? デプロイ方法は? バッチ処理は? (Lambda は 15分の制限) + + + + diff --git a/docs/tags/phperkaigi/page/1/index.html b/docs/tags/phperkaigi/page/1/index.html new file mode 100644 index 0000000..ecafc09 --- /dev/null +++ b/docs/tags/phperkaigi/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/phperkaigi/ \ No newline at end of file diff --git a/docs/tags/python/index.html b/docs/tags/python/index.html new file mode 100644 index 0000000..e8908f0 --- /dev/null +++ b/docs/tags/python/index.html @@ -0,0 +1,115 @@ + + + + + + + + python - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

[Python] クロージャとUnboundLocalError: local variable 'x' referenced before assignment

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/5d733703afcb35bbf399 + 本記事は Python 3.7.6 の動作結果を元にして書かれている。 +Python でクロージャを作ろうと、次のようなコードを書いた。 +def f(): x = 0 def g(): x += 1 g() f() 関数 g から 関数 f のスコープ内で定義された変数 x を参照し、それに 1 を足そうとしている。 これを実行すると x += 1 の箇所でエラーが発生する。 + UnboundLocalError: local variable ‘x’ referenced before assignment + local変数 x が代入前に参照された、とある。これは、f の x を参照するのではなく、新しく別の変数を g 内に作ってしまっているため。 前述のコードを宣言と代入を便宜上分けて書き直すと次のようになる。var を変数宣言のための構文として擬似的に利用している。 +# 注: var は正しい Python の文法ではない。上記参照のこと def f(): var x # f の local変数 'x' を宣言 x = 0 # x に 0 を代入 def g(): # f の内部関数 g を定義 var x # g の local変数 'x' を宣言 # たまたま f にも同じ名前の変数があるが、それとは別の変数 x += 1 # x に 1 を加算 (x = x + 1 の糖衣構文) # 加算する前の値を参照しようとするが、まだ代入されていないためエラー g() 当初の意図を表現するには、次のように書けばよい。...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/python/index.xml b/docs/tags/python/index.xml new file mode 100644 index 0000000..af05598 --- /dev/null +++ b/docs/tags/python/index.xml @@ -0,0 +1,26 @@ + + + + python on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/python/ + Recent content in python on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Sat, 02 Oct 2021 09:32:37 +0900 + + [Python] クロージャとUnboundLocalError: local variable 'x' referenced before assignment + https://blog.nsfisis.dev/posts/python-unbound-local-error/ + Sat, 02 Oct 2021 09:32:37 +0900 + + https://blog.nsfisis.dev/posts/python-unbound-local-error/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/5d733703afcb35bbf399 + 本記事は Python 3.7.6 の動作結果を元にして書かれている。 +Python でクロージャを作ろうと、次のようなコードを書いた。 +def f(): x = 0 def g(): x += 1 g() f() 関数 g から 関数 f のスコープ内で定義された変数 x を参照し、それに 1 を足そうとしている。 これを実行すると x += 1 の箇所でエラーが発生する。 + UnboundLocalError: local variable &lsquo;x&rsquo; referenced before assignment + local変数 x が代入前に参照された、とある。これは、f の x を参照するのではなく、新しく別の変数を g 内に作ってしまっているため。 前述のコードを宣言と代入を便宜上分けて書き直すと次のようになる。var を変数宣言のための構文として擬似的に利用している。 +# 注: var は正しい Python の文法ではない。上記参照のこと def f(): var x # f の local変数 &#39;x&#39; を宣言 x = 0 # x に 0 を代入 def g(): # f の内部関数 g を定義 var x # g の local変数 &#39;x&#39; を宣言 # たまたま f にも同じ名前の変数があるが、それとは別の変数 x += 1 # x に 1 を加算 (x = x + 1 の糖衣構文) # 加算する前の値を参照しようとするが、まだ代入されていないためエラー g() 当初の意図を表現するには、次のように書けばよい。 + + + + diff --git a/docs/tags/python/page/1/index.html b/docs/tags/python/page/1/index.html new file mode 100644 index 0000000..9560b32 --- /dev/null +++ b/docs/tags/python/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/python/ \ No newline at end of file diff --git a/docs/tags/python3/index.html b/docs/tags/python3/index.html new file mode 100644 index 0000000..8780528 --- /dev/null +++ b/docs/tags/python3/index.html @@ -0,0 +1,115 @@ + + + + + + + + python3 - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

[Python] クロージャとUnboundLocalError: local variable 'x' referenced before assignment

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/5d733703afcb35bbf399 + 本記事は Python 3.7.6 の動作結果を元にして書かれている。 +Python でクロージャを作ろうと、次のようなコードを書いた。 +def f(): x = 0 def g(): x += 1 g() f() 関数 g から 関数 f のスコープ内で定義された変数 x を参照し、それに 1 を足そうとしている。 これを実行すると x += 1 の箇所でエラーが発生する。 + UnboundLocalError: local variable ‘x’ referenced before assignment + local変数 x が代入前に参照された、とある。これは、f の x を参照するのではなく、新しく別の変数を g 内に作ってしまっているため。 前述のコードを宣言と代入を便宜上分けて書き直すと次のようになる。var を変数宣言のための構文として擬似的に利用している。 +# 注: var は正しい Python の文法ではない。上記参照のこと def f(): var x # f の local変数 'x' を宣言 x = 0 # x に 0 を代入 def g(): # f の内部関数 g を定義 var x # g の local変数 'x' を宣言 # たまたま f にも同じ名前の変数があるが、それとは別の変数 x += 1 # x に 1 を加算 (x = x + 1 の糖衣構文) # 加算する前の値を参照しようとするが、まだ代入されていないためエラー g() 当初の意図を表現するには、次のように書けばよい。...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/python3/index.xml b/docs/tags/python3/index.xml new file mode 100644 index 0000000..bbb1d64 --- /dev/null +++ b/docs/tags/python3/index.xml @@ -0,0 +1,26 @@ + + + + python3 on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/python3/ + Recent content in python3 on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Sat, 02 Oct 2021 09:32:37 +0900 + + [Python] クロージャとUnboundLocalError: local variable 'x' referenced before assignment + https://blog.nsfisis.dev/posts/python-unbound-local-error/ + Sat, 02 Oct 2021 09:32:37 +0900 + + https://blog.nsfisis.dev/posts/python-unbound-local-error/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/5d733703afcb35bbf399 + 本記事は Python 3.7.6 の動作結果を元にして書かれている。 +Python でクロージャを作ろうと、次のようなコードを書いた。 +def f(): x = 0 def g(): x += 1 g() f() 関数 g から 関数 f のスコープ内で定義された変数 x を参照し、それに 1 を足そうとしている。 これを実行すると x += 1 の箇所でエラーが発生する。 + UnboundLocalError: local variable &lsquo;x&rsquo; referenced before assignment + local変数 x が代入前に参照された、とある。これは、f の x を参照するのではなく、新しく別の変数を g 内に作ってしまっているため。 前述のコードを宣言と代入を便宜上分けて書き直すと次のようになる。var を変数宣言のための構文として擬似的に利用している。 +# 注: var は正しい Python の文法ではない。上記参照のこと def f(): var x # f の local変数 &#39;x&#39; を宣言 x = 0 # x に 0 を代入 def g(): # f の内部関数 g を定義 var x # g の local変数 &#39;x&#39; を宣言 # たまたま f にも同じ名前の変数があるが、それとは別の変数 x += 1 # x に 1 を加算 (x = x + 1 の糖衣構文) # 加算する前の値を参照しようとするが、まだ代入されていないためエラー g() 当初の意図を表現するには、次のように書けばよい。 + + + + diff --git a/docs/tags/python3/page/1/index.html b/docs/tags/python3/page/1/index.html new file mode 100644 index 0000000..2e5623f --- /dev/null +++ b/docs/tags/python3/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/python3/ \ No newline at end of file diff --git a/docs/tags/ruby/index.html b/docs/tags/ruby/index.html new file mode 100644 index 0000000..e0b157c --- /dev/null +++ b/docs/tags/ruby/index.html @@ -0,0 +1,132 @@ + + + + + + + + ruby - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

[Ruby] then キーワードと case in

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/787a8cf888a304497223 + TL; DR case - in によるパターンマッチング構文でも、case - when と同じように then が使える (場合によっては使う必要がある)。 +then とは 使われることは稀だが、Ruby では then がキーワードになっている。次のように使う: +if cond then puts "Y" else puts "N" end このキーワードが現れうる場所はいくつかあり、if、unless、rescue、case 構文がそれに当たる。 上記のように、何か条件を書いた後 then を置き、式がそこで終了していることを示すマーカーとして機能する。 +# Example: if x then a end unless x then a end begin a rescue then b end case x when p then a end なぜ普段は書かなくてもよいのか 普通 Ruby のコードで then を書くことはない。なぜか。次のコードを実行してみるとわかる。...

+
+
+ +
+ +
+
+
+

[Ruby] 自身を実行している処理系の種類を判定する

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/74d7ffeeebc51b20d791 + Ruby という言語には複数の実装があるが、それらをスクリプト上からどのようにして programmatically に見分ければよいだろうか。 +Object クラスに定義されている RUBY_ENGINE という定数がこの用途に使える。 +参考: Object::RUBY_ENGINE +上記ページの例から引用する: +$ ruby-1.9.1 -ve 'p RUBY_ENGINE' ruby 1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux] "ruby" $ jruby -ve 'p RUBY_ENGINE' jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java] "jruby" それぞれの処理系がどのような値を返すかだが、stack overflow に良い質問と回答があった。 +What values for RUBY_ENGINE correspond to which Ruby implementations? より引用: + RUBY_ENGINE Implementation <undefined> MRI < 1....

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/ruby/index.xml b/docs/tags/ruby/index.xml new file mode 100644 index 0000000..53e153b --- /dev/null +++ b/docs/tags/ruby/index.xml @@ -0,0 +1,40 @@ + + + + ruby on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/ruby/ + Recent content in ruby on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Sat, 02 Oct 2021 09:38:50 +0900 + + [Ruby] then キーワードと case in + https://blog.nsfisis.dev/posts/ruby-then-keyword-and-case-in/ + Sat, 02 Oct 2021 09:38:50 +0900 + + https://blog.nsfisis.dev/posts/ruby-then-keyword-and-case-in/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/787a8cf888a304497223 + TL; DR case - in によるパターンマッチング構文でも、case - when と同じように then が使える (場合によっては使う必要がある)。 +then とは 使われることは稀だが、Ruby では then がキーワードになっている。次のように使う: +if cond then puts &#34;Y&#34; else puts &#34;N&#34; end このキーワードが現れうる場所はいくつかあり、if、unless、rescue、case 構文がそれに当たる。 上記のように、何か条件を書いた後 then を置き、式がそこで終了していることを示すマーカーとして機能する。 +# Example: if x then a end unless x then a end begin a rescue then b end case x when p then a end なぜ普段は書かなくてもよいのか 普通 Ruby のコードで then を書くことはない。なぜか。次のコードを実行してみるとわかる。 + + + + [Ruby] 自身を実行している処理系の種類を判定する + https://blog.nsfisis.dev/posts/ruby-detect-running-implementation/ + Sat, 02 Oct 2021 09:37:50 +0900 + + https://blog.nsfisis.dev/posts/ruby-detect-running-implementation/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/74d7ffeeebc51b20d791 + Ruby という言語には複数の実装があるが、それらをスクリプト上からどのようにして programmatically に見分ければよいだろうか。 +Object クラスに定義されている RUBY_ENGINE という定数がこの用途に使える。 +参考: Object::RUBY_ENGINE +上記ページの例から引用する: +$ ruby-1.9.1 -ve 'p RUBY_ENGINE' ruby 1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux] &quot;ruby&quot; $ jruby -ve 'p RUBY_ENGINE' jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java] &quot;jruby&quot; それぞれの処理系がどのような値を返すかだが、stack overflow に良い質問と回答があった。 +What values for RUBY_ENGINE correspond to which Ruby implementations? より引用: + RUBY_ENGINE Implementation &lt;undefined&gt; MRI &lt; 1. + + + + diff --git a/docs/tags/ruby/page/1/index.html b/docs/tags/ruby/page/1/index.html new file mode 100644 index 0000000..62d3407 --- /dev/null +++ b/docs/tags/ruby/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/ruby/ \ No newline at end of file diff --git a/docs/tags/ruby3/index.html b/docs/tags/ruby3/index.html new file mode 100644 index 0000000..4f30019 --- /dev/null +++ b/docs/tags/ruby3/index.html @@ -0,0 +1,113 @@ + + + + + + + + ruby3 - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

[Ruby] then キーワードと case in

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/787a8cf888a304497223 + TL; DR case - in によるパターンマッチング構文でも、case - when と同じように then が使える (場合によっては使う必要がある)。 +then とは 使われることは稀だが、Ruby では then がキーワードになっている。次のように使う: +if cond then puts "Y" else puts "N" end このキーワードが現れうる場所はいくつかあり、if、unless、rescue、case 構文がそれに当たる。 上記のように、何か条件を書いた後 then を置き、式がそこで終了していることを示すマーカーとして機能する。 +# Example: if x then a end unless x then a end begin a rescue then b end case x when p then a end なぜ普段は書かなくてもよいのか 普通 Ruby のコードで then を書くことはない。なぜか。次のコードを実行してみるとわかる。...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/ruby3/index.xml b/docs/tags/ruby3/index.xml new file mode 100644 index 0000000..a4544dd --- /dev/null +++ b/docs/tags/ruby3/index.xml @@ -0,0 +1,24 @@ + + + + ruby3 on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/ruby3/ + Recent content in ruby3 on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Sat, 02 Oct 2021 09:38:50 +0900 + + [Ruby] then キーワードと case in + https://blog.nsfisis.dev/posts/ruby-then-keyword-and-case-in/ + Sat, 02 Oct 2021 09:38:50 +0900 + + https://blog.nsfisis.dev/posts/ruby-then-keyword-and-case-in/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/787a8cf888a304497223 + TL; DR case - in によるパターンマッチング構文でも、case - when と同じように then が使える (場合によっては使う必要がある)。 +then とは 使われることは稀だが、Ruby では then がキーワードになっている。次のように使う: +if cond then puts &#34;Y&#34; else puts &#34;N&#34; end このキーワードが現れうる場所はいくつかあり、if、unless、rescue、case 構文がそれに当たる。 上記のように、何か条件を書いた後 then を置き、式がそこで終了していることを示すマーカーとして機能する。 +# Example: if x then a end unless x then a end begin a rescue then b end case x when p then a end なぜ普段は書かなくてもよいのか 普通 Ruby のコードで then を書くことはない。なぜか。次のコードを実行してみるとわかる。 + + + + diff --git a/docs/tags/ruby3/page/1/index.html b/docs/tags/ruby3/page/1/index.html new file mode 100644 index 0000000..5db85b3 --- /dev/null +++ b/docs/tags/ruby3/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/ruby3/ \ No newline at end of file diff --git a/docs/tags/rust/index.html b/docs/tags/rust/index.html new file mode 100644 index 0000000..4062db4 --- /dev/null +++ b/docs/tags/rust/index.html @@ -0,0 +1,116 @@ + + + + + + + + rust - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

Rust のプリミティブ型はどこからやって来るか

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/9a429432258bbcd6c565 + 前置き Rust において、プリミティブ型の名前は予約語でない。したがって、次のコードは合法である。 +#![allow(non_camel_case_types)] #![allow(dead_code)] struct bool; struct char; struct i8; struct i16; struct i32; struct i64; struct i128; struct isize; struct u8; struct u16; struct u32; struct u64; struct u128; struct usize; struct f32; struct f64; struct str; では、普段単に bool と書いたとき、この bool は一体どこから来ているのか。rustc のソースを追ってみた。 + 前提知識: 一般的なコンパイラの構造、用語。rustc そのものの知識は不要 (というよりも筆者自身がよく知らない) + 調査 調査に使用したソース (調査時点での最新 master) +https://github.com/rust-lang/rust/tree/511ed9f2356af365ad8affe046b3dd33f7ac3c98 +どのようにして調べるか。rustc の構造には詳しくないため、すぐに当たりをつけるのは難しい。 +大雑把な構造としては、compiler フォルダ以下に rustc_* という名前のクレートが数十個入っている。これがどうやら rustc コマンドの実装部のようだ。...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/rust/index.xml b/docs/tags/rust/index.xml new file mode 100644 index 0000000..f186c90 --- /dev/null +++ b/docs/tags/rust/index.xml @@ -0,0 +1,27 @@ + + + + rust on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/rust/ + Recent content in rust on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Sat, 02 Oct 2021 09:39:27 +0900 + + Rust のプリミティブ型はどこからやって来るか + https://blog.nsfisis.dev/posts/rust-where-are-primitive-types-from/ + Sat, 02 Oct 2021 09:39:27 +0900 + + https://blog.nsfisis.dev/posts/rust-where-are-primitive-types-from/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/9a429432258bbcd6c565 + 前置き Rust において、プリミティブ型の名前は予約語でない。したがって、次のコードは合法である。 +#![allow(non_camel_case_types)] #![allow(dead_code)] struct bool; struct char; struct i8; struct i16; struct i32; struct i64; struct i128; struct isize; struct u8; struct u16; struct u32; struct u64; struct u128; struct usize; struct f32; struct f64; struct str; では、普段単に bool と書いたとき、この bool は一体どこから来ているのか。rustc のソースを追ってみた。 + 前提知識: 一般的なコンパイラの構造、用語。rustc そのものの知識は不要 (というよりも筆者自身がよく知らない) + 調査 調査に使用したソース (調査時点での最新 master) +https://github.com/rust-lang/rust/tree/511ed9f2356af365ad8affe046b3dd33f7ac3c98 +どのようにして調べるか。rustc の構造には詳しくないため、すぐに当たりをつけるのは難しい。 +大雑把な構造としては、compiler フォルダ以下に rustc_* という名前のクレートが数十個入っている。これがどうやら rustc コマンドの実装部のようだ。 + + + + diff --git a/docs/tags/rust/page/1/index.html b/docs/tags/rust/page/1/index.html new file mode 100644 index 0000000..d041e49 --- /dev/null +++ b/docs/tags/rust/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/rust/ \ No newline at end of file diff --git a/docs/tags/vim/index.html b/docs/tags/vim/index.html new file mode 100644 index 0000000..3a92104 --- /dev/null +++ b/docs/tags/vim/index.html @@ -0,0 +1,138 @@ + + + + + + + + vim - REPL: Rest-Eat-Program Loop + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + +
+
+

Vimで選択した行の順番を入れ替える

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/4fefb361d9a693803520 + バージョン情報 :version の一部 + VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 26 2020 11:30:30) macOS version Included patches: 1-148 Huge version without GUI. + よく紹介されている手法 tac / tail tac や tail -r などの外部コマンドを ! を使って呼び出し、置き換える。 + :h v_! + tac コマンドや tail の -r オプションは環境によって利用できないことがあり、複数の環境を行き来する場合に採用しづらい +:g/^/m0 こちらは外部コマンドに頼らず、Vim の機能のみを使う。g は :global コマンドの、m は :move コマンドの略 +:global コマンドは :[range]global/{pattern}/[command] のように使い、[range] で指定された範囲の行のうち、{pattern} で指定された検索パターンにマッチする行に対して、順番に [command] で指定された Ex コマンドを呼び出す。...

+
+
+ +
+ +
+
+
+

[Vim] autocmd events の BufWrite/BufWritePre の違い

+
+
+

この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/79ab4db8564032de0b25 + TL; DR 違いはない。ただのエイリアス。 +調査記録 Vim の autocmd events には似通った名前のものがいくつかある。大抵は :help に説明があるが、この記事のタイトルにある2つを含めた以下のイベントには、その違いについて説明がない。 + BufRead/BufReadPost BufWrite/BufWritePre BufAdd/BufCreate このうち、BufAdd/BufCreate に関しては、:help BufCreate に + The BufCreate event is for historic reasons. + とあり、おそらくは BufAdd のエイリアスであろうということがわかる。他の2組も同様ではないかと予想されるが、確認のため vim と neovim のソースコードを調査した。 + ソースコードへのリンク vim (調査時点での master branch) neovim (上に同じ) + vim のソースコード 以下は、autocmd events の名前と内部で使われている整数値とのマッピングを定義している箇所である。見ての通り、上でエイリアスではないかと述べた3組には、それぞれ同じ内部値が使われている。 +https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L85-L86 +{"BufAdd", EVENT_BUFADD}, {"BufCreate", EVENT_BUFADD}, https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L95-L97 +{"BufRead", EVENT_BUFREADPOST}, {"BufReadCmd", EVENT_BUFREADCMD}, {"BufReadPost", EVENT_BUFREADPOST}, https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L103-L105...

+
+
+ +
+ +
+ + + + + + diff --git a/docs/tags/vim/index.xml b/docs/tags/vim/index.xml new file mode 100644 index 0000000..db40fc3 --- /dev/null +++ b/docs/tags/vim/index.xml @@ -0,0 +1,46 @@ + + + + vim on REPL: Rest-Eat-Program Loop + https://blog.nsfisis.dev/tags/vim/ + Recent content in vim on REPL: Rest-Eat-Program Loop + Hugo -- gohugo.io + ja-JP + Sat, 02 Oct 2021 09:37:25 +0900 + + Vimで選択した行の順番を入れ替える + https://blog.nsfisis.dev/posts/vim-swap-order-of-selected-lines/ + Sat, 02 Oct 2021 09:37:25 +0900 + + https://blog.nsfisis.dev/posts/vim-swap-order-of-selected-lines/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/4fefb361d9a693803520 + バージョン情報 :version の一部 + VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 26 2020 11:30:30) macOS version Included patches: 1-148 Huge version without GUI. + よく紹介されている手法 tac / tail tac や tail -r などの外部コマンドを ! を使って呼び出し、置き換える。 + :h v_! + tac コマンドや tail の -r オプションは環境によって利用できないことがあり、複数の環境を行き来する場合に採用しづらい +:g/^/m0 こちらは外部コマンドに頼らず、Vim の機能のみを使う。g は :global コマンドの、m は :move コマンドの略 +:global コマンドは :[range]global/{pattern}/[command] のように使い、[range] で指定された範囲の行のうち、{pattern} で指定された検索パターンにマッチする行に対して、順番に [command] で指定された Ex コマンドを呼び出す。 + + + + [Vim] autocmd events の BufWrite/BufWritePre の違い + https://blog.nsfisis.dev/posts/vim-difference-between-autocmd-bufwrite-and-bufwritepre/ + Sat, 02 Oct 2021 09:37:12 +0900 + + https://blog.nsfisis.dev/posts/vim-difference-between-autocmd-bufwrite-and-bufwritepre/ + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/79ab4db8564032de0b25 + TL; DR 違いはない。ただのエイリアス。 +調査記録 Vim の autocmd events には似通った名前のものがいくつかある。大抵は :help に説明があるが、この記事のタイトルにある2つを含めた以下のイベントには、その違いについて説明がない。 + BufRead/BufReadPost BufWrite/BufWritePre BufAdd/BufCreate このうち、BufAdd/BufCreate に関しては、:help BufCreate に + The BufCreate event is for historic reasons. + とあり、おそらくは BufAdd のエイリアスであろうということがわかる。他の2組も同様ではないかと予想されるが、確認のため vim と neovim のソースコードを調査した。 + ソースコードへのリンク vim (調査時点での master branch) neovim (上に同じ) + vim のソースコード 以下は、autocmd events の名前と内部で使われている整数値とのマッピングを定義している箇所である。見ての通り、上でエイリアスではないかと述べた3組には、それぞれ同じ内部値が使われている。 +https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L85-L86 +{&#34;BufAdd&#34;, EVENT_BUFADD}, {&#34;BufCreate&#34;, EVENT_BUFADD}, https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L95-L97 +{&#34;BufRead&#34;, EVENT_BUFREADPOST}, {&#34;BufReadCmd&#34;, EVENT_BUFREADCMD}, {&#34;BufReadPost&#34;, EVENT_BUFREADPOST}, https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L103-L105 + + + + diff --git a/docs/tags/vim/page/1/index.html b/docs/tags/vim/page/1/index.html new file mode 100644 index 0000000..3ac6e63 --- /dev/null +++ b/docs/tags/vim/page/1/index.html @@ -0,0 +1 @@ +https://blog.nsfisis.dev/tags/vim/ \ No newline at end of file -- cgit v1.2.3-70-g09d2