TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Programming in non-English languages

31 点作者 theSage将近 10 年前

18 条评论

czechdeveloper将近 10 年前
I&#x27;m not native English speaker, but I wish people would just accept that English is Latin of computers.<p>I still have to come to servers installed in German or French and guess by memory where stuff are.
评论 #9677666 未加载
评论 #9677977 未加载
评论 #9677685 未加载
评论 #9677737 未加载
zogwarg将近 10 年前
Fundamentally I think that the effort is flawed. Languages don&#x27;t really map to each other on a word to word basis.<p>At school in France they introduced algorithms with a form of french pseudo-C which was very frustrating, because it felt stilted and unnatural.<p>Expressing the same algorithms in natural french would already be a much better exercise, because you don&#x27;t have to force yourself through a fake translated language. Ultimately I think this would be a much better first approach to programming, (with more focus on design than implementation).<p>In the end if you really have to implement code, you will have to learn the english version anyway if you want access to documentation and outside help.
thomasfoster96将近 10 年前
Pfft - Hasn&#x27;t PHP had error messages in languages other than English for years?<p>---<p>Seriously though, I&#x27;m a bit surprised that people are so dismissive here of the need for having programming languages that use function&#x2F;method&#x2F;statement names that aren&#x27;t in English.<p>Learning a foreign language <i>and</i> a programming language is something that&#x27;s pretty incredible as far as I&#x27;m concerned. I&#x27;m pretty lucky that English is my first language and that function, method and statement names are pretty descriptive given they are almost always written in my native language. If I had to spend a lot of time trying to memorise another language whilst also learning a programing language, I highly doubt I would have been able to do even 20% of what I can do today.<p>I mean, nobody speaks any language remotely like assembly - higher level languages exist because they&#x27;re easier to understand and use, at least in part because they use a lot of English word to describe what&#x27;s going on. I can&#x27;t see any problem with more work being done on making more tools (transpilers perhaps?) for people who speak languages other than English. Heck, we&#x27;ve done some pretty awesome things transpiling to&#x2F;from JavaScript lately, why not start transpiling from a variant of JavaScript that uses Arabic or Mandarin to the English variant of JavaScript?
gus_massa将近 10 年前
A few examples (perhaps HelloWord and Fibonacci) in other languages would be nice. From an informal statistic I propose German and French. (and I&#x27;d like to add Spanish, because I speak Spanish.)
评论 #9677399 未加载
ifdefdebug将近 10 年前
Well it&#x27;s not as easy as some of the posts here suggest, like all you need from English is &quot;if&quot;, &quot;for&quot;, &quot;while&quot; and little more. Don&#x27;t forget about the libraries coming with each language. You&#x27;ll also have to map &quot;memcpy&quot; to &quot;memory&quot; and &quot;copy&quot; and know those words, or understand what a &quot;TreeViewItemCollection&quot; is for, just to give two examples out of tens of thousands.<p>Said that, I think trying to localize programming just isn&#x27;t going to work. If you want to program, you&#x27;d better get along with the English language.
Buetol将近 10 年前
Nice, just one suggestion:<p>The languages are just dictionnaries: You should store them in an human-readable language instead of pickle. So it&#x27;s easier for people to correct errors (json, yaml,..). For example, `FR_example.py` have &quot;else&quot; instead of &quot;sinon&quot; but to correct it I would have to open the pickle file and modify it in my terminal.
alehander42将近 10 年前
Hey, that looks awesome! The implementation approach is really simple and that&#x27;s cool for a prototype, however in order to work well for libraries and the standard library, we need to use the ast. If you want, I can make a pull request with an ast-based translation(I have a lot of experience playing with python&#x27;s ast) ?
评论 #9678000 未加载
cmenge将近 10 年前
Attaining a level of proficiency in &quot;English&quot; required for programming (keywors, mostly) is incredibly simple, if required at all. Just accept the fact that &#x27;for&#x27; loops in some way. In mathematics, you will also have to learn what the uppercase sigma means, hell, they even use the greek alphabet!
patrickg将近 10 年前
My database publishing system&#x27;s programming language is both English and German. While programmers usually prefer the English interface, a rather large percentage of my users prefer the German one. (en: <a href="https:&#x2F;&#x2F;speedata.github.io&#x2F;publisher&#x2F;manual&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;speedata.github.io&#x2F;publisher&#x2F;manual&#x2F;index.html</a>, de: <a href="https:&#x2F;&#x2F;speedata.github.io&#x2F;publisher&#x2F;manual&#x2F;index-de.html" rel="nofollow">https:&#x2F;&#x2F;speedata.github.io&#x2F;publisher&#x2F;manual&#x2F;index-de.html</a>)<p>There is also for example ConTeXt (<a href="http:&#x2F;&#x2F;wiki.contextgarden.net" rel="nofollow">http:&#x2F;&#x2F;wiki.contextgarden.net</a>) - a typesetting language similar to LaTeX, which supports commands in English, Dutch and German.
j-pb将近 10 年前
I don&#x27;t really see the point of adapting the programming language to the learner, which seems to be the smallest language hurdle, when they&#x27;ll have to ask for help in english on forums, in IRC, or on SO, anyways.
评论 #9677766 未加载
评论 #9677887 未加载
sdrothrock将近 10 年前
Related: <a href="http:&#x2F;&#x2F;www.wikiwand.com&#x2F;en&#x2F;Non-English-based_programming_languages" rel="nofollow">http:&#x2F;&#x2F;www.wikiwand.com&#x2F;en&#x2F;Non-English-based_programming_lan...</a><p>I was actually really fascinated by the idea of a Chinese C++ in all Chinese: <a href="http:&#x2F;&#x2F;baike.baidu.com&#x2F;view&#x2F;1718420.htm" rel="nofollow">http:&#x2F;&#x2F;baike.baidu.com&#x2F;view&#x2F;1718420.htm</a>
pjc50将近 10 年前
This is a good idea. There are tiny differences even between en-GB and en-US. &#x27;Colour&#x27; is the most common one, with documentation calling &#x27;#&#x27; the &quot;pound symbol&quot; instead of £. The first programming languages I encountered were on the Sinclair Spectrum and BBC Micro, which being British used the British spelling of COLOUR in BASIC.
devnonymous将近 10 年前
This is pretty neat. I&#x27;ve not taken a close look at the implementation but I&#x27;ll definitely do that (if it isn&#x27;t a whole lot of effort could you please describe&#x2F;document the design and approach taken ?)<p>I&#x27;ve had thoughts about solving this problem previously but never acted on it. My thoughts on this however were along the lines of providing the ability to re-define the keywords and builtins as part of the interpreter itself in such a way that even the prompt could accept non-english input.<p>Thinking about this is natural when one is Indian[1] and ends up working with some really talented people who have weak English skills simply because their primary education was conducted entirely in a non-English medium.<p>A lot of words used to express programming ideas are difficult for non-native English speakers to remember even if the ideas themselves are not (think abstraction, encapsulation, introspection, reentrant, idempotent ...etc) and the effort required to remember and use them correctly when communicating with other devs is higher (IMHO) for non-native English developers. Of course this is non an India specific issue, and of course English is the lingua franca of technology but that shouldn&#x27;t be the barrier to entry for learning programming.<p>kudos on the effort once again !<p>[1] one country, and a multitude (22 according to <a href="http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;List_of_languages_by_number_of_native_speakers_in_India" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;List_of_languages_by_number_of_...</a> ) of &#x27;official languages&#x27;
shash7将近 10 年前
As a Hindi and Gujarati speaker, the use of word &#x27;chapp&#x27; for print is highly amusing.
评论 #9677810 未加载
hayksaakian将近 10 年前
The language itself isn&#x27;t really the problem its the documentation and public resources surrounding it.<p>Having learned some japanese, I could see myself learning programming just the same so long as stack overflow and the various docs websites were English.
emersonrsantos将近 10 年前
English will always be a barrier to non-speakers when it comes to computing. This is great.<p>On a side note: is there any idiom-agnostic programming language? I only know that APL is.
评论 #9677706 未加载
mrfoo-de将近 10 年前
Nice idea - but I prefer english, even it is not my mother tounge.<p>But cool project - may be I can adapt it to another thing. :)
nissarup将近 10 年前
Yay! Python in parseltongue!
评论 #9677816 未加载