Skip to content
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

Bootstrapping the compiler #163

Open
j14159 opened this issue Mar 26, 2017 · 1 comment
Open

Bootstrapping the compiler #163

j14159 opened this issue Mar 26, 2017 · 1 comment

Comments

@j14159
Copy link
Collaborator

j14159 commented Mar 26, 2017

Basic Problem

Building previous versions of the compiler from source using Alpaca and the rebar3 plugin in their current states in order to build the current compiler from source will recurse into the past. I don't know what all the different versions of Alpaca coexisting will do to each other or if this is even a real concern. Projects that use Alpaca (one of which is Alpaca) need a way to typecheck and compile Alpaca code. Danger: optimizing Alpaca to build Alpaca, see this post.

Questions, Possibilities

How are we going to bootstrap the pieces of Alpaca that require Alpaca themselves? One idea would be to build escript-ized Alpaca releases or sets of .beam files for each release that can be used directly to bootstrap later builds. I don't see much of a way around needing the previous version to build the current one. Current issue: v0.2.8 is going to need v0.2.7 in order to build itself and v0.2.9 will need the one previous so is it turtles all the way down?

@mrkaspa
Copy link

mrkaspa commented Mar 29, 2017

It'll be a good idea, because you'll get type checking and new contributors can learn the language as they help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants