Decode
A Lua/Python Bytecode Disassembler written in C, without external dependencies
Install / Use
/learn @port-zero/DecodeREADME
decode
A Lua/Python Bytecode Disassembler. It is in the very early stages of development. The Lua Disassembler could be called functional, a typical listing it provides you with would look like this:
$ bin/decode test/hello.luac
File has 'luac' ending, assuming lua bytecode.
; Disassembly of file: test/hello.luac
; Endianness: little endian
; Int size: 4
; Size_t size: 8
; Instruction size: 4
; lua_Number size: 8
; Source file name: hello.lua
; Line defined: 0
; Last Line defined: 0
; Number of Upvalues: 0
; Number of Parameters: 0
; Vararg flag: 2
; Maximum stack size: 2
; Constants: (Size 2)
; Line Type Value
; -------------------
0000 STRING: print
0001 STRING: hello world and lua
; Function prototypes list(Size 0): {
; }
; Opcodes (Size 4):
; Line Opcode A | B | C
; -------------------------------------------------
0001 GETGLOBAL 0 | 0 |
0001 LOADK 1 | 1 |
0001 CALL 0 | 2 | 1
0001 RETURN 0 | 1 |
; End of binary information.
The code looks like it just came out of a cows' behind, so beware.
Why another disassembler?
This disassembler is written purely in C, so it may well be faster than lad, ChunkySpy, dis et al. Also, it does not depend on any external libraries. You can use it even without having Lua or Python installed. Yay, right?
TODO
- Parse Python (only header is parsed until now, then the output is mostly garbage)
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
