News for hackers. Stuff that matters.
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by josep2 on Wednesday December 12, 2018 @05:39PM (#18668358)
I must say this is the first time I've been really impressed by a client-side, real-time implementation. The API is simple and I can imagine building something real-time without thinking about the translation from one protocol to another like I would with web-sockets for example. I've never written a line of Elixir, but this is interesting enough for me to try it.
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by mercer on Thursday December 13, 2018 @07:48AM (#18671908)
Aside from Scenic (https://github.com/boydm/scenic) and Nerves (https://nerves-project.org/), Phoenix LiveView is the new Elixir thing I'm most excited about.

I mean, I already 'bought in' to the ecosystem for many other reasons, but these are / could be huge extra reason because 1) they solve problems I'm facing, and 2) the potential popularity might alleviate the mild nervousness I have about investing so much into what is still a very young and small ecosystem. As it is, I still hesitate to use Elixir/Phoenix with many of my clients.

Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by sfusato on Wednesday December 12, 2018 @06:08AM (#18662891)
LiveView looks like a game changer. Can't wait to play with it.
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by nymanjon on Saturday December 15, 2018 @01:31PM (#18689634)
An alternative to this is [intercooler.js](http://intercoolerjs.org). Not sure if it is quite as powerful or robust (as an Elixir backend) but if you don't have the time or inclination to learn Elixir (which I do think is a cool language, but at this time in my life I really don't have the time to learn), intercooler is a nice alternative!
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by s369610 on Wednesday December 12, 2018 @08:36AM (#18663711)
looks similar to server side blazor (razor components) added to asp .net core 3.0 https://codedaze.io/introduction-to-server-side-blazor-aka-r...
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by nathan_long on Wednesday December 12, 2018 @09:04AM (#18663949)
That does look similar! One thing they say though:

> We don't really know yet how well server-side Blazor (Razor Components) will scale with heavy use applications.

I don't think that's a concern with LiveView, as it's built on Phoenix Channels, which in 2015 could already handle 2 million connections on a single box: https://phoenixframework.org/blog/the-road-to-2-million-webs...

Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by kim0 on Wednesday December 12, 2018 @10:11AM (#18664522)
Cool! Anything similar for Golang?
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by nymanjon on Saturday December 22, 2018 @12:38PM (#18741539)
@kim0, See my comment about intercooler js. Not quite as powerful but it is a similar concept that is back end language agnostic.
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by GrumpyNl on Wednesday December 12, 2018 @05:19AM (#18662692)
No need for java, but need for another language kind of markup script..
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by chrismccord on Wednesday December 12, 2018 @10:58AM (#18664943)
Also to be clear, if you are already in the Elixir web ecosystem, EEx (Embedded Elixir) templates are what you currently write for regular server HTML rendering. LiveEEx allows you to take those same templates and support the diffing optimizations the post shows off, so labeling it "another kind of markup script" isn't accurate in this context.
Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by the_angry_angel on Wednesday December 12, 2018 @10:47AM (#18664849)
On one hand I kind of agree. It's a special syntax, which is one of the reasons why I personally dislike Vue and Angular, etc.

However, pragmatically, it's minimal and all the guts will be in Elixir - where the people probably most interested in LiveView will be spending most of their time anyway. So it's a net win imho.

Re:Phoenix.LiveView: Interactive, Real-Time Apps. No Need to... by sfusato on Wednesday December 12, 2018 @06:12AM (#18662908)
The additional markup is very minimal: phx-click, phx-change, phx-submit, phx-keypress, phx-keydown, phx-keydown, phx-error .etc