Bytecode lib

I started writing a bytecode library but you all know how long I stick to a project before deleting it

It will be based on the mocha decompiler which largely still works, the only problems I have seen so far are the synchronised blocks and string append replacer. Mocha is nice apart from a few small things, such as it being old and not abstracting constant push instructions nicely (uses string values or constant pool indices)

I plan to rewrite it from the ground up incorporating extra features including but not unlimited to; generation of bytecode as well as source from IR code, more suitable abstractions, an application/library representation encapsulating type hierarchies and ideally some sort of pattern matching/transforming script system

I will also keep the constantpool because it simplifies type validation and will contribute to an application wide symbol table, I will not however provide an interface for searching it because that is fucking retarded
[center][size=99pt]ಠ_ಠ[/size][/center]

Where’s semaphore? It’d be good if he chimed in here on the importance of not pissing time away by reinventing the wheel. =\

It isnt reinventing the wheel, more reengineering it. The mocha source code (as far as I know) is not available and I have already refactored much of it.

I would however love to obtain crema just to see what it did and how

edit:
in other news, if somebody that isnt a fuckhead and has any experience with compilers wants to help correct/complete my refactor, feel free to offer

Is it written in Delphi?

Freddy just facepalmed and is thinking about locking this thread

There’s nothing wrong with this topic. =\ I still don’t see why frank_ can’t make do with bcel or asm though. :stuck_out_tongue:

frank_ is a hardass mother fucker asm and bcel are too easy he needs a real challenge

Anyone who buys delphi is being taken for a ride. They’re being sold bottled water straight from the tap.

(pseudo?) open source?

[quote=“BAsh, post:9, topic:335796”][quote author=yakman link=topic=432178.msg3173302#msg3173302 date=1270600762]
Anyone who buys delphi is being taken for a ride. They’re being sold bottled water straight from the tap.
[/quote][/quote]
It’s also like selling sand to people who live in the desert! Consequently, one of the runescape npcs allegedly managed to do this!

I get the feeling that frank_ won’t share. :stuck_out_tongue:

please stop derailing my thread by mentioning freddy

ideally it would be closed source, but depending on how things work out it would potentially become open source

edit: it will be implemented in java of course

[quote=“frank_, post:12, topic:335796”]please stop derailing my thread by mentioning freddy

ideally it would be closed source, but depending on how things work out it would potentially become open source[/quote]
I see you replyizzled to my post - thank you. Open sourcing it would be pretty cool and useful.

For the purposes of this section, providing a jar file with the request not to post elsewhere would be open source enough for most.

considering this the the general discussion of the community members section, I disagree

Fuck land, I’m on a boat motherfucker.
Fuck trees, I climb buoys motherfucker.
I’m on the deck with my boys motherfucker.
The boat engine make noise motherfucker.

I wouldn’t blame him.

How is the API structured?

[quote=“c|p, post:17, topic:335796”]How is the API structured?[/quote]I’m not completely decided on that yet

I will provide access to the low level IR, the unstructured high level IR and then the structured high level IR

I also intend to provide a “pattern matching” scripting system to aid the replacement of code patterns, potentially accessible on all levels of the IR

identified genetic codons pls
makes it pro

good idea though, rep ++

ಠ_ಠ