News for hackers. Stuff that matters.
Re:Rust Foundation: Hello, World by anonyfox on Monday February 08, 2021 @04:08PM (#26070142)
I‘d love to see Apple joining. They already have the hand on LLVM and support things indirectly, but...

There is no reason that serious things written in Rust can‘t coexist with app-y stuff in swift.

Seriously, I think we all would benefit enormously from some consolidation, especially on such a great foundation like Rust. Think investments like: compiler-optimizations like V8, portability like C, enterprise grade tooling like Java, productive libraries like Ruby, datascience libs like python, ... it would be great to have all of this in one coherent package.

Why? Instead of glueing together brittle and fragile things where the moving parts break within weeks, reinventing the wheel, we could finally focus on the actual things to build. Bonuspoints for Rust: every other techstack can leverage/profit directly, like when binding C stuff.

Everyone still can innovate like the past decades, languages and libs will be re-explored and reinvented and so on, but, really, a solid baseline would be a dream

Re:Rust Foundation: Hello, World by zepto on Monday February 08, 2021 @11:58PM (#26074054)
Pretty much everything you listed is stuff Apple is already doing with Swift, and although Rust is awesome for lower level stuff, and stretches up quite well, Swift really does cover more of the stack of abstraction.

That said, I’d say Apple having Swift is part of the reason everyone else is getting involved with Rust.

Rust is credible competition for Swift where nothing else is.

Re:Rust Foundation: Hello, World by reader_mode on Wednesday February 10, 2021 @07:44AM (#26088373)
I have not used Swift much but the use cases overlap more with C# than Rust IMO.
Re:Rust Foundation: Hello, World by girvo on Wednesday February 10, 2021 @08:14AM (#26088626)
Having used Swift pretty extensively, I’d say it overlaps both.
Re:Rust Foundation: Hello, World by whyever on Wednesday February 10, 2021 @04:33PM (#26095121)
How does it overlap with Rust where it does not with C#?
Re:Rust Foundation: Hello, World by afiori on Tuesday February 09, 2021 @10:51AM (#26078866)
Hi, as someone interested in typography I am interested in how and why you wrote a ‘ (U+2018 LEFT SINGLE QUOTATION MARK) instead of a ' (U+0027 APOSTROPHE) or a ` (U+0060 GRAVE ACCENT)? Is it used by a language on your system? is it in your keyboard? Or maybe a conscious typographical statement of proper style? I wonder :)

Personally I have had my dose of fighting with using multiple languages with incompatible keyboards layouts, I would like to hear your story (even if it has nothing to do with keyboard layouts)

Re:Rust Foundation: Hello, World by heraclius on Tuesday February 09, 2021 @12:23PM (#26080131)
I find a compose key (see Wikipedia) quite helpful for diacritics, em dashes, &c.—once you get the hang of it, it’s really quite fast and intuitive. One can even add new combinations.
Re:Rust Foundation: Hello, World by afiori on Tuesday February 09, 2021 @01:10PM (#26080692)
I recently left the linux world and with it the compose key... the most similar (native) thing windows offers are dead keys which I find deeply abhorring.

I settled on switching keyboard layouts with Windows+space.

I was more curious about the why than the how in a sense.

Re:Rust Foundation: Hello, World by htgb on Wednesday February 10, 2021 @07:55AM (#26088466)
I use Windows, and haven't used Linux for years. It's probably just a matter of time before I go back, and when I do I know I'll love the compose key.

However, the workaround I use on Windows is Alt key combinations: I memorized the dozen or so patterns [1] I use the most. For example, `Alt + 0160` for non-breaking space, `Alt + 0150` for en dash, `Alt + 26` (and a few more) for arrows and `Alt + 0133` for ellipsis. It must seem crazy when you're used to the compose key.

I haven't heard of dead keys as a workaround. How does it compare? (Wow, this is getting very far from the original topic…)

[1] An important key to memorizing them is to see them as patterns on the numpad, rather than a sequence of digits.

Re:Rust Foundation: Hello, World by afiori on Wednesday February 10, 2021 @03:03PM (#26093948)
dead keys are an hack that implement a feature of old typewriters. On a computer it simply disables the keys for accents and combine the accent with the next letter, the catch is that if you want to write the accent character (',`,^," etc.) you have to press the key twice, as the first press does nothing.
Re:Rust Foundation: Hello, World by pjmlp on Monday February 08, 2021 @05:22PM (#26071049)
We don't need monocultures.
Re:Rust Foundation: Hello, World by ironlenny on Monday February 08, 2021 @09:43PM (#26073286)
If everyone uses the same language, they're all going to write the same bugs! /s
Re:Rust Foundation: Hello, World by Ygg2 on Wednesday February 10, 2021 @08:25AM (#26088720)
Well, each language has a different tradeoff in terms of usability, performance and model.

Like Brainfuck could program anything.

Re:Rust Foundation: Hello, World by Daho0n on Wednesday February 10, 2021 @09:04AM (#26089220)
Then Swift should be replaced by something more mainstream. Adding Rust would be less monoculture than what we have now.
Re:Rust Foundation: Hello, World by roca on Monday February 08, 2021 @11:09PM (#26073730)
Apple is using Rust somehow internally, they were advertising for network software developers with Rust experience a while back.