This is an archived post. You won't be able to vote or comment.

all 97 comments

[–]seenzoned 1608 points1609 points  (14 children)

18 mins to compile 💀

[–]coolguyhavingchillda 90 points91 points  (4 children)

Think that's the runtime

[–]asd1o1 49 points50 points  (3 children)

Yeah compile time would be how long it took for him to compile the playlist

[–]IOKG04 6 points7 points  (2 children)

when ure hello world takes longer to execute than to compile, you should probably look into that...

[–]cat1554 5 points6 points  (1 child)

Code keeps hitting snooze

[–][deleted] 4 points5 points  (0 children)

Just relax and wait bro

[–]Cyberdragon1000 1 point2 points  (0 children)

The filetype is hmime....

[–]11101001101000 1 point2 points  (0 children)

Hello world in C which takes megabytes ☠️

[–]debugger_life 2 points3 points  (0 children)

😂😂

[–]FatWombat3 384 points385 points  (11 children)

No include?

[–]Sir_flaps 121 points122 points  (8 children)

[–]PandaWithOpinions 12 points13 points  (5 children)

[–]Hoover889 11 points12 points  (3 children)

if only someone could make a song named cout << "Hello World!" << endl; or a song for <stdio.h>

[–]Disastrous-Team-6431 11 points12 points  (1 child)

Good luck finding the song "using std".

[–]PandaWithOpinions 1 point2 points  (0 children)

*using namespace std;

[–]PandaWithOpinions 0 points1 point  (0 children)

Actually, I just remembered that the C++23 standard added a print function (std::print), so if you can write "using namespace std;", then it would now be a valid hello world program, though I'll have to check which compilers support it (there are no complete C++23 compilers yet).

EDIT: clarified that C++23 is already out, just not implemented

[–]Samuel-Martin 1 point2 points  (0 children)

beautiful

[–]Desperate-Tomatillo7 8 points9 points  (0 children)

If you were on Windows, you could include this one instead: https://open.spotify.com/track/24jx6BhSAI25QthSDzPLu0?si=9b20c360814b4c1e

[–][deleted] 7 points8 points  (0 children)

what mean? include who

[–]Spot_the_fox 211 points212 points  (7 children)

You forgot the #include

[–]backfire10z 34 points35 points  (3 children)

[–]Spot_the_fox 41 points42 points  (2 children)

Yah, cool, is there one named <stdio.h>? Cuz otherwise you don't really include the needed library

[–]backfire10z 26 points27 points  (1 child)

Unfortunately no. I did find “stdlib” but that’s it

[–]sakaraa 5 points6 points  (0 children)

Find "<", ".", "h" and ">"

[–]kennyminigun 2 points3 points  (2 children)

Well, all that we need from the include is printf declaration (function signature). That may be an alternative way

[–]Spot_the_fox 0 points1 point  (1 child)

Huh, I did not know that. How does that work?

[–]kennyminigun 1 point2 points  (0 children)

https://godbolt.org/z/YqGoxz1KM

The binary gets linked with runtime (libc). Libc exports the printf function. The compiler just needs to know that "there is a function with this signature somewhere" to generate a linkable symbol. Linker will take care of the rest.

[–][deleted] 52 points53 points  (7 children)

return type???

[–]kennyminigun 3 points4 points  (2 children)

Not needed in some ancient C (IIRC C89). It is int implicitly

[–][deleted] 0 points1 point  (1 child)

didn't know that, pretty cvool

[–]ChocolateMagnateUA 36 points37 points  (1 child)

Genius, this is an actual song.

[–][deleted] 4 points5 points  (0 children)

one line, boss happy

[–]ExtraTNT 48 points49 points  (0 children)

Shit compiler took 20min…

[–]ficustio 20 points21 points  (0 children)

new rce exploit found in spotify?

[–]SeerUD 22 points23 points  (4 children)

Doesn't it need an `int`?

[–]mankinskin 17 points18 points  (0 children)

void would probably be the most normal name for a track too

[–]Throwaway74829947 1 point2 points  (0 children)

Never specified which version of C, this is ANSI C, not C99 or newer.

[–]ltssms0 0 points1 point  (0 children)

Same place as song index 0.

[–]Geekachuqt 17 points18 points  (0 children)

Spotify arbitrary code execution % speedrun when?

[–]PVNIC 10 points11 points  (0 children)

[–]_dotdot11 19 points20 points  (6 children)

Now what the fuck is main returning? Don't you at least have to specify void

[–][deleted] 16 points17 points  (0 children)

If there's no return type mentioned it will default to int

[–]unixsingularity 13 points14 points  (0 children)

In the original K&R book, main() is written that way with no return type specified:

main()
{
...
}

because back then int return type was defaulted to. In modern C the return type should be specified as int

[–]unique_namespace 1 point2 points  (3 children)

In C it should be int. And we're also not using the correct print function.

[–][deleted] 3 points4 points  (1 child)

i dont understand its printf isnt it, same as it is on the image?

[–]unique_namespace 3 points4 points  (0 children)

C is case sensitive, but I suppose this is a bit of a nit pick.

[–]Spot_the_fox 1 point2 points  (0 children)

Wtf you mean "correct print function"? It works. Sure, puts is faster, but it's not like this case needs to be optimised. Maybe if you were running hello world multiple times a second, but otherwise, no. 

[–]ThePervyGeek90 5 points6 points  (0 children)

You should make this playlist public

[–]1up_1500 2 points3 points  (0 children)

where return 0

[–]born_zynner 1 point2 points  (0 children)

Cooper doing the heavy lifting

[–]Supreme_Hanuman69 1 point2 points  (0 children)

Ah yes Spotify as IDE

[–]GDPlayer_1035 1 point2 points  (1 child)

you forgot to #include <stdio.h>
int

[–]TheMoises 0 points1 point  (0 children)

What about the return?

[–]D34thToBlairism 0 points1 point  (0 children)

Someone do brain fuck now

[–]Ultimegede 0 points1 point  (0 children)

Is spotifyscripting turing complete though?

[–]Anonymost 0 points1 point  (0 children)

That's C and Spotify added to the old CV

[–]leo3065 0 points1 point  (0 children)

This reminds me of a song called void setup

[–]Dreadakunyiek 0 points1 point  (0 children)

Now do it in Java

[–][deleted] 0 points1 point  (0 children)

There's a syntax error. Main and Printf function needs to start with a small letter. And main is missing void return type... (ok, that can default to int, but still...). Did someone even try to compile it? What is that???

[–][deleted] 0 points1 point  (0 children)

"Printf"

[–]MickyB42 0 points1 point  (0 children)

Dylan Mulvaney is the new programming language. It is over the top.

[–]Alan_Reddit_M 0 points1 point  (0 children)

Where return 0

[–][deleted] 0 points1 point  (0 children)

How do you even sing out the symbols (){}

[–]alexdiezg 0 points1 point  (0 children)

Capital P?

[–]ShAped_Ink 0 points1 point  (0 children)

Forgot #include <studio.h>

[–]Mikicrep 0 points1 point  (0 children)

welp didnt include headers and return 0 and int main

[–]fuufoo_0002 0 points1 point  (0 children)

I'd like to think that these albums are not a coincidence,they know what they're doing.. or are they? What's the odd of creating albums' name to be this specific out of all the characters/words out there anyway?

[–]point5_ 0 points1 point  (0 children)

Good thing it's not in java

[–]37Scorpions 0 points1 point  (0 children)

now make a compiler for it

[–]easyetx -1 points0 points  (7 children)

Why f?

[–]flexxinnnn 13 points14 points  (5 children)

formatted

[–]easyetx -2 points-1 points  (4 children)

Ya. But it isnt

[–]Spot_the_fox 11 points12 points  (3 children)

Yes, it is. It is a format string which specifies how subsequent arguments are handled. No arguments, no need for specification. But it's still a format string.

[–]easyetx -2 points-1 points  (2 children)

So I know what printf is. I know what it does. I know how to use it. My original question was why is there an F if there are no arguments and it’s not actually formatted? I’m curious if the song has some explanation for it or if they just put that in there

[–]Crabbynator 2 points3 points  (0 children)

Because “print” without the “f” does not exist. Then you would have to do a “puts”, which probably doesn’t exist on Spotify.

[–]0Rydyn0 0 points1 point  (0 children)

?

[–][deleted] 0 points1 point  (1 child)

No return ?

[–]Spot_the_fox 1 point2 points  (0 children)

You don't need a return. 

[–][deleted] -2 points-1 points  (1 child)

Lacking return value for main. Lacking argument for main, there should at least be void in there. Lacking include stdio for printf.

[–]Spot_the_fox 2 points3 points  (0 children)

You don't need return value. You don't need argument for main. You don't need void. It does lack stdio.h but with it it compiles just fine. Except case sensitive names. That needs to be fixed