Re: [fpc-pascal] TimSort

2011-05-20 Thread Flávio Etrusco
On Fri, May 20, 2011 at 9:26 AM, Marco van de Voort  wrote:
> In our previous episode, michael.vancann...@wisa.be said:
>> > ?
>> > Is there already a TimSort implementation in fpc?
>> > ?
>> > http://en.wikipedia.org/wiki/Timsort
>>
>> Not to my knowledge.
>
> One reference implementation in the article (the goolge one) is
> "GPL-with-classpath-exception" licensed, the other Python one seems to be
> PSF.
>
> While the PSF doesn't seem to be particularly evil, I think the first step
> would be to find a version with a more compatible license.

Maybe this one?
http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/TimSort.java?view=co
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Juha (gmail)
Mattias Gaertner kirjoitti perjantai, 20. toukokuuta 2011 15:16:30:
>  "Juha (gmail)"  hat am 20. Mai 2011 um 13:07
>  > Installing and updating both FPC and Lazarus is still a major obstacle
>  > for many people. We must improve things to make the first impression
>  > smoother.
> 
>  For example?

Some strange error pop up like #19289: Error on rebuild

  /usr/lib64/lazarus/ide/lazarus.pp(130,1) Error: Can't call the resource 
compiler "/usr/bin/fpcres", switching to external mode

It is a single case, but the forum had many complaints when people updated 
from 0.9.28 to 0.9.30. Also when people try to compile trunk and they had a 
release version earlier, they often have problems.
A typical one is:
  can't find unit xxx needed by unit yyy.

Those people have usually cleaned their file system and deleted local config 
files. So, updating seems to be a bigger problem than a fresh install.

Juha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: PowerPC Linux and endian modes

2011-05-20 Thread Seth Grover
Henry and Jonas, thanks a lot for your responses and giving me an idea
of at least where I'd want to start looking if that were the case.
Honestly it's something of a pipe dream at the moment, so who knows if
I'll even go down that path, but you've given me a place to begin if I
do.

Have a good weekend,

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover



On Thu, May 19, 2011 at 4:39 PM, Seth Grover  wrote:
> Greetings!
>
> Wikipedia (http://en.wikipedia.org/wiki/PowerPC#Endian_modes) states:
>
> "Most PowerPC chips switch endianness via a bit in the MSR (Machine
> State Register), with a second bit provided to allow the OS to run
> with a different endianness."
>
> So the way I am understanding this is that the PPC architecture is
> capable of running in little-endian mode depending on a register flag
> that can be set. And that's about the end of my knowledge on the
> subject.
>
> My question is this: does anyone have any experience with running PPC
> in little endian mode? And would FPC-compiled programs (specifically
> I'm cross compiling to powerpc-linux from x86_64-linux) targeted at
> PPC work in a little endian mode setup?
>
> Thanks,
>
> -SG
>
> --
> This email is fiction. Any resemblance to actual events
> or persons living or dead is purely coincidental.
>
> Seth Grover
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] TimSort

2011-05-20 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said:
> > ?
> > Is there already a TimSort implementation in fpc?
> > ?
> > http://en.wikipedia.org/wiki/Timsort
> 
> Not to my knowledge.

One reference implementation in the article (the goolge one) is
"GPL-with-classpath-exception" licensed, the other Python one seems to be
PSF.

While the PSF doesn't seem to be particularly evil, I think the first step
would be to find a version with a more compatible license.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Mattias Gaertner
 
 

 "Juha (gmail)"  hat am 20. Mai 2011 um 13:07
geschrieben:

 > Jonas Maebe kirjoitti perjantai, 20. toukokuuta 2011 13:52:22:
 > > If you want the source, choose "Source" instead of "Win32".
 >
 > Ok, right too many links.
 > Now i realized that all the mirrors give direct links to source packages,
 > only
 > the first SourceForge link has everything included.
 >
 > The sources could well be included in the default FPC installation package.
 > Most people need them anyway and they don't add much to the package size when
 > compressed. At least everybody working with Lazarus needs the sources ... and
 > most people using FPC also use Lazarus, at least sometimes (?) 
Even without Lazarus I think the sources are more useful than some of the units
and demos that are installed by default.
 
 

 >
 > Installing and updating both FPC and Lazarus is still a major obstacle for
 > many people. We must improve things to make the first impression smoother.
 For example?

 Mattias___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TimSort

2011-05-20 Thread michael . vancanneyt



On Fri, 20 May 2011, Mattias Gaertner wrote:


 
Is there already a TimSort implementation in fpc?
 
http://en.wikipedia.org/wiki/Timsort



Not to my knowledge.

Michael.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Jonas Maebe

On 20 May 2011, at 13:07, Juha (gmail) wrote:

> Jonas Maebe kirjoitti perjantai, 20. toukokuuta 2011 13:52:22:
>> If you want the source, choose "Source" instead of "Win32".
> 
> Ok, right too many links.
> Now i realized that all the mirrors give direct links to source packages, 
> only 
> the first SourceForge link has everything included.

That's because in the past, direct sourceforge links were no possible. Now they 
are possible, but we haven't spent the time yet to update the download links.

> The sources could well be included in the default FPC installation package.
> Most people need them anyway and they don't add much to the package size when 
> compressed.

It depends on the compression that's used. It's 29MB with zip and 25MB with 
tar.gz. It would increase the download sizes between 30% and 50%, which is not 
what I would call "not much".


Jonas___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Juha (gmail)
Jonas Maebe kirjoitti perjantai, 20. toukokuuta 2011 13:52:22:
> If you want the source, choose "Source" instead of "Win32".

Ok, right too many links.
Now i realized that all the mirrors give direct links to source packages, only 
the first SourceForge link has everything included.

The sources could well be included in the default FPC installation package.
Most people need them anyway and they don't add much to the package size when 
compressed. At least everybody working with Lazarus needs the sources ... and 
most people using FPC also use Lazarus, at least sometimes (?)

Installing and updating both FPC and Lazarus is still a major obstacle for 
many people. We must improve things to make the first impression smoother.

Juha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Jonas Maebe

On 20 May 2011, at 12:50, Juha (gmail) wrote:

> Jonas Maebe kirjoitti tiistai, 10. toukokuuta 2011 01:16:38:
>> On 10 May 2011, at 00:14, Juha (gmail) wrote:
>>> Maybe I am stupid but I don't know how to download FPC 2.4.2 sources,
>>> without using SVN repository.
>> 
>> http://www.freepascal.org/download.var -> Source (under the links to the
>> Binaries)
> 
> I am trying to load the source on Windows under a VM.
> 
> I open http://www.freepascal.org/download.var
> -> Source ... it opens:
> http://www.freepascal.org/down/source/sources.var
> -> SourceForge link ... there Win32 which seems to be the most popular one.

If you want the source, choose "Source" instead of "Win32".


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 2.4.2 source

2011-05-20 Thread Juha (gmail)
Jonas Maebe kirjoitti tiistai, 10. toukokuuta 2011 01:16:38:
> On 10 May 2011, at 00:14, Juha (gmail) wrote:
> > Maybe I am stupid but I don't know how to download FPC 2.4.2 sources,
> > without using SVN repository.
> 
> http://www.freepascal.org/download.var -> Source (under the links to the
> Binaries)

I am trying to load the source on Windows under a VM.

I open http://www.freepascal.org/download.var
-> Source ... it opens:
http://www.freepascal.org/down/source/sources.var
-> SourceForge link ... there Win32 which seems to be the most popular one.
Select 2.4.2 -> download fpc-2.4.2.i386-win32.exe

I run the installer. Location = C:\FPC\2.4.2.
First time I used the "Full installation" but now I select "Custom 
installation". All checkboxes are checked but there is NO source.
I don't see the sources in file system either.

I have recommended to some poeople to install FPC release version and then 
compile Lazarus trunk from source.
In practice the FPC sources are needed for Lazarus.
I can imagine how frustrated those people are now.

I noticed there is a new 2.4.4 version available. I will try that also.

Juha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] TimSort

2011-05-20 Thread Mattias Gaertner
 
Is there already a TimSort implementation in fpc?
 
http://en.wikipedia.org/wiki/Timsort
 
Mattias
 ___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: better understanding of fpdoc

2011-05-20 Thread dhkblaszyk

3. How can I "compile" fpDoc using fppkg ?


no idea.


fppkg does not compile anything, fpmake does. See: 
http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg20238.html


Though the report is not closed, the patch was comitted.

Darius
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: better understanding of fpdoc

2011-05-20 Thread Ben
On 20/05/2011 09:33, ik wrote:
> 1. Let's say I have a class, enum, record etc... How do I make sure that
> each property/field/item that I want to document will be belong to
> the proper container ?

It is defined in the fpdoc xml documentation file via the "element" tag.

eg: for a type:

  
bla bla...
...
  

eg: for a field of a record

  
MyField support...
  

eg: for an enum

  
Enum type defining
  


> 2. Is there a way to create a link for a remote site (for example
> wikipedia, specific RFC etc) ?

You use the "url" tag.

eg:



For more information, see the FPC website at: http://www.freepascal.org"; />




> 3. How can I "compile" fpDoc using fppkg ?

no idea.



-- 

Ben.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] PowerPC Linux and endian modes

2011-05-20 Thread Jonas Maebe

On 20 May 2011, at 00:39, Seth Grover wrote:

> And would FPC-compiled programs (specifically
> I'm cross compiling to powerpc-linux from x86_64-linux) targeted at
> PPC work in a little endian mode setup?

As Henry indicated, you'd have to modify the compiler to get it to generate 
little endian code for a PowerPC target. But little endian PowerPC has not been 
tested, so it's quite possible that it wouldn't work (e.g., some assembler 
helpers in the system unit will probably require modifications or disabling, 
because changing the endianess changes a.o. the layout of set-type variables).


Jonas___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] better understanding of fpdoc

2011-05-20 Thread ik
Hello,

There are several things that I do not understand in fpDoc (maybe because of
the usage by Lazarus that is missing few features):
1. Let's say I have a class, enum, record etc... How do I make sure that
each property/field/item that I want to document will be belong to
the proper container ?

2. Is there a way to create a link for a remote site (for example wikipedia,
specific RFC etc) ?
3. How can I "compile" fpDoc using fppkg ?

Thanks,

Ido

LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal