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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

RosettaGit – Solutions to tasks in more than 700 programming languages

4 点作者 adius超过 5 年前

1 comment

ksaj超过 5 年前
One thing that complicates projects like Rosetta Code, and RosettaGit by extension, is that things get easily muddled when taking into account the many ways a single language and platform can do the same thing. Rosetta Code suffers from it a lot, which is why I&#x27;m mentioning it here. Given the purpose of Rosetta* I&#x27;m surprised that there hasn&#x27;t been a visible effort in containing and organizing these different methods in the same way some of the code examples show recursive vs iterative methods, etc.<p>By way of example (which you may like to add to the project, since you do have a section for it already), here are 6 Hello World samples I created in ARM assembler on Raspberry Pi.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ksaj&#x2F;helloworld" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ksaj&#x2F;helloworld</a><p>I purposely kept them all as similar as possible, but each one uses a completely different method for printing Hello World. Basically, writes() vs puts() vs fwrite() vs putchar() vs printf() vs bare metal (no use of standard library or otherwise). It&#x27;s pretty easy to see the pros and cons of each method, and the different requirements of each method, by reading the code. Of course C programmers have heard of each of these methods, but these samples show what&#x27;s actually happening under the hood.