Re: Creating and loading D plugins in D app

2017-06-03 Thread Patrick Schluter via Digitalmars-d-learn
On Saturday, 3 June 2017 at 09:41:58 UTC, aberba wrote: On Friday, 2 June 2017 at 16:36:34 UTC, H. S. Teoh wrote: On Fri, Jun 02, 2017 at 12:19:48PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: On Friday, 2 June 2017 at 11:09:05 UTC, aberba wrote: > 1. Get shared libs to work in D (the b

Re: Creating and loading D plugins in D app

2017-06-03 Thread aberba via Digitalmars-d-learn
On Friday, 2 June 2017 at 16:36:34 UTC, H. S. Teoh wrote: On Fri, Jun 02, 2017 at 12:19:48PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: On Friday, 2 June 2017 at 11:09:05 UTC, aberba wrote: > 1. Get shared libs to work in D (the best approach for all D > code) I have done very little

Re: Creating and loading D plugins in D app

2017-06-03 Thread aberba via Digitalmars-d-learn
On Friday, 2 June 2017 at 16:36:34 UTC, H. S. Teoh wrote: On Fri, Jun 02, 2017 at 12:19:48PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: [...] [...] This is not directly related to the OP's question, but recently I wrote a program that, given a user-specified string, transforms it in

Re: Creating and loading D plugins in D app

2017-06-02 Thread Mike B Johnson via Digitalmars-d-learn
On Friday, 2 June 2017 at 12:19:48 UTC, Adam D. Ruppe wrote: On Friday, 2 June 2017 at 11:09:05 UTC, aberba wrote: 1. Get shared libs to work in D (the best approach for all D code) I have done very little with this myself but other people have so it is doable. 1. some kind of embeddable in

Re: Creating and loading D plugins in D app

2017-06-02 Thread aberba via Digitalmars-d-learn
On Thursday, 1 June 2017 at 23:24:13 UTC, aberba wrote: Want to create and load plugins written in D into a D app at run-time, the kind that can make api calls or extended main app with other functionality. I'm currently interested in it for a vibe.d app. How does these stuff work? Plugin s

Re: Creating and loading D plugins in D app

2017-06-02 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Jun 02, 2017 at 12:19:48PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Friday, 2 June 2017 at 11:09:05 UTC, aberba wrote: > > 1. Get shared libs to work in D (the best approach for all D code) > > I have done very little with this myself but other people have so it is > doabl

Re: Creating and loading D plugins in D app

2017-06-02 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 2 June 2017 at 13:05:41 UTC, aberba wrote: Can source of script be reloaded at runtime? It is just an ordinary string. Do I have to wrap external APIs in the "global" object passed as argument to "interpreter()" Yes, anything the script calls must be exposed through that. It doe

Re: Creating and loading D plugins in D app

2017-06-02 Thread aberba via Digitalmars-d-learn
On Friday, 2 June 2017 at 12:19:48 UTC, Adam D. Ruppe wrote: On Friday, 2 June 2017 at 11:09:05 UTC, aberba wrote: 1. Get shared libs to work in D (the best approach for all D code) I have done very little with this myself but other people have so it is doable. 1. some kind of embeddable in

Re: Creating and loading D plugins in D app

2017-06-02 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 2 June 2017 at 11:09:05 UTC, aberba wrote: 1. Get shared libs to work in D (the best approach for all D code) I have done very little with this myself but other people have so it is doable. 1. some kind of embeddable interpreter for a scripting language like (a mini js engine) wh

Re: Creating and loading D plugins in D app

2017-06-02 Thread aberba via Digitalmars-d-learn
On Friday, 2 June 2017 at 02:05:23 UTC, Stefan Koch wrote: On Thursday, 1 June 2017 at 23:24:13 UTC, aberba wrote: Want to create and load plugins written in D into a D app at run-time, the kind that can make api calls or extended main app with other functionality. I'm currently interested in

Re: Creating and loading D plugins in D app

2017-06-02 Thread aberba via Digitalmars-d-learn
On Friday, 2 June 2017 at 02:05:23 UTC, Stefan Koch wrote: On Thursday, 1 June 2017 at 23:24:13 UTC, aberba wrote: Want to create and load plugins written in D into a D app at run-time, the kind that can make api calls or extended main app with other functionality. I'm currently interested in

Re: Creating and loading D plugins in D app

2017-06-01 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 1 June 2017 at 23:24:13 UTC, aberba wrote: Want to create and load plugins written in D into a D app at run-time, the kind that can make api calls or extended main app with other functionality. I'm currently interested in it for a vibe.d app. How does these stuff work? It works

Creating and loading D plugins in D app

2017-06-01 Thread aberba via Digitalmars-d-learn
Want to create and load plugins written in D into a D app at run-time, the kind that can make api calls or extended main app with other functionality. I'm currently interested in it for a vibe.d app. How does these stuff work?