Better HN
topnewbestaskshowjobs
Log inSign up

lnjng

3 karma · joined Apr 16, 2023 (3y ago) · 8 submissions

Submissions

comment 1y ago · link · parent

The domain name is very nice.

2.

Elements-lang – effortless geometry visualization(github.com ↗)

2 points · by lnjng · 2y ago · discuss

comment 2y ago · link · parent

this is very skibidi

comment 3y ago · link · parent

What I mean by "functions" are the ones that need to be translated into English. For example:

  印(“你好”)
This would be translated to:

  print("你好")
However, variables are not translated. If I denote 印 as a variable:

  「印」(“你好”)
This would get translated to:

  印("你好")

comment 3y ago · link · parent

Yes, that is Fibonacci. The program finds the sum of all the even Fibonacci numbers less than 4 million. As for more examples, I will certainly add in the future.

The 「」was a design choice that I made so that I can more easily code the translator to differentiate between variables and other names (e.g. functions), with the side benefit of making the code slightly more readable. Spaces I bet can certainly achieve the same level of readability, but would require more complex code. I'll think about implementing that, however.

comment 3y ago · link · parent

A project to translate programming languages into Chinese.

7.

Zhcode: Python in Chinese(github.com ↗)

5 points · by lnjng · 3y ago · 5 comments