Earlier quoted context omitted.
Interesting. Someone should come up with a language that prevents these sorts of mistakes!
That’s impossible. Just be more careful and everything should work, the author’s C was just a bit rusty!
Show HN: I wrote a Java decompiler in pure C language
41–50 of 104 posts
Re: Show HN: I wrote a Java decompiler in pure C language
#42Earlier quoted context omitted.
Things may have changed, but my impression as of several years ago was that JD-GUI was far, far behind the state of the art (Fernflower, aka the built-in IntelliJ decompiler) in terms of correctness, re-sugaring, support for modern Java features, and so on. Fernflower is open source as part of IntelliJ: https://github.com/fesh0r/fernflower
Is there a good GUI for this a la jadx-gui that isn't an entire IDE?
Re: Show HN: I wrote a Java decompiler in pure C language
#43I am always curious how different C programs decide how to manage memory. In this case there are is a custom string library. Functions returned owned heap-allocated strings. However, I think there's a problem where static strings are used interchangably with heap-allocated strings, such as in the function `string class_simple_name(string full)` ( https://github.com/neocanable/garlic/blob/72357ddbcffdb75641... ) Somet…
Interesting. Someone should come up with a language that prevents these sorts of mistakes!
Re: Show HN: I wrote a Java decompiler in pure C language
#44Earlier quoted context omitted.
To some people the process leading to a finished project is the most interesting thing about posts like these.
LLMs can explain the process, and you can build projects with LLMs explaining the process.
Re: Show HN: I wrote a Java decompiler in pure C language
#45Re: Show HN: I wrote a Java decompiler in pure C language
#46Earlier quoted context omitted.
Is there a good GUI for this a la jadx-gui that isn't an entire IDE?
Not that I know of. The features I'd want in order to consider a decompiler GUI "good" (e.g. a good text editing control, go-to-definition, find usages, manual renaming of obfuscated symbol names) quickly approach the scope of an entire IDE, though.
Re: Show HN: I wrote a Java decompiler in pure C language
#47I cannot help but wonder why starting a new project in C in 2025. It’s like driving a car with no seat belts. You sure you want to do that?
Re: Show HN: I wrote a Java decompiler in pure C language
#48I cannot help but wonder why starting a new project in C in 2025. It’s like driving a car with no seat belts. You sure you want to do that?
Re: Show HN: I wrote a Java decompiler in pure C language
#49Earlier quoted context omitted.
That’s impossible. Just be more careful and everything should work, the author’s C was just a bit rusty!
This project is my first project written in C language. Before this, my C language level was only at printf("hello world"). I am very happy because this project made me dare to use secondary pointers.
Re: Show HN: I wrote a Java decompiler in pure C language
#50I cannot help but wonder why starting a new project in C in 2025. It’s like driving a car with no seat belts. You sure you want to do that?