Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-25 Thread Bo Berglund
On Sat, 7 Apr 2018 16:09:29 +0100, Graeme Geldenhuys wrote: > I much prefer NNTP newsgroups to the much slower and often ad-driven > web forums, or mailing lists. Plus I can easily download all messages > (dating back to 2006) for offline viewing and searching

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mi., 25. Apr. 2018, 15:38: > Certainly this is a crutch because there isn’t a full ARC system. I see it > as an easy solution and a quick fix to get a little more utility out of the > language without overhauling everything. What you are

Re: [fpc-pascal] Next language feature for pas2js...

2018-04-25 Thread Reimar Grabowski
On Wed, 25 Apr 2018 16:43:30 +0200 (CEST) Michael Van Canneyt wrote: > Ah, webgl... > > I had a look at this some time ago, and got depressed. Can you elaborate? R. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Reimar Grabowski
On Wed, 25 Apr 2018 22:14:17 +0700 Ryan Joseph wrote: > ... and Android is all Java right? AFAICR it's now Kotlin, Java, C++ and FPC in order of support and ease of use. R. ___ fpc-pascal maillist -

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Alexander Grotewohl
Well with an attitude like that, here's hoping you leave the pascal community sooner than later :) On 04/25/2018 11:19 AM, Ryan Joseph wrote: On Apr 25, 2018, at 10:07 PM, Alexander Grotewohl wrote: At work I've recently used Free Pascal to interface our accounting

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 10:07 PM, Alexander Grotewohl wrote: > > At work I've recently used Free Pascal to interface our accounting system to > our WordPress WooCommerce store using Free Pascal's built in JSON support, > fphttpclient, etc. > > I could list off a bunch of new

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 9:18 PM, Michael Van Canneyt > wrote: > > Available libraries for common programming tasks - and I mean this on a > high-level > level - are infinitely more important, so I don't need to get down to the > gory details of many tasks: what kind of

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 9:27 PM, Dennis wrote: > > People new to iOS will learn swift because it allows them easily call all > the libraries of iOS, not because swift is better than Pascal or Java. It’s worse than that because Apple has designed Swift to work with how

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Michael Van Canneyt
On Wed, 25 Apr 2018, Alexander Grotewohl wrote: At work I've recently used Free Pascal to interface our accounting system to our WordPress WooCommerce store using Free Pascal's built in JSON support, fphttpclient, etc. I could list off a bunch of new languages with goofy names that could

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Alexander Grotewohl
At work I've recently used Free Pascal to interface our accounting system to our WordPress WooCommerce store using Free Pascal's built in JSON support, fphttpclient, etc. I could list off a bunch of new languages with goofy names that could have done it, but Free Pascal did it just fine.

Re: [fpc-pascal] Next language feature for pas2js...

2018-04-25 Thread Michael Van Canneyt
On Wed, 25 Apr 2018, Ingemar Ragnemalm wrote: Michael Van Canneyt wrote: Hello, Now that interface support has been added to the list of implemented language features of pas2js, we're looking to get feedback on what best to tackle next. This time, the poll is

[fpc-pascal] Next language feature for pas2js...

2018-04-25 Thread Ingemar Ragnemalm
Michael Van Canneyt wrote: Hello, Now that interface support has been added to the list of implemented language features of pas2js, we're looking to get feedback on what best to tackle next. This time, the poll is not on the forum, so you do not need to have an account

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Dennis
Michael Van Canneyt wrote: I want the same for pascal. But I really still need to see convincing evidence that language features contribute to productivity. Available libraries for common programming tasks - and I mean this on a high-level level - are infinitely more important, so I

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Michael Van Canneyt
On Wed, 25 Apr 2018, Ryan Joseph wrote: On Apr 25, 2018, at 8:42 PM, Michael Van Canneyt wrote: 'make it competitive with new entries in the market' is not a goal of the free pascal team. This is a hobby project for most devs. Monetary gain is not a goal.

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 8:59 PM, Maciej Izak wrote: > > 4. finish work for closures Having closures in FPC would be a major milestone. > 5. few parts of extended RTTI > 6. aspects what’s aspects? > > after point "3" new mode has more sense but after "6" is rather

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Martin Schreiber
On 04/25/2018 03:52 PM, Ryan Joseph wrote: > > The team has done a good job keeping up with the best (or at least popular) > new ideas in programming (like Generics, records with methods, interfaces) > and that’s why I like to share what ever ideas I have in case they’re useful. Do you know

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Maciej Izak
2018-04-25 15:38 GMT+02:00 Ryan Joseph : > Are there actual plans to make a new dialect of FPC? Yes this is possible but for now it has not much sense. My personal roadmap : 1. clean up few things for Generics.Collections and some bug fixes for generics 2. merge for

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 8:42 PM, Michael Van Canneyt > wrote: > > 'make it competitive with new entries in the market' is not a goal of the > free pascal team. > > This is a hobby project for most devs. Monetary gain is not a goal. > > Probably sounds like an

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Michael Van Canneyt
On Wed, 25 Apr 2018, Ryan Joseph wrote: On Apr 25, 2018, at 8:06 PM, Marco van de Voort wrote: Fundamental changes in the object model are never minor. Delphi/Object Pascal does not allow static objects, so that is a big thing. I guess I’m not seeing this same way as

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 8:06 PM, Marco van de Voort wrote: > > Fundamental changes in the object model are never minor. Delphi/Object > Pascal does not allow static objects, so that is a big thing. I guess I’m not seeing this same way as others are. It seems like if we have a

[fpc-pascal] Next language feature for pas2js...

2018-04-25 Thread Michael Van Canneyt
Hello, Now that interface support has been added to the list of implemented language features of pas2js, we're looking to get feedback on what best to tackle next. This time, the poll is not on the forum, so you do not need to have an account to vote. Here is a link to the poll:

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: > > > > Yes, I can vaguely see some minor syntactic sugar benefits of a > > autoinstantiation object. (preferably done in a delphi compatible way) > > Though IMHO improving the IDE wizards to create the skeletons more > > efficiently (declare-create-try

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Michael Van Canneyt
On Wed, 25 Apr 2018, Ryan Joseph wrote: On Apr 25, 2018, at 7:05 PM, Michael Van Canneyt wrote: No, because it introduces additional complications. We can think of extending the features of objects or advanced records. Your proposal entails a very different model

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 7:14 PM, Marco van de Voort wrote: > > Ah, no the original code had two mistakes, the new code only one (the double > free). > > It does illustrate that the finalization of every object would have to be in > its own try finally block though. Sorry guys

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 7:05 PM, Michael Van Canneyt > wrote: > > No, because it introduces additional complications. > > We can think of extending the features of objects or advanced records. > Your proposal entails a very different model of handling, which matches

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 6:52 PM, Marco van de Voort wrote: > > The problem is that the C++ object model is more complex and tiered because > of it. Also the Pascal class mode has complications of its own (like the > multi stage constructor system and its link to exceptions)

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: > In our previous episode, Ryan Joseph said: > > > I think if you want to pursue this, you must be much more concrete. Both > > > the > > > benefits and the potential pitfalls. > > > > What are the potential pitfalls? > > I was thinking more

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Michael Van Canneyt
On Wed, 25 Apr 2018, Ryan Joseph wrote: On Apr 25, 2018, at 6:14 PM, Adrian Veith wrote: If you know what you are doing, you have exactly the "object" type for that. You can allocate them on the stack or heap and you can inherit from them, when you need virtual

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 6:14 PM, Adrian Veith wrote: > > If you know what you are doing, you have exactly the "object" type for > that. You can allocate them on the stack or heap and you can inherit > from them, when you need virtual methods the initialization is a bit >

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: > > I think if you want to pursue this, you must be much more concrete. Both the > > benefits and the potential pitfalls. > > What are the potential pitfalls? I was thinking more about complicating the constructor case, but then I saw the code you

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: In our previous episode, Ryan Joseph said: > > Most seem to be covered already by having records-with-methods. The only > > issue is that it is a different kind of "object?. > > I like C++ because because you opt into stack or heap at any point. If you

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Adrian Veith
Am 25.04.2018 um 08:34 schrieb Ryan Joseph: > >> On Apr 25, 2018, at 12:59 PM, Sven Barth via fpc-pascal >> wrote: >> >> No. This would more often than not lead to accidents were users pass such an >> instance to some outer code (it doesn't even need to the

Re: [fpc-pascal] Blowfish encryption: What I´m doing wrong?

2018-04-25 Thread Michael Van Canneyt
On Tue, 24 Apr 2018, Guionardo Furlan wrote: Hello guys I´ve a single code to encrypt/decrypt strings using Blowfish. function TBlowFishCripto.Encrypt(const Value: string): string; var en: TBlowFishEncryptStream; stream: TStringStream; begin { 4 } s2 :=

Re: [fpc-pascal] Blowfish encryption: What I´m doing wrong?

2018-04-25 Thread Peter
On 25/04/18 03:56, Guionardo Furlan wrote: > Hello guys > > I´ve a single code to encrypt/decrypt strings using Blowfish. > > function TBlowFishCripto.Encrypt(const Value: string): string; > var >   en: TBlowFishEncryptStream; >   stream: TStringStream; > begin >   if length(Value) = 0 then >  

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 3:22 PM, Marco van de Voort wrote: > > I think if you want to pursue this, you must be much more concrete. Both the > benefits and the potential pitfalls. What are the potential pitfalls? Sven pointed out passing around pointers but don’t we know better

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 3:22 PM, Marco van de Voort wrote: > > Most seem to be covered already by having records-with-methods. The only > issue is that it is a different kind of "object”. I like C++ because because you opt into stack or heap at any point. If you use a record

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 12:59 PM, Sven Barth via fpc-pascal > wrote: > > The memory model of classes in Object Pascal is heap based. Changing that is > asking for trouble and I for one don't even want to fiddle around with that, > because I don't see any real

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: > > But putting classes on the stack is a core feature which is very well used > and great for performance (why people still use c++ for games). Why isn?t > that useful? Most seem to be covered already by having records-with-methods. The only issue is

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Ryan Joseph
> On Apr 25, 2018, at 12:59 PM, Sven Barth via fpc-pascal > wrote: > > No. This would more often than not lead to accidents were users pass such an > instance to some outer code (it doesn't even need to the routine with the > stack object, but some third

Re: [fpc-pascal] Stack alias for ARC like memory management?

2018-04-25 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mi., 25. Apr. 2018, 03:46: > What do you think? Is there any merit to this idea? It’s not real > reference counting but it’s a simple solution to improve performance and > clean up code in many common scenarios. > No. This would more often than