[fpc-pascal] 64-bit ARM and CPUARM

2024-05-21 Thread Ched via fpc-pascal
subcatagories CPUPOWERPC32 and CPUPOWERPC64 ? Cheers, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Cache-line alignment for records

2023-03-29 Thread Ched via fpc-pascal
Hello, Ok for the records for internal calculations. But sometimes, records are used for reading/writing structured files. Does "packed" in "packed array" and "packed record" always forbid the compiler to play with alignments ? Kindest regards, Ched' L

Re: [fpc-pascal] Bug or feature ?

2022-07-27 Thread Ched via fpc-pascal
Le 27.07.2022 à 17:41, DougC via fpc-pascal a écrit : WRITELN(F: 'Hello'); is not proper Pascal. Yes, Doug, I agree ; but it is compiled with no warning and runs perfectly. Now, why the compiler do not complain... ? Cheers, Ched' ___

[fpc-pascal] Bug or feature ?

2022-07-27 Thread Ched via fpc-pascal
;m wondering if the first line is really legal... Any advice ? Cheers, Ched'. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] {$include %dateyear%}

2021-12-25 Thread Ched via fpc-pascal
Well, Writeln('{$I %DATEMONTH%}'+'/'); can be compiled, but the answer is... {$I %DATEMONTH%} . I think that my level of english is by far too low to make the correct sentence. Cheers, James, Raoul Le 25.12.21 à 21:06, James Richters a écrit : I see what you mean... I thought it was an In

Re: [fpc-pascal] {$include %dateyear%}

2021-12-25 Thread Ched via fpc-pascal
Helolo James, Thank you for your comment and proposal. As there is no type associated with non-string results, would it be better to say number instead of integer ? Or integer number ? Season's greetings ! Cheers, Ched' Le 24.12.2021 à 22:32, James Richters via fpc-pascal a

Re: [fpc-pascal] Writing Pascal Physics and Vectors

2021-10-15 Thread Ched via fpc-pascal
> Fade := Fade * Fade * Fade * Fade * Fade; Why not Fade:=sqr(sqr(Fade))*fade ? Cheers, Anthony, Ched Le 15.10.21 à 22:18, Anthony Walter via fpc-pascal a écrit : I've been working on writing Pascal bindings a friendly object orient interface to a few open source projects. I

Re: [fpc-pascal] string vs char

2021-10-15 Thread Ched via fpc-pascal
Well, well, understand. OTOH, declaring a string of length 1 is sort of futile -- it uses two bytes where a plain char declaration takes just one byte. Not so futile as a string can be empty, not a char ! Regards, Dennis, Ched' ___ fpc-p

Re: [fpc-pascal] Why the difference in the rounded results?

2021-10-15 Thread Ched via fpc-pascal
Hello All, In https://wiki.freepascal.org/Variables_and_Data_Types about Strings: // where: 1 < length <= 255 is to read as // where: 1 <= length <= 255 isn't it ? Cheers, Ched Le 15.10.21 à 18:44, James Richters via fpc-pascal a écrit : The difference is because of the w

Re: [fpc-pascal] Windows Defender considers fp.exe a malicious program

2021-02-13 Thread Ched via fpc-pascal
. Cheers, Ched Le 13.02.21 à 12:02, Marco van de Voort via fpc-pascal a écrit : Op 2021-02-12 om 22:48 schreef James Richters via fpc-pascal: The problem I have had is when programs I compile generate a false virus detection.. sure on my own computer I can just disable that directory from the

[fpc-pascal] CRT unit and bug #32558

2020-11-06 Thread Ched via fpc-pascal
both Linux and W10, but there is apparently no callable SetUseACP procedure in the crt unit. Is it available in 3.2.0 ? Cheers, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinf

Re: [fpc-pascal] Ethernet Relays

2020-05-24 Thread Ched via fpc-pascal
en't yet solved. But for http, that should be right. Cheers, Ched Le 24.05.20 à 18:46, James Richters a écrit : Does anyone have any advice on how to get started sending commands from FPC to use these ethernet relays: https://www.amazon.com/gp/product/B076CNJNFH Default IP :192.168.

Re: [fpc-pascal] Extended type under Win64

2020-03-08 Thread Ched via fpc-pascal
dy Krueger so near us ? Cheers, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Difficulty with DayOfWeek

2019-10-19 Thread Ched
Dear All, From https://www.freepascal.org/docs-html/rtl/sysutils/dayofweek.html : DayOfWeek returns the day of the week from DateTime. Sunday is counted as day 1, Saturday is counted as day 7. From http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivcl

[fpc-pascal] DecodeDate vs DecodeDateFully

2019-10-14 Thread Ched
Hello All, I'm wondering why DecodeDate is a procedure and DecodeDateFully a function in SysUtils... And there is no description of the returned Boolean. https://www.freepascal.org/docs-html/rtl/sysutils/decodedate.html https://www.freepascal.org/docs-html/rtl/sysutils/decodedatefully.html Ch

[fpc-pascal] *etFTime -> File*etDate

2019-10-13 Thread Ched
:=FILEGETDATE(FO);   { Got File, expected LongInt }    {$ELSE}   GETFTIME(FO, L);    {$ENDIF}    CLOSE(FO); END. Well, it appears that I prbably haven't fully understand the dos->sysutils conversion. Cheers, Ched' ___ fpc-pascal maill

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-22 Thread Ched
ot;if FindFirst(..)=0" This is already so in trunk. Michael. From https://www.freepascal.org/port.html about porting Turbo Pascal codes: > the dos unit Findfirst() call must always be followed by a Findclose to release some resource. What's rig

Re: [fpc-pascal] Rest in peace Martin Schreiber

2018-12-28 Thread Ched
I'm always thinking that there is a small region of Paradise dedicated to the ones who write in Pascal - and then of course also for the ones who write the compiler and what's around. In fact, this small region of comfort and joice is in fact _already_ on the Earth ! Ched'

Re: [fpc-pascal] fphttpclient.post

2018-11-01 Thread Ched
Hello All, Thank you, Sven and Wkitty42, for having corrected a false assumption about encryption of url. Nevertheless, why not to have a simplepost(an-url, an-ansistring)::ansistring method available ? Cheers, Ched' Le 31.10.2018 à 22:51, Sven Barth via fpc-pascal a écrit :

[fpc-pascal] fphttpclient.post

2018-10-31 Thread Ched
d in an ansistring. Bad- or good idea ? And how difficult would it be to build ? Cheers, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-03-30 Thread Ched
My preference goes to the profile (on the animation) than on the tatoo-like face of the cheeta. Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-27 Thread Ched
processors, I don't understand why we will have no more the right to use it under x64 OS... Cheers, Ched Le 25.08.2017 à 08:08, Michael Schnell a écrit : On 25.08.2017 01:32, Ralf Quint wrote: It's not a problem of "modern" Windows, but a problem of any 64bit x86 OS Supp

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-24 Thread Ched
were on the hands of programmers, years ago. Cheers, Ched' Le 24.08.2017 à 21:31, Bernd Oppolzer a écrit : Am 24.08.2017 um 14:00 schrieb James Richters: Thanks everyone for the explanation and solutions.  I can work around it well enough now that I understand what’s happening, but I’m still

[fpc-pascal] Multi-OS fp.ini and fp.cfg ?

2017-08-16 Thread Ched
d and should be deleted or copied from a backuped version... Cheers, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Fixed record files

2017-07-09 Thread Ched
or memory access, as on some processors, word aligning data can save some cpu cycles with reference to non aligned data for data longer than one byte/char. Chers, Ched Le 09.07.2017 à 13:45, James Richters a écrit : I have a few questions about fixed record files. I have the following:

Re: [fpc-pascal] Food for thought - language string improvement

2017-07-08 Thread Ched
at some loactions: 'SELECT Customers.CustomerName, Orders.OrderID' + ' FROM Customers' + ' FULL OUTER JOIN Orders' + ' ON Customers.CustomerID = Orders.CustomerID' + ' ORDER BY Customers.CustomerName;'; Cheers, Ched ___

Re: [fpc-pascal] If vs case or something else?

2017-07-06 Thread Ched
then ... else if ... else ... end; Not as fast as a tree search balanced with probabilities (no answer to my question on the list afew days ago...), but probably ten time faster then what you proposed. Cheers, Ched' Le 06.07.2017 à 20:41, Stefan V. Pantazi

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Ched
and is pleasant to read. Cheers, Ched' Le 09.04.2017 à 19:21, Rolf Grunsky a écrit : On 2017-04-09 04:06 AM, Bo Berglund wrote: I am looking for some good example of FFT functions in pascal but it seems like what Google serves up is rather old and refers to Turbo-pascal and the like.

Re: [fpc-pascal] Bug in documentation for Random?

2017-04-05 Thread Ched
Usualy "non-negative", not positive ! Cheers, Ched' Le 05.04.2017 à 16:55, Bart a écrit : http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Random "random returns a random number between 0 and abs(num-1)" IIUC, then Random() shoud always return

Re: [fpc-pascal] INVALID_SOCKET constant not defined for Linux

2017-03-28 Thread Ched
Most likely this is only because "socket < 0" is faster to write than "socket = -1" :-) And is probably faster to execute on most processors which offers a sign flag. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

[fpc-pascal] question about fphttpclient

2017-02-01 Thread Ched
the server side ? Kindest regards, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] fpc 3.0 for ARM (v7l) ?

2016-10-26 Thread Ched
? Rebuilding all from sources is most probably out of my capabilities, hélas. Kindest regards, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] string to widestring : what are the difficulties ?

2016-10-08 Thread Ched
refcount and so should behave like string about copy/deep copy. Cheers, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)

2016-05-04 Thread Ched
Hello, I have something like this which seems to work very nicely Cheers, Ched' PROCEDURE SINCOS(CONST X: DOUBLE; VAR S, C: DOUBLE); BEGIN {$IFDEF NOASM} S:=SIN(X); C:=COS(X); {$ELSE} {$IFDEF VER70} IF TEST8087=3 THEN ASM FL

[fpc-pascal] Strange file

2016-01-09 Thread Ched
Hello All, Each time I use fp (text mode ide) under linux or win-xp (3.0 and 2.6.4), there appears a new emtpy file in the directory: dummy.$$$ . Apparently it's safe to remove it even when fp is running. But what's its use ? Season's

[fpc-pascal] Communication between machines

2015-11-29 Thread Ched
unit for linux and windows systems ? Is this not too hard ? I'd like to use the same source code on all these machines - i.e. no specializations. Some hints ? Cheers, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] Unit crt

2015-09-23 Thread Ched
What means CRT for ? :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-26 Thread Ched
Hello, I strongly discourage the use of {$optimization deadstore} which induced strong numerical errors on our solar system calculations (i386 linux). The other new ones {$optimization deadvalues} {$optimization orderfields} {$optimization fastmath} {$optimization constprop} seem to

Re: [fpc-pascal] Fatal: Internal error 200305103

2015-08-22 Thread Ched
Hello, The 2.6.0 version which comes with apt-get is plenty of bugs. Installing the 2.6.4 downloaded from the link in the freepascal site makes it workable, at least for my programs, perfectly. So do the upgrade ! Cheers, Raoul Le 22. 08. 15 16:44, Xiangrong Fang a écrit : Hello, I got

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-14 Thread Ched
versions designed by Wirth himself ? Cheers, Ched' Le 14. 09. 14 12:20, Marius a écrit : Jürgen Hestermann wrote: Realy? I love it. Consider these two varianst of code from one of my programs: This is a simpler example than the one with with the 4 levels deep (which can be quite a puzz

[fpc-pascal] Optimisation : X+X or 2*X or X*2 ?

2014-01-19 Thread Ched
Dear Freepascalers, The multiplication in floating arthmetic units is usualy know as being slower than the addition. So, have I interest to code X+X, 2*X or X*2 when using reals (mainly double and extended) ?And with integers ? Can the compiler optimise this operation choosing the fastest one

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 - IDE crashes

2014-01-04 Thread Ched
.freepascal.org] De la part de Ched Envoyé : mardi 31 décembre 2013 00:08 À : FPC-Pascal users discussions Objet : [fpc-pascal] Free Pascal 2.6.4-rc1 - IDE crashes Hello All, I don't know if I'm the only people having problems with the fp IDE of the rc1 from the win32 package under winxp

[fpc-pascal] Free Pascal 2.6.4-rc1 - IDE crashes

2013-12-30 Thread Ched
Hello All, I don't know if I'm the only people having problems with the fp IDE of the rc1 from the win32 package under winxp 32 bits... The complier works fine. But when I have an error in the source code of a program, I can't jump to the location of the error after the compilation attempt us

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-27 Thread Ched
Hello, The win32 seems to work perfectly, at least on all the intensive numerical simulations I done. I haven't found the win32/64 cross-compiler on ftp.freepascal.org ... Thanks for the greaaat piece of software ! Raoul ___ fpc-pascal maillist

[fpc-pascal] The 2.6.2 RPM and Deb archives are still in preparation

2013-04-21 Thread Ched
Hello All, Some words about me: I'm a pascalist for now more than 25 years. I developped many embedded applications, but I don't feel well putting the hands on the compiler... About "The 2.6.2 RPM and Deb archives are still in preparation" seen on the the download page about linux/386, can I