News for hackers. Stuff that matters.
Re:Imba – The friendly full-stack language by abdellah123 on Saturday September 23, 2023 @01:02PM (#37625094)
the point is there is no need for "reactivity" constructs. Organize your "state" the way you want.

tag App

  counter = 0

  <self>
    <button @click=counter++> "{counter}"
imba.mount <App>

it doesn't have to be anything. You're free to organize your code as you wish: colocate, in a different file ... the compiler doesn't transform the variable in any way, nor does it track its "mutation", it "just" "rerenders" on every change. And it's super fast too!

Re:Imba – The friendly full-stack language by sesm on Saturday September 23, 2023 @01:23PM (#37625311)
The tricky part here is to determine what should trigger the rerender.
Re:Imba – The friendly full-stack language by tabansi on Saturday September 23, 2023 @02:05PM (#37625736)
all events trigger it, also imba.commit! which you can use however you like