this post was submitted on 20 Feb 2024
45 points (89.5% liked)

Ask Lemmy

25937 readers
986 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 31 points 7 months ago* (last edited 7 months ago) (3 children)

I would like to be able to take compiled machine code and generate human-readable source code.

Imagine being able to fully understand and even modify all closed-source, commercial software.

[–] [email protected] 9 points 7 months ago (1 children)

You can kind of do this now. The problem is that variable names and debugger info is lost, so you wind up with all variables and functions being named v1, v2, v3, etc and f1(), f2(), f3(), etc.

Decompilation is totally a thing

[–] [email protected] 17 points 7 months ago (1 children)

Right but I assume the parent meant that the AI could guess what the original function and variable names were based on the code, and may be even clean the code up by deoptimizing it too.

Trying to make sense of decompiled code is pretty hard for any large code base.

[–] [email protected] 5 points 7 months ago* (last edited 7 months ago)

Deoptimization could definitely happen via AI or even just really good decompilers (much like the black magic that goes into compiler optimizations), but I think that the problem with coming up with original function names is that the information just isnt there. You or the AI can make assumptions and poor guesses, but from a data theory perspective, i think that the compilation process is highly lossy. As such, the AI would essentially have to pull things out of its metaphorical ass to make anything remotely functional. I've had AI write me code with functions that literally don't exist in libraries before instead of telling me it's not possible, and I'm sure many of you reading this have too. Extrapolating that kind of behavior onto this problem, I am doubtful of a successful implementation of this half of the idea.

It sure as shit would be neat though if it could be done, and it would be a strong reciprocal to what Microsoft does with code theft to use as training data for copilot.

[–] [email protected] 5 points 7 months ago* (last edited 7 months ago)

By a twitch streamer vtuber: https://github.com/cyberkaida/reverse-engineering-assistant

An AI assistant that hooks into Ghidra, explaining what things do.

[–] [email protected] 1 points 7 months ago

I like the thought of games made on older engines, especially mmos, being able to be mostly transitioned over to new ones such that they would do it.