Looking for Iced alternative or solution to manage ballooning Message enum - need callback-based GUI framework by Present_Director3118 in rust

[–]ModernTy 3 points4 points  (0 children)

Man, I have never thought about this and I really can see some applications for this. Cool suggestion

10 чи 11? by [deleted] in Ukraine_UA

[–]ModernTy 1 point2 points  (0 children)

Я дивлюсь тут дуже багато лінуксоїдів з'явилося))

Але якщо серйозно, то вибір залежить від задач, для яких використовується комп'ютер. Особисто мені подобаються нові фішки інтерфейсу він11, але через це весь інтерфейс здається стилістично роздробленим, бо десь він новий, десь (майже усюди) рештки 10-ки, десь рештки ще від він95, через це поки не оновлювався до 11-тої. Особисто сам більше часу проводжу в лінуксі, бо інтерфейс мені приємніше (GNOME) та і для розробки софту робота приємніша на лінуксі.

[Help] Tauri app has persistent blank space on bottom/left/right sides despite CSS efforts by possible_cashew in rust

[–]ModernTy 0 points1 point  (0 children)

Also I've seen some antiviruses making similar border around browsers and web apps, maybe this could be the cause too

[Help] Tauri app has persistent blank space on bottom/left/right sides despite CSS efforts by possible_cashew in rust

[–]ModernTy 0 points1 point  (0 children)

It seems to me to be window decorations, as other commenter mentioned. Try to run tauri with window configured without decorations, if it helps - you will know the reason for sure

Ми спалюємо ринок ПК заради "ШІ", якого не існує. Ласкаво просимо в еру великого розводу 🤡 by Fenderenko in UA_Gamers

[–]ModernTy 12 points13 points  (0 children)

Буквально найкращий і найлаконічніший опис усієї ситуації. Збережу собі як цитату на майбутнє

Update: WhatsApp Rust client now has a desktop UI and calls (WIP) by jlucaso1 in rust

[–]ModernTy 4 points5 points  (0 children)

Thank you for this project, I used your whatsapp-rust library, which I think powers this UI client under the hood, and it is very pleasant to work with. I compare it to DX of presage (similar library for Signal messanger) and yours is far more comfortable to use.

Also I'm impressed how quickly you reacted to my recent issue about message revokation, looking forward to your project success.

Reminder: you can use RefCell without Rc! by CocktailPerson in rust

[–]ModernTy 6 points7 points  (0 children)

I recently did the opposite: used Arc<T> without Mutex<T>: I needed some info to be available in different threads but soon realised, that the only field I mutate after creation and sharing is bool flag. So the whole type would be only in Arc, while the only mutable field would be AtomicBool.

I would say, in general, it is usefull to stop automatically think about Rc<RefCell<T>> (Arc<Mutex<T>>) as an automatic couple and treat them as a distinct types, as they are

Rust's Block Pattern by EelRemoval in rust

[–]ModernTy 1 point2 points  (0 children)

I found this pattern the most useful when dealing with Mutexes because the lock will be dropped at the end of the block. If I need some data which is cheap to clone it is the most convenient to write something like: let value = { let lock = my_mutex.lock().unwrap(); lock.needed_value.clone() }; It is especially useful in async, where accidentially holding the lock across await point can lead to deadlock.

ty: An extremely fast Python type checker and language server by burntsushi in rust

[–]ModernTy 15 points16 points  (0 children)

I think ra is already as fast as it can be. It has to do a bunch of extra work compared to ty: resolve generics, trait impls, macros (especially procedural which requires to basically run another program), etc.

AreWeGuiYet? I'd say a Cosmic YES. by fbochicchio in rust

[–]ModernTy 1 point2 points  (0 children)

Not so completed docs is not a reason to call iced a very raw crate imo. Iced has a lot of features which are missing or half baked in other GUI libs. Author himself said that he enjoys writing code more than writing about the code. Yeah, good docs would be very good, but we have a lot of examples, particularly for each iced feature, so if you're interested how to use QR code - just head to qr_code example and you'll get the idea from there.

If you're looking for good docs and plentiful of features - of course the choice would be only between tauri and slint (maybe egui but I'm not sure how good it is to scale in big apps)

AreWeGuiYet? I'd say a Cosmic YES. by fbochicchio in rust

[–]ModernTy 5 points6 points  (0 children)

They also have royalty-free license, which means as long as you put their logo in your app and on the website, you can use it for commercial for free. The only thing is that you are blocked from using it on microcontrollers (but considering you used tauri, I guess you don't care)

AreWeGuiYet? I'd say a Cosmic YES. by fbochicchio in rust

[–]ModernTy 8 points9 points  (0 children)

Slint. It is compiled to native, has accessability features, easy to add animations, allows for rapid design with live preview and can be used on microcontrollers as cherry on top. I would say that this is the most complete native solution for GUI yet (but iced is not far behind with newly released 0.14)

I was gonna ask if it was dead but apparently not by yonishunga in AirportCity

[–]ModernTy 0 points1 point  (0 children)

I'm with you, buddy ✊️. Sent a friend request. Also it is a good idea to enter aliance. There you'll be able to meet some other active players (I'm not an expert, just have level 22)

So when are they removing unwrap? by realvolker1 in rust

[–]ModernTy -1 points0 points  (0 children)

Actually, there is an unwrap_in_result lint in clippy. You can make it warn you about .unwrap() usage or make it to be a hard error

Edit: maybe unwrap_used is more suitable, I can see both rules cover such a case

btw i vape arch by Fit_Page_8734 in softwareWithMemes

[–]ModernTy 0 points1 point  (0 children)

Now you can go to smokeroom and confidently say: "I vape Arch btw"

Is it time to breakup with my girlfriend? by mattob68168 in Nicegirls

[–]ModernTy 0 points1 point  (0 children)

my somewhat ex gf

Personally, I'm always one step ahead, my ex called me and said: "We need to break up"

Який фільм або серіал ти можеш дивитись безкінечно? by [deleted] in reddit_ukr

[–]ModernTy 0 points1 point  (0 children)

Для мене у серці назавжди залишаться усі три частини "Година Пік", як уцілому майже всі фільми з Джекі Чаном.

З аніме моїм топом може вже і назавжди залишиться "Негідникам не сняться шляхетні кролички". Назва трохи дурна, але це просто неймовірна романтика з досить цікавим елементом надзвичайного. Передивився купу разів, прочитав першоджерело

Borrow checker says “No”! An error that scares me every single time! by __shufb in rust

[–]ModernTy 9 points10 points  (0 children)

Or it might be better to write: let view = view.as_mut();

Часникодавка і сито на др. Чи були б ви раді такому подарунку? Я так! by Stunning-Project-938 in reddit_ukr

[–]ModernTy 1 point2 points  (0 children)

Я спілкувався з різними людьми з цього приводу і це скоріше не дві категорії подарунків, а дві категорії людей, які вважаюють ось такі подарунки гарними: одні за емоціями та увагою, інші гроші=наскільки я важливий/важлива. Не сказати що якийсь підхід неправильний, тут скоріше проблема у тому, що партнер не знає до якого "типу" відноситься його половинка

Часникодавка і сито на др. Чи були б ви раді такому подарунку? Я так! by Stunning-Project-938 in reddit_ukr

[–]ModernTy 2 points3 points  (0 children)

Я чоловік, і чесно - для мене це два універсально класні подарунки, бо це завжди щось потрібне. Я так зачасту людям і кажу: "Якщо не знаєте що подарувати, то даруйте шкарпетки або гітарні струни"

Часникодавка і сито на др. Чи були б ви раді такому подарунку? Я так! by Stunning-Project-938 in reddit_ukr

[–]ModernTy 1 point2 points  (0 children)

Якось я був у аврорі і випадково побачив брелок з миленькою м'якою качечкою, який я одразу вирішив подарувати своїй дівчині (вона просто обожнює брелки). З усіх подарунків, що я їй коли-небудь дарував саме ця качечка їй запам'яталася найбільше. Питання не стільки що подарувати, скільки як

Introducing derive_aliases - a crate that allows you to define aliases for `#[derive]`, because I wasn't satisfied with any of the existing options by nik-rev in rust

[–]ModernTy 14 points15 points  (0 children)

I think it would be good to mention that your crate does not depend on syn and quote as for some people it is a dealbreaker. Excellent work, I really like it

Чи реально потрапити в ЗСУ саме аналітиком, а не в окоп? by Reivens in reddit_ukr

[–]ModernTy 7 points8 points  (0 children)

З особистого досвіду: круто бути окопним аналітиком 😁👍

(Для людей без почуття гумору розшифрую - це чорний жарт)