Re: [fpc-pascal] Hint converting to int64

2018-09-11 Thread Mark Morgan Lloyd
On 11/09/18 16:15, Santiago A. wrote: El 11/09/18 a las 12:30, Mark Morgan Lloyd escribió:> On 11/09/18 10:15, Santiago A. wrote:>> Hello:FPC: 3.0.4 (Realease from Lazarus 1.8.4 SVN: 57972)OS: Windows7 >> 32bits / Linux 64Bits>> I have this code and I get a

Re: [fpc-pascal] Hint converting to int64

2018-09-11 Thread Mark Morgan Lloyd
current/ref/refsu4.html#x26-250003.1.1 I have replaced it by Entity:=Entity*10+LongWord(ord(FullParagraph[pIni]))-48; That is, I have casted the result of "ord()" to longword. But I get the same hint.What should I do to remove the hint? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .

Re: [fpc-pascal] Unbuffering I/O

2018-08-30 Thread Mark Morgan Lloyd
On 30/08/18 12:00, Henry Vermaak wrote: On Thu, Aug 30, 2018 at 10:57:21AM +, Mark Morgan Lloyd wrote:> Ah yes, that's it, thanks very much.> > WriteLn(StdErr, Format('# Socket %s, clock resolution %8.6f uSec',> [socketName, ts.tv_nsec / 1000]));>

Re: [fpc-pascal] Unbuffering I/O

2018-08-30 Thread Mark Morgan Lloyd
On 30/08/18 10:15, Henry Vermaak wrote: On Thu, Aug 30, 2018 at 09:45:00AM +, Mark Morgan Lloyd wrote:> On 30/08/18 09:00, Henry Vermaak wrote:> >On Thu, Aug 30, 2018 at 07:52:54AM +0200, Martin Schreiber wrote:> > >In order to flush textfiles automatically I use> &quo

Re: [fpc-pascal] Unbuffering I/O

2018-08-30 Thread Mark Morgan Lloyd
:= output.inoutfunc; (Is that latter form even valid any more?) Please don't anybody put any effort into it- it's a very minor niggle from my POV. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _

Re: [fpc-pascal] Unbuffering I/O

2018-08-29 Thread Mark Morgan Lloyd
On 29/08/18 16:00, Henry Vermaak wrote: On Wed, Aug 29, 2018 at 03:01:54PM +, Mark Morgan Lloyd wrote:> I think I've seen this question asked before, my apologies if this was> recently.> > I've got two programs intended to be functionally identical, one in Perl and&g

[fpc-pascal] Unbuffering I/O

2018-08-29 Thread Mark Morgan Lloyd
) at opportune times? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?

2018-08-24 Thread Mark Morgan Lloyd
On 24/08/18 09:15, R0b0t1 wrote: On Thu, Aug 23, 2018 at 6:28 AM, Mark Morgan Lloyd wrote:> On 23/08/18 10:00, Martin Schreiber wrote:>>>> On Thursday 23 August 2018 11:11:34 Bo Berglund wrote:> On Thu, 23 Aug>> 2018 09:00:07 +0200, Bo Berglund>> wrote:> &g

Re: [fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?

2018-08-23 Thread Mark Morgan Lloyd
the years with different cores not having their counters in step, with counter frequency following dynamic clocks rather than being fixed and so on. The AM2302 datasheet suggests that it's a device to be avoided assiduously. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions a

Re: [fpc-pascal] Syntax changes suggestions

2018-07-19 Thread Mark Morgan Lloyd
ALGOL-60 did this: FOR I := 1 STEP 6 UNTIL M DO BEGIN PCHTX(SYTB[I], WRITEBUFFER[0], IF M-I > 6 THEN 6 ELSE M-I+1); WRITE (PCH,10,WRITEBUFFER[*]); CLEAR(WRITEBUFFER[0],9) END; I make no apology for the layout, since that's a fragment of Wirth's own code. --

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Mark Morgan Lloyd
ls and so on: all things I've seen rejected offhand as "too much like C". So come on chaps, at least get your history right and say that you prefer the Pascal way and won't have any ALGOL crap messing it up. Pax vobiscum. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT

Re: [fpc-pascal] Syntax changes suggestions

2018-07-17 Thread Mark Morgan Lloyd
of-scope. Wirth moved variables outside blocks to make Pascal incompatible with ALGOL, since after the disastrous ALGOL-68 fiasco he wanted to plough his own furrow. That doesn't necessarily make the decision a wise one. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DO

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

2018-06-21 Thread Mark Morgan Lloyd
n of the compiler will get the new facility, so that those of us with code that might clash can make sure we have version-specific conditionals in place. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's,

Re: [fpc-pascal] Proper preprocessor?

2018-06-20 Thread Mark Morgan Lloyd
On 20/06/18 17:30, Marco van de Voort wrote: That would be C incompatible, which I thought was the main reason to haveit? I don't believe Ryan said that (and I certainly didn't). It's the functionality that counts, not slavish adherence to any particular syntax. -- Ma

Re: [fpc-pascal] Proper preprocessor?

2018-06-20 Thread Mark Morgan Lloyd
IIRC macros only work properly in comments delimited by braces {} -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Proper preprocessor?

2018-06-20 Thread Mark Morgan Lloyd
t the PREPROCWRITE define is for? My 1½d :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepasc

Re: [fpc-pascal] Proper preprocessor?

2018-06-20 Thread Mark Morgan Lloyd
bugging information? I forget the detail but some language implementations have pragmata which tell subsequent processing steps that at this point the source should be considered to have come from such-and-such a line number in such-and-such a file. -- Mark Morgan Lloyd markMLl .AT. telemetr

Re: [fpc-pascal] Proper preprocessor?

2018-06-20 Thread Mark Morgan Lloyd
compilation of definition and implementation parts this would probably impact on type safety. I believe that this too has been debated in the past, and has attracted even less enthusiasm than a hook for an extrnal preprocessor preprocessor. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT.

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

2018-06-07 Thread Mark Morgan Lloyd
on that every concatenation would result in a syscall. I'd been expecting that SetLength() would do the same as it does with a string, i.e. prune the valid range without releasing memory. What I've done so far is only interim code and I've got lots of ways round it, but the re

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

2018-06-07 Thread Mark Morgan Lloyd
've just checked. What actually happens is that the memory is released back to the heap (but *not* to the OS, at least on Linux), with the result that concatenating elements will introduce a substantial hit particularly if space for a new element allocated from the heap isn't contiguo

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

2018-06-03 Thread Mark Morgan Lloyd
able to modify language like that is really impressive. I agree, which is the main reason I posted the link. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___

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

2018-06-03 Thread Mark Morgan Lloyd
com/Perl6/web/APL.html -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] http://webcache.googleusercontent.com/search?q=cache:ag72S4uAW30J:http://www.dlugosz.com/Perl6/web/APL.html%2B%22provide+SIMD+processing

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

2018-06-03 Thread Mark Morgan Lloyd
l wait and see if people complain... So *maybe* we'll change this. +1 for the possibility to overload this operator. It would be reasonable to assume that the predefined + might be substantially more efficient than a programmer-defined one could be. -- Mark Morgan Lloyd markMLl .AT. te

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

2018-06-02 Thread Mark Morgan Lloyd
ely splitting dynamic arrays into mathematical vectors and non-mathematical collections. Or relaxing the requirement that only predefined operators can be redefined, so that something like _ could be used for concatenation. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above

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

2018-05-31 Thread Mark Morgan Lloyd
s certainly a valiant attempt, although my tastes run towards systems with robust protection between segments/addressspaces. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

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

2018-05-21 Thread Mark Morgan Lloyd
for dynamic arrays no longer compile. Does that only apply when both operands are compatible dynamic arrays, or does it also break definition of + to append an element to an array? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not t

Re: [fpc-pascal] FPC on Android tablets: ARM, x86_64

2018-05-16 Thread Mark Morgan Lloyd
really needed, and since this program should be usable as a system's "sanity check" is there any way to improve the error reporting? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his emp

Re: [fpc-pascal] FPC on Android tablets: ARM, x86_64

2018-05-12 Thread Mark Morgan Lloyd
t a better grip on it. Basic operation of the the text IDE appeared OK, as did a program written using a text-mode dialogue editor (Dialedit3b); however I suspect that an abrupt switch from landscape to portrait mode is likely to be a problem. -- Mark Morgan Lloyd markMLl .AT. telemetry.c

Re: [fpc-pascal] FPC on Android tablets: ARM, x86_64

2018-05-11 Thread Mark Morgan Lloyd
, etc. On 05/10/2018 07:19 AM, Mark Morgan Lloyd wrote:> Has anybody come across https://wiki.termux.com/wiki/Main_Page which > I've seen mentioned elsewhere?>> It's supposedly a Linux environment into which one can install > standard development tools etc.>

[fpc-pascal] FPC on Android tablets: ARM, x86_64

2018-05-10 Thread Mark Morgan Lloyd
Has anybody come across https://wiki.termux.com/wiki/Main_Page which I've seen mentioned elsewhere? It's supposedly a Linux environment into which one can install standard development tools etc. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the aut

Re: [fpc-pascal] detecting recursive loops

2018-05-06 Thread Mark Morgan Lloyd
try/exit counters on functions that I suspect are going to be a problem, InterlockedIncrement() etc. You can obviously have your code check that as a verification of sanity, or pick up a haig value using a conditional breakpoint. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions ab

Re: [fpc-pascal] Using constants instead of comments

2018-04-18 Thread Mark Morgan Lloyd
n included... I agree. Another possibility is something like {$if declared(customDebugWrite) } customDebugWrite(...); {$endif declared() } so if customDebugWrite() isn't present in the program during compilation (commented out, or the entire unit containing it omitted) no attempt wi

Re: [fpc-pascal] Seek with text file

2018-04-03 Thread Mark Morgan Lloyd
as an editor, but these days trivial. Historically, things like "text" and "file of string[80]" have been fraught because of OS-specific interpretations of what a line of text was. These days there are still ambiguities because of UTF-8 etc. -- Mark Morgan Lloyd markMLl .

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

2018-04-02 Thread Mark Morgan Lloyd
uple of trees or similar (but please, no prey animals). There's also the important question of whether an image selected as a logo can be scaled down to be used as an icon. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the

Re: [fpc-pascal] Linux getifaddrs

2018-03-01 Thread Mark Morgan Lloyd
g an IP address inside your comms protocol since you'll end up with a proxying nightmare like VOIP. The only time I've really needed to play with this was when trying to work out a machine's local neighbours so I could see whether they responded to a non-standard UDP protocol. --

Re: [fpc-pascal] Connecting to a database from a commandline pascal program

2018-02-16 Thread Mark Morgan Lloyd
); MyConnection.Connected := True; WriteLn('2.6'); It never hits 2.0, so I believe it is dying on the create. Am I doingthe create wrong? I can't find any examples as too doing this, I havetried googling it. Most of the examples I see are doing this fromLazarus. Not from a c

[fpc-pascal] Linux udev messages

2018-02-07 Thread Mark Morgan Lloyd
mouse. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/lis

Re: [fpc-pascal] Sleep(30) is not reliable?

2018-01-25 Thread Mark Morgan Lloyd
at'. i waited 10-20seconds. What happens if you put an Application.ProcessMessages in there? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pas

Re: [fpc-pascal] re-engineering tool

2018-01-08 Thread Mark Morgan Lloyd
al class diagram having uses and> aggregation of other classes would be very helpful. There is also a Lazarus port of Ess-Model called Laz-Model.See: https://github.com/dicepd/Laz-ModelIt is indeed a reverse-engineering class diagram tool. Mnagled URL warning :-) https://github.com/dicepd/

Re: [fpc-pascal] FPC on zSeries Mainframes

2018-01-01 Thread Mark Morgan Lloyd
g4ugm/vm-370/VM370sixpack-1_3-Beta.zip which will run on top of the Hercules emulator. I can't remember whether he was able to compile it using FPC, there were some string-expansion issues (relating to mainframes using fixed-length records) giving him problems. Gotta go, venison&#

Re: [fpc-pascal] Why win64 program are considerably bigger in exe size than win 32?

2017-12-31 Thread Mark Morgan Lloyd
Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why win64 program are considerably bigger in exe size than win 32?

2017-12-23 Thread Mark Morgan Lloyd
On 22/12/17 12:45, leledumbo via fpc-pascal wrote: Why? At least pointer size takes double space, multiply it with every instances1.5x bigger is not impossible. Particularly if the binary contains debugging information. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: [fpc-pascal] Is there some example of an FPC program for use in svn hook calls (email)?

2017-12-14 Thread Mark Morgan Lloyd
il command as a generic mailer. On Windows Blat is an alternative. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pasc

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-20 Thread Mark Morgan Lloyd
On 20/11/17 12:00, Schindler Karl-Michael wrote: Am 20.11.2017 um 12:00 schrieb fpc-pascal-requ...@lists.freepascal.org:> > Date: Sun, 19 Nov 2017 11:14:50 +> From: Mark Morgan Lloyd > To: fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] FORTRAN from FreePasc

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-19 Thread Mark Morgan Lloyd
On 19/11/17 12:15, Bo Berglund wrote: On Sun, 19 Nov 2017 11:14:50 +, Mark Morgan Lloyd wrote: I think we're in broad agreement though: don't try converting backend >code unless you know exactly what you're doing, and Pascal (including >Lazarus/LCL etc.) can be valua

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-19 Thread Mark Morgan Lloyd
On 19/11/17 10:15, Adriaan van Os wrote: Mark Morgan Lloyd wrote: That obviously applies to all languages, I've never come across > something which can represent 1/3 or pi exactly. If you do read what is written in the link - that is not the issue. The issue is how to interpret floati

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-19 Thread Mark Morgan Lloyd
On 19/11/17 04:00, Adriaan van Os wrote: Mark Morgan Lloyd wrote:> I think that conventional wisdom is that if somebody's written numerical > analysis code you don't change it gratuitously, since any alterations > will change rounding errors etc. For some reason,

Re: [fpc-pascal] Seek to EOF of file of byte

2017-11-18 Thread Mark Morgan Lloyd
On 18/11/17 21:15, pasc...@piments.com wrote: On 18/11/17 20:27, Mark Morgan Lloyd wrote:> because the program is being viewed critically by the ALGOL programmer > whose code Algol, one my all time favourite languages. while wendif fi why is this not universally adopted? I

Re: [fpc-pascal] Seek to EOF of file of byte

2017-11-18 Thread Mark Morgan Lloyd
On 18/11/17 19:30, Graeme Geldenhuys wrote: On 2017-11-18 15:44, Mark Morgan Lloyd wrote:> How should one do this?> https://www.freepascal.org/docs-html/current/rtl/system/seekeof.html> implies that it's only for text files, Seek(f, FileSize(f)) seems excessive. Just curious,

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Mark Morgan Lloyd
On 18/11/17 19:45, Bo Berglund wrote: On Sat, 18 Nov 2017 17:06:25 +, Mark Morgan Lloyd wrote: I find myself wondering, in part due to conversations elsewhere: can the >Lazarus IDE do anything at all sane with a FORTRAN routine called from >Pascal? In the D7 application writ

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Mark Morgan Lloyd
ib.org/clapack/readme.maintain> I find myself wondering, in part due to conversations elsewhere: can the Lazarus IDE do anything at all sane with a FORTRAN routine called from Pascal? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his e

[fpc-pascal] Seek to EOF of file of byte

2017-11-18 Thread Mark Morgan Lloyd
How should one do this? https://www.freepascal.org/docs-html/current/rtl/system/seekeof.html implies that it's only for text files, Seek(f, FileSize(f)) seems excessive. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his em

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-13 Thread Mark Morgan Lloyd
companies have long had translators from FORTRAN to ALGOL (particularly in the case of B who I don't think had a native compiler) or other languages, but I'd have thought that a full translation would be best avoided if possible. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [fpc-pascal] Database apps on Debian etc.

2017-11-12 Thread Mark Morgan Lloyd
On 12/11/17 09:30, Graeme Geldenhuys wrote: On 2017-11-11 18:41, Mark Morgan Lloyd wrote:> the FPC/Lazarus controls do a good job of presenting a common API> irrespective of what backend server is being used, would it be feasible> to have a "reconnect monitor" or similar t

[fpc-pascal] Database apps on Debian etc.

2017-11-11 Thread Mark Morgan Lloyd
arly vulnerable, and noting that the FPC/Lazarus controls do a good job of presenting a common API irrespective of what backend server is being used, would it be feasible to have a "reconnect monitor" or similar to help recover from this sort of thing? -- Mark Morgan Lloyd markMLl .AT. te

Re: [fpc-pascal] MINIX 3 support

2017-11-10 Thread Mark Morgan Lloyd
On 09/11/17 23:15, Graeme Geldenhuys wrote: Does FPC support the MINIX 3 target platform? Or has somebody attempted to port FPC to that platform? Interesting question, particularly now that it's being factory-installed :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opi

Re: [fpc-pascal] FCL-WEB and PostgreSQL Support: Current Status

2017-09-27 Thread Mark Morgan Lloyd
On 27/09/17 18:30, Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said:> > Can you ellaborate a bit more on this Michael? Like how and where it isused? (Not mentioning company names, if it's a problem.) I was thinkingabout using it in various places, but as I

Re: [fpc-pascal] FCL-WEB and PostgreSQL Support: Current Status

2017-09-27 Thread Mark Morgan Lloyd
to dataflow. As such they were predictable and could be worked round. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@list

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-27 Thread Mark Morgan Lloyd
or my speculation generating noise. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread Mark Morgan Lloyd
On 26/09/17 19:00, leledumbo via fpc-pascal wrote: Would it be possible to do this via a Lua shim? How is it even related with that? I thought FPC had the ability to execute a fragment of Lua, and Lua I believe can call C++ directly. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread Mark Morgan Lloyd
e it as an opaque pointer. std::vector is template/generic C++class that implements a dynamic array functionality, but it can't be usedoutside C++. Would it be possible to do this via a Lua shim? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author

Re: [fpc-pascal] Inclocked/declocked

2017-09-12 Thread Mark Morgan Lloyd
gexample: In the general case, will these force a membar or a cache flush? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@li

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Mark Morgan Lloyd
ssumptions about the amount of data you get in one call. It's not reasonable to assume that buffers for serial comms are limitless, 2K is entirely reasonable to support most serial comms protocols or an 80x25 screen. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions ab

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-07 Thread Mark Morgan Lloyd
t PCI-connected serial ports rather than relying on USB-connected ports. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist -

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-06 Thread Mark Morgan Lloyd
responsible for. Refer to the Windows API for any limits. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-22 Thread Mark Morgan Lloyd
sof precision, so when you force a 30 digit precision output, anythingpast 16 digits is random garbage, at best... And in any event, that's probably much more precision than the GPU is using to generate the final image :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions

Re: [fpc-pascal] Proposed tidy-up of the FPC Manual section on Character Types and the FPC Wiki

2017-08-18 Thread Mark Morgan Lloyd
it still works properly with a range of compiler (and FCL/LCL) versions. In cases where there's been a change in default behaviour as the compiler has matured, please could we have the breaking version numbers noted explicitly. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DO

Re: [fpc-pascal] Serial communications: synaser vs FPC's serial unit

2017-08-18 Thread Mark Morgan Lloyd
On 18/08/17 07:45, Graeme Geldenhuys wrote: On 2017-08-18 08:15, Mark Morgan Lloyd wrote:> There's a> specific gotcha related to differences in the way Linux and Solaris> handle select(), I saw some of those in th serial.pp in FPC trunk. Thanks for the information. I'v

Re: [fpc-pascal] Serial communications: synaser vs FPC's serial unit

2017-08-18 Thread Mark Morgan Lloyd
the appropriate ioctls on all character devices, but things might break. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - f

Re: [fpc-pascal] why the 0.5 in the Unix Epoch (for UnixToDateTime function)

2017-08-01 Thread Mark Morgan Lloyd
hat is a weird definition though IMHO. Astronomer's convention. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

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

2017-07-06 Thread Mark Morgan Lloyd
hink it might be worth noting the PostgreSQL way: $$Dianne's horse$$ $SomeTag$Dianne's horse$SomeTag$ $function$ BEGIN RETURN ($1 ~ $q$[\t\r\n\v\\]$q$); END; $function$ -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of h

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-07-03 Thread Mark Morgan Lloyd
On 03/07/17 21:00, Bo Berglund wrote: On Sun, 2 Jul 2017 12:27:45 +, Mark Morgan Lloyd wrote: You were asking a few days ago about Application.ProcessMessages but >didn't respond to my attempt to tease out your understanding of what was >happening. Have you sorted that

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-07-02 Thread Mark Morgan Lloyd
;t respond to my attempt to tease out your understanding of what was happening. Have you sorted that out to your satisfaction? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employer

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-27 Thread Mark Morgan Lloyd
Application.Processmessages, which Ibelieve cannot be used in a console program.How can I replace it? You're obviously correct that APM doesn't exist in a text-only program because it's part of the LCL. But I think you need to ask yourself why you need to /replace/ it, rather than just removing it.

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-22 Thread Mark Morgan Lloyd
r all form creation etc. has completed. *) BEGIN .. END { TListForm.OnAfterShow } ; That can loop, but make sure you put Application.ProcessMessages in it. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employer

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-22 Thread Mark Morgan Lloyd
ecify the files as binary ortext files? Connect is overloaded I've not looked at the example but sockets should be transparent. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-21 Thread Mark Morgan Lloyd
do I have to use the full /dev/ttyUSB1? You *definitely* have to use the name as given. You're opening a file in the filesystem tree, not an internally-reserved name. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-20 Thread Mark Morgan Lloyd
ectly bug-free. Unfortunately no fpc/Lazarus port yet. I tend to use the lower-level serial.pp unit. The patches I contributed a couple of years ago specifically added a couple of read-with-timeout functions. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the auth

Re: [fpc-pascal] FPC for AVR

2017-06-15 Thread Mark Morgan Lloyd
On 15/06/17 17:45, Bernd Mueller wrote: On 06/15/2017 10:34 AM, Mark Morgan Lloyd wrote: Yes, but I was asking about the FPC situation. I'm desperately resisting local pressure to write code that might end up non-trivial in C/C++. I realized a project with an ATTiny1634. Nothing speci

Re: [fpc-pascal] FPC for AVR

2017-06-15 Thread Mark Morgan Lloyd
On 15/06/17 16:45, Karoly Balogh (Charlie/SGR) wrote: Hi, On Thu, 15 Jun 2017, Mark Morgan Lloyd wrote: At the risk of making myself unpopular: because right now I /don't/ have> time. Sorry, I didn't mean this personal to you. I was just a bit triggered onthe fact that people of

Re: [fpc-pascal] FPC for AVR

2017-06-15 Thread Mark Morgan Lloyd
On 15/06/17 11:30, Karoly Balogh (Charlie/SGR) wrote: Hi, On Thu, 15 Jun 2017, Mark Morgan Lloyd wrote: mikroPascal (not free) supports AVR and many other chips.> > https://shop.mikroe.com/compilers/mikropascal/avr-electronic-license> > Brian>> Yes, but I was asking about

Re: [fpc-pascal] FPC for AVR

2017-06-15 Thread Mark Morgan Lloyd
On 15/06/17 11:15, Rainer Stratmann wrote: Am Donnerstag, 15. Juni 2017, 08:34:49 schrieb Mark Morgan Lloyd:> On 14/06/17 20:15, Brian wrote:> > mikroPascal (not free) supports AVR and many other chips.> > https://shop.mikroe.com/compilers/mikropascal/avr-electronic-license&

Re: [fpc-pascal] FPC for AVR

2017-06-15 Thread Mark Morgan Lloyd
p non-trivial in C/C++. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

[fpc-pascal] FPC for AVR

2017-06-04 Thread Mark Morgan Lloyd
What sort of targets are people looking at, what sort of debugging is available, and has anybody experimented with the "AVR Dragon"? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employer

Re: [fpc-pascal] Large file support

2017-06-02 Thread Mark Morgan Lloyd
On 02/06/17 11:00, Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said:> > 8 apparently, but off_t is documented as a cint32.> > https://www.freepascal.org/docs-html/current/rtl/unixtype/off_t.html The declaration is {$if not defined(fs32bit)}off_t

Re: [fpc-pascal] Large file support

2017-06-02 Thread Mark Morgan Lloyd
On 02/06/17 10:00, Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said:> Could I have a reality check please: is there no fpLSeek64() for files > larger than 2Gb? Afaik, there is no such posix calls. In the past, most linux temporarily hadsome -64 calls while it le

[fpc-pascal] Large file support

2017-06-02 Thread Mark Morgan Lloyd
Could I have a reality check please: is there no fpLSeek64() for files larger than 2Gb? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal mai

Re: [fpc-pascal] named parameter

2017-05-29 Thread Mark Morgan Lloyd
On 29/05/17 05:15, Ryan Joseph wrote: On May 28, 2017, at 5:22 PM, Mark Morgan Lloyd wrote:> >> IMO though it does improve readability in long functions with lots of>> parameters, like windows api style procedures that have 5 or more>> parameters and you can't

Re: [fpc-pascal] named parameter

2017-05-28 Thread Mark Morgan Lloyd
doEventQueue.Enqueue($8000 + canonical(mc)) end end { SendMechCodeToLineASCII } ; -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pasca

Re: [fpc-pascal] named parameter

2017-05-27 Thread Mark Morgan Lloyd
On 27/05/17 10:20, Ryan Joseph wrote: On May 27, 2017, at 5:13 PM, Mark Morgan Lloyd wrote:> > someFunction(TPoint(X:0.0; Y:0.0));> > Pascal purists would probably object to that style, since what it's effectively doing is passing the parameters as an explicit list. I menti

Re: [fpc-pascal] GLM library alternative?

2017-05-27 Thread Mark Morgan Lloyd
such things, it's possible to merge the translation/rotation matrices so that the final transformation can be reduced to a single operation. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employer

Re: [fpc-pascal] named parameter

2017-05-27 Thread Mark Morgan Lloyd
nt doesn't allow it to be done inline: someFunction(TPoint(X:0.0; Y:0.0)); Pascal purists would probably object to that style, since what it's effectively doing is passing the parameters as an explicit list. Somebody please correct me it I'm wrong. -- Mark Morgan Lloyd mar

Re: [fpc-pascal] named parameter

2017-05-27 Thread Mark Morgan Lloyd
able to read this syntax ? It would probably be possible to do it by using a record with nullable fields as the parameter. Otherwise if you want that sort of thing use Smalltalk :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of

Re: [fpc-pascal] Ignoring function results

2017-05-20 Thread Mark Morgan Lloyd
On 20/05/17 12:30, Bart wrote: On 5/20/17, Mark Morgan Lloyd wrote: According to the Programmer's Guide 1.3.41, {$EXTENDEDSYNTAX OFF} has> the effect of permitting the result of a function to be ignored. Isn't that just the other way around? "Extended syntax allows you to

[fpc-pascal] Ignoring function results

2017-05-19 Thread Mark Morgan Lloyd
According to the Programmer's Guide 1.3.41, {$EXTENDEDSYNTAX OFF} has the effect of permitting the result of a function to be ignored. However it also appears to (at least) prohibit functions/procedures with optional parameters: can these be controlled separately? -- Mark Morgan

Re: [fpc-pascal] Vehicle management

2017-05-12 Thread Mark Morgan Lloyd
, since this is a user rather than a developer question. What's the current situation with FPC interface to the Subversion support libraries which I think is something you were looking at at one point? In extremis, I suppose that it should be possible for a program written in FPC to u

Re: [fpc-pascal] Vehicle management

2017-05-11 Thread Mark Morgan Lloyd
he results are a bit odd and the author's had to use a lot of carefully tweaked timings which suggests that something's not quite right... 750 Baud, anybody? :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of hi

Re: [fpc-pascal] Vehicle management

2017-05-08 Thread Mark Morgan Lloyd
On 08/05/17 18:30, Felipe Monteiro de Carvalho wrote: On Sun, May 7, 2017 at 8:33 PM, Mark Morgan Lloyd wrote:> Can anybody give me a quick summary of the position of FPC on Android etc.? Works fine like via JNI, you can do most stuff in Pascal using JNI butpart still needs to be in J

Re: [fpc-pascal] Vehicle management

2017-05-08 Thread Mark Morgan Lloyd
without a great deal of work would, I think, be in everybody's interest. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] Vehicle management

2017-05-08 Thread Mark Morgan Lloyd
On 08/05/17 14:30, Paul Breneman wrote: On 05/08/2017 09:11 AM, Mark Morgan Lloyd wrote:...> It's on the manufacturer-specific pins. The specs are NOT freely> available, and if the description I've seen so far is to be believed the> comms run at 800 bps.> Thanks for t

  1   2   3   4   5   6   7   8   9   10   >