weiwenhao (@nature_lang) header
weiwenhao (@nature_lang) profile picture

I will work hard to complete the Nature programming language

Joined April 2018
Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)Photo by weiwenhao (@nature_lang)
Upcoming better c mode!
1
4
50
Some people criticize the Nature programming language for its confusing type declarations, but I believe its syntax design is well-considered. Today I discovered that C++23 has finally adopted a declaration strategy similar to Nature's, which is extremely friendly for lambdas and closures.
1
1
41
Compared to a space, a colon offers better readability. Compared to a right arrow, a colon occupies one fewer token.
1
33
One day, people realized that the position of a function's return type is merely a position—it has nothing to do with whether a programming language uses type prefix or postfix!
1
35
By using co.yield, w.run can run on the same thread as the coroutine scheduler and collaborate with it. Running Webview on coroutines isn't straightforward. Its UI relies on WebKit, which must run on the t0 system thread + system stack. I carved out half the system stack for coroutines and the other half for coroutine scheduling 😂 There's also a hidden issue requiring GC handling to correctly scan the mixed C and native stack.
1
49
A coder tried to bind nature to the webview, which worked successfully. But in fact w.run blocks the entire coroutine scheduler from running. I'll try to fix this this weekend
1
40
What are the best practices for implementing custom memory allocators for GC type programming languages, Arena How about it?
35
Nature vs Golang: Performance benchmarks
1
2
7
485
By comparing code side-by-side with Rust, you'll instantly grasp and master how the Nature programming language handles errors.
1
3
178
Using the programming language I developed to connect to the MySQL database, the nature programming language now has more application scenarios.
2
87
Let me show you an example of an http service in the nature programming language.
5
96
Nature compiler now compiles to the linux/riscv64 architecture.
8
95
Processing json in the nature programming language, the json standard library is based on a reflection library implementation.
1
5
104
weiwenhao retweeted
You guys do realize how schizophrenic "immutable variable" sounds like?
159
228
38
4,545
174,267
It's surprising that mcp doesn't have an official sdk for golang, which in my opinion is very well suited for writing mcp-server and can be easily compiled and deployed without having to think about python/js environments. This is an example of an implementation using mcp-go. An mcp project can contain a set of tools for ai to call.
1
3
603