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.

Rost – Write rust code in German

55 pointsby michidkover 3 years ago

10 comments

rnestlerover 3 years ago
Die Ironie wenn das LIESMICH in Englisch ist.<p>The irony when the README is in English.
评论 #29186713 未加载
bryanrasmussenover 3 years ago
This makes me wonder - are there programming languages that are naturally suited to be written in some particular human language?<p>Off the top of my head:<p>Perl should be written in Welsh.<p>Lisp should probably be written in Greek.<p>not sure about others, but personally -<p>Cobol in German.
评论 #29182330 未加载
评论 #29180986 未加载
评论 #29180957 未加载
tyingqover 3 years ago
I would have thought Java a better match for German and the long compound words.
评论 #29181275 未加载
VWWHFSfQover 3 years ago
I love this kind of stuff! It&#x27;s important for source code to be able to handle non-ASCII characters but we need to be mindful of the different ways that an editor will &quot;lie&quot; to you about your code. The most recent example of this in Rust [1].<p>&gt; As part of their research, Nicholas Boucher and Ross Anderson also uncovered a similar security issue identified as CVE-2021-42694 involving homoglyphs inside identifiers. Rust already includes mitigations for that attack since Rust 1.53.0. Rust 1.0.0 through Rust 1.52.1 is not affected due to the lack of support for non-ASCII identifiers in those releases.<p>The easy reaction is &quot;Why are we allowing non-ASCII characters at all? Just so we can put emojis in our variable names?&quot;<p>This project is a good example of why we do it. But as with everything, we need to be careful about it.<p>[1] <a href="https:&#x2F;&#x2F;blog.rust-lang.org&#x2F;2021&#x2F;11&#x2F;01&#x2F;cve-2021-42574.html" rel="nofollow">https:&#x2F;&#x2F;blog.rust-lang.org&#x2F;2021&#x2F;11&#x2F;01&#x2F;cve-2021-42574.html</a>
jml7c5over 3 years ago
On a related note, I&#x27;ve always wondered: when code is written with Chinese ideographs in identifiers (variable names etc), is it typically more compact&#x2F;narrow? I always struggle with variable naming because of the tradeoff between descriptiveness and length; do ideographs help?
loukrazyover 3 years ago
Could we rewrite German in Rust to make it faster?
Bayartover 3 years ago
Seems like the ideal language to write a new, European and sovereign implementation of Marcel, the French docker.
_the_inflatorover 3 years ago
I enjoyed the code walk-through. :D
moffkalastover 3 years ago
Total verrückt
d--bover 3 years ago
Gotta love Europe!