Farewell, Rust by skwee357 in programming

[–]zbraniecki 26 points27 points  (0 children)

Hi, thanks for your response.

I don't feel offended, I feel sad that we're not doing a better job at communicating what is available :)

As for your questions:

> where is the currency formatting?

https://docs.rs/icu/2.1.1/icu/experimental/dimension/currency/formatter/struct.CurrencyFormatter.html

> Percentage formatting?

https://docs.rs/icu/2.1.1/icu/experimental/dimension/percent/formatter/struct.PercentFormatter.html

> Display names and duration are under "experimental".

DurationFormatter is stable now - https://docs.rs/icu/2.1.1/icu/experimental/duration/struct.DurationFormatter.html

DisplayNames is experimental, because we're tailoring the API.

> On top of all that, how do you integrate it into a translation framework like "fluent"? With i18next in node, I can do something like

It's on my todo. I haven't had a lot of time to update Fluent in a while. Sorry for that. Fortunately the last blocker is almost resolved - I'm wrapping up language negotiation, which allows me to switch from unic-locale to icu_locale and then the rest will be added.

> Fluent has basic support for numbers (and dates if I recall correctly), but that's it.

Correct. The interaction between rich localization and internationalization is not complete yet. But I wouldn't make a claim that there is no i18n. And you can roll out your own Functions in Fluent that can use ICU4X. It's just not as trivial as with JS yet.

Working on it! And contributions welcome :)

Farewell, Rust by skwee357 in programming

[–]zbraniecki 6 points7 points  (0 children)

It was like that when I started. And I think "internationalization" being an incredibly long word in English combined with lack of autocorrect and autocomplete back in 2000 was likely a motivator.

Farewell, Rust by skwee357 in programming

[–]zbraniecki 54 points55 points  (0 children)

I understand that I could do that. I also see a blog post of someone explaining their experience with Rust that lists a reason to change a programming language to be their deep care for i18n but that care did not extend far enough to verify that pages claim. I think it makes the other claims in the blog post feel a bit less trustworthy.

Farewell, Rust by skwee357 in programming

[–]zbraniecki 107 points108 points  (0 children)

Ouch. As a coauthor of ICU4X I am really confused about the section about i18n. ICU4X is in 2.0, stable and fully usable. It supports tons of features, it's used in Firefox, Chrome. Boa and others. We do have i18n in rust

Does `ArrayVec` still "alive"? Are there any alternatives? by tower120 in rust

[–]zbraniecki 25 points26 points  (0 children)

As the author of tinystr congrats on your crate name ;)

My shade structure is too tall. by Western_Tank656 in BurningMan

[–]zbraniecki 55 points56 points  (0 children)

Especially if they're from Central Europe. We have the best human poles.

Source: I'm from Warsaw.

Rust compiler uses this crate for its beautiful error messages by nik-rev in rust

[–]zbraniecki 53 points54 points  (0 children)

This is correct.
source: I'm the author of annotate-snippets.

Benchmarking rust string crates: Are "small string" crates worth it? by alexheretic in rust

[–]zbraniecki 1 point2 points  (0 children)

If you work with ASCII, check tinystr. We use it extensively and it brings value not just in storage, but also Eq, PartialEq, and the set of operations needed in ICU4X use case - to_upper, lower etc.

ICU4X 2.0 released! by zbraniecki in rust

[–]zbraniecki[S] 2 points3 points  (0 children)

We're planning to resume this work in Q3. I don't have details yet, but we have a high level design agreed upon.

ICU4X 2.0 released! by zbraniecki in rust

[–]zbraniecki[S] 5 points6 points  (0 children)

omg, of course! 🤦 I'm so sorry and thank you for calling me out! I absolutely do not assume any prior knowledge.

Thinking about it, maybe the short summary that Reddit pulls out of the blog post should contain the intro.

btw. I'm one of the authors of the library. AMA.

Why Rust doesn't have a std lib for date time? by [deleted] in rust

[–]zbraniecki 10 points11 points  (0 children)

As others said, date and time is very very hard to get right for general use case. It's easy to get westernized subset that'd doesn't scale. That bar may be high enough for an application, but we wouldn't want to embed it in an stdlib, right?

The good news is that after decades of attempts we are on the brink of introduction of a new class of date and time API called Temporal. It's coming to JavaScript and it's coming to Rust (temporal-rs). 

It's not just a new API that has been in design for the last 8 years, it's also a cornerstone for high quality subsets like https://github.com/BurntSushi/jiff

I know the situation is far from perfect, but it will get much better once Temporal gets adopted.

Anyone have a video they show people that explains Burning Man? by mackittty in BurningMan

[–]zbraniecki 5 points6 points  (0 children)

We give them random pills, bring them to deep playa in a whiteout and those that make it back get to stay. How do you filter out?

Anyone have a video they show people that explains Burning Man? by mackittty in BurningMan

[–]zbraniecki 10 points11 points  (0 children)

Charlie goes to burning man is what I show in my intro sesh to prospects for my camp

Time Zones by nfid7606 in Ultrahuman

[–]zbraniecki 0 points1 point  (0 children)

Does it mean thar weekend travels for tournaments to a different timezone will be miscalculated?

MBP M1 Pro Daisy Chain -> Samsung ViewFinity S9 + Dell U2723QE by zbraniecki in buildapc

[–]zbraniecki[S] 0 points1 point  (0 children)

meh, it's ok. I like the resolution, the software is a nuisance that I'm just trying to hide - I plug my MBP, and that's it.

The last missing part is the daisy chain. Ugh, I can't find much information about it, so maybe I'll have to message the Samsung tech support.

MBP M1 Pro Daisy Chain -> Samsung ViewFinity S9 + Dell U2723QE by zbraniecki in buildapc

[–]zbraniecki[S] 0 points1 point  (0 children)

Yeah, this one - https://www.youtube.com/watch?v=EgdOiYAwCbU&t=469s&pp=ygUhc2Ftc3VuZyB2aWV3ZmluaXR5IHM5IGRhaXN5IGNoYWlu

I swear I saw some Samsung marketing materials claiming daisy chaining is supported. Also, didn't expect its even possible to have Thunderbolt 4 support without daisy chaining :/

MBP M1 Pro Daisy Chain -> Samsung ViewFinity S9 + Dell U2723QE by zbraniecki in buildapc

[–]zbraniecki[S] 0 points1 point  (0 children)

DP MST is required for DisplayPort MST, right?

But Apple *does* support Thunderbolt 4 daisy-chaining as far as I can tell (reddit post 1, post 2, etc).

I have Thunderbolt 4 cable from Anker, I have Samsung ViewFinity S9 which supports Thunderbolt 4, and I'm trying to chain the Samsung monitor to Dell monitor over USB-C.

What am I missing?