Re: [Zotonic-Dev] Using Elixir to Develop

2017-10-11 Thread Jake Morrison
Hi David, On Tue, Oct 10, 2017 at 12:21:05PM +, da...@ddeboer.nl wrote: > > > > > I have converted larger Erlang codebases to Elixir incrementally > > Jake, can you explain the rationale behind this? Why did you want to run > your apps in Elixir instead of Erlang? I have been using Erlang

Re: [Zotonic-Dev] Using Elixir to Develop

2017-10-10 Thread Marc Worrell
Hi, David and I discussed this today and we think that there is a possibility to make a zotonic-plug in combination with a “default” site in Zotonic. David made some notes, which I assume he will share here :) There are some details we need to figure out, like how we are using cowboy2 and if

Re: [Zotonic-Dev] Using Elixir to Develop

2017-10-10 Thread Allen Wyma
I'm more than happy to help convert some pieces. I left some messages on gitter. I just couldn't get zotonic to run by itself. It would be great if there was a way I could just add them as plugs, like David was saying. On Tuesday, October 10, 2017 at 8:21:05 PM UTC+8, da...@ddeboer.nl wrote: >

Re: [Zotonic-Dev] Using Elixir to Develop

2017-10-10 Thread david
> > I have converted larger Erlang codebases to Elixir incrementally Jake, can you explain the rationale behind this? Why did you want to run your apps in Elixir instead of Erlang? > The most interesting thing is probably an example combining Zotonic with > Phoenix. This is something

Re: [Zotonic-Dev] Using Elixir to Develop

2017-10-02 Thread Jake Morrison
On Mon, Oct 02, 2017 at 10:39:04AM +, Marc Worrell wrote: > > > On 2 Oct 2017, at 02:19, Jake Morrison wrote: > > > > Marc, > > > > On Fri, Sep 29, 2017 at 09:40:07AM +, Marc Worrell wrote: > >> Can mix build rebar3 based apps? > > > > Mix is more or less a

Re: [Zotonic-Dev] Using Elixir to Develop

2017-10-02 Thread Marc Worrell
> On 2 Oct 2017, at 02:19, Jake Morrison wrote: > > Marc, > > On Fri, Sep 29, 2017 at 09:40:07AM +, Marc Worrell wrote: >> Can mix build rebar3 based apps? > > Mix is more or less a replacement for rebar3, so they are mutually > exclusive, though largely compatible. > >>

Re: [Zotonic-Dev] Using Elixir to Develop

2017-10-01 Thread Jake Morrison
Marc, On Fri, Sep 29, 2017 at 09:40:07AM +, Marc Worrell wrote: > Can mix build rebar3 based apps? Mix is more or less a replacement for rebar3, so they are mutually exclusive, though largely compatible. > If so then we can just provide a mix based project. For Elixir users, the easiest

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Marc Worrell
Can mix build rebar3 based apps? If so then we can just provide a mix based project. I am also thinking of using the introspection (we are using that for notify observers) to discover if a module, filter, action or other type of Zotonic callback module is an Elixir module. And if so we could

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Jake Morrison
On Fri, Sep 29, 2017 at 08:12:53AM +, Marc Worrell wrote: > Thinking of it… we do use a lot of records for all notifications and > postbacks. > > Are those supported in Elixir? Records are supported, here is the Elixir syntax: https://hexdocs.pm/elixir/Record.html Maps are generally easier

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Marc Worrell
> On 29 Sep 2017, at 10:38, Allen Wyma wrote: > > Ganz geil! How to connect? That is German, actually. The team is quite present on gitter. https://gitter.im/zotonic/zotonic Maas-Maarten, David and Arthur are there quite regularly.

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Allen Wyma
Ganz geil! How to connect? On Fri, Sep 29, 2017 at 4:13 PM Marc Worrell wrote: > On 29 Sep 2017, at 10:11, Allen Wyma wrote: > > I’m more than willing to help out in exchange for some Dutch help? > Language 4 language exchange? :) > > > LOL, quite some

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Marc Worrell
> On 29 Sep 2017, at 10:11, Allen Wyma wrote: > > I’m more than willing to help out in exchange for some Dutch help? Language 4 > language exchange? :) LOL, quite some people in the core team are quite proficient in Dutch. So that won’t be problematic :) - M -- ---

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Marc Worrell
Thinking of it… we do use a lot of records for all notifications and postbacks. Are those supported in Elixir? - Marc > On 29 Sep 2017, at 08:54, Kai Janson wrote: > > Some of the things in the hrl file could be replaced by Elixir macros or > functions? > > Sent from my

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Allen Wyma
I’m more than willing to help out in exchange for some Dutch help? Language 4 language exchange? :) On Fri, Sep 29, 2017 at 4:10 PM Kai Janson wrote: > Some of the things in the hrl file could be replaced by Elixir macros or > functions? > > Sent from my non-google-device > >

Re: [Zotonic-Dev] Using Elixir to Develop

2017-09-29 Thread Kai Janson
Some of the things in the hrl file could be replaced by Elixir macros or functions? Sent from my non-google-device > On Sep 29, 2017, at 02:51, Marc Worrell wrote: > > Hi Allen, > > Two weeks ago David de Boer and I had a look at how Elixir and > Erlang could be mixed. > >