What does the Telegram Bot api have, what Matrixes API doesn't have?
1,557 karma · joined December 31, 2021
What does the Telegram Bot api have, what Matrixes API doesn't have?
as a user you cannot, even if you self host, because you are not the one controlling message storage
> I'm not sure what you mean by not handling encrypted messages fully, it handles encrypted messages fine.
you can load encrypted messages (including keys if they are needed to decrypt them if necessary) using a fresh login such that you can read them again?
could you expand on this in detail?
Simple as that.
function func() -> async fn func()
go func -> tokio::task::spawn(func)
func() -> func().await
func_blocking() -> tokio::task::spawn_blocking(||func_blocking()).await
(not sure about cancellation behavior in go though)
also it's an example to demonstrate the differences of async implementations of languages, not a excerpt of a production code base
e.g. for Rust/tokio printing B is skipped, because the process exits and cancels the future before the task can print B
not really - the core of apps (usually no outside dependencies), and additions which solely rely onthe core, usually can be implemented without async entirely; async only comes into play once you add dependencies to file system, network and ui, but you don't need to make the core async for that. You might not call some functions in async code at all, because the function is used only for heavy computation which is best handled by dedicated threads to avoid stalling your io handling.
if it is really that good, why didn't Rust adopt the same thing?
It could have happened if it was uncommon and it could have happened if it is common.
My claims:
1) most flight's are not necessary
2) it's not common to fly for medical care (yes, very rich people may have a different perception, but that's all it is)
In my experience, Graphene OS doesn't make compromises.
The app will be running on probably about a billion of devices, and Rust will reduce the footprint on each of those - assuming not a vibe coded clone app.
The additional effort isn't that big, and it would make the experience of maaaany users a bit better still.
Now extrapolate on all windows included apps and ui elements.
How much would that cost per license?
Imo bundle size is a bigger issue.
Additionally, I don't think C# is that simple anymore. By now it has so many features added and the list is still increasing this day. Rust is more difficult to get productive, but the actual language complexity isnt that big.
LLMS makes onboarding to Rust much easier though if you even still write code yourself. I don't think the productivity difference is that large.
And little code can already have a big impact, e.g. react native in start menu coupled with edge running in the background