Deep Dive into the Angular Compiler | Alex Rickabaugh |

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

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

  • @chriswininger3022
    @chriswininger3022 4 ปีที่แล้ว +10

    I love that trick where they add offsets into the template to the generated typescript to link back to the template on error. Such a beautiful hack.

  • @blackblather
    @blackblather 6 หลายเดือนก่อน

    Yo that part about adding the number comments is so ugly and cool at the same time. I love and hate it 🤣🤣

  • @mahdikamran8061
    @mahdikamran8061 6 หลายเดือนก่อน

    Thank you.

  • @coachkerni9464
    @coachkerni9464 3 ปีที่แล้ว +1

    First of all: great talk :)
    However I am not getting one thing:
    When the typescript compiler is written in typescript, who is compiling the compiler? 🤷‍♂️

    • @MUKESHYADAV-lf8cv
      @MUKESHYADAV-lf8cv 3 ปีที่แล้ว

      TypeScript compiler compiles the typescript code (.ts files) into javascript files. It takes .ts files and convert it into .js. It's like a automatic machine transforming raw materials into finished products. So, why would you wanna transform that automatic machine ? Similarly, why would one compile a compiler, there is no need of that.

    • @theshermantanker7043
      @theshermantanker7043 ปีที่แล้ว

      The TypeScript compiler compiles itself. This is what is known as a self hosting implementation

  • @mohammedelhadididi4612
    @mohammedelhadididi4612 3 ปีที่แล้ว +1

    When alex said that compilation process pass through 5 steps (3 like a normal typescript compiler and 2 angular specials) , is that true only when using AOT compilation or it doesn't matter if it's JIT or AOT compilation ?

    • @PrinceKumar-no3uo
      @PrinceKumar-no3uo 2 ปีที่แล้ว +6

      JIT have 3 ( the regular ts compilation ), AOT have the two extra angular specials for analysing and resolving decorators.

  • @TheRajmoney
    @TheRajmoney 3 ปีที่แล้ว

    awsome video

  • @tadejafirmanzajc7098
    @tadejafirmanzajc7098 4 ปีที่แล้ว

    Great talk! 💪

  • @masterlup
    @masterlup 4 ปีที่แล้ว +1

    25:45 I dont understand what Alex means by "template in external file" and why is that a problem with the view engine :/.

    • @dongcai6203
      @dongcai6203 4 ปีที่แล้ว +1

      You can write an html template in component file or in external file. The problem with the view engine is that if an error message occurs in the external file, it's hard to locate it. But now the Ivy engine solves this problem.

  • @masterlup
    @masterlup 4 ปีที่แล้ว

    19:23 `imports: [...CONFIG.modules]`, we have to spread, right?

  • @rutshah8710
    @rutshah8710 3 ปีที่แล้ว

    Excellent! Thank you very much!

  • @kresimirnurnberger6567
    @kresimirnurnberger6567 4 ปีที่แล้ว

    Great talk and great work! Enjoyed every minute of it.

  • @andrewskangah3710
    @andrewskangah3710 4 ปีที่แล้ว

    Alex Rickabaugh 👏

  • @sanjaygarg3540
    @sanjaygarg3540 3 ปีที่แล้ว

    Amazing talk !!

  • @PrafullOnUTube
    @PrafullOnUTube 4 ปีที่แล้ว

    cool explanation thx a lot