7 ms·
The web apps are super interesting. Its light and fast. On par with the desktop client. Meanwhile, Facebook Messenger takes eons to load, Discord's web client's
by alskdj21 5y ago
The web apps are super interesting. Its light and fast. On par with the desktop client. Meanwhile, Facebook Messenger takes eons to load, Discord's web client's initial load will hog up my CPU. It will be interesting to see the technology behind this.
edit: Links for those interested
Web Z: https://github.com/Ajaxy/telegram-tt https://github.com/Ajaxy/telegram-tt
web K: https://github.com/morethanwords/tweb https://github.com/morethanwords/tweb
- f311a 5y agoTelegram team has a long history of using vanilla javascript as optimal as possible. It all started at VK.
- capableweb 5y ago"vanilla javascript" usually refers to something like manipulating the DOM directly, without using frameworks, transpiled languages and similar. Both of them seems to be using a bunch of different tech, from typescript to wasm, jsx and more, not sure I'd call that vanilla javascript. On a second note, I'm surprised that both the new web versions are so similar. Seems just a couple of margins changed and other minor changes (profile picture filling the background vs being a centered circle for example), but built differently. Wonder if they both worked towards the same design maybe? Edit: found explanations to the multiple-codebases behavior further down: https://news.ycombinator.com/item?id=26943653 https://news.ycombinator.com/item?id=26943653
- f311a 5y agoThey had a contest with requirements to the codebase: https://contest.com/javascript-web-3 https://contest.com/javascript-web-3
- aszen 5y agoi think both of them are not using any framework, one of them uses an inhouse library which resembles react but overall i would say it's pretty vanilla (as in no frontend frameworks)
- capableweb 5y agoYou might be right in the first half, but TypeScript (which they seem to be built in mostly) is not vanilla JavaScript, no matter what library or frameworks you use.