My programming language

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • Over the last month I made a programming language

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

  • @mgames3209
    @mgames3209  Год назад +26

    To download: applemm321.itch.io/karop
    You need to download python
    python here: python.org

    • @cakelover4578washere
      @cakelover4578washere 10 месяцев назад

      or use chocolqtey to download python, its a package manager for windows

  • @itzsummerofc
    @itzsummerofc Год назад +184

    I remember making my first programming language, it literally used words and grammatical signals for syntax 💀💀💀. Yes, it was hard making the language (it's called "English" btw) but it still worked. I already forgot about that language but whenever I showed it to some of my friends that know how to program, they always looked shocked that the syntax doesn't use any symbols. But Anyway, Cool language!!^^

    • @mgames3209
      @mgames3209  Год назад +9

      Thx

    • @xirate7091
      @xirate7091 11 месяцев назад +24

      you literally tried to create chatgpt

    • @Taokyle
      @Taokyle 10 месяцев назад +29

      Bro made a language, literally

    • @GoldbergToastyBred
      @GoldbergToastyBred 10 месяцев назад

      @@xirate7091 yea but his language still just giving specific instructions to machine but chatgpt is AI that processes text differently

    • @jextendecortex7577
      @jextendecortex7577 9 месяцев назад +2

      Yo do you have it published anywhere?

  • @MrGuitarMix
    @MrGuitarMix Год назад +51

    At the university we also did something comparable in the compiler construction course. We had used a tool called JavaCC instead of Python. This is a parser generator that is pretty nimble. After that, you could use the programming language to compile and run programs for a register machine. The register machine itself was also implemented as a model and executed its own assembler instructions.

  • @mgames3209
    @mgames3209  Год назад +16

    Should I make a tutorial?
    The language is slightly slower then python (it’s around thousand lines but most of them just set up the program)

    • @ilyesilyes6709
      @ilyesilyes6709 Год назад +2

      Yeh do a tuto

    • @lightcomic1
      @lightcomic1 Год назад +2

      hey, i am working on a computer mod for minecraft and have been slowly building up a vm and compiler. If you need any tips just reply. One thing I will tell you though, do not write languages inside of interpreted languages; that is several layers of vm that you have to go through at that point. Unfortunately I had to write mine in java because of minecraft, but you could benefit from writing it in C or Rust or something similar.

    • @mgames3209
      @mgames3209  Год назад +1

      @@lightcomic1 ok

    • @Roxve
      @Roxve 11 месяцев назад

      ​@@lightcomic1i definitely recommend crystal! it's compiled + has a syntax highly inspired by ruby and of course ruby has a syntax highly inspired by python so it would be similar the only disadvantage is it's less dynamic and has some weird rules like ruby! Oh and it has the same performance as C and sometimes it's as fast as rust!

    • @edy1219
      @edy1219 11 месяцев назад

      @@mgames3209 hey I could help you turn it into a compiler or something if you would like. Make it have linux and windows support, unfortunately compiling for MacOS is pretty hard.

  • @mgames3209
    @mgames3209  Год назад +5

    I’ve now added classes!

  • @BenPlaysSomething
    @BenPlaysSomething Год назад +16

    Cool Language! You should create a tutorial on how you made it.

    • @mgames3209
      @mgames3209  Год назад

      Thx

    • @manda3dprojects966
      @manda3dprojects966 10 месяцев назад +1

      It's easy to build a programming language, lex, parse, and transpile, gdb-lex, gdb-parser, and gdb-debug.

    • @SDFTDusername
      @SDFTDusername 5 месяцев назад

      he might have followed the tutorial from CodePulse, because i see the function "visit_BinNode" and that is also in the tutorial

    • @King_sobb
      @King_sobb 5 месяцев назад

      @@manda3dprojects966u forgot about the AST😂

  • @DamianBossPL
    @DamianBossPL Год назад +3

    What's more impressive is your typing speed.

  • @catsdontboot8735
    @catsdontboot8735 Год назад +4

    python with brackets

    • @mgames3209
      @mgames3209  Год назад +1

      yes

    • @trex511ft
      @trex511ft 10 месяцев назад +1

      should be considered a war crime.

    • @mgames3209
      @mgames3209  10 месяцев назад +1

      @@trex511ft
      x = 3
      if x > 2 {
      print("no its not")
      }

    • @mgames3209
      @mgames3209  10 месяцев назад

      @@trex511ft i used python to make python with brackets...

    • @trex511ft
      @trex511ft 10 месяцев назад

      @@mgames3209 you sir are crazy, I heard some dude used C to make C++, that's an even greater crime.

  • @Cosmotix
    @Cosmotix Год назад +3

    This is sick man. Could you share what theme you use please?

    • @mgames3209
      @mgames3209  Год назад +3

      Ayu dark, you can get it from an extention in vocoder

    • @Cosmotix
      @Cosmotix Год назад

      thx bro:)

  • @awru
    @awru Год назад +2

    Please, can u do documentation?

    • @mgames3209
      @mgames3209  Год назад +1

      I’ll make a video tutorial

    • @awru
      @awru Год назад +1

      @@mgames3209 okay! I will be very grateful

  • @mzakyr342
    @mzakyr342 6 месяцев назад

    man this makes me feel like im a dumb person, i have created so many failed programming languages that could be extended but i choose not to i just delete them

    • @mgames3209
      @mgames3209  6 месяцев назад

      How far did you get in them?

    • @mzakyr342
      @mzakyr342 6 месяцев назад

      @@mgames3209 implementing data type likes string, booleans, integer, float, but im too lazy so rm -rf *

    • @mzakyr342
      @mzakyr342 6 месяцев назад

      @@mgames3209 idk i forgor but i remeber it was in rust

    • @mgames3209
      @mgames3209  6 месяцев назад

      @@mzakyr342 well this was in python so it’s probably a lot easier then rust

  • @ragdude7323
    @ragdude7323 8 месяцев назад

    I like the scope = idea, means you can exchange scopes which would be interesting

  • @overbored1337
    @overbored1337 6 месяцев назад

    Pro tip: Use another programming language
    Not even python uses python for interpreting and parsing for a good reason

  • @JotaleaGG
    @JotaleaGG Год назад

    I always tried to do this. I just didn't get enough motivation.

    • @mgames3209
      @mgames3209  Год назад

      What did you usually fail at?

    • @JotaleaGG
      @JotaleaGG Год назад

      @@mgames3209 I chose the wrong programming languaje to make the interpreter + I don't know how to make a compilar + the wrong programming languaje that I chose (this is why I discarted it) wasn't able to read code. Now it is more advanced, and can read some things, but it's still not enough (i think)

    • @mgames3209
      @mgames3209  Год назад

      Ok@@JotaleaGG

    • @Roxve
      @Roxve 11 месяцев назад

      ​​​@@JotaleaGGyou should first learn how to be good at reading code and the definitely start working on at least a mathmaic Interpreter (calculator) you can do that in any language! i do that when I want to learn a new language (my latest one is called Crystalic*Interpreter which i am still working on which will evolve to be a programming language Atomic-Script!) and it's hella fun

  • @kyborq
    @kyborq 2 месяца назад

    can you try making a recursive calls, like this fn fib(n): fib(n-1). How would you increase speed of calculation for functions?

    • @mgames3209
      @mgames3209  2 месяца назад

      If you make the function I’m pretty sure you can do it. For the speed however, I don’t really know

  • @meleeonyt
    @meleeonyt 10 месяцев назад

    man i can barely make a square in python

  • @xE92vD
    @xE92vD 6 месяцев назад

    Will run slower than anything literally because it uses Python lol

  • @themathforyou
    @themathforyou Год назад

    you should create a file format, so you input a file and you parse through each line

    • @mgames3209
      @mgames3209  Год назад

      Ok

    • @themathforyou
      @themathforyou Год назад

      so like you can create the code in a file and not have to execute every line@@mgames3209

  • @programingisthefuture9185
    @programingisthefuture9185 10 месяцев назад +2

    Super cool! 👌
    I will suggest you to try some functional languages to do interpreters or compilers, they are great at it (great example is OCaml).

  • @iblack1615
    @iblack1615 Год назад

    wow i love the syntax

  • @bearfm
    @bearfm Год назад +5

    now write it in C

  • @mgames3209
    @mgames3209  Год назад +1

    Guys on accident I put wrong chat link, sry

  • @ruria_coda
    @ruria_coda 10 месяцев назад

    Very good! But this like Haxe, VERY GOOD!

  • @sbd2639
    @sbd2639 Год назад +4

    does it compile the code into simpler instructions and interpret them or does it directly interpret line to line? I feel like compiling it first makes it run faster.

    • @mgames3209
      @mgames3209  Год назад +6

      Interpret, idk how to make a compiler

    • @DrunkGeko
      @DrunkGeko 11 месяцев назад

      ​@@mgames3209spoiler: it's very hard to make one

    • @angelcaru
      @angelcaru 4 месяца назад

      @@mgames3209
      def visit_stuff():
      ops.append(something)

  • @William_5956
    @William_5956 4 месяца назад

    Smells like.. Lua

  • @macrro
    @macrro Год назад

    programming language in python is crazy like what libraries do you even use for that? are you just rewriting the syntax for python

    • @mgames3209
      @mgames3209  Год назад

      I didnt use library’s for the base language, and no, I am not rewriting the python syntax

    • @DemidCode
      @DemidCode 3 месяца назад

      he just watched the most popular tutorial on how too make programming language in python: ruclips.net/p/PLZQftyCk7_SdoVexSmwy_tBgs7P0b97yD

  • @kxhu
    @kxhu 5 месяцев назад

    seems like a lua x c type thing?

  • @randomdude5634
    @randomdude5634 10 месяцев назад

    give this guy some file icons

  • @jonhleylandkirby8081
    @jonhleylandkirby8081 4 месяца назад

    can i erase bios in this language?

  • @sekki2554
    @sekki2554 11 месяцев назад

    Isn't that just python with brakets instead of a : at the end of a condition?

    • @mgames3209
      @mgames3209  10 месяцев назад

      Basically, but I made it for fun

  • @c0dezin
    @c0dezin 9 месяцев назад

    thats really cool

  • @rupaksaha9050
    @rupaksaha9050 Год назад

    Wow :O I'm interested! Say, how do you even make a language in Python?

    • @5ft_11in
      @5ft_11in Год назад +1

      Although I don't recommend using Python to make a language, here are two routes you can take:
      An interpreter
      - where you "tokenise" (parse the string into an object with all the key terms)
      like "say 'Hello' to stdout;" would be ["say", ["string","Hello"], "to", ["var", "stdout"]] and execute it by
      looping through the array (in a nutshell.
      Or a compiler
      - where you tokenise like what you would do with the interpreter but instead of executing it on the fly
      you create a machine code (or any other language) executable based on the tokenised code.

  • @rav4464
    @rav4464 3 месяца назад

    name vs code theme?,

  • @shahzaibhassan6504
    @shahzaibhassan6504 Год назад

    i tried this too, Failed because things like AST, Parsers are way too complex for me.

    • @mgames3209
      @mgames3209  Год назад

      This was based on codepulses tutorial, but then I couldn’t do one thing so I remade it and added classes

    • @mgames3209
      @mgames3209  Год назад

      But the code is way different from codepulses

    • @shahzaibhassan6504
      @shahzaibhassan6504 Год назад

      @@mgames3209 Same, i watched his tutorial but i didint understood a single thing. What the heck does a register even do? What was that generate_number_id function doing bruh. I didint understand a single thing

    • @shahzaibhassan6504
      @shahzaibhassan6504 Год назад

      @@mgames3209 Also i just subscribed. Good channel.

  • @FVT-tn8ji
    @FVT-tn8ji 10 месяцев назад

    Creating a programming language is sorcery to me, congrats (i guess :D)

  • @inversionz8503
    @inversionz8503 Год назад

    What do you call it ? Plus what are the major feats

    • @mgames3209
      @mgames3209  Год назад

      Karoo, not really any, just made for fun

  • @curlydev2
    @curlydev2 10 месяцев назад

    Hello, I made a quick tokenizer for my interpreted language, what is the next step ? How to handle nested blocks (like if { while {} for {}} , etc), do you know any ressource that I can read to continue ?

    • @mgames3209
      @mgames3209  10 месяцев назад

      First, I recommend to start small, a simple math interpreter, it’s kinda hard to explain

    • @curlydev2
      @curlydev2 10 месяцев назад

      @@mgames3209 Yes I did one by using posfix, infix and converting everithing into tree, but how to go from math interpreter to actual language

  • @greg_pizzatower
    @greg_pizzatower 10 месяцев назад

    what the fuck, why would someone suffer to make a programming language in PYTHON
    (btw as someone who has coded in python but now codes in different languages, this seems like pain)

  • @no_name4796
    @no_name4796 4 месяца назад

    Honestly the worst code in this video is windows itself

  • @zartowastaken
    @zartowastaken 6 месяцев назад

    why are u typing so fast, chill bro

  • @whimbur
    @whimbur 3 месяца назад

    cool but it's probably not the best idea to make an interpreter using and interpreted language...

  • @travuchka
    @travuchka 10 месяцев назад

    Please, say name of theme Vscode

    • @mgames3209
      @mgames3209  9 месяцев назад

      Ayu dark, you can get it from an extension in vscode

  • @mgames3209
    @mgames3209  Год назад

    ruclips.net/video/Vlu9Our1qeA/видео.html
    CREDIT TO COLMANCOOL FOR PLAYING MY GAME

  • @ARMARICH
    @ARMARICH 3 месяца назад

    крутой

  • @dakata2416
    @dakata2416 10 месяцев назад

    Did.. did you just write an interpreter in an interpreted language 💀

  • @X3NOGLADIAT0R850
    @X3NOGLADIAT0R850 11 месяцев назад

    is bro a senior?

  • @dylanchambi8373
    @dylanchambi8373 3 месяца назад

    What theme is that?

  • @hiredfiredtired
    @hiredfiredtired Год назад

    Where can I download the interpreter for this?

    • @mgames3209
      @mgames3209  Год назад

      I think it’s not that good since you have to have python to use it

    • @mgames3209
      @mgames3209  Год назад

      And it has bugs

    • @mgames3209
      @mgames3209  Год назад

      But I sent where to download

    • @hiredfiredtired
      @hiredfiredtired Год назад

      @@mgames3209 I can try to make documentation for it

    • @hiredfiredtired
      @hiredfiredtired Год назад +1

      @@mgames3209 I regret my words. This thing is so badly documented. I don't think there is a single goddamn comment

  • @someguyfr-z3r
    @someguyfr-z3r Год назад

    W bro.

  • @frommarkham424
    @frommarkham424 4 месяца назад

    Wow you're waaaaaaaaaaaayyyyyyyyyyyyyyyyyy ahead of me I wanna create superintelligent AIs when i grow up 🤖

  • @beepboop9554
    @beepboop9554 10 месяцев назад

    are you typing manually or what cause you type really fast

    • @mgames3209
      @mgames3209  10 месяцев назад

      its because I had to speed up the video

  • @aphztic
    @aphztic Год назад +2

    a programming language in python ong

    • @mgames3209
      @mgames3209  Год назад

      thx

    • @mgames3209
      @mgames3209  Год назад

      At least it’s barebones to not that slower then python

    • @user-dh8oi2mk4f
      @user-dh8oi2mk4f Год назад

      @@mgames3209 Are you sure it's not that much slower than python?

    • @mgames3209
      @mgames3209  Год назад

      @@user-dh8oi2mk4f at least I think…

    • @mgames3209
      @mgames3209  Год назад

      @@user-dh8oi2mk4f you can see yourself if , syou download it, cuz it’s as a .py

  • @djhiphouse9960
    @djhiphouse9960 11 месяцев назад

    Just parse string and execute it via livary

    • @mgames3209
      @mgames3209  11 месяцев назад

      I didnt use any library

    • @djhiphouse9960
      @djhiphouse9960 11 месяцев назад

      @@mgames3209 show full code

  • @raghavsai4720
    @raghavsai4720 9 месяцев назад

    Hello MGgames I have taken notice to your programming language and would like to offer you an elementary programming internship online, the pay would approximate to about 12 cents per month as a starting wage but with effort on your part, has the potential to reach 13 cents. Reach out to me if you are interested in this opportunity!

    • @mgames3209
      @mgames3209  9 месяцев назад

      Bruh my friend sent me an internship lol

  • @X7cF4
    @X7cF4 4 месяца назад

    not bad but why py

  • @sunofabeach9424
    @sunofabeach9424 10 месяцев назад

    it's python

  • @Roxve
    @Roxve 11 месяцев назад

    Great language! Can i have the source code of this? I am trying to learn more about how other people do Interpreters because i am trying to improve mine's!

    • @mgames3209
      @mgames3209  11 месяцев назад +1

      Thanks! You get the source code by downloading it

    • @Roxve
      @Roxve 11 месяцев назад

      @@mgames3209 oh i didn't notice the download link in the first comment thanks

    • @mgames3209
      @mgames3209  11 месяцев назад

      Your welcome@@Roxve

  • @finmat95
    @finmat95 10 месяцев назад

    Using Python?

    • @mgames3209
      @mgames3209  10 месяцев назад

      yes.

    • @finmat95
      @finmat95 10 месяцев назад

      @@mgames3209 Shocking

  • @hjoshua1701
    @hjoshua1701 10 месяцев назад

    lol windows

    • @mgames3209
      @mgames3209  10 месяцев назад

      Ye I don’t use Linux

    • @hjoshua1701
      @hjoshua1701 10 месяцев назад

      @@mgames3209 says who ever

    • @sunofabeach9424
      @sunofabeach9424 10 месяцев назад

      lol drivers work and no package conflicts

    • @hjoshua1701
      @hjoshua1701 10 месяцев назад

      @@sunofabeach9424 if you enjoy going to different websites risking downloading the wrong thing to get any application on Windows, then so be it lol. Better hope you aren't downloading some malware!

  • @AffectionateCanoe-vc4hj
    @AffectionateCanoe-vc4hj 4 месяца назад

    way too slow

  • @terraform2883
    @terraform2883 3 месяца назад

    It's not Cyrillic so fuck it

  • @Caller8194
    @Caller8194 10 месяцев назад

    little tip mate. you dont need to program your own langauge. There are loads of options like python (high-level, multi purpose) to more low-level langauges like C

    • @mgames3209
      @mgames3209  10 месяцев назад +3

      Ik, i just made it for fun

    • @Stedera
      @Stedera 10 месяцев назад

      🤦🏻

  • @yakisikli31
    @yakisikli31 Месяц назад

    too sloww

    • @mgames3209
      @mgames3209  Месяц назад

      Ik, but at least it’s barebones so not too slow

  • @asmlearn
    @asmlearn 4 месяца назад

    python 👏👏