summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_data/other_repo_list.csv6
-rw-r--r--_data/proxylist.yml3
-rw-r--r--_layouts/default.html2
-rw-r--r--_posts/2025-09-01-quine.md2
-rw-r--r--other_repo_list.md3
-rw-r--r--proxylist.md4
6 files changed, 13 insertions, 7 deletions
diff --git a/_data/other_repo_list.csv b/_data/other_repo_list.csv
index 6ebe7ed..b9c50d2 100644
--- a/_data/other_repo_list.csv
+++ b/_data/other_repo_list.csv
@@ -412,3 +412,9 @@ https://git.jbangit.com/mayx/blog
https://repo.gusdya.net/mayx/blog
https://gitea.tmartens.dev/mayx/blog
http://218.206.106.50:19901/mayx/blog
+https://g.6tm.es/mayx/blog
+https://git.slegeir.com/mayx/blog
+https://git.kimcblog.com/mayx/blog
+http://www.mygamework.com:3000/mayx/blog
+https://gogs.m14xa.ru/mayx/blog
+https://git.minaev.su/mayx/blog
diff --git a/_data/proxylist.yml b/_data/proxylist.yml
index d4eff13..41ce435 100644
--- a/_data/proxylist.yml
+++ b/_data/proxylist.yml
@@ -27,7 +27,7 @@ mirrors:
- https://mayx.dappling.network/
- https://mayx-blog.statichost.eu/
- https://mabbs-blog.static.hf.space/
-gits:
+repos:
- https://github.com/Mabbs/mabbs.github.io
- https://gitlab.com/mayx/mayx.gitlab.io
- https://framagit.org/mayx/mayx.frama.io
@@ -45,7 +45,6 @@ gits:
- https://cnb.cool/unmayx/mayx
- https://atomgit.com/mayx/blog
- https://sourceforge.net/projects/mayx/
-
static:
- https://mayx.nekoweb.org/
- https://mayx.neocities.org/
diff --git a/_layouts/default.html b/_layouts/default.html
index aec367a..2e13ed9 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -9,7 +9,7 @@ layout: xslt_container
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% seo %}
- {% unless site.github %}<link rel="canonical" href="https://mabbs.github.io{{ page.url }}"/>{% endunless %}
+ {% unless site.github %}<link rel="canonical" href="https://mabbs.github.io{{ page.url }}" />{% endunless %}
{% feed_meta %}
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}(RSS)" href="{{ "/rss.xml" | absolute_url }}" />
<link rel="alternate" type="application/json" title="{{ site.title }}(JSON Feed)" href="{{ "/feed.json" | absolute_url }}" />
diff --git a/_posts/2025-09-01-quine.md b/_posts/2025-09-01-quine.md
index 1b39c16..6201f64 100644
--- a/_posts/2025-09-01-quine.md
+++ b/_posts/2025-09-01-quine.md
@@ -86,7 +86,7 @@ Hello, world!
```
作为脚本执行的结果就是原样输出这段内容,不过把内容当作代码算不算作弊呢……如果看作是cat的输入显然是作弊,但如果是当作源代码的话应该就不算了吧😋……但这就不是能写出逻辑的语言了。所以说Quine的趣味并不在“能不能实现”,而在于如何在限制条件下实现。正是因为大多数语言不会直接“自我输出”,才会觉得那些精巧的Quine程序如此有意思。
## Quine Relay的探索
- 还有一个更加复杂的Quine变种是“Quine接力”(Quine Relay),即一个程序输出另一个程序的源代码,另一个程序又输出下一个程序的源代码,最后回到原始程序,就和之前所说的的嵌套循环ZIP Quine有点类似。最著名的例子是[Yusuke Endoh](https://github.com/mame)(这位还是[IOCCC](https://www.ioccc.org/)的冠军之一)创建的[quine-relay](https://github.com/mame/quine-relay)项目,它包含了128种编程语言的循环。
+ 还有一个更加复杂的Quine变种是“Quine接力”(Quine Relay),即一个程序输出另一个程序的源代码,另一个程序又输出下一个程序的源代码,最后回到原始程序,就和之前所说的嵌套循环ZIP Quine有点类似。最著名的例子是[Yusuke Endoh](https://github.com/mame)(这位还是[IOCCC](https://www.ioccc.org/)的冠军之一)创建的[quine-relay](https://github.com/mame/quine-relay)项目,它包含了128种编程语言的循环。
这种程序写起来会更复杂一些,不过原理都差不多,通常除了当前运行的部分是可执行代码外,其他的代码都需要以额外包含的数据形式(如字符串)存储在变量中。如果想自己做个类似简单的Quine Relay,除了去看[维基百科](https://en.wikipedia.org/wiki/Quine_(computing)#Ouroboros_programs)之外,前段时间我还看到过一个不错的[文章](https://blog.mistivia.com/posts/2024-09-21-quine/),里面就讲了如何用“笨办法”编写Quine和Quine Relay,通过把变量中的内容编码为16进制来避免不同语言可能存在的特殊字符转译问题,思路不错,对于理解如何编写这类程序的问题很有帮助。当然这只是个**简单**的方案,仅适用于一些常规的编程语言,像上面那个[quine-relay](https://github.com/mame/quine-relay)项目中甚至还包含Brainfuck之类的esolang,这种估计得要想办法让相对高级一些的语言通过“生成”的方式得到输出下一种代码的代码,而不是简单的赋值了,所以只靠这点知识想去完全理解大佬的作品还是想多了😆。
# 感想
diff --git a/other_repo_list.md b/other_repo_list.md
index 264fd46..e8036eb 100644
--- a/other_repo_list.md
+++ b/other_repo_list.md
@@ -4,5 +4,6 @@ title: 其他Git仓库镜像列表
---
# 其他Git仓库镜像列表
-{% for item in site.data.other_repo_list.repo_url %}- <{{ item }}>
+目前已有的社区/个人类型实例托管Git仓库共有{{ site.data.other_repo_list | size }}个:
+{% for item in site.data.other_repo_list %}- <{{ item.repo_url }}>
{% endfor %} \ No newline at end of file
diff --git a/proxylist.md b/proxylist.md
index 273e892..ab397e0 100644
--- a/proxylist.md
+++ b/proxylist.md
@@ -18,8 +18,8 @@ title: 代理列表
{% for item in site.data.proxylist.mirrors %}- <{{ item }}> <img src="{{ item }}images/online.svg" style="width: 1.2em; vertical-align: text-bottom;" onerror="this.outerHTML='ⓧ'"/>
{% endfor %}
-# Git列表
-{% for item in site.data.proxylist.gits %}- <{{ item }}>
+# Git仓库列表
+{% for item in site.data.proxylist.repos %}- <{{ item }}>
{% endfor %}
其他更多社区/个人类型实例托管的Git仓库列表参见[这里](/other_repo_list.html)