News for hackers. Stuff that matters.
Re:Elixir for Humans Who Know Python by bboygravity on Saturday February 25, 2023 @08:55AM (#34936687)
> I use Phoenix only on projects where its real-time capabilities will be the protagonist.

As a web user (not dev) I would say real-time (as in super fast?) should always be the protagonist?

To me that's the most important factor that makes the difference between nice and shtty website.

Re:Elixir for Humans Who Know Python by traverseda on Saturday February 25, 2023 @09:12AM (#34936798)
Real time like a chat app, or a video game or something. Not just a fast site. Seems like most "real-time" sites are slower as they have a harder time taking advantage of caching and the like, or use a lot of slow client-side javascript that inevitably works poorly.

Basically if you need the server to be able to change the data a user is currently looking at, collaborative multi-user stuff mostly. Liveview could be great if you're building google docs, but you could probably build youtube using just a more traditional framework like django.

Re:Elixir for Humans Who Know Python by mixmastamyk on Saturday February 25, 2023 @05:31PM (#34941117)
Been looking at CRDTs lately for this, sounds like Elixir would be a good fit. Although what I've seen before has used C++ or Rust? to compile to wasm for the graphics part of the front end. Do all these technologies work together well?
Re:Elixir for Humans Who Know Python by AlchemistCamp on Sunday February 26, 2023 @04:24AM (#34944221)
Phoenix has used CDRTs going back to version 1.2 when Phoenix Presence was introduced. Here's a podcast about it (2016): https://changelog.com/podcast/208
Re:Elixir for Humans Who Know Python by spapas82 on Saturday February 25, 2023 @09:01AM (#34936741)
Not really. Real time is not the same as super-fast. You can be real time but super slow or super fast using traditional request/response web apps.

When I mentioned real-time I was talking about apps that need to use web sockets to have fast client-server communication. There aren't many apps where this is required (or worth it).