lnjng
Re:Speedier.watch: A study on the impacts of 2x video watching
on Monday May 12, 2025 @02:18PM (#43966007)
The domain name is very nice.
Re:Show HN: Skibidi-Lang a Branflakes version adapted to the modern ge...
on Tuesday August 13, 2024 @11:11PM (#41242188)
this is very skibidi
Re:Zhcode: Python in Chinese
on Tuesday April 18, 2023 @12:42AM (#35610034)
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: 印("你好")
Re:Zhcode: Python in Chinese
on Monday April 17, 2023 @06:56PM (#35607750)
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.
Zhcode: Python in Chinese
Re:Zhcode: Python in Chinese
on Monday April 17, 2023 @03:45PM (#35605586)
A project to translate programming languages into Chinese.