TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is this being done? Project idea up for grabs

3 pointsby macuover 10 years ago
I thought it would be cool if sites where users share algorithms had a special entry box that accepted code in a variety of languages, but only accepted constructs that could be translated succinctly into any of the supported languages.<p>Users would see sample code automatically converted and rendered in their chosen language.<p>Of course, this would not apply to code written for specific APIs, because the APIs may be unavailable or organized differently in different languages. Most Stack Overflow code samples are ineligible. Unless someone would take all this a step further, and allow code samples to make use of any APIs that could be accessed and translated among any of the supported languages.<p>Does anyone know about this being done (in a simple sense, not including API translation)? Would this be useful? – or are most modern languages similar enough that code written in any language can be understood easily by anyone (not including pointer syntax, as not everyone completely understands that)? – or is the sum state of APIs and features so fragmented between languages and competing libraries that the technical and communal feasibility of such a project is too steep?<p>Whether there&#x27;s any merit in the idea, I&#x27;ll leave up to you. To take it even one step further, I think it would be amazing if such a project could guide the convergence of languages into a common API and fundamental set of features, identical in behaviour regardless of the language code were written in. Imagine if you could write new libraries in every language simultaneously.<p>There wouldn&#x27;t be need for a single language, that&#x27;s not what I&#x27;m proposing. New languages would be developed only to provide a new way of expressing the same algorithms. Different people may find it easier or more rewarding to work in different styles. Some languages may be tuned for elegance, others for density and other particular aesthetics, like fonts.<p>You&#x27;re absolutely free to continue the thought.

2 comments

LukeFitzpatrickover 10 years ago
I&#x27;m not sure, this website looks similar to what your saying, but not exact. <a href="http://helperific.com/" rel="nofollow">http:&#x2F;&#x2F;helperific.com&#x2F;</a><p>It&#x27;s definitely a good idea.
评论 #8477237 未加载
easyonthenoseover 10 years ago
Rosetacode.com
评论 #8477251 未加载
评论 #8477243 未加载