My programming language

  Рет қаралды 70,980

MGAMES!

MGAMES!

Жыл бұрын

Over the last month I made a programming language

Пікірлер: 157
@mgames3209
@mgames3209 11 ай бұрын
To download: applemm321.itch.io/karop You need to download python python here: python.org
@cakelover4578washere
@cakelover4578washere 8 ай бұрын
or use chocolqtey to download python, its a package manager for windows
@itzsummerofc
@itzsummerofc 9 ай бұрын
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 8 ай бұрын
you literally tried to create chatgpt
@Taokyle
@Taokyle 8 ай бұрын
Bro made a language, literally
@justind4615
@justind4615 8 ай бұрын
@@xirate7091 yea but his language still just giving specific instructions to machine but chatgpt is AI that processes text differently
@jextendecortex7577
@jextendecortex7577 7 ай бұрын
Yo do you have it published anywhere?
@MrGuitarMix
@MrGuitarMix 9 ай бұрын
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 9 ай бұрын
Nice
@mgames3209
@mgames3209 11 ай бұрын
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 11 ай бұрын
Yeh do a tuto
@lightcomic1
@lightcomic1 10 ай бұрын
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 10 ай бұрын
@@lightcomic1 ok
@Roxve
@Roxve 9 ай бұрын
​@@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 9 ай бұрын
@@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 Жыл бұрын
I’ve now added classes!
@Cosmotix
@Cosmotix 11 ай бұрын
This is sick man. Could you share what theme you use please?
@mgames3209
@mgames3209 11 ай бұрын
Ayu dark, you can get it from an extention in vocoder
@Cosmotix
@Cosmotix 11 ай бұрын
thx bro:)
@BenPlaysSomething
@BenPlaysSomething 11 ай бұрын
Cool Language! You should create a tutorial on how you made it.
@mgames3209
@mgames3209 11 ай бұрын
Thx
@manda3dprojects966
@manda3dprojects966 8 ай бұрын
It's easy to build a programming language, lex, parse, and transpile, gdb-lex, gdb-parser, and gdb-debug.
@SDFTDusername
@SDFTDusername 3 ай бұрын
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 3 ай бұрын
@@manda3dprojects966u forgot about the AST😂
@ragdude7323
@ragdude7323 5 ай бұрын
I like the scope = idea, means you can exchange scopes which would be interesting
@mgames3209
@mgames3209 5 ай бұрын
Ok
@iblack1615
@iblack1615 11 ай бұрын
wow i love the syntax
@mgames3209
@mgames3209 11 ай бұрын
I made it Like JS
@sbd2639
@sbd2639 10 ай бұрын
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 10 ай бұрын
Interpret, idk how to make a compiler
@DrunkGeko
@DrunkGeko 8 ай бұрын
​@@mgames3209spoiler: it's very hard to make one
@angelcaru
@angelcaru Ай бұрын
@@mgames3209 def visit_stuff(): ops.append(something)
@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
@jonhleylandkirby8081
@jonhleylandkirby8081 Ай бұрын
can i erase bios in this language?
@programingisthefuture9185
@programingisthefuture9185 8 ай бұрын
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).
@mgames3209
@mgames3209 8 ай бұрын
Ok
@curlydev2
@curlydev2 8 ай бұрын
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 8 ай бұрын
First, I recommend to start small, a simple math interpreter, it’s kinda hard to explain
@curlydev2
@curlydev2 8 ай бұрын
@@mgames3209 Yes I did one by using posfix, infix and converting everithing into tree, but how to go from math interpreter to actual language
@themathforyou
@themathforyou 9 ай бұрын
you should create a file format, so you input a file and you parse through each line
@mgames3209
@mgames3209 9 ай бұрын
Ok
@themathforyou
@themathforyou 9 ай бұрын
so like you can create the code in a file and not have to execute every line@@mgames3209
@rupaksaha9050
@rupaksaha9050 10 ай бұрын
Wow :O I'm interested! Say, how do you even make a language in Python?
@AntiBabyPill
@AntiBabyPill 10 ай бұрын
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.
@kxhu
@kxhu 3 ай бұрын
seems like a lua x c type thing?
@macrro
@macrro 10 ай бұрын
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 10 ай бұрын
I didnt use library’s for the base language, and no, I am not rewriting the python syntax
@DemidCode
@DemidCode Ай бұрын
he just watched the most popular tutorial on how too make programming language in python: kzbin.info/aero/PLZQftyCk7_SdoVexSmwy_tBgs7P0b97yD
@dylanchambi8373
@dylanchambi8373 Ай бұрын
What theme is that?
@DamianBossPL
@DamianBossPL 10 ай бұрын
What's more impressive is your typing speed.
@trex511ft
@trex511ft 8 ай бұрын
lol
@c0dezin
@c0dezin 7 ай бұрын
thats really cool
@ruria_coda
@ruria_coda 8 ай бұрын
Very good! But this like Haxe, VERY GOOD!
@inversionz8503
@inversionz8503 10 ай бұрын
What do you call it ? Plus what are the major feats
@mgames3209
@mgames3209 10 ай бұрын
Karoo, not really any, just made for fun
@mgames3209
@mgames3209 10 ай бұрын
Guys on accident I put wrong chat link, sry
@rav4464
@rav4464 Ай бұрын
name vs code theme?,
@JotaleaGG
@JotaleaGG 9 ай бұрын
I always tried to do this. I just didn't get enough motivation.
@mgames3209
@mgames3209 9 ай бұрын
What did you usually fail at?
@JotaleaGG
@JotaleaGG 9 ай бұрын
@@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 9 ай бұрын
Ok@@JotaleaGG
@Roxve
@Roxve 9 ай бұрын
​​​@@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
@meleeplaysgames
@meleeplaysgames 8 ай бұрын
man i can barely make a square in python
@mzakyr342
@mzakyr342 4 ай бұрын
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 4 ай бұрын
How far did you get in them?
@mzakyr342
@mzakyr342 4 ай бұрын
@@mgames3209 implementing data type likes string, booleans, integer, float, but im too lazy so rm -rf *
@mzakyr342
@mzakyr342 4 ай бұрын
@@mgames3209 idk i forgor but i remeber it was in rust
@mgames3209
@mgames3209 4 ай бұрын
@@mzakyr342 well this was in python so it’s probably a lot easier then rust
@awru
@awru 10 ай бұрын
Please, can u do documentation?
@mgames3209
@mgames3209 10 ай бұрын
I’ll make a video tutorial
@awru
@awru 10 ай бұрын
@@mgames3209 okay! I will be very grateful
@randomdude5634
@randomdude5634 8 ай бұрын
give this guy some file icons
@shahzaibhassan6504
@shahzaibhassan6504 11 ай бұрын
i tried this too, Failed because things like AST, Parsers are way too complex for me.
@mgames3209
@mgames3209 11 ай бұрын
This was based on codepulses tutorial, but then I couldn’t do one thing so I remade it and added classes
@mgames3209
@mgames3209 11 ай бұрын
But the code is way different from codepulses
@shahzaibhassan6504
@shahzaibhassan6504 10 ай бұрын
@@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 10 ай бұрын
@@mgames3209 Also i just subscribed. Good channel.
@sekki2554
@sekki2554 8 ай бұрын
Isn't that just python with brakets instead of a : at the end of a condition?
@mgames3209
@mgames3209 8 ай бұрын
Basically, but I made it for fun
@FVT-tn8ji
@FVT-tn8ji 8 ай бұрын
Creating a programming language is sorcery to me, congrats (i guess :D)
@mgames3209
@mgames3209 8 ай бұрын
Thx
@user-xb3ux9tz7i
@user-xb3ux9tz7i 10 ай бұрын
W bro.
@mgames3209
@mgames3209 10 ай бұрын
kzbin.info/www/bejne/jJ3YaoKrp5akm6M CREDIT TO COLMANCOOL FOR PLAYING MY GAME
@travuchka
@travuchka 7 ай бұрын
Please, say name of theme Vscode
@mgames3209
@mgames3209 7 ай бұрын
Ayu dark, you can get it from an extension in vscode
@gperm4941
@gperm4941 11 ай бұрын
Where can I download the interpreter for this?
@mgames3209
@mgames3209 11 ай бұрын
I think it’s not that good since you have to have python to use it
@mgames3209
@mgames3209 11 ай бұрын
And it has bugs
@mgames3209
@mgames3209 11 ай бұрын
But I sent where to download
@gperm4941
@gperm4941 11 ай бұрын
@@mgames3209 I can try to make documentation for it
@gperm4941
@gperm4941 11 ай бұрын
@@mgames3209 I regret my words. This thing is so badly documented. I don't think there is a single goddamn comment
@Roxve
@Roxve 9 ай бұрын
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 9 ай бұрын
Thanks! You get the source code by downloading it
@Roxve
@Roxve 9 ай бұрын
@@mgames3209 oh i didn't notice the download link in the first comment thanks
@mgames3209
@mgames3209 9 ай бұрын
Your welcome@@Roxve
@X3NOGLADIAT0R850
@X3NOGLADIAT0R850 9 ай бұрын
is bro a senior?
@catsdontboot8735
@catsdontboot8735 10 ай бұрын
python with brackets
@mgames3209
@mgames3209 10 ай бұрын
yes
@trex511ft
@trex511ft 8 ай бұрын
should be considered a war crime.
@mgames3209
@mgames3209 8 ай бұрын
@@trex511ft x = 3 if x > 2 { print("no its not") }
@mgames3209
@mgames3209 8 ай бұрын
@@trex511ft i used python to make python with brackets...
@trex511ft
@trex511ft 8 ай бұрын
@@mgames3209 you sir are crazy, I heard some dude used C to make C++, that's an even greater crime.
@William_5956
@William_5956 Ай бұрын
Smells like.. Lua
@bearfm
@bearfm 11 ай бұрын
now write it in C
@mgames3209
@mgames3209 11 ай бұрын
Oh shoot.
@beepboop9554
@beepboop9554 8 ай бұрын
are you typing manually or what cause you type really fast
@mgames3209
@mgames3209 8 ай бұрын
its because I had to speed up the video
@ARMARICH
@ARMARICH Ай бұрын
крутой
@no_name4796
@no_name4796 Ай бұрын
Honestly the worst code in this video is windows itself
@overbored1337
@overbored1337 4 ай бұрын
Pro tip: Use another programming language Not even python uses python for interpreting and parsing for a good reason
@podemb.
@podemb. 8 ай бұрын
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)
@xE92vD
@xE92vD 4 ай бұрын
Will run slower than anything literally because it uses Python lol
@finmat95
@finmat95 8 ай бұрын
Using Python?
@mgames3209
@mgames3209 8 ай бұрын
yes.
@finmat95
@finmat95 8 ай бұрын
@@mgames3209 Shocking
@frommarkham424
@frommarkham424 Ай бұрын
Wow you're waaaaaaaaaaaayyyyyyyyyyyyyyyyyy ahead of me I wanna create superintelligent AIs when i grow up 🤖
@mgames3209
@mgames3209 Ай бұрын
Good luck!
@dakata2416
@dakata2416 8 ай бұрын
Did.. did you just write an interpreter in an interpreted language 💀
@mgames3209
@mgames3209 8 ай бұрын
Yes
@dakata2416
@dakata2416 8 ай бұрын
@@mgames3209 based
@djhiphouse9960
@djhiphouse9960 9 ай бұрын
Just parse string and execute it via livary
@mgames3209
@mgames3209 9 ай бұрын
I didnt use any library
@djhiphouse9960
@djhiphouse9960 9 ай бұрын
@@mgames3209 show full code
@shiba-dev
@shiba-dev 4 ай бұрын
why are u typing so fast, chill bro
@X7cF4
@X7cF4 Ай бұрын
not bad but why py
@mgames3209
@mgames3209 Ай бұрын
Just cause
@raghavsai4720
@raghavsai4720 6 ай бұрын
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 6 ай бұрын
Bruh my friend sent me an internship lol
@whimbur
@whimbur Ай бұрын
cool but it's probably not the best idea to make an interpreter using and interpreted language...
@mgames3209
@mgames3209 Ай бұрын
Ik
@aphztic
@aphztic 11 ай бұрын
a programming language in python ong
@mgames3209
@mgames3209 11 ай бұрын
thx
@mgames3209
@mgames3209 11 ай бұрын
At least it’s barebones to not that slower then python
@user-dh8oi2mk4f
@user-dh8oi2mk4f 11 ай бұрын
@@mgames3209 Are you sure it's not that much slower than python?
@mgames3209
@mgames3209 11 ай бұрын
@@user-dh8oi2mk4f at least I think…
@mgames3209
@mgames3209 11 ай бұрын
@@user-dh8oi2mk4f you can see yourself if , syou download it, cuz it’s as a .py
@sunofabeach9424
@sunofabeach9424 7 ай бұрын
it's python
@mgames3209
@mgames3209 7 ай бұрын
its not
@hjoshua1701
@hjoshua1701 8 ай бұрын
lol windows
@mgames3209
@mgames3209 8 ай бұрын
Ye I don’t use Linux
@hjoshua1701
@hjoshua1701 8 ай бұрын
@@mgames3209 says who ever
@sunofabeach9424
@sunofabeach9424 7 ай бұрын
lol drivers work and no package conflicts
@hjoshua1701
@hjoshua1701 7 ай бұрын
@@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!
@Caller8194
@Caller8194 8 ай бұрын
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 8 ай бұрын
Ik, i just made it for fun
@Stedera
@Stedera 7 ай бұрын
🤦🏻
@terraform2883
@terraform2883 Ай бұрын
It's not Cyrillic so fuck it
@AffectionateCanoe-vc4hj
@AffectionateCanoe-vc4hj Ай бұрын
way too slow
@asmlearn
@asmlearn 2 ай бұрын
python 👏👏
Python vs C++ Speed Comparison
1:04
The Builder
Рет қаралды 1,8 МЛН
How AIs, like ChatGPT, Learn
8:55
CGP Grey
Рет қаралды 10 МЛН
UFC 302 : Махачев VS Порье
02:54
Setanta Sports UFC
Рет қаралды 1,4 МЛН
Каха инструкция по шашлыку
01:00
К-Media
Рет қаралды 8 МЛН
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 26 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 43 МЛН
I Designed Custom Minecraft Bosses...
8:01
Daniel Krafft
Рет қаралды 2,4 МЛН
Learn Reverse Engineering (for hacking games)
7:26
cazz
Рет қаралды 984 М.
5 tips to finish a project
1:06
MGAMES!
Рет қаралды 171
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 548 М.
Procedurally Generating Icons for my Farming Game
18:50
ThinMatrix
Рет қаралды 129 М.
The Fascinating Programming of a Chess Engine
6:45
Bartek Spitza
Рет қаралды 306 М.
I Used AI to Make a ROBLOX Game…
8:13
Sleigher
Рет қаралды 1,2 МЛН
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
Every programming tutorial
0:29
Jombo
Рет қаралды 15 МЛН
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,6 МЛН
skibidi toilet zombie universe 30 ( New Virus)
2:32
MonsterUP
Рет қаралды 3,1 МЛН
НАСТОЯЩАЯ ЖИЗНЬ КОТА В ВР ( I Am Cat )
22:48
perpetuumworld
Рет қаралды 245 М.
Қорқынышты Майнкрафт - 5 бөлім ✅
32:10