This is cool. I wish Signal had a bot API like telegram's.
Not having a bot API is one of the many things that makes Signal amazing
Telegram Serverless
61–70 of 114 posts
Re: Telegram Serverless
#62This is cool. I wish Signal had a bot API like telegram's.
Not having a bot API is one of the many things that makes Signal amazing
Re: Telegram Serverless
#63I thought this was about P2P messaging (without servers, hence server "less"), but no, obviously "serverless" on HN has to mean "run code on someone else's servers"..
Re: Telegram Serverless
#64Which was one of the most non-sensical word to say "You don't maintain the server".
Re: Telegram Serverless
#65It looks like they are making their own cloud, with such a little team? Also we should be using Matrix but it doesn't have half of the features (no channels, no mini apps etc). Also I wonder whether compiling JS to native code is worth the hassle or not. In browser, it would slow down page load, but here you need to compile only on deploy.
Fully AOT compilers for JavaScript are basically research projects rather than production-ready platforms, because the extensive dynamicity of JavaScript's semantics makes this a hard problem. (The most mature one I'm aware of is https://porffor.dev.) But even if that weren't the case, the thing Telegram is doing requires V8's low-overhead tenant isolation, so they're bound to V8's architectural choices. V8 does have APIs for code caching and startup snapshots; Telegram could be generating those at deploy time.
Re: Telegram Serverless
#66Re: Telegram Serverless
#67This is off-topic, but I was kind of surprised to see this page written by Claude. I guess I shouldn't really be surprised, but I somehow didn't expect it.
I finds it surprising you find it surprising. Is this the best use of a human, to write a long, detailed manual for a feature? Which most likely will be read by another LLM?
Re: Telegram Serverless
#68Re: Telegram Serverless
#69This is cool. I wish Signal had a bot API like telegram's.
Re: Telegram Serverless
#70Emphasis mine: > Each invocation runs in a lightweight V8 isolate, close to Telegram's own systems, so calls to the Bot API and your database are quick and reliable. Telegram’s servers are distributed worldwide. I understand that the calls to the Bot API may be quick because the serverless code would be propagated to the edge, but how does it handle an SQLite DB? Is that also replicated to guarantee quick access from…