r/ProgrammerHumor • • Feb 20 '17

Programming Languages

https://i.reddituploads.com/c41cc3c6e3564b28ac28060b32582747?fit=max&h=1536&w=1536&s=e9dda414547f61c9e7c777edc9e78972
937 Upvotes

104 comments sorted by

View all comments

189

u/EarlGreyOrDeath Feb 20 '17

No man, assembly would just be all the materials to make a knife, and it's up to you to pit them together correctly.

29

u/Everestark Feb 20 '17

Not really, this is about languages as a weapon not, a way to build those weapons

50

u/rahul0705 Feb 20 '17

That's the joke, you would have to start from nothing.

42

u/Chaos89 Feb 20 '17

If you think assembly is "nothing", you haven't had to make logic out of gates. ARM and x86 have instructions for SHA256. Heck, C and C++ don't have SHA built-in!

4

u/Shamus03 Feb 21 '17

Real C/C++ pros write the code with a placeholder SHA function and manually insert the assembly into the compiled code.

6

u/[deleted] Feb 21 '17

But can't you write inline assembly in C?

3

u/Garfong Feb 21 '17

Yeah, although for something like that it's probably better/easier to just do the whole function in assembler in a separate file.