You are viewing a single thread.
View all comments
45 points

No, it is wrong. Machine code is not source code.

permalink
report
reply
15 points

And even if you had the source code it may not necessarily qualify as open source.

permalink
report
parent
reply
1 point
*

well assembly is technically “source code” and can be 1:1 translated to and from binary, excluding “syntactic sugar” stuff like macros and labels added on top.

permalink
report
parent
reply
3 points

But those things you’re excluding are the most important parts of the source code…

permalink
report
parent
reply
3 points
*

By excluded he means macro assemblers which in my mind do qualify as an actual langauge as they have more complicated syntax than instruction arg1, arg2 …

permalink
report
parent
reply
3 points

The code is produced by the compiler but they are not the original source. To qualify as source code it needs to be in the original language it was written in and a one for one copy. Calling compiler produced assembly source code is wrong as it isn’t what the author wrote and their could be many versions of it depending on architecture.

permalink
report
parent
reply
-5 points

Never heard of a decompiler I see.

permalink
report
parent
reply
22 points

A decompiler doesnt give you access to the comments, variable names, which is an important part of every source code

permalink
report
parent
reply
5 points

Meanwhile, AI is having a heyday with it…

https://arxiv.org/abs/1909.09029

permalink
report
parent
reply
1 point

What’s cool is that you can interpret the var names yourself and rename them whatever you want.

permalink
report
parent
reply
14 points

A decompiler won’t give you the source code. Just some code that might not even necessarily work when compiled back.

permalink
report
parent
reply
-1 points

From the point of view of the decompiler machine code is indeed the source code though

permalink
report
parent
reply
-2 points

And? Decompilers aren’t for noobs. So what if it gives you variable and function names like A000, A001, etc?

It can still lead a seasoned programmer where to go in the raw machine code to mod some things.

permalink
report
parent
reply
-7 points

You’re actually chatting with a hacker that made No-CD hacks.

permalink
report
parent
reply
7 points

Try converting from English to Japanese and back to English.

permalink
report
parent
reply
1 point
*

xor ax, ax

permalink
report
parent
reply
3 points

Still not the actual source code, bucko.

permalink
report
parent
reply
-1 points

No, it’s actually better when you can read the machine code.

Most folks don’t care to recompile the whole thing when all they wanna do is bypass the activation and tracker shit.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.5K

    Monthly active users

  • 978

    Posts

  • 38K

    Comments