News for hackers. Stuff that matters.
Re:Matrix 2.0: How we’re making Matrix go voom by snvzz on Monday February 13, 2023 @01:50PM (#34778219)
Once this is deployed, Matrix will finally be providing the bare minimum to be actually workable. About time.

Then we can finally try and bring in everybody who's currently trapped in proprietary IM.

Re:Matrix 2.0: How we’re making Matrix go voom by kadoban on Monday February 13, 2023 @01:57PM (#34778373)
You're not exactly wrong, but you could have worded that a lot more kindly.

I'd say that this will remove my last hesitation I've had in recommending Matrix to people.

Re:Matrix 2.0: How we’re making Matrix go voom by snvzz on Monday February 13, 2023 @02:22PM (#34778806)
I tried (being kind).

What Matrix 2.0 fixes were true pain points which didn't keep me from using Matrix with my closest friends, but kept me from pushing Matrix to most people.

For a complete example, not that long ago (couple months), I had to wait over 10 minutes to send a message to somebody on Element on Android (on the street, trying to meet with them), because I turned connectivity on at that moment for the first time that day, and syncing took that long.

Now, this is instant, so is joining new rooms; This meets most people's expectation.

Having native videoconference is also very welcome, but the old hack was not a deal-breaker.

Re:Matrix 2.0: How we’re making Matrix go voom by dmix on Monday February 13, 2023 @02:41PM (#34779126)
> because I turned connectivity on at that moment for the first time that day, and syncing took that long.

So you had to sync all of the messages on the server first before sending a message?

Re:Matrix 2.0: How we’re making Matrix go voom by jeroenhd on Monday February 13, 2023 @04:50PM (#34781189)
That definitely used to be the case with Matrix. Sync has been improving gradually over the last year to alleviate that issue, though, assuming your server regularly gets updated and you keep your clients up to date.

Sync still takes a second in large rooms, but you no longer need to download a thousand messages just to see the three latest ones.

Re:Matrix 2.0: How we’re making Matrix go voom by hdhrufjdi on Monday February 13, 2023 @06:53PM (#34782802)
When was that the case? I can't remember tbh, and it would have been insane for rooms like Matrix HQ.

Maybe before 2020?

Re:Matrix 2.0: How we’re making Matrix go voom by wkat4242 on Monday February 13, 2023 @07:41PM (#34783452)
Yeah syncing Matrix HQ used to crash most home servers, probably one of the things that got it on the radar to be fixed ASAP.
Re:Matrix 2.0: How we’re making Matrix go voom by hdhrufjdi on Tuesday February 14, 2023 @07:25AM (#34788360)
Joining a room from server perspective vs syncing the client to the rooms he has already joined
Re:Matrix 2.0: How we’re making Matrix go voom by jeroenhd on Monday February 13, 2023 @09:48PM (#34784603)
At least a year ago, maybe longer. Syncing with the larger rooms in the Matrix homeserver definitely took its toll on self-hosted servers. Took minutes (at least) and couldn't be canceled.
Re:Matrix 2.0: How we’re making Matrix go voom by jacooper on Monday February 13, 2023 @01:55PM (#34778320)
Most of the problems lie in the clients though. Which should improve with element X.
Re:Matrix 2.0: How we’re making Matrix go voom by snvzz on Monday February 13, 2023 @02:20PM (#34778786)
AIUI Element X is just an element build with these "Matrix 2.0" features. It is not a new client.

Both the servers and the clients will have to be updated to leverage them.

Re:Matrix 2.0: How we’re making Matrix go voom by Arathorn on Monday February 13, 2023 @02:25PM (#34778863)
Element X is an entirely new client written in Rust + Swift UI/Jetpack Compose (https://github.com/vector-im/element-x-ios and https://github.com/vector-im/element-x-android) which will eventually replace the legacy Element apps (https://github.com/vector-im/element-ios and https://github.com/vector-im/element-android).

The features already exist serverside; we're just working on getting them out of beta.

Re:Matrix 2.0: How we’re making Matrix go voom by snvzz on Monday February 13, 2023 @02:30PM (#34778946)
Thanks for the pointers, had no idea.

I am hopeful it also improves resource usage, bringing it closer to hydrogen.

Is this also for the desktop/browser version?

Re:Matrix 2.0: How we’re making Matrix go voom by DoItToMe81 on Monday February 13, 2023 @02:48PM (#34779231)
Also curious to know if it has web clients and desktop clients.
Re:Matrix 2.0: How we’re making Matrix go voom by Arathorn on Monday February 13, 2023 @03:19PM (#34779749)
We're not planning to rewrite Element Web/Desktop in Rust (yet), so the current app will remain there - although we're going to give it a fairly major UI refresh to match the new mobile apps.
Re:Matrix 2.0: How we’re making Matrix go voom by justaj on Monday February 13, 2023 @06:05PM (#34782255)
Also some performance optimizations would be most welcome for someone like me who is stuck with low power computers.
Re:Matrix 2.0: How we’re making Matrix go voom by Klonoar on Monday February 13, 2023 @06:31PM (#34782559)
Please consider supporting running Element X natively on macOS M1/M2/etc devices, if you can do it. There is currently no native client for macOS at all.
Re:Matrix 2.0: How we’re making Matrix go voom by Arathorn on Monday February 13, 2023 @06:56PM (#34782825)
I've been dogfooding the iPad layout of Element X under macOS on Apple Silicon since day 1 - it works pretty well. We could also ship it via Catalyst to run as a pure macOS app (albeit with the iPad layout) on both Apple Silicon and Intel, once https://github.com/rust-lang/rust/issues/106021 is fixed.

Unfortunately making it a "real" macOS app is much harder, as the UI is currently uses UIKit in a bunch of places to make up for feature and performance limitations in SwiftUI. These would have to be ported over to AppKit to run on macOS. I had a go at it over the holidays, but it's not trivial - perhaps someone with more AppKit skills than I could make it work (or maintain a fork) though.

To give an idea of the amount of UIKit that would need to be swapped out:

    matthew@shadowfax ElementX % find . -name \*.swift | xargs perl -ne 'while (/[^a-zA-Z](UI[A-Z].*?)[^a-zA-Z]/g) { print "$1\n" }' | grep -v UITest | sort | uniq -c | sort -rn
      52 UIKit
      31 UIImage
      20 UIApplication
      13 UIScrollView
      12 UITextView
      11 UIDevice
      11 UIConstants
      10 UIColor
       5 UIViewController
       5 UIRectCorner
       5 UIKitBackgroundTask
       5 UIKeyCommand
       4 UIView
       4 UIPasteboard
       4 UIBackgroundTaskIdentifier
       3 UIViewControllerRepresentable
       3 UITableView
       3 UIScreen
       3 UINavigationController
       3 UIKitBackgroundTaskService
       3 UIFont
       3 UIActivityViewControllerWrapper
       3 UIActivityViewController
       2 UIViewRepresentableContext
       2 UIViewControllerRepresentableContext
       2 UITextViewWrapper
       2 UITableViewDelegate
       2 UIResponder
       2 UIHostingController
       2 UICollectionView
       1 UIViewType
       1 UIViewRepresentable
       1 UITraitCollection
       1 UITextViewDelegate
       1 UITableViewDiffableDataSource
       1 UITableViewController
       1 UITableViewCell
       1 UIScrollViewDelegate
       1 UIKitAttributes
       1 UIHostingConfiguration
       1 UIContentSizeCategory
       1 UIBezierPath
       1 UIApplicationDelegateAdaptor
       1 UIApplicationDelegate
       1 UIActivity
Re:Matrix 2.0: How we’re making Matrix go voom by Klonoar on Tuesday February 14, 2023 @07:04PM (#34798108)
Honestly the iPad layout is probably "good enough" - though I agree that a macOS-AppKit-backed variant would be incredible.

I've got a lot of experience with AppKit and may be down to look at doing that fork once the churn on Element X is lower...

Re:Matrix 2.0: How we’re making Matrix go voom by snvzz on Monday February 13, 2023 @09:22PM (#34784366)
Is verification being implemented in hydrogen?

That'd make hydrogen minimally usable. Currently, all the other clients that are logged in constantly nag about an unverified and unverify-able hydrogen session existing!

Hydrogen works on older / weaker computers, where element is unusable.

Re:Matrix 2.0: How we’re making Matrix go voom by RMidhunSuresh on Tuesday February 14, 2023 @12:10PM (#34792448)
Re:Matrix 2.0: How we’re making Matrix go voom by snvzz on Wednesday February 15, 2023 @03:11AM (#34801292)
Great.
Re:Matrix 2.0: How we’re making Matrix go voom by ehPReth on Monday February 13, 2023 @02:50PM (#34779271)
ooh awesome. I'm just starting the video but I'm really hoping sharing is improved on iOS. Like full quality video sharing from the share sheets, or seeing my matrix rooms/contacts in the top row of contact suggestions, but most importantly the ability to add 'comments' to photos/links I share with people

e.g. share a link to a GitHub repo or a photo and be able to quickly say something in the same sheet without having to switch to the app and say the thing and the back to my browser

edit: had to use YouTube in the end: https://www.youtube.com/watch?v=eUPJ9zFV5IE