A Gentle Introduction to Scala 3 Macros - Computer Hour - Episode 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 9

  • @MirrorsEdgeGamer01
    @MirrorsEdgeGamer01 2 หลายเดือนก่อน +1

    Thank you for this. I am learning Scala more now. I have always loved metaprogramming and macros.

  • @VishalSingh-de9xe
    @VishalSingh-de9xe 3 หลายเดือนก่อน +1

    Hi Kit,
    Great explanation. Need more information. can you please make more videos
    If you have any resources please do share it regarding macros

  • @elenrirodbe
    @elenrirodbe 2 หลายเดือนก่อน +1

    Hi! Thanks for doing these videos!
    One question: why do you have to wrap the ident as Expr(name), but you don't need to wrap the literal " = "?

    • @kitlangton
      @kitlangton  2 หลายเดือนก่อน +2

      Ah, so the quotation syntax will turn the syntax " = " into the right AST node for us. But because we want to take a runtime String value and splice it into the quote, we need to explicitly turn that into an AST/Expr by using the Expr.apply method. It's a bit tricky! 😅 I hope that makes sense sorta.

    • @elenrirodbe
      @elenrirodbe 2 หลายเดือนก่อน

      @@kitlangton I think that does make sense sorta 😄 Thanks!

  • @ashwinrawat9622
    @ashwinrawat9622 3 หลายเดือนก่อน +1

    Jitsy is a nice alternative to zoom

  • @theinvestice
    @theinvestice 4 หลายเดือนก่อน +3

    Hi Kit, thanks for the video!
    I'm looking for advice on how to start doing "things" with Scala. Let me explain my context a little.
    I'm not a professional developer. I just like to implement some of my ideas using development tools. I can read the code and slightly construct my own logic. I like Scala. I really appreciate and respect the development work of the entire Scala community. (thinking out loud. A very few people "sell" Scala as well as you, John and other Z people)
    But when I need to quickly write simple business logic (crud with a database), it always turns out faster with the same Quarkus. What should I do? What projects should I start with and where should I put my efforts?) Perhaps an answer is not required. It’s as if it were just thoughts out loud))
    Thanks for your content

    • @DisFunctor
      @DisFunctor 4 หลายเดือนก่อน +2

      I haven't worked with Quarkus, but have done quite a bit of Python with Django and it's difficult to beat that if the goal is to get a small CRUD + DB proof of concept app done.
      That being said, in Scala land, the closest I've personally come across to that development speed are Tapir and the Play Framework. Both are great in their own ways with Play perhaps being a little bit more "batteries-included" by virtue of including a templating engine and a few other things.
      But personally I like Tapir a bit better... you can make it work seamlessly with either ZIO, Akka, or Cats Effect, and it provides pretty much everything you need to make an API, including swagger. It also feels more "lightweight"... well I didn't take any performance measurements, so I should probably dust off my old Tapir and Play projects and use a profiler, but at least my computer back then seemed to think so judging by the difference in CPU fan noise
      😄
      And you can always use something else for frontend: React, Vue, or if you want to keep things Scala, Laminar and Tyrian (both really cool functional Scala.js frontend frameworks).

  • @HelloForeignWorld
    @HelloForeignWorld 4 หลายเดือนก่อน +5

    Zoom bombing 😮. This is a new kind of drama in the Scala community 😂