Тёмный

Hello World Speedrun [Former World Record] 

Mults
Подписаться 47 тыс.
Просмотров 114 тыс.
50% 1

Speedrunning Hello World in C++
Today I decided to speedrun Hello World in C++. Hello World is the easiest program to write when you start programming so there's not a big deal but I wanted to make a video so... Here we are.
You need to type some stuff on a notepad and let the PC do the rest.
#Programming #HelloWorld #Mults #C++ #Speedrun #Kirby #Speedrunning #Any% #WorldRecord #vscode #meme

Развлечения

Опубликовано:

 

22 сен 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 156   
@HyBlock
@HyBlock 2 года назад
that was clutch, hoping to see even more runs brother!
@MultsElMesco
@MultsElMesco 2 года назад
Thanks bro! I hope to find other ideas soon!
@trevorthieme5157
@trevorthieme5157 2 года назад
69
@monochromeart7311
@monochromeart7311 2 года назад
You can omit the "return 0;" at the end of the main function, the C++ standard allows it.
@Lk_boca
@Lk_boca 2 года назад
It's very important because it's an integer function and not a void...
@monochromeart7311
@monochromeart7311 2 года назад
@@Lk_boca the C++ standard specifies that the return statement in main (and ONLY in main) can be omitted. When the program reaches the function's end (the curly bracket '}') without encountering any return statement, it will return 0 by default. Note that the function signature must still have int as the return type. Try it yourself, it compiles fine. And iirc, C99 and above also allows it.
@Lk_boca
@Lk_boca 2 года назад
@@monochromeart7311 r/woosh
@Lk_boca
@Lk_boca 2 года назад
@@monochromeart7311 Ok, u right, I’ll start leaving the return out since, as of a about a minute ago, my very trusty gcc compiler didn’t choke slam me for omitting it.
@monochromeart7311
@monochromeart7311 2 года назад
@@Lk_boca and where is the so obvious joke that I missed?
@rossmanmagnus
@rossmanmagnus 2 года назад
Nice but you can cut "return 0" cuz its not c its c++, it automatically knows no errors return
@EmoonX
@EmoonX Год назад
You can also omit it in C, since way back in C99.
@mokongthe3856
@mokongthe3856 2 года назад
Amazing Speedrun, truly the best run of all time.
@troubleZzxX
@troubleZzxX 2 года назад
La carpeta "Weas" me describe completamente siempre que hago un nuevo archivo y no sé ni por qué wea lo hago PD; La mea Speedrun hermano, GG's
@LeonidasArg2021
@LeonidasArg2021 Год назад
Como soy argentino en vez de "weas" pongo "boludeces" me encanta complicarme al programar 😎👌
@davawen9938
@davawen9938 2 года назад
Now for the Tool Assisted Speedrun: #include #include int main(){ std::ofstream file; file.open("hello.cpp"); file
@vas_._sfer6157
@vas_._sfer6157 2 года назад
// In pure C int puts(char *); int main() {return puts("Hello world");}
@davawen9938
@davawen9938 2 года назад
@@vas_._sfer6157 That's unsafe, in pure C, functions which take no arguments are written with void: int main(void) { ... }
@vas_._sfer6157
@vas_._sfer6157 2 года назад
@@davawen9938 Why unsafe? I dont wanna call main from other functions
@Brahvim
@Brahvim 2 года назад
@@vas_._sfer6157 Wouldn't the system call it...? Edit made a month later: if we don't use `void`, it does indeed become a function you can pass anything into. Shouldn't use it with `main()`.
@Brahvim
@Brahvim 2 года назад
I like the `C` file API more, but this is fine too, I guess, LOL.
@curtiseichner1306
@curtiseichner1306 2 года назад
Brave to speedrun this on the C++ version of the game, when the python version is theorized to have better routes.
@marxy3720
@marxy3720 2 года назад
Nice speedrun bro!! 😎
@MultsElMesco
@MultsElMesco 2 года назад
Thanks hahaha
@kabukidanshi7874
@kabukidanshi7874 2 года назад
That was very intense haha nice!
@MultsElMesco
@MultsElMesco 2 года назад
Thanks hahaha
@whitetiana3022
@whitetiana3022 Год назад
every programming class ever. lesson 1: hello world lesson 2: what variables are and how to declare them lesson 3: methods. lesson 4: multidimensional self learning non-euclidean neural-networks.
@cboyslim5490
@cboyslim5490 2 года назад
this is amazing and you could definitely shave 1/3 of that time off
@chair6180
@chair6180 8 месяцев назад
This is so thoughtful and well made. The soundtracks in the video played correctly in accordance with the corresponding video game play progressions. Things that I noticed: 0:00 Capcom opening screen 0:02 ??? (Please let me know) 0:05 Rockman X (Mega Man X) stage selection screen 0:18 Rockman X required initial stage 0:31 COD hit (damn that ; bug 😂) *0:35 "return 0;" 🤔🤷🤣 0:40 Kirby and Minecraft life bar 0:43 Super Mario (don't know which version it is from) 0:46 Metal Slug mission complete
@BboyKeny
@BboyKeny 2 года назад
Long reign the world record holder
@dracokinerek
@dracokinerek Год назад
0:05 love the mega man x intro music
@agrihonoberjorn1612
@agrihonoberjorn1612 2 года назад
Subbed
@amir78989
@amir78989 2 года назад
depending on compiler you can leave out return 0
@dishanshakya8855
@dishanshakya8855 Год назад
You can omit the return 0 and the return type in main which defaults to int
@hermessantos181
@hermessantos181 2 года назад
congrats
@flovous
@flovous 2 года назад
Clutch, lets do with assembly next
@ariankar98k
@ariankar98k 2 года назад
MegaMan X music, nice
@ninja_raven256
@ninja_raven256 2 года назад
-next try python/lua, you can do both at the same time since the print function syntax is the same-
@MultsElMesco
@MultsElMesco 2 года назад
You mean coding both at the same time? Nuts. I've never worked with lua before
@Elmer545
@Elmer545 2 года назад
@@MultsElMesco lua is really easy to learn, prolly easier then python
@do0nv
@do0nv 2 года назад
Python is faster because the .py extension is faster to type than lua
@buji07
@buji07 Год назад
@@Elmer545 lua is the only language i'm advanced at
@pedropolanco7052
@pedropolanco7052 2 года назад
I love how your script lines are in Spanish
@the_cheese_cultist
@the_cheese_cultist Год назад
you can omit the int. also you can omit the return. also you can use puts. also you can avoid the include by using gcc's __builtin_puts so main(){__builtin_puts("hello world");}
@Heavenlylovestattoos
@Heavenlylovestattoos 8 месяцев назад
learning c++ speedrun
@DownbeatNova
@DownbeatNova 3 месяца назад
I wonder who decided “hello world” would be the first program nearly every programmer makes.
@Brahvim
@Brahvim 2 года назад
You can omit the `int` part of the function definition. Any variable without a type is assumed to be of the type `int` (in `C` at least, should transfer to `C++`).
@boring_dystopia
@boring_dystopia 2 года назад
good rng
@eprg9221
@eprg9221 2 года назад
Epic
@MultsElMesco
@MultsElMesco 2 года назад
Thanks!
@Yoh120
@Yoh120 2 года назад
You can open CMD like that? I did not know that, thank god I clicked on this video.
@finesseandstyle
@finesseandstyle 10 месяцев назад
It's essentially the same as running a program using PATH. you can open anything like explorer, cmd, powershell, calc, etc
@nekonomikatadesu235
@nekonomikatadesu235 Год назад
OMG, MEGAMAN X SOUNDTRACK IS PLAYING IN THE BACKGROUND
@tanishqdeep4485
@tanishqdeep4485 Год назад
Me doing it in python : I see this as a win win
@tomasbarria7431
@tomasbarria7431 2 года назад
Documentos/weas JSKSNSJBD
@MultsElMesco
@MultsElMesco 2 года назад
Esperaba que alguien lo notara gkfkgfk
@MazenEhab
@MazenEhab 2 года назад
Ur editing is similar to a channel that has 1+Million subs, you're underrated and I'm pretty sure it's not going to be like that for too long.
@AragamiMusic
@AragamiMusic Год назад
I'd like the same speedrun but in python haha
@sm1le748
@sm1le748 2 года назад
Python: print("Hello World!")
@AnimaBetha
@AnimaBetha Год назад
Finally, wea wena
@draconicepic4124
@draconicepic4124 Месяц назад
Wouldn't you technically be faster to use cstdio and use puts since it's less overall characters to type?
@srabb
@srabb Год назад
what was that sound effect on the intro?
@inkphoenix5446
@inkphoenix5446 2 года назад
you could use printf instead of std::cout to be quicker and you could also omit return 0
@igorswies5913
@igorswies5913 2 года назад
puts would be quicker
@MyLittleMagneton
@MyLittleMagneton 2 года назад
Punch card hello world, when?
@Aviation667
@Aviation667 2 года назад
Challenge accepted
@sashibhusan5721
@sashibhusan5721 2 года назад
World's first fastest Speed run 😲
@huhulili9021
@huhulili9021 2 года назад
Can I get a TAS version of this?
@mr.president6922
@mr.president6922 2 года назад
Main function can return 0 by default you don't need to write it
@gustavothuram5370
@gustavothuram5370 2 года назад
python hello world speedrun: hello = "Hello World!" print(hello)
@bubaabobagugajshdjdbd
@bubaabobagugajshdjdbd 2 года назад
Be faster: print("Hello world")
@tfr
@tfr 2 года назад
Be faster: print('Hello world') double quotes requires you to press shift, thus using single quotes eliminates 2 shift presses therefore further improving speed
@grapesalt
@grapesalt 2 года назад
ruby speedrun: p "Hello, World"
@GingerNingerish
@GingerNingerish 2 года назад
Funniest shit I've ever seen
@MultsElMesco
@MultsElMesco 2 года назад
Thanks bro
@usernameHed
@usernameHed Год назад
Now same with assembly please :p
@ball0on
@ball0on 2 года назад
I want to see a hello world speedrun in brainfuck
@Anonymous-hv7fh
@Anonymous-hv7fh Год назад
ctrl c , ctrl v , enter wouldn't be much more faster ?
@huntabadday2663
@huntabadday2663 2 года назад
Why does his cpp file default to notepad...
@yellowsaint
@yellowsaint 2 года назад
haha, now do it in Haxe
@BruH-xg5eo
@BruH-xg5eo 2 года назад
Me before watching : im a lv 15 hacker and i can say its Just 1 line of code Me after watching : oof it im not Even trying to learn how to code
@FlummoxTheMagnificent
@FlummoxTheMagnificent Год назад
Lmfao ctrl+V
@pixl_xip
@pixl_xip 5 месяцев назад
why dont you just do it all in the command line with vim? you would not need to create the file, and you wouldnt need to open a command prompt midway through
@aguy9836
@aguy9836 Год назад
WC
@vanity1856
@vanity1856 Год назад
speedrun
@m4rt_
@m4rt_ 2 года назад
I just did one in 23 seconds, and I know I can get sub 20 Update: I just did one in 22 seconds (with a newline at the end)
@IamTheOneWhoKnocks265
@IamTheOneWhoKnocks265 2 года назад
How about using turboc++
@artifexmusic
@artifexmusic 2 года назад
now do it in cobol on a ibm mainframe
@snesmocha
@snesmocha 2 года назад
printf is less characters than std::out
@davawen9938
@davawen9938 2 года назад
@DybaTubeMusic I don't think it is with just a character literal
@davawen9938
@davawen9938 2 года назад
@DybaTubeMusic bruh
@vincenzo3574
@vincenzo3574 2 года назад
puts is even shorter
@vincenzo3574
@vincenzo3574 2 года назад
@DybaTubeMusic No it's not unless you use it wrong (i.e. non constant format string or wrong number of arguments)
@davawen9938
@davawen9938 2 года назад
@DybaTubeMusic Noise removed, this is basically the source from glibc: (puts) int _IO_puts(const char *str) { /* Return and validation ignored for brevety */ size_t len = strlen(str); if( _IO_sputn(stdout, str, len) == len) { /* ... */ } } (std::cout) template operator
@phosmium
@phosmium 7 месяцев назад
you dont need to return in this case
@frosty7674
@frosty7674 Год назад
You could make it faster by using std::puts("hello world"); or just puts("hello world"); over that you don't need an explicit return in modern c++.
@Ev3r0x
@Ev3r0x Год назад
implicit return for main in c++ and c has been around for 30 years and you call it "modern c++"?
@demonman1234
@demonman1234 10 месяцев назад
Idk bro you can’t beat my copy paste.
@LeonidasArg2021
@LeonidasArg2021 Год назад
Tenés una dirección con una carpeta llamada "Weas". A mí no me engañas papirri sos mas chileno que el lomo pobre con papas 😏 saludos ❤️
@MultsElMesco
@MultsElMesco Год назад
Jajaja si, así es. Saludos por allá también mi pana!
@Noicer_wastaken
@Noicer_wastaken Год назад
How about just do copy paste?
@sripranav
@sripranav 2 года назад
I challenge you
@luismunoz9126
@luismunoz9126 10 месяцев назад
Are you Chilean?
@Xgamesvidoes
@Xgamesvidoes 2 года назад
I still prefer: printf("Hello World! ");
@meganeshinryakusha
@meganeshinryakusha 2 года назад
python > print('Hello World') aahahahh
@zanxz
@zanxz 5 месяцев назад
megaman x
@toxinist5236
@toxinist5236 Год назад
Cool, now dont use any libriaries
@watercat1248
@watercat1248 2 года назад
I'm able to do that faster the only takes 1 copy and past and very little time to open the code editor
@selumii
@selumii 2 года назад
eres chileno?
@MultsElMesco
@MultsElMesco 2 года назад
Yep, tu también?
@HoloTheDrunk
@HoloTheDrunk 2 года назад
Are there different categories per-OS? If not, I just did it in a little over 20s on Linux I use arch btw
@mlcs
@mlcs 2 года назад
i use Artix, fuck soystemd
@slimeinabox
@slimeinabox Год назад
Bro just prep for the run by copying it and the paste it during the run.
@JunkerSchmidt
@JunkerSchmidt 2 года назад
Is it cpp? You forgot "Out of range error" and BSOD at the end.
@seeforkat
@seeforkat 2 года назад
E
@blitzschlag5818
@blitzschlag5818 2 года назад
weas
@MultsElMesco
@MultsElMesco 2 года назад
Weas
@justawhitecat
@justawhitecat Год назад
could of made less mistakes and typed faster
@auseziegieteursucraineiwst3680
@auseziegieteursucraineiwst3680 2 года назад
NOW DO JAVA!!!! or C#
@desaironak5087
@desaironak5087 2 года назад
Hey I'm also in programing field your thumbnail is not eye catchy would like to discuss about that more
@coolmanthecool603
@coolmanthecool603 Год назад
clutch but I could beat your time
@welcominthehollowdrop
@welcominthehollowdrop Год назад
(this is not a joke it exist) coulde you make a speedrun in brainfuck? (again not a joke brainfuck language really exist)
@DeveloVooshGWeb
@DeveloVooshGWeb 2 года назад
BOO FAKE SPEEDRUN Didn't even include the installation of the thing that runs cpp files...
@OS9N9D
@OS9N9D 2 года назад
So it would take about 9 minutes to install windows lol
@DeveloVooshGWeb
@DeveloVooshGWeb 2 года назад
@@OS9N9D exactly 1. buy new laptop (buy desktop case and parts if can't) 2. install windows 3. install visual studio 4. install code editor 5. C O D E 6. run but this just does step 5 and 6 so FAKE SPEEDRU-
@DeveloVooshGWeb
@DeveloVooshGWeb 2 года назад
@@p0xygen tru you could use Linux you are the true speedrunner-
@DeveloVooshGWeb
@DeveloVooshGWeb 2 года назад
@@p0xygen cool
@DeveloVooshGWeb
@DeveloVooshGWeb 2 года назад
@@p0xygen also idk if you can tell i was joking lmao
@Simplified-Script-Development
I can do better 😎
@devbean1144
@devbean1144 Год назад
i can do better!
@finsflexin
@finsflexin 2 года назад
Dislike
@gavinthecrafter
@gavinthecrafter Год назад
I got an even faster time by doing #include int main(){std::cout
@EMAN-je6ob
@EMAN-je6ob 3 месяца назад
But, can speedrunning assembly?
@dfuibk0
@dfuibk0 Год назад
weas
@rodrigobrito6281
@rodrigobrito6281 Год назад
weas
@MultsElMesco
@MultsElMesco Год назад
Weas, así es
Далее
If Programming Was An Anime
3:26
Просмотров 10 млн
А что если не умеешь играть?🥲
00:46
C++ Developer Learns Python
9:26
Просмотров 2,7 млн
GTA3 Code Review: Weapons, Vehicles, Cops and Gangs
15:00
Premature Optimization
12:39
Просмотров 759 тыс.
Why Most People FAIL to Learn Programming
8:04
Просмотров 1,9 млн
Learning Unreal Engine Be Like
2:01
Просмотров 529 тыс.
Garbage malware
6:20
Просмотров 1,1 млн
Панда 🐼🤣❤️
0:58
Просмотров 2,1 млн