User loginNavigation |
archivesthe Chinese natual languageYears ago, I once felt that there are some commonness between Chinese and Lisp. They both lack syntax, but expressing the same idea will need less words/time/space than other languages. What's more, they are both old languages but still used today. Today, I just read an article (in Chinese) saying that "Thinking in Chinese is faster than that in English". The main argument is that Chinese has more voices than English. Chinese has 21 consonants, 35 vowels and 4 scales/tunes (音调, 四声 in Chinese but no counterpoint in English), so there can be totally 2900 voices, although only 1200 in use. English only has 20 consonants and 20 vowels, so there are only 400 voices at most (not to mention some unused voices). The time needed to think/pronounce one voice is relatively constant, which means that thinking in Chinese other than in English is somewhat like using a 64bit CPU other than a 32bit one. The author also mentions the example of 'pork,mutton,beef, and donkey meat' and the corresponding words in Chinese. Since I have read several posters here about natual language, I post it here for more discussion. Coroutines in LuaLink: The Lua folks discuss their implementation of coroutines, using Create, Resume and Yield methods.
The main difference with typical thread implementations is that (a). the caller is suspended until completion and (b). a coroutine can return values like a function call. I suppose I'd summarize it as functions that retain state between calls. reading SICP for fun and profitAdrian Colyer, the lead of the AspectJ project, discusses the beauty of Lisp and SICP in his latest blog post. So at the end of the day, this is the thing that really impresses me about Lisp (and about the approach to teaching programming taken in the book). The language is so simple, and yet constructed in such an elegant way that it just doesn't get in your way - whatever abstraction you need to build, Lisp lets you do it in a very direct manner. Java just feels plain clunky when you put it alongside :- lacking in power, ease of expression, and beauty. Alice Through the Looking GlassLink: Alice is an extension to ML to support Open Programming, described as ML meets Oz. Alice Version 1.0 has been released.
(via Chris Double) |
Browse archivesActive forum topics |
Recent comments
22 weeks 16 hours ago
22 weeks 20 hours ago
22 weeks 20 hours ago
44 weeks 2 days ago
48 weeks 3 days ago
50 weeks 1 day ago
50 weeks 1 day ago
1 year 5 days ago
1 year 5 weeks ago
1 year 5 weeks ago