[fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread denisgolovan
Hi all I decided to start a separate thread for asking about potential candidate for crowd-funding. My personal wish-list is: - support for array calculations / automatic loop parallelization via SSE, AVX, etc. Both static and dynamic arrays should supported. Once implemented vector operat

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Michael Van Canneyt
> Hi all > > I decided to start a separate thread for asking about potential candidate > for crowd-funding. > > My personal wish-list is: > - support for array calculations / automatic loop parallelization via SSE, > AVX, etc. > Both static and dynamic arrays should supported. > Once implemente

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread denisgolovan
> I will leave the technical comments to the compiler developers. > >> BTW, is it possible to state the specific project when donating? > > Yes, if I recall correctly you can give a message when the paypal donate > page appears. (just as you can state that you want to be in the hall of > fame) O

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Sven Barth via fpc-pascal
Am Mi., 19. Dez. 2018, 09:03 hat denisgolovan geschrieben: > My personal wish-list is: > - support for array calculations / automatic loop parallelization via SSE, > AVX, etc. > Both static and dynamic arrays should supported. > Once implemented vector operations on arrays (ala APL) might be

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Martok
> The main problem here is to model what registers an instruction uses and > modifies so that the register allocator of the surrounding function can take > that into account accordingly... Maybe as a first step we could allow in > lining > for funcrions that have a register clause with the touched

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread denisgolovan
>> - Custom/separate allocators for dynamic arrays (to avoid manually patching >> compiler). > > Why do you need that? Besides ordinary arrays I allocate/use arrays backed by mmaped files. Existing functions taking arrays as arguments mostly remain working transparently. That's a huge win in c

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Santiago A.
El 19/12/18 a las 09:02, denisgolovan escribió: Hi all I decided to start a separate thread for asking about potential candidate for crowd-funding. My personal wish-list is: - support for array calculations / automatic loop parallelization via SSE, AVX, etc. Both static and dynamic arrays

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Ryan Joseph
> On Dec 19, 2018, at 5:23 PM, Sven Barth via fpc-pascal > wrote: > > A library as first step would be more useful. Later on one can think about > integrating it into the language itself. > How does that work? I’ve been interested in coroutines for a while now but I don’t understand how t

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Ryan Joseph
> On Dec 19, 2018, at 6:35 PM, Ryan Joseph wrote: > > How does that work? I’ve been interested in coroutines for a while now but I > don’t understand how they function in the language. They would need to manage > stack states and push/restore stacks, which is something a library can’t do > r

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Sven Barth via fpc-pascal
Am Mi., 19. Dez. 2018, 13:18 hat Ryan Joseph geschrieben: > > > > On Dec 19, 2018, at 6:35 PM, Ryan Joseph > wrote: > > > > How does that work? I’ve been interested in coroutines for a while now > but I don’t understand how they function in the language. They would need > to manage stack states

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Sven Barth via fpc-pascal
Am Mi., 19. Dez. 2018, 11:38 hat Martok geschrieben: > > The main problem here is to model what registers an instruction uses and > > modifies so that the register allocator of the surrounding function can > take > > that into account accordingly... Maybe as a first step we could allow in > linin

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 19 Dec 2018, Ryan Joseph wrote: > > On Dec 19, 2018, at 5:23 PM, Sven Barth via fpc-pascal > > wrote: > > > > A library as first step would be more useful. Later on one can think > > about integrating it into the language itself. > > > > How does that work? I’ve been interested in co

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Ryan Joseph
> On Dec 19, 2018, at 9:28 PM, Karoly Balogh (Charlie/SGR) > wrote: > > (After reading that old thread we had...) > > Actually, it can. The only thing you need to do is to allocate a stack > first, then make the "coroutine" functions use it, which is basically > boils down to how you pass you

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 19 Dec 2018, Ryan Joseph wrote: > > (After reading that old thread we had...) > > > > Actually, it can. The only thing you need to do is to allocate a stack > > first, then make the "coroutine" functions use it, which is basically > > boils down to how you pass your arguments and self

Re: [fpc-pascal] Candidate for crowd-funding

2018-12-19 Thread Ryan Joseph
> On Dec 20, 2018, at 1:17 AM, Karoly Balogh (Charlie/SGR) > wrote: > > No, that assembly function just does swapping of the stack and storing the > caller's stack settings and setting up the coroutine's stack instead. The > actual stack is allocated with the Win32 API function VirtualAlloc(),