Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hualaka
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
hualaka
1y ago
When debugging complex projects, the C language is more flexible and convenient to view data in memory.
2.
▲
by
hualaka
1y ago
custom backend
3.
▲
by
hualaka
1y ago
How efficient is neural rendering at this stage for game rendering?
4.
▲
by
hualaka
1y ago
Calling C code can solve most performance and ecosystem issues. Nature natively implements the system ABI for various operating systems and CPU architectures, enabling C code libraries to be called at extremely low cost. In Go, a separate t
5.
▲
by
hualaka
1y ago
In my view, a compiler is a text transformation tool that converts high-level descriptive text languages into the format required by the target machine. Target machines typically have two specifications: operating system specifications and
6.
▲
by
hualaka
1y ago
“Tao follows nature” (道法自然) is a phrase from classical Chinese philosophy, and it is the design philosophy behind the nature programming language. It can be understood as being natural and intuitive. I hope that nature can build upon Go
7.
▲
by
hualaka
1y ago
? Commonly used for nullable types. The tup is an interesting question. I often think about tup(int, bool, string) vs (int, bool, string). I convince myself that there might be a better choice. `var t = (1 as i8, true, false)` Use automati
8.
▲
by
hualaka
1y ago
I really enjoy thinking about such issues. I actually spend a lot of time considering whether to use type prefixes or suffixes, [] or <>, and ultimately settled on “<>”. In my opinion, the change from `<>` to `[]` is a min
9.
▲
by
hualaka
1y ago
That's a very good point, and I agree with you. I will adjust the relevant wording and use words such as “system” more carefully.
10.
▲
by
hualaka
1y ago
This is the Natural Selection interstellar spacecraft from the Three-Body Problem novel. In fact, the disc-shaped part is the head. I tried to draw this logo myself, but my drawing turned out rather ugly. The lines of the Millennium Falcon
11.
▲
by
hualaka
1y ago
Yes, public, I won't add pub syntax. But maybe there will be a label provided for the editor to recognize, but this won't be the main route. #local fn test() { }
12.
▲
by
hualaka
1y ago
Thank you for finding the discussion from two years ago. The usable version took me another two years to complete. Focusing on implementation caused me to neglect collaboration and promotion, and I fell into many misconceptions.
13.
▲
by
hualaka
1y ago
nature will support more major platforms and wasm. also linux_riscv64 is in the process of being supported and I've done most of the work.
14.
▲
by
hualaka
1y ago
You're right, but nature doesn't seem to be a good name, it gets a lot of criticism because its not search engine friendly. Maybe I should change the name before nature becomes popular.
15.
▲
by
hualaka
1y ago
vlang is a Golang-like programming language. I will use vlang as an example, v has the same syntax as golang and is derived from it. But otherwise, v is moving closer to rust, with immutability, bounds checking, and so on. Here's a dis
16.
▲
by
hualaka
1y ago
thanks, I'll fix it
17.
▲
by
hualaka
1y ago
Plan to add wasm backend
18.
▲
by
hualaka
1y ago
I will consider the issue.
19.
▲
by
hualaka
1y ago
This is an advertisement, and I usually don't put “no LLVM” in the title or use it as a promotional feature. I posted this project on HackNews a few times, but it quickly sank to the bottom. Maybe “no LLVM” might pique some people'
20.
▲
by
hualaka
1y ago
I am more in favor of flat code organization, but I probably won't use C to implement a compiler again, as it involved a lot of unnecessary work. Zig or Rust would be better choices.
21.
▲
by
hualaka
1y ago
1. nature can add methods to built-in types, example fn int.to_string() { } I haven't considered whether union types can add methods, so I tested it, and it seems to be possible, but this may cause some unexpected behavior, so maybe I
22.
▲
by
hualaka
1y ago
I think you have some stereotypes about GC. In fact, current GC technology only requires a very short STW. Of course, I agree with your opinion, so this is not the final form of nature. I will find a better technology to assist GC.
23.
▲
by
hualaka
1y ago
I use Go for IoT devices in my work, such as routers and TV boxes, which run on RISC-V/MIPS/ARM32/ARM64, etc. I appreciate its portability; even on devices with only 512 MB of memory, I don't have to worry about memory o
24.
▲
by
hualaka
1y ago
Faster compilation speeds, more customized error handling, and convenient cross-compilation. I believe this is a promising direction for the future development of programming languages. Zig has already made significant progress in this area
25.
▲
by
hualaka
1y ago
Without using Go's asm, directly translate it into assembly code for the target system, then link and cross-compile it.
26.
▲
by
hualaka
1y ago
It would be more interesting if we could count whether the left or right hand pressed the space bar, but there is only one space bar, so this is not possible. I think alternating between both hands to press the space bar is the most balance
27.
▲
by
hualaka
1y ago
I am the author of the nature programming language. You can find code examples and a playground to try it out on the official website at https://nature-lang.org I would appreciate your feedback.
28.
▲
Show HN: A new programming language inspired by Go, no LLVM
(github.com)
82 points
by
hualaka
1y ago
|
90 comments
29.
▲
by
hualaka
1y ago
I didn't even realize I had these bad habits.
30.
▲
by
hualaka
3y ago
I've already watch, this grammar is pretty good.
More ›