Project: Coding your own Compiler

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 47

  • @Ayon-p2z
    @Ayon-p2z 5 дней назад +10

    We had compiler design in last semester and I passed it. But I learned 1000x more from this video than I learned in my uni.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  5 дней назад +1

      thank you ayon for these kind words. glad u liked it

  • @garrettbates2639
    @garrettbates2639 5 дней назад +7

    Oh hey cool. Writing a compiler was my favorite project during undergrad.

  • @mdyousufgazi4030
    @mdyousufgazi4030 5 дней назад +5

    amazing so much respect to you.
    so this video is a part of a series

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  5 дней назад +3

      thanks man. yes that is correct. there'll be some stuff in between though

  • @craftrumzen2393
    @craftrumzen2393 4 дня назад +2

    Such relaxing video

  • @yeesan6684
    @yeesan6684 5 дней назад +1

    Thank you Dr, have not watched the full video yet but no doubt it will be mindblowing, keep up the amazing work

  • @mert2130
    @mert2130 5 дней назад +2

    great job! will you include designing IR and some optimization stuff? I'd love to see it if you do.

  • @Lamya_1
    @Lamya_1 5 дней назад

    Thanks a lot Dr Jonas. I had been waiting for this for long time

  • @tacotopasu
    @tacotopasu 5 дней назад

    Dr Jonas! Godsent content, thank you! I've been looking at how compilers work recently, so this is very handy. Cheers!!

  • @CodingWorldHere
    @CodingWorldHere 5 дней назад +3

    great mission lets develop a whole compiler.

  • @vimalathithand917
    @vimalathithand917 3 дня назад

    Sir you are amazing. I always find your videos fascinating, you make me want to learn low level stuff and how things work under the hood. Do you have any suggestions from where to start any good resources that you suggest ? I would like to implement things as you do like projects. I wish to know how you learnt all these things,the practical knowledge. Could you share it. Thanks a lot for making these video's.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  2 дня назад

      basically i just tried stuff until it worked and i learned. there were no good internet resources back then, at least not for >beginner c stuff. learned from my friends too

  • @AmanKumar-jk1qu
    @AmanKumar-jk1qu 5 дней назад

    Thank you sooooo much sir

  • @LinuxIsBetter-p8f
    @LinuxIsBetter-p8f 5 дней назад +1

    I will have to write an assembler in C for some made up architecture by the end of a the next semester, so this is very useful. They want everything from scratch too, no bison or anything like that.
    Can't find the source code in the repo though. Is it there?

  • @gearbraniac
    @gearbraniac 5 дней назад

    Fire great video

  • @BruttiF27
    @BruttiF27 5 дней назад

    Holy C a whole compiler?
    I'll have a field trip

  • @terrormapu
    @terrormapu 5 дней назад +1

    Haskell sneaking in..

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  5 дней назад +2

      yeah, every programmer needs at least 1 functional language in his toolbox

  • @ALG397
    @ALG397 День назад

    Wouldn't it be better to add it inside the virtual machine so we can develop programs and operating systems in this language?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  21 час назад +2

      my rookery produces machinecode in the PENGUIN binary executable format so you can easily just load the code into the birdnest vm

  • @Rudy-se4jt
    @Rudy-se4jt 5 дней назад +1

    dr birch are you using llvm here? also is this a compiler for a toy language or C?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  5 дней назад

      you mean my compiler? no it's real. it's an assembler compiler for the birdnest cpu architecture

    • @Rudy-se4jt
      @Rudy-se4jt 5 дней назад

      @dr-Jonas-Birch oh, cool! This ties in well with the previous videos.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  5 дней назад +1

      @@Rudy-se4jt it does. but my next video will blow your mind. i recorded today and managed to push the realms of possibility in c

    • @Rudy-se4jt
      @Rudy-se4jt 5 дней назад

      @@dr-Jonas-Birch oh man! I'm super invested

  • @picolopicolo7661
    @picolopicolo7661 День назад

    Hello Dr. Please how to prevent a c program from been riverse engineered?

  • @notdeus3834
    @notdeus3834 5 дней назад

    say, haven't watched this yet and won't e able o for a couple days but wantd to ask, do I need to know assembly to build stuff like the lexer, tokenizer, grammar etcetc?????

    • @rusi6219
      @rusi6219 5 дней назад

      @@notdeus3834 you don't have to write a compiler that compiles to assembly at all

  • @shivankurnegi445
    @shivankurnegi445 3 дня назад

    Amazing video sir . Is this project good for my resume or it needs to be more advance? ( i am 4th yr student with no experience btech).

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  3 дня назад

      its excellent, but this is only ep01. you find the finished code in the rookery folder of the code repo

    • @shivankurnegi445
      @shivankurnegi445 3 дня назад

      @dr-Jonas-Birch ok thankyou sir , where is the repo?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  2 дня назад

      @@shivankurnegi445 repo.doctorbirch.com

  • @Random_Variableee
    @Random_Variableee 5 дней назад

    where can we go from this?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  5 дней назад +5

      we can go to ep02 of the compiler series, airing soon on your favorite youtube channel!

  • @ddobren5
    @ddobren5 2 дня назад

    PLEASE SET YOUR PC ON DARK THEME I CANT WATCH YOU FOR AN MORE THAN 15MINS WITH WHITE TEME PLEASE DR

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  2 дня назад

      i always code on dark theme, except when i code haskell

  • @RalfPinkaire-f7w
    @RalfPinkaire-f7w 5 дней назад

    You'd better migrate to rust...