I like this idea, but I do believe that creating something like this will necessarily require certain opinionated decisions to be made. As such, it might be more suitable to be a custom Mix archive that will not be included (nor maintained) as part of Elixir itself.
~Marten/Qqwy On 15-06-2020 15:59, Ben Wilson wrote: > The issue is, those packages need to be compiled and in a specific > order, how would that work? `hex` isn't a build tool, `mix` is. > > On Monday, June 15, 2020 at 6:07:49 AM UTC-4, Simon St.Laurent wrote: > > I would love to see (some version of) both the original proposal > and this one. They would make IEx a lot more useful. > > Thanks, > Simon St.Laurent > /Introducing Elixir/ > > > On Mon, Jun 15, 2020 at 5:15 AM Stefan Chrobot <ste...@chrobot.io > <javascript:>> wrote: > > This is a nice proposal, but I'd rather have this go all the > way and allow me to pull Hex packages while maintaining the > current IEx session, so something like: > > $ iex --hex > iex> Something.deps_get :some_http_client, "1.0.0" > iex> SomeHttpClient.get(...) > > > Best, > > Stefan > > pon., 15 cze 2020 o 10:47 Abdullah Esmail > <abdulla...@gmail.com <javascript:>> napisał(a): > > Hello, > > I believe it would be extremely helpful to old and new > elixir developers to be able to try out packages without > the need to create a whole project. > Developers coming from different backgrounds (python, > ruby, etc) are used to getting into the interactive shell > and just importing/requiring the package they need and > start playing with it. > > I don't know if this is technically possible with iex, but > it would definitely change how I work with elixir in general. > > Something like: > iex --hex <package1> <package2> > > Even if it takes longer to start, at least I could try > those packages without creating a dummy project and > including those packages as dependencies and then > compiling everything. > One command to rule them all. > > Maybe `iex --hex` could create a temporary dummy project > behind the scenes? > > For what it's worth, I'd be *very* willing to help work on > implementing this if it's going to happen. > > I apologize if this has been discussed or brought up > before. I couldn't find a similar topic. > > -- > You received this message because you are subscribed to > the Google Groups "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails > from it, send an email to elixir-l...@googlegroups.com > <javascript:>. > To view this discussion on the web visit > > https://groups.google.com/d/msgid/elixir-lang-core/40ef0ab9-7d92-4601-b445-de7c5796c046o%40googlegroups.com > > <https://groups.google.com/d/msgid/elixir-lang-core/40ef0ab9-7d92-4601-b445-de7c5796c046o%40googlegroups.com?utm_medium=email&utm_source=footer>. > > -- > You received this message because you are subscribed to the > Google Groups "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from > it, send an email to elixir-l...@googlegroups.com <javascript:>. > To view this discussion on the web visit > > https://groups.google.com/d/msgid/elixir-lang-core/CACzMe7bTc_rfzwneWVruKYghGRePynjRAgXYXQGqTP_zon17hw%40mail.gmail.com > > <https://groups.google.com/d/msgid/elixir-lang-core/CACzMe7bTc_rfzwneWVruKYghGRePynjRAgXYXQGqTP_zon17hw%40mail.gmail.com?utm_medium=email&utm_source=footer>. > > -- > You received this message because you are subscribed to the Google > Groups "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to elixir-lang-core+unsubscr...@googlegroups.com > <mailto:elixir-lang-core+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/d5609066-bfc8-4a7c-aaa2-0534ec8d9a2fo%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/d5609066-bfc8-4a7c-aaa2-0534ec8d9a2fo%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/4d1cd769-134b-5245-0925-2ad442ce987d%40resilia.nl.
signature.asc
Description: OpenPGP digital signature