News for hackers. Stuff that matters.
Re:Rost – Write rust code in German by rnestler on Tuesday November 09, 2021 @08:43AM (#29161594)
Die Ironie wenn das LIESMICH in Englisch ist.

The irony when the README is in English.

Re:Rost – Write rust code in German by bierjunge on Thursday November 11, 2021 @06:07AM (#29186713)
The complete disrespect for capitalization rules is even more ironic.
Re:Rost – Write rust code in German by bryanrasmussen on Wednesday November 10, 2021 @04:03PM (#29180741)
This makes me wonder - are there programming languages that are naturally suited to be written in some particular human language?

Off the top of my head:

Perl should be written in Welsh.

Lisp should probably be written in Greek.

not sure about others, but personally -

Cobol in German.

Re:Rost – Write rust code in German by arh68 on Wednesday November 10, 2021 @06:22PM (#29182330)
See also Perligata. Not saying Welsh isn't better. I'm neither a Perl nor Latin expert, so I just trust em when they say

> Latin is a surprisingly good fit for Perl. The rich case structure provides an abundance of plausible mappings for Perl data types and subroutine calls...

[1] https://users.monash.edu/~damian/papers/HTML/Perligata.html

Re:Rost – Write rust code in German by woodruffw on Wednesday November 10, 2021 @04:19PM (#29180986)
I'm not sure if I agree with it, but you could make an argument that programming languages are colored by the L1 languages of their initial designers. So you might see a bit of Japanese in Ruby, and a bit of Brazilian Portuguese in Lua. But programmers in general tend to have excellent English and are inspired overwhelmingly by languages written by English speakers, so it's difficult to evaluate.
Re:Rost – Write rust code in German by bryanrasmussen on Wednesday November 10, 2021 @04:51PM (#29181417)
I guess Ruby's compatibility errors for incompatible encodings comes from familiarity with Japanese encodings which presents problems most American programmers would be unfamiliar with.
Re:Rost – Write rust code in German by mkl95 on Wednesday November 10, 2021 @04:18PM (#29180957)
Python should be written in English.
Re:Rost – Write rust code in German by tyingq on Wednesday November 10, 2021 @04:08PM (#29180818)
I would have thought Java a better match for German and the long compound words.
Re:Rost – Write rust code in German by smoldesu on Wednesday November 10, 2021 @04:40PM (#29181275)
Germans and Powershell: a match made in Himmel
Re:Rost – Write rust code in German by VWWHFSfQ on Wednesday November 10, 2021 @04:22PM (#29181020)
I love this kind of stuff! It'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 "lie" to you about your code. The most recent example of this in Rust [1].

> 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.

The easy reaction is "Why are we allowing non-ASCII characters at all? Just so we can put emojis in our variable names?"

This project is a good example of why we do it. But as with everything, we need to be careful about it.

[1] https://blog.rust-lang.org/2021/11/01/cve-2021-42574.html

Re:Rost – Write rust code in German by jml7c5 on Wednesday November 10, 2021 @06:13PM (#29182256)
On a related note, I've always wondered: when code is written with Chinese ideographs in identifiers (variable names etc), is it typically more compact/narrow? I always struggle with variable naming because of the tradeoff between descriptiveness and length; do ideographs help?
Re:Rost – Write rust code in German by loukrazy on Wednesday November 10, 2021 @07:04PM (#29182686)
Could we rewrite German in Rust to make it faster?
Re:Rost – Write rust code in German by Bayart on Wednesday November 10, 2021 @04:34PM (#29181192)
Seems like the ideal language to write a new, European and sovereign implementation of Marcel, the French docker.
Re:Rost – Write rust code in German by _the_inflator on Wednesday November 10, 2021 @04:12PM (#29180880)
I enjoyed the code walk-through. :D
Re:Rost – Write rust code in German by moffkalast on Wednesday November 10, 2021 @04:04PM (#29180762)
Total verrückt
Re:Rost – Write rust code in German by d--b on Wednesday November 10, 2021 @03:51PM (#29180575)
Gotta love Europe!