Blog¶
Exploring the Hare Programming Language: Part 1
这篇依旧是跟屁虫系列。
Tsoding Daily 的新视频:Hare Programming Language
我决定先自己探索一遍再看。
Including C File Over HTTPS
实现了一个有意思的效果,让 C 语言可以从互联网上 #include
头文件。
include_files_from_internet.c
#define STB_SPRINTF_IMPLEMENTATION
#include <https://raw.githubusercontent.com/nothings/stb/master/stb_sprintf.h> // <- look at this
#include <stdio.h>
int main() {
char buffer[20];
// Using functions defined by stb_sprintf.h
stbsp_sprintf(buffer, "Hello %s", "NAVI");
puts(buffer);
return 0;
}
你知道的,4202 年,Everything Over HTTPS(笑
- My TinyCC Patch: https://gist.github.com/13m0n4de/84912522cce6db31da069baf1add04f8
- My Chibicc Patch: https://gist.github.com/13m0n4de/f2b4b8e71ce6a93530cbe9e4e45cbe71