-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewriting the bundler in the Lua #689
Comments
I agree with the general idea of making the ecosystem accessible, but I'm not in favor of taking this action, for a number of reasons. Off the top of my head:
To answer @ThistleSifter's question, yes, it would be possible to run this from an workflow. There's an action that installs Lua on the runner (with luarocks), and then you would use a |
I wasn't look at it from the perspective of making the repo more welcoming or inviting. I don't expect that a bundler written in the same language as the rest of the repo will attract an influx of contributions. Rather, I was looking at it from the point of view of the bus factor. You're right that, for example, you wouldn't expect everyone to add to or modify the As somebody in another team once said to me (in good humour) "now it's okay if you get hit by a bus." |
I am wondering if converting the build over to Lua would buy us much. The thing about Lua is that where expertise matters is in the domain it's running under. To do anything useful with it, you have a domain-specific library that it is interacting with. (In our case, it's the PDK Framework.) Whatever domain library a Lua bundler is running under is not going to be any more common knowledge within the team than TypeScript. I think I've never used TypeScript except in this project, but it's just a computer language and those are basically all the same. The syntax is not what's hard. What's hard is understanding the structure of the program and the ramifications of changes. This project will survive only as long as there are team members interested in learning new aspects of it. And usually that is driven by the Mother of All Invention. |
@ThistleSifter makes good points about documentation. The bundler has reasonable general documentation, but it could use some more specific docs about program structure, and warnings about certain gotchas; I'm happy to take on those improvements. FWIW, as it is used in this repo, TypeScript is really just JavaScript with type checking. |
As long as @asherber is volunteering to update documentation, expanded documentation about how to build, test, and deploy the This probably goes without saying, but any new docs for this repo should be at or clickable from the |
(The |
It might be at least worth adding a link to the readme files for each from the top-level readme. Links can be relative to the top of the repo, and they will work in any branch that way. I did this, for example, in the readme for luaosutils. |
I've had it on my mind for a while now that it would be a good idea to rewrite the bundler in Lua. Having a significant part of our functionality written in a language with which most contributors aren't familiar is less than ideal. By my count only @asherber and myself are familiar with it, but I haven't been able to contribute for a while, so that really only leaves one person.
So I'm opening this to plan and discuss any issues around this, such as:
Cc @asherber @rpatters1
The text was updated successfully, but these errors were encountered: