korrents

korrents · video

Layout is harder than you think..

ThePrimeagen · 21m · youtube.com ↗

16 korrents from this recording

ThePrimeagen did not write this page.

Every claim below is a statement made in this recording, quoted word for word and linked to the second it was said, so you can hear it rather than take our word for it. The wording comes from the transcript published alongside the recording; the sentence above each quote is our reading of the claim, not their wording.

  1. 2:46 · watch on youtube.com↗

    The real cool or hard part about a layout system is actually doing all the math.
  2. 7 min later
  3. 9:51 · watch on youtube.com↗

    So, you have to do all this kind of like state management that's really, really confusing.
  4. 10:10 · watch on youtube.com↗

    because once you have the whole idea of hey, what is my state at this current moment and I only build my UI based off that state, it actually makes everything else pretty dang simple. I am super shocked at how much I like immediate mode UIs.
  5. 1 min later
  6. 10:45 · watch on youtube.com↗

    That means every element I build has to have these like large kind of parameter objects and they're kind of just ugly and I don't really like reading code like this.
  7. 11:08 · watch on youtube.com↗

    Now, obviously as an AI, this is very, very easy. If I just showed my AI and built up a nice couple examples, I guarantee you I could generate the crap out of this.
  8. 11:19 · watch on youtube.com↗

    Well, buddy, I'm not an AI and I actually have this belief. It's kind of a silly belief that code should feel aesthetic. I should really like the experience.
  9. 1 min later
  10. 12:44 · watch on youtube.com↗

    It's very easy to do this in a managed language, but it's even easier to do this in you're the manager language.
  11. 12:51 · watch on youtube.com↗

    but it has this idea of a temporary allocator. So does Jai, by the way. Beautiful concept. Absolutely love it. Which is at any point, I can call free on the temporary allocator and everything that was allocated by it goes away.
  12. 3 min later
  13. 15:31 · watch on youtube.com↗

    By the way, asserts on conditions that cannot be broken, absolutely love it, by the way. One of the best things you can do.
  14. 2 min later
  15. 17:11 · watch on youtube.com↗

    But I also have a sneaking suspicion that none of that is going to matter at all.
  16. 17:28 · watch on youtube.com↗

    Whatever that amount of work is, it's going to be only a fraction of the power that React requires anyways and I think I'm going to like it more.
  17. 17:39 · watch on youtube.com↗

    I really do think the immediate mode style UI actually is just super duper cool. Honestly, it kind of it it is a little bit like React in the sense that React wanted to be this really declarative UI that you can just read from top to bottom.
  18. 1 min later
  19. 18:20 · watch on youtube.com↗

    when it comes to like handling mouse operations, I just in one frame make one decision. I don't have to have crap spread around everywhere and this state kind of schmear everywhere
  20. 1 min later
  21. 19:28 · watch on youtube.com↗

    Like, I can make decisions outside of everything in this really smooth, easy way. Just it makes me feel good because you make decisions in a non-stateful way, just in the snapshot of the state.
  22. 1 min later
  23. 20:48 · watch on youtube.com↗

    you end up getting a game big enough or you get a program big enough, you start to kind of forget what everything you need to test to make sure everything's good. You kind of want just to be told what's wrong.
  24. 20:58 · watch on youtube.com↗

    And also, in the day and age of agents, the more information you can tell them, kind of the better.