HN user

chai2010

40 karma

gopher

Posts3
Comments11
View on HN
[dead] 2 years ago

凹语言还在开发状态的 v0.17.0 版本针对后端输出的 wat 文件做了体积优化。以递归版本的 Fib 为例,输出的体积是 Go 的十分之一,执行速度快一倍。详细请参考凹语言主库下的 tests/bench/fib 目录文档。

Very good article, like it.

Chinese characters are a type of pictographs that have some characteristics of QR codes. In fact, there is indeed a word retrieval method called four-corner number, which quickly maps Chinese character graphics to four numbers through some simple formulas, which is especially suitable for one-way encoding and retrieval. For example, the four-corner number of "龍" is coded as 0121, and the code of "兲" is 1080 (please refer to https://github.com/chai2010/im4corner).

In addition, Chinese characters are actually more important as hieroglyphic shapes. For example, we have a "凹语言" (Wa-lang https://github.com/wa-lang/wa/ ) designed for WebAssembly (WASM for short, WebAssembly => WASM => Wa), in which the Chinese characters "凹" and WASM The logo is very similar, and there was even a pronunciation of "wa" in the past.

After the popularization of computers, the function input method has been greatly improved, but there is still a lot of input resistance. For example, in programming, frequent switching between Chinese character names and English keywords brings a loss of input efficiency. As a programmer, I hope Chinese users can continue to pay attention to and improve these in the future.

The Wa-lang is a general statically typed compiled language designed for the WebAssembly platform. It is a project initiated by a group of programming language enthusiasts in China, and its design focuses on reducing the mental burden on users.

In the Wa community, you can speak English and we can understand English. Likewise, others must have the right to speak Chinese. This is fair to both Chinese and English users.

I agree with you: since my English is not good either, I am also reducing the dependence on English in my programming work.

For the Wa language, I hope to have a lightweight WASM Native language: no GC, no Goroutine. Also, I hope functions with "Chinese" names can be exported, which is forbidden in Go.