Re: [fpc-pascal] C# stackalloc

2018-06-01 Thread Michael Van Canneyt
On Sat, 2 Jun 2018, Ryan Joseph wrote: As a sanity check for myself if you remember a while ago I posted about an idea for “stack aliases” to override the memory allocation for classes. No one really liked the idea and lots of potential safety concerns were raised (fair criticisms). By ran

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-06-01 Thread Ryan Joseph
> On Jun 2, 2018, at 1:35 PM, Nitorami wrote: > > I strongly disagree with the opionon that "+" is natural to be the append > operation. Not even in the context of a list? I’m still not sure what exactly the operations you are doing but it sounds like you have a vector of numbers and you wan

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-06-01 Thread Nitorami
>Why are you using dynamic arrays for vectors/matricies? If what you have is an actual array you wish to grow then + would likely be an append operation. Dynamic arrays are incredibly convenient for purposes like signal processng, whe you need to handle large blocks of numeric data in variable si

[fpc-pascal] C# stackalloc

2018-06-01 Thread Ryan Joseph
As a sanity check for myself if you remember a while ago I posted about an idea for “stack aliases” to override the memory allocation for classes. No one really liked the idea and lots of potential safety concerns were raised (fair criticisms). By random chance today I came upon this feature of

[fpc-pascal] := overload with implicit arrays in generics

2018-06-01 Thread Ryan Joseph
Is this is a bug or am I not doing something right? I wanted to assign an implicit array (I think thats what those parameters are being called now) so I made an overload but the compiler is complaining. Using single characters gives a different error because the compiler thinks it’s an array of

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-06-01 Thread Ryan Joseph
> On Jun 2, 2018, at 5:19 AM, Nitorami wrote: > > Are you serious ? I have been using dynamic arrays a lot for processing of > vectors and matrices containing floating point values, and implemented the + > operator to do the obvious, add the elements of two vectors, NOT to concat > them. This i

Re: [fpc-pascal] Feature announcement: Dynamic array extensions

2018-06-01 Thread Nitorami
> ## "+" operator > The compiler now implements a "+" operator for arrays which is the same > as if Concat() would be called on the arrays. > Note regarding backwards compatibility: existing "+" operator overloads > for dynamic arrays no longer compile. Are you serious ? I have been using dynamic

Re: [fpc-pascal] Realtime and freepascal???

2018-06-01 Thread Marc Santhoff
On Thu, 2018-05-31 at 14:34 +, Mark Morgan Lloyd wrote: > It's notable that the Boeing "Dreamliner" uses Ethernet heavily for both > control and passenger entertainment, allegedly with the various > subsystems both firewalled and airgapped (which raises the question: > would one really need

Re: [fpc-pascal] Realtime and freepascal???

2018-06-01 Thread Marc Santhoff
On Wed, 2018-05-30 at 22:27 +0200, Darius Blaszyk wrote: > My project is planned to do data acquisition, either storing data to flash > memory or sending it over RF, not decided yet. Later on video should be > incorporated, also over RF. There are also multiple analogue controllers > planned to be