Florian Klaempfl schreef:
Flávio Etrusco schrieb:
From the wiki, it's more interesting to pay in Euros, right?
Is the German PayPal only a localized version, or are they separate
corporations and I'd have to create a different account? And is there
a way to use the German site in English? ;)
Florian Klaempfl schreef:
As you might have noticed, the server running the wiki (lazarus and
fpc), the mailing lists (lazarus and fpc)
Just the fpc mailing lists. The Lazarus mailing lists are hosted on the
same server that hosts the lazarus website and forum.
and being ftp master (fpc
Matthias Klumpp schreef:
I'm not sure if some version of zlib was translated to pascal; therefore
having the same security issues, or if it was written from scratch, so
that it won't have those security issues?
Not sure...
I should say that WinFF and easyMp3Gain do not use any ZLib function,
Joseph Montanez schreef:
rant
In the end I think automated documentation is bad, and thats really
what I see with the current state of FPC docs. It might allow better
ability to stay sync with the current release but not allowing _easy_
social interaction to expand those docs, I think it is a
Florian Klaempfl schreef:
Frank Church schrieb:
What project management tool does FPC and Lazarus developers use? I
mean besides mantis for bug tracking?
None, simply because we don't have any time budgets/resources but people
are working as soon as they find time.
I am thinking along the
Bihar Anwar schreef:
I've tried to use Move() instead of Copy(). Any objection with the following
code?
Yes, at first glance without much thinking, I don't think it is safe. Did you think
through the consequences of copying reference counted types (ansistring in this case
presumably)?
Graeme Geldenhuys schreef:
On 29 April 2010 17:23, Marco van de Voort mar...@stack.nl wrote:
Its got nothing to do with the latex package. Trying to describe the
inconsistent syntax of Hint Directives in a syntax diagram (like used
in the FPC Language Reference doc) just seems impossible. From
Graeme Geldenhuys schreef:
On 29 April 2010 21:57, Vincent Snijders vsnijd...@vodafonevast.nl wrote:
I don't see the issue, it gets a bit more complicated, but not impossible. I
am just bad in ascii graphics, but I can imagine how it looks like.
I'm sure Michael will welcome your patch
Graeme Geldenhuys schreef:
Luis Fernando Del Aguila Mejía het geskryf:
Why WideString is not equal to Unicodestring in Windows?
WideString is reference counted (for Windows COM reasons). UnicodeString is
pretty much the same as WideString, but not reference counted.
I am pretty sure it is
CA Gorski schreef:
Is there anything like TRichView (www.trichview.com) for Lazarus/FPC?
Doesn't need to be as complex as that one. Can be much simpler, but
TMemo is too simple. ;)
Maybe: http://wiki.lazarus.freepascal.org/RichMemo
Vincent
___
2010/9/12 Frank Church vfcli...@gmail.com:
program testnums;
//{$APPTYPE CONSOLE}
uses
Classes, SysUtils;
type
stType = (stLite := -100, stDb, stBothLite, stBothDb); //settings
location Type
stTypes = Array [stType] of integer;
var
d : stType;
s : string;
i : integer;
2010/9/12 Frank Church vfcli...@gmail.com:
I need to elaborate more on this code
On this line
d := stTypes[i - Ord(low(stType))];
since stTypes is an array, I expect stTypes[n], with n being 1 to 4, to
retrieve an array value and as 'i - Ord(low(stType)) evaluates to integer it
should
2010/9/28 Jürgen Hestermann juergen.hesterm...@gmx.de:
Sven Barth schrieb:
It's enough code, because FillByte (and others) are defined with a var
parameter and such the hint (not a warning) won't go away.
It's an old topic already and we have just to live with it (regarding the
Fill*
2010/10/2 Jonas Maebe jonas.ma...@elis.ugent.be:
Because of -gh I am getting the following output always when closing
Lazarus. Only the numbers change with Lazarus versions and compile options.
Likely it is not a real error. Vincent Snijders suspected it is a bug in
the
way heaptrc does its
2010/10/2 Juha Manninen (gmail) juha.mannine...@gmail.com:
The last 3 lines practically say Lazarus has a memory corruption or leak or
something, while it does not have. It is OK not that I know it.
True heap size : 1048576
True free heap : 1924768
Should be : 1048576
It just says that heaptr
2010/10/9 Bo Berglund bo.bergl...@gmail.com:
So it seems like the GMANE maintainers have either not understood or not
reconfigured this NG with the new setting.
I suggest you keep an eye on
http://gmane.org/info.php?group=gmane.comp.compilers.free-pascal.general
The list is still marked
2010/10/26 patspiper patspi...@yahoo.com
The buildcrossbinutils.sh script produces i686-mingw32- binaries only (no
i686-cygwin-), and yet, FPC 2.4.2 cross compiles without any problem. What
is different about 2.5.1?
Probably 2.5.1 contains assembler files, so it needs an assembler, 2.4.2
2010/11/26 Max Vlasov max.vla...@gmail.com:
Hi,
I have two questions:
- Is everything is ok with steps to reproduce field in fpc bugtracker? It
never show at the issue view. Hope it saves and and at least the developers
are seeing it.
It is visible in the advanced view, not in the simple
2010/11/26 Birger Jansen bir...@cnoc.nl:
I'll see if I can find the missing cmp.exe in 64 bit version or try with the
32
bit version.
Copying the cmp.exe that comes with the Lazarus 32 bit installer to a 64 bit
installation worked.
Can this file be included in the 64 bit installer to
2010/11/30 Max Vlasov max.vla...@gmail.com:
Hi,
it appears recently several pieces if knowledge came to me, I understood how
anonymous functions (aka closures) work :) and the fact that GNU Pascal
allows passing local procedure as variables. I mentioned them together
because as many I don't
2010/12/12 Darius Blaszyk dhkblas...@zeelandnet.nl:
Hi,
When updating 2.4.0 to 2.4.2 I noticed that the Ubuntu repository on
www.hu.freepascal.org, has not been updated yet. Could someone please
upload the latest versions there? Or is this something experimental
only?
It will be updated by
2010/12/20 dhkblas...@zeelandnet.nl:
But why is it not possible to integrate this with the regular fpGUI ?
Can you explain in a couple of sentences ?
Can't remember having said that it was impossible with the current approach.
In fact it is perfectly doable. However (free)glut and opengl are
2010/12/28 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk:
Jonas Maebe wrote:
On 28 Dec 2010, at 11:04, Mark Morgan Lloyd wrote:
Is it possible to get any sort of activity indication that confirms that
the linker is actually doing something useful, rather than just sitting
there
2010/12/31 Juha Manninen juha.mannine...@gmail.com:
UTF-16 needs codepages, too.
I don't think so. What would a code page be used for with UTF-16.
UTF-16 itself is already an encoding, implictly stating one and only
one code page, if it can be named a code page.
Vincent
2011/1/5 Marco van de Voort mar...@stack.nl:
This snapshot is missing the cmp.exe file, so I had used the win32
one. After an error about not found as.exe I had used the win32
version too, but now I'm stuck at an ld.exe problem. The win32 version
of ld.exe does not have a pei-x86-64 target so
2011/1/5 Marco van de Voort mar...@stack.nl:
I would not build the fp ide.
Does that remark apply to 2.4.x or 2.5.1?
2.5.1, because AFAIK, Pierre's work that requires the external linker
on win64 is done in trunk only and not yet merged to 2.4.2.
Vincent
2011/1/10 alexv...@mail.ru alexv...@mail.ru:
But I want packages to be binary portable between OS (on target processor
architecture)
I don't think that is feasible, unless you don't use any OS features.
Vincent
___
fpc-pascal maillist -
2011/1/17 Bo Berglund bo.bergl...@gmail.com:
I have encountered a conversion error using FPC 2.4.2 with Lazarus
0.9.29 as follows:
var
t: Int64;
v: string;
begin
...
t := StrToInt('$' + v);
This gives an exception invalid integer. At this moment v is
'577B4D58A51A0EE', which
2011/4/12 Luca Olivetti l...@ventoso.org:
Sorry for the off-topic, but I sent a message yesterday to the lazarus
mailing list and it hasn't appeared.
In fact there aren't new messages since last Sunday.
Does anybody know if is there a problem with the lazarus list server?
I restarted mailman,
2011/4/15 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com:
On Fri, Apr 15, 2011 at 4:11 PM, Jonas Maebe jonas.ma...@elis.ugent.be
wrote:
And does it work when you manually execute it?
As in just typing: fpcres ?
IIRC, with -va or -vd, ppc386 shows the fpcres command line. Can
2011/5/13 Marcos Douglas m...@delfire.net:
So, not to use the option -O in i386?
When I compile FPC sources, on Win32 XP SP3, using make, the option is used.
I'm confusing now...
Did you try one of the -Cf options to enable MMX on i386?
Vincent
___
2011/5/24 José Mejuto joshy...@gmail.com:
Hello FPC-Pascal,
Tuesday, May 24, 2011, 1:06:43 PM, you wrote:
Why is TimSort specially interesting to you ?
MG I need a fast stable sort, so multiple sorts work as expected (contrary
to
MG QuickSort).
MG TimSort is a candidate.
That's
Graeme Geldenhuys schreef:
On 12/8/06, Jonas Maebe [EMAIL PROTECTED] wrote:
Quote:
You should not change the access modifier for inherited members.
So it's possible but discouraged, and they give warnings (and
sometimes errors) for it with the recommendation Do not exclude a
warning from this
Graeme Geldenhuys schreef:
I did a bit of Google'ing and answered my own question :-)
eLiquid is not based on SDL.
or is it? :-)
I think it depends on the target.
Linux = SDL
DOS = not SDL
--- Quote --
Requirements: It is required to install libSDL package to get Pixel
Hi,
If I use thhe fpc 2.1.1 version of fpdoc on the rtl documentation files, I get a lot
of warnings like:
Writing 7520 pages...
[no context] Invalid description (illegal XML element: #text)
[no context] Invalid description (illegal XML element: #text)
[no context] Invalid description
Consider the following program:
{$mode objfpc}{$H+}
uses
SysUtils;
var
i: integer;
s: string;
begin
i := GetEnvironmentVariableCount;
writeln('VariableCount: ',i);
s := GetEnvironmentString(1);
writeln('Variable 1: ', s);
s := GetEnvironmentString(2);
writeln('Variable 2: ',
Carsten Bager schreef:
Where can I read what's new in the coming 2.1 version.
The next fpc release will probably be fpc 2.2.0.
See the roadmap for some details:
http://www.freepascal.org/wiki/index.php/Road_map
Vincent
___
fpc-pascal maillist -
Henry Vermaak schreef:
Hi all
FileExists seems to be inconsistent between linux and windows.
FileExists in linux returns true for a directory, but not in windows.
The windows behaviour is consistent with Delphi, though, and I assume
that's correct.
Can anyone confirm or comment on this?
I
Hi,
Dean Zobec created a new xmlreportwriter for fpcunit. Among others it
supports nested test suites. Does anybody have a stylesheet for showing
such a report. Maybe somebody is willing to create one.
Examples of the old xml format+ style sheet (slightly modified):
Graeme Geldenhuys schreef:
Ok, I'll bite.. ;-)
Thanks. It is nice to find a volunteer. :-)
Vincent
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Tiziano_mk schreef:
I am not sure to understand this text from FPC FAQs item no. 3.
Can someone explain better?
What do you understand? What is it that you don't understand?
Bootstrapping:
FPC requires a suitable set of binutils (AS,AR,LD), gmake and a
commandline compiler. New
m utku schreef:
Hi all,
Basically I want to get a stack trace and log it when a special
exception occurs. All I could find about was the lineinfo.pas (and -gl
switch) but that does not help much as it interfaces only one procedure
which is no good for client usage. What do I miss; what
Graeme Geldenhuys schreef:
Hi Vincent,
I'm almost done with the new stylesheet.
Nice \0/
I've been testing it with
the new xml format sample you mentioned in you email. How did you
generate that? I wanted to test the new stylesheet against the tiOPF
project, but my xml format is
Graeme Geldenhuys schreef:
On 2/8/07, Vincent Snijders [EMAIL PROTECTED] wrote:
No, I used unmodified fpc and the lazarus changes (a modified console
test runner)
are in svn too.
How sure are you? :-) I followed your instructions and this is the
xml 'runtests' generated.
95 % sure
Graeme Geldenhuys schreef:
On 2/9/07, Vincent Snijders [EMAIL PROTECTED] wrote:
True the gui test runner still uses TXMLResultsWriter from xmlreporter
unit. The
lazarus console testrunner uses the TXMLResultsWriter from the
xmltestreport unit.
Ok, no idea what happened!! I removed the IFDEF
Graeme Geldenhuys schreef:
On 2/9/07, Vincent Snijders [EMAIL PROTECTED] wrote:
let it read the FDoc private variable. We better create a patch for
this.
Or update to r6311 of fpc.
Ah. :) I'm on r6290.
That is more than a week old. I thought you updated each Monday...
Vincent
Helmut Hartl schreef:
http://www.research.ibm.com/people/m/michael/pldi-2004.pdf
This one is not lock free, because it uses atomic instructions used by
the cpu, which are essentially fine grained locks.
Vincent
___
fpc-pascal maillist -
Michel Meunier schreef:
Hello,
With your help, my initial library .dll writen with Delphi, is now
working at about 95% when compiled with fpc. Now my goal is to get a .so
library under Linux. So I have begun to compile it under linux.
There are a lot of hints but not important, but after I
Florian Klaempfl schreef:
Felipe Monteiro de Carvalho schrieb:
I couldn´t find it because I am used to ignoring the About section.
IMHO the links to fpc things aren´t as easy to find as they could be,
specially to new users.
My suggestion would be to add a small section for FPC of the same
Jonas Maebe schreef:
On 02 Mar 2007, at 09:03, m utku wrote:
Hello again :), I just forgot to ask; Delphi has an option to generate
a so called map file that contains the function addresses matched
with the function names when an executable compiled. What would be the
equivalent FPC
Jonas Maebe schreef:
On 02 Mar 2007, at 09:26, Vincent Snijders wrote:
Jonas Maebe schreef:
On 02 Mar 2007, at 09:03, m utku wrote:
Hello again :), I just forgot to ask; Delphi has an option to
generate a so called map file that contains the function addresses
matched with the function
liyupeng schreef:
Hi,list,
this is the first time of using free pascal!
after I compiled my program successful, I run it. The information is
exitcode=2.
what is that mean?
It means: File not found
See runtime error list:
http://www.freepascal.org/docs-html/user/userap4.html
Try
Marco van de Voort schreef:
After a lot of googling and experimenting, I think I have managed to
make it work, but only in C code, and I want it to run in Pascal. The
key to make it work in C was to call setvbuf at the right time, to set
the buffering mode for stdin/stdout. The problem with
Hi,
If I compile a unit which contains {$R wincemenures.res} a file named
wincemenures.or is created in the source directory, even if I have set
-FU or -FE. What parameter do I need to pass to the compile to move the
.or file to the unit output directory?
Vincent
Vincent Snijders schreef:
Hi,
If I compile a unit which contains {$R wincemenures.res} a file named
wincemenures.or is created in the source directory, even if I have set
-FU or -FE. What parameter do I need to pass to the compile to move the
.or file to the unit output directory?
Nobody
Hi,
Consider this piece of code:
var
p: pointer;
begin
p := getmem(100);
reallocmem(p,0);
p := nil;
end.
Do I need to do p:=nil, if I want to be sure that p contains nil?
I saw that both system.SysReAllocMem and cmem.CReAllocMem do this, is
size=0, but the docs at
Vincent Snijders schreef:
Hi,
Consider this piece of code:
var
p: pointer;
begin
p := getmem(100);
reallocmem(p,0);
p := nil;
end.
Do I need to do p:=nil, if I want to be sure that p contains nil?
I saw that both system.SysReAllocMem and cmem.CReAllocMem do this, is
size=0
Peter Vreman schreef:
Vincent Snijders schreef:
Hi,
If I compile a unit which contains {$R wincemenures.res} a file named
wincemenures.or is created in the source directory, even if I have set
-FU or -FE. What parameter do I need to pass to the compile to move the
.or file to the unit output
Michael Van Canneyt schreef:
On Mon, 7 May 2007, Vincent Snijders wrote:
Vincent Snijders schreef:
Hi,
Consider this piece of code:
var
p: pointer;
begin
p := getmem(100);
reallocmem(p,0);
p := nil;
end.
Do I need to do p:=nil, if I want to be sure that p contains nil?
I saw
Hi,
I tried to create powerpc units for the lcl on an intelmac, but the
compiler crashes. Is this a known issue?
Vincent
Schindlers-iMac:~/src/lazarus/lcl fpcfan$ make CPU_TARGET=powerpc
FPC=~/fpc/bin/fpc
/bin/rm -f units/powerpc-darwin/alllclunits.ppu
/bin/mkdir -p units/powerpc-darwin
Jonas Maebe schreef:
On 09 May 2007, at 19:59, Vincent Snijders wrote:
I tried to create powerpc units for the lcl on an intelmac, but the
compiler crashes. Is this a known issue?
The compiler is trying to use RTL/packages units compiled by a native
ppc compiler (most likely the ones
Darius Blaszijk schreef:
The following piece of code is giving me headaches. When I add the
option poUsePipes, the application starts and does not seem to do
anything else anymore. It just opens a commandline terminal and that is
that. When I leave the option out the application actually
Flávio Etrusco schreef:
BTW, while I'm still somewhat on-topic (but quite lazy ;-) , is there
a high-resolution timer in FCL? If not, what about including Martin
Waldenburg's qmwfasttime? Shall I file a request in Mantis?
Also take a look at:
http://wiki.lazarus.freepascal.org/EpikTimer
Francisco Reyes schreef:
Henry Vermaak writes:
this doesn't look right you've got BINUTILSPREFIX=x86_64-freebsd
-INSTALL_PREFIX=... where you should have
BINUTILSPREFIX=x86_64-freebsd- INSTALL_PREFIX=... (note the space
after freebsd)
did you copy in paste or is this a typo?
It was a typo.
Catalin Zamfir Alexandru schreef:
If there was a petition for this, I would have signed it. We need SYNTAX
highlithing ... :P NOW. :D
If you do so, please use Geshi :D. It's the best and I use it a lot on
theg33ks.com in my articles.
Does it work with mediawiki? Can you give a installation
[EMAIL PROTECTED] schreef:
In a delphi app I came across the following syntax;
with PropInfo^, PropType^^ do
Which results in a Error: Illegal qualifier. Has anyone an idea of what
is meant here and how to port that to FPC? I'm puzzled.
You have to check the definition carefully. IIRC
Johann Glaser schreef:
Hi!
Am Donnerstag, den 07.06.2007, 15:28 +0200 schrieb Vincent Snijders:
Catalin Zamfir Alexandru schreef:
If there was a petition for this, I would have signed it. We need SYNTAX
highlithing ... :P NOW. :D
If you do so, please use Geshi :D. It's the best and I use
Johann Glaser schreef:
Hi!
I installed GesHi and one of the extensions: see
http://wiki.lazarus.freepascal.org/Executing_External_Programs for the
results.
Thanks a lot! I've beautified the Web Service Toolkit page now.
Unfortunately the documentation about the Wiki itself is quite sparse
On Wed, 20 Jun 2007 23:58:15 +0300
Catalin Zamfir Alexandru [EMAIL PROTECTED] wrote:
Yes, built LCL for the Qt Interface. Compilation went great.
A trick question: how did you do that exactly?
Vincent
___
fpc-pascal maillist -
On Thu, 21 Jun 2007 17:08:05 +0200
Jonas Maebe [EMAIL PROTECTED] wrote:
On 21 jun 2007, at 16:52, [EMAIL PROTECTED] wrote:
I committed it in trunk in r7756.
I created a wiki page with missing changes in the fixes branch. I
am considering to add them the snapshots built for Lazarus.
On Thu, 21 Jun 2007 18:27:48 +0200 (CEST)
Peter Vreman [EMAIL PROTECTED] wrote:
On 21 jun 2007, at 16:52, [EMAIL PROTECTED] wrote:
I committed it in trunk in r7756.
I created a wiki page with missing changes in the fixes branch. I
am considering to add them the snapshots built for
On Thu, 21 Jun 2007 18:49:39 +0200
Jonas Maebe [EMAIL PROTECTED] wrote:
On 21 jun 2007, at 18:39, Vincent Snijders wrote:
And I do actually want to be as close as possible to the release
code, but IMHO opnion the merge policy of the fpc team is too strict.
Afaics none of the two
On Thu, 21 Jun 2007 21:31:59 +0200
Jonas Maebe [EMAIL PROTECTED] wrote:
Nobody will dispute that, regardless of when the release is. That's
also not what the discussion is about. The question is whether it's
better to risk introducing new unknown bugs by merging those
particular patches
On Fri, 22 Jun 2007 06:58:55 +0200 (CEST)
[EMAIL PROTECTED] (Marco van de Voort) wrote:
On 21 jun 2007, at 20:52, Marco van de Voort wrote:
... That said, you are clearly in favour of merging those patches, and so
is Vincent. ...
I'm a simple echo of Vincent. The point is that I
Michael Van Canneyt schreef:
Hi,
Andrew Haines has created some CHM writing components.
They have been checked in in FPC's Subversion. Under
packages/extra/chm.
The makefiles is just for x86_64-linux.
Vincent
___
fpc-pascal maillist -
Vincent Snijders schreef:
Michael Van Canneyt schreef:
Hi,
Andrew Haines has created some CHM writing components. They have been
checked in in FPC's Subversion. Under
packages/extra/chm.
The makefiles is just for x86_64-linux.
I regenerated the makefile in packages/extra/chm
Daniël Mantione schreef:
Op Mon, 16 Jul 2007, schreef Adriaan van Os:
and hello.exe actually runs at the other side of the fence.
Note that you can install Wine (I'm not sure though how the Darwin port
hasprogressed) to do testing. With Wine you can do the full development
without a
Joost van der Sluis schreef:
If you know a way to measure that using linux? It should be possible,
the shootout ppl also do this.
http://shootout.alioth.debian.org/gp4/faq.php#memory
Maybe you can poll /proc/$PID/status
Vincent
___
fpc-pascal
Darius Blaszijk schreef:
Do we need to use a Case Installer.OS of construct or can we
implement$(CPU_TARGET) and $(OS_TARGET) as functions that return a
string with the current targets?
I would say just replace the macros with {$I %FPCTARGETOS%} and {$I
%FPCTARGETCPU%} but how do others
Darius Blaszijk schreef:
Vincent Snijders wrote:
Darius Blaszijk schreef:
Do we need to use a Case Installer.OS of construct or can we
implement$(CPU_TARGET) and $(OS_TARGET) as functions that return a
string with the current targets?
I would say just replace the macros with {$I
Weyert de Boer schreef:
Puff, Delphi IDE is way faster then Lazarus. Beside of the need of that
idiotic X11 under MacOSX. I will just develop my applications in Mono
together with Cocoa# this works perfectly well together with Chrome. :)
Good arguments. A name change would make no difference.
Graeme Geldenhuys schreef:
ps:
Will the fpdoc.css file used by FPC and Lazarus docs be included as
the default in the next FPC release? The default css file in FPC
2.0.4 look crap compared to the one used on the web.
? It's the same file.
Not in my copy. The one with 2.0.4 generates black
Vincent Snijders schreef:
Graeme Geldenhuys schreef:
ps:
Will the fpdoc.css file used by FPC and Lazarus docs be included as
the default in the next FPC release? The default css file in FPC
2.0.4 look crap compared to the one used on the web.
? It's the same file.
Not in my copy. The one
Graeme Geldenhuys schreef:
Hi,
Is there a function in SysUtils or some other place in RTL that I can
use to extract the target path of a symlink file? I'm using
FindFirst/FindNext. The sr.Attrib and faSymLink is True, but I can't
(in a easy way) see how I can actually find out where it points
Jonas Maebe schreef:
On 23 Aug 2007, at 01:09, Darius Blaszijk wrote:
Is the following correct?
C:\FPC\rtlfpc -v0 myproject.pp
Free Pascal Compiler version 2.3.1 [2007/08/22] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Shouldn't fpc -v0 -l myproject.pp give the above result?
-l
Felipe Monteiro de Carvalho schreef:
Hello,
I was looking into a way to detect if an instance of my application is
running. Is there a cross-platform solution on rtl or fcl?
It seams that semaphores would be a good solution. I took a look at
pthreads and PSemaphore but that is only an alias
ik schreef:
Hello List,
snip
Then I tried to do the following code, that continue to write the
buffer content until nothing more to write, but it reads wrong data:
start_count := 0;
output_count := readcount * sizeof(cshort);
read_content := read_content_from([EMAIL PROTECTED],
Marc Santhoff schreef:
Hi,
the reference manual is not explicitly clear in describing class
declarations. Is it true for classes as for objects that the first block
of components after the class header are visible as if declared public?
E.g.
TAnyClass = class
fField:anytype;
end;
Graeme Geldenhuys schreef:
On 22/10/2007, Florian Klaempfl [EMAIL PROTECTED] wrote:
Anything wrong with putting it in the fpc wiki?
Oops, posting to the wrong mailing list. :-) Anyway, I thought the
fpc wiki was only meant for FPC specific content. By that I mean FPC
itself and any
Jonas Maebe schreef:
On 29 Oct 2007, at 07:54, Tobias Giesen wrote:
I am trying to compile the latest FPC 2.3 SVN on OS X i386 with
CPU_TARGET=powerpc.
The crosscompiling guide on the freepascal web site says to do a:
make cycle
make cycle only works in the compiler subdirectory.
But
Bee schreef:
The pascal counter-part resulting almost twice slower. Though not as
simple as Perl, the pascal code is quite simple and only using standar
fpc's units. But, I won't post the code here to not influence your
logic. ;)
For me it would be better if you posted the pascal program,
Bee schreef:
TStrings is meant for GUI purposes. It's design and implementation are
not optimized.
Then its our task to optimize it more (and more) so it could as fast as
Perl. What I meant here is using standard or default FPC's
classes/units. ;) I don't count any third parties
Bee schreef:
If you just want to show off, the easiest is simply making a FPC
header to
pcre, it might be useful even.
Making a header on top of other libraries written by other languages is
showing that FPC is lack of powerful units/libraries. For some
particular cases maybe it's alright.
Jeff Pohlmeyer schreef:
this kludge is about 25% faster than your perl script
on my machine
Nope. It's still more or less twice slower. :-D
I guess it depends on the hardware:
% time koleksi.pl # perl
Word count: 126944
Unique word count: 11793
real0m1.019s
user0m0.992s
sys
Bee schreef:
[EMAIL PROTECTED]:word_parser$ time ./project1
Word count:126944
Unique word count:11793
real0m0.185s
user0m0.140s
sys 0m0.000s
[EMAIL PROTECTED]:word_parser$ time perl project1.perl
Word count: 126944
Unique word count: 11793
real0m0.281s
user0m0.244s
sys
Bee schreef:
[EMAIL PROTECTED]:word_parser$ time ./project1
Word count:126944
Unique word count:11793
real0m0.185s
user0m0.140s
sys 0m0.000s
[EMAIL PROTECTED]:word_parser$ time perl project1.perl
Word count: 126944
Unique word count: 11793
real0m0.281s
user0m0.244s
sys
Marco van de Voort schreef:
[ Charset ISO-8859-1 unsupported, converting... ]
I had never used Perl before. Until someone showed me Perl is very fast
for text processing (using its powerful regex), despite it's an
interpreted language. It even beat Delphi and FPC though both are
compiled
Bee schreef:
But people who have seen
http://shootout.alioth.debian.org/gp4/benchmark.php?test=regexdnalang=all
may have doubted that.
Vincent, are we connected or what?! I was about to post the very exact
URL! :-D
I wonder where fpc would end up in that list,
A: if it uses its own
Bee schreef:
Sure, but as Jonas pointed out it is better to use a good library than
the write a bad library yourself.
And someone would claim that the speed comes from the library (c?), not
from pascal. :P It's a LANGUAGE shootout btw, not LIBRARY shootout.
Maybe you had forgotten that. ;)
Florian Klaempfl schreef:
Vincent Snijders schrieb:
Jeff Pohlmeyer schreef:
s[i]:=#0;
SetLength(s,StrLen(@s[1]));
Why not SetLength(s,i)? StrLen is _very_ expensive. I don't see a way
how another #0 can be before.
That is right, I am working on a version which does
101 - 200 of 458 matches
Mail list logo