Re: [fpc-devel] Progress of pure function research

2018-07-17 Thread Sven Barth via fpc-devel
Ryan Joseph schrieb am Mi., 18. Juli 2018, 01:27: > > > > On Jul 15, 2018, at 11:01 PM, J. Gareth Moreton < > gar...@moreton-family.com> wrote: > > > > So far I'm mostly researching how the node builder works, specifically > how inline > > functions are handled, since that's a situation where a

Re: [fpc-devel] Progress of pure function research

2018-07-17 Thread Ryan Joseph
> On Jul 15, 2018, at 11:01 PM, J. Gareth Moreton > wrote: > > So far I'm mostly researching how the node builder works, specifically how > inline > functions are handled, since that's a situation where a 'call' node is > effectively replaced, and I intend to builda similar system to handle

Re: [fpc-devel] Progress of pure function research

2018-07-17 Thread Martok
Am 16.07.2018 um 18:54 schrieb J. Gareth Moreton: > In that situation, yes it is. Max is a very simple function though, and it > gets > more complicated if it appears in another pure function where the parameters > are > variables, but whose values are deterministic. Actually, this might be

Re: [fpc-devel] Progress of pure function research

2018-07-16 Thread R0b0t1
On Mon, Jul 16, 2018 at 12:01 AM, J. Gareth Moreton wrote: > Hi everyone, > > So I thought I'd do a little progress update on the pure function research. > > So far I'm mostly researching how the node builder works, specifically how > inline > functions are handled, since that's a situation

Re: [fpc-devel] Progress of pure function research

2018-07-16 Thread J. Gareth Moreton
In that situation, yes it is. Max is a very simple function though, and it gets more complicated if it appears in another pure function where the parameters are variables, but whose values are deterministic. In the end, Max is a function that can be pure and inline. For optimization, I figured

Re: [fpc-devel] Progress of pure function research

2018-07-16 Thread Martok
Am 16.07.2018 um 07:01 schrieb J. Gareth Moreton: > As stated in the Wiki page, my first test case is the Max function. Since it > works both as an inline and a pure function, I can easily change the > directive to > analyse the code flow in the compiler. I may have missed this in the discussion

[fpc-devel] Progress of pure function research

2018-07-16 Thread J. Gareth Moreton
Hi everyone, So I thought I'd do a little progress update on the pure function research. So far I'm mostly researching how the node builder works, specifically how inline functions are handled, since that's a situation where a 'call' node is effectively replaced, and I intend to builda similar