Re: [elixir-core:5791] Self-hosted Elixir?

2016-05-23 Thread Daniel Azuma
José and Robert: That does make a lot of sense. It's probably more practical for languages like Go where a binary distribution is the norm, less so for Elixir where building from source is more the norm. Eric: Not yet. I'm still trying to fix some issues in erl2ex that I had to hack around (gru

[elixir-core:5790] Re: Proposal: Mix Deps equivalent of Bundler's Local Git Repos

2016-05-23 Thread Jordan Day
Rebar3 has the concept of "Checkout Dependencies" (https://www.rebar3.org/docs/dependencies#checkout-dependencies) in which the dependency is specified normally in your rebar.config (git repo, hex package, etc.), but *if* you create a copy of that project in a _checkouts directory, that copy wi

Re: [elixir-core:5789] Self-hosted Elixir?

2016-05-23 Thread Robert Virding
It would definitely make it more difficult to download the sources and build a release. You would need quite a few pre-compiled modules to do that. Now all you need is Erlang which you need anyway to run the system. Robert On Monday, 23 May 2016 10:34:52 UTC+2, José Valim wrote: > > A self-host

[elixir-core:5788] Re: Self-hosted Elixir?

2016-05-23 Thread Eric E.
Is the code available publically? Would be cool to see! :) On Monday, May 23, 2016 at 1:22:31 AM UTC-4, Daniel Azuma wrote: > > Hi all, > > I've been working off and on for a few months on an Erlang->Elixir > transpiler (mostly as an exercise for myself to learn Erlang semantics). I > recently

Re: [elixir-core:5786] Places in Elixir code that set Macro.Env context to match

2016-05-23 Thread José Valim
Luke, The only expressions that can change the scope are special forms. Therefore, the solution is to look at the special forms and see where in them a variable can be set. We have: * left side of = * left side of <- in with and for * left side of -> in case:do, receive:do, try:catch:else, with:e

Re: [elixir-core:5785] Self-hosted Elixir?

2016-05-23 Thread José Valim
A self-hosted compiler is honestly very low priority. The benefits are very small compared to the complications required for bootstrapping the language, which would likely include keeping a list of precompiled modules in the source so we can bootstrap without having Elixir pre-installed. *José V

Re: [elixir-core:5784] Can we have this convenience as a function in the File module: read(file, start, length)

2016-05-23 Thread José Valim
> It would probably be more interesting to add a File.position instead of hiding the underlying behaviour. My position on the topic is the same. Your solution to the problem is 3 lines of code. It doesn't seem to be a common use case either, so I don't see the reasoning in adding it to Elixir. If