Unnecessary whitespace is not stripped when generating bytecode with -b
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 252
- Avg merge
- 7d 11h
- Merged PRs (30d)
- 3
Description
luajit -b script.lua script.ljbc
Unless the "g" flag is provided too, any unnecessary whitespace/newlines should be stripped too to reduce file size
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the luajit -b script.lua script.ljbc command and compare its output with and without the g flag. Trace the bytecode-generation entry point responsible for preserving unnecessary whitespace/newlines, then verify that the default output is smaller while the g flag retains the existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, lua
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100