Re: [fpc-pascal] SimpleIPC examples in docs

2017-05-07 Thread Michael Van Canneyt
On Mon, 8 May 2017, nore...@z505.com wrote: I thought I remember some simpleipc examples in the documentation a while ago (years ago).. Can't seem to find them in the current docs. You are probably talking about the ipc examples of the unix unit. Were they moved elsewhere or did I miss

Re: [fpc-pascal] simpleIPC strings

2017-05-07 Thread Michael Van Canneyt
On Mon, 8 May 2017, nore...@z505.com wrote: With simpleipc you can send a string. I am wondering what type of string is safe to send? i.e. what happens with utf8 or unicode? If both sender and receiver use the same defaultsystemcodepage, it should transfer fine. Is it meant to send a re

[fpc-pascal] SimpleIPC examples in docs

2017-05-07 Thread noreply
I thought I remember some simpleipc examples in the documentation a while ago (years ago).. Can't seem to find them in the current docs. Were they moved elsewhere or did I miss finding them? For what I need I will probably not be using any lazarus components, but rather ipc without LCL invol

[fpc-pascal] simpleIPC strings

2017-05-07 Thread noreply
With simpleipc you can send a string. I am wondering what type of string is safe to send? i.e. what happens with utf8 or unicode? Is it meant to send a regular string (like a pointer to char) and not more complex strings? Both? Because if a string is being sent across two different separate

Re: [fpc-pascal] Record operator for assignment

2017-05-07 Thread Ryan Joseph
> On May 8, 2017, at 10:47 AM, nore...@z505.com wrote: > > It's always easier said than done, to say "Why can't" and then have to write > the actual parser code to do it ;-) Yes indeed. I just looked over svn to see where Sven added his new dynamic array initializers and I’m still totally conf

Re: [fpc-pascal] Threading vs Parallelism ?

2017-05-07 Thread noreply
On 2017-05-05 14:27, Brian wrote: Affinity If a thread is dedicated to say , polling a serial or Ethernet port which has a high input data rate , then dedicating one CPU to that task/thread is useful. Isn't the speed of serial (so slow) that it would be overkill to dedicate a Cpu to it?

Re: [fpc-pascal] Vehicle management

2017-05-07 Thread Paul Breneman
On 05/07/2017 11:11 PM, nore...@z505.com wrote: On 2017-05-07 13:33, Mark Morgan Lloyd wrote: Has anybody used FPC to talk to a vehicle via the OBD connector? Can anybody give me a quick summary of the position of FPC on Android etc.? (Graeme, that includes FPCgui if it's relevant). We've been

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-07 Thread noreply
On 2017-05-03 06:49, Peter wrote: On 03/05/17 00:53, Marc Santhoff wrote: Hi, for playing around I would need a grammar of Object Pascal. I do not care for which tool it is written or at best if it is plain EBNF. Does such grammar exist? TIA, Marc I found grammar for Delphi once. Trying t

Re: [fpc-pascal] Record operator for assignment

2017-05-07 Thread noreply
On 2017-04-28 01:01, Ryan Joseph wrote: On Apr 28, 2017, at 12:43 PM, Sven Barth via fpc-pascal wrote: It would introduce an ambiguity as "(x" could also complete to other expressions (e.g. "(x + y) * 2" or even merely "(x)"). Especially older Pascal compilers were geared towards the simplic

[fpc-pascal] simpleIPC for all programming languages ?

2017-05-07 Thread noreply
I was thinking, that I need a way to use IPC (inter process communication) in all languages, so for example I could compile a plain C exe, Delphi exe, Rust exe, Nimrod exe, or GoLang exe and communicate back with fpc (very powerful idea). But simpleIPC is only available for FPC/lazarus, not oth

Re: [fpc-pascal] Translation C to Pascal

2017-05-07 Thread noreply
On 2017-05-02 18:49, Marc Santhoff wrote: On Di, 2017-05-02 at 08:33 -0700, fredvs wrote: Hello. The best (IMHO) is c2pas32 --> http://www.astonshell.com/freeware/c2pas32/ Nice program, i fed the adc.c source from STMs fwlib for stm32f4 through and the generated code looks fine. There is so

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-07 Thread noreply
On 2017-05-03 04:37, Michael Van Canneyt wrote: On Wed, 3 May 2017, denisgolovan wrote: On 2017-05-03 00:53, Marc Santhoff wrote:  Does such grammar exist? Well, it depends on what you are trying to solve. If you want to parse Pascal using FPC - that's one way. If you want to get some king

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-07 Thread noreply
On 2017-05-02 18:53, Marc Santhoff wrote: Hi, for playing around I would need a grammar of Object Pascal. I do not care for which tool it is written or at best if it is plain EBNF. Does such grammar exist? The issue is that there is no object pascal, or in other words, there's about 5 milli

Re: [fpc-pascal] Vehicle management

2017-05-07 Thread noreply
On 2017-05-07 13:33, Mark Morgan Lloyd wrote: Has anybody used FPC to talk to a vehicle via the OBD connector? Can anybody give me a quick summary of the position of FPC on Android etc.? (Graeme, that includes FPCgui if it's relevant). We've been caught short by a vehicle problem that appears t

Re: [fpc-pascal] Vehicle management

2017-05-07 Thread Paul Breneman
On 05/07/2017 02:33 PM, Mark Morgan Lloyd wrote: Has anybody used FPC to talk to a vehicle via the OBD connector? Can anybody give me a quick summary of the position of FPC on Android etc.? (Graeme, that includes FPCgui if it's relevant). We've been caught short by a vehicle problem that appear

Re: [fpc-pascal] silly question

2017-05-07 Thread duilio foschi
I got stuck with the symlinks. The level of indirection is rather complex. Finally I 1. reinstalled v. 2.6.2 from scratch 2. copied directory zeosdbo from server A to server B 3. copied file /etc/fpc.cfg from server A to server B now (finally!) everything works as expected. Thank you Peppe 2

[fpc-pascal] Vehicle management

2017-05-07 Thread Mark Morgan Lloyd
Has anybody used FPC to talk to a vehicle via the OBD connector? Can anybody give me a quick summary of the position of FPC on Android etc.? (Graeme, that includes FPCgui if it's relevant). We've been caught short by a vehicle problem that appears to be only fixable by a VB.NET program. Howev

Re: [fpc-pascal] silly question

2017-05-07 Thread Michael Van Canneyt
On Sun, 7 May 2017, duilio foschi wrote: I am have FPC v. 2.6.2 installed on linux/ubuntu server A. I am sure I did some change to zeos library in server A, but I cannot remember details. I'd like to have the same version of FPC installed on a new linux/ubuntu server B. I found that FPC v.

[fpc-pascal] silly question

2017-05-07 Thread duilio foschi
I am have FPC v. 2.6.2 installed on linux/ubuntu server A. I am sure I did some change to zeos library in server A, but I cannot remember details. I'd like to have the same version of FPC installed on a new linux/ubuntu server B. I found that FPC v. 3.0.2 was already installed on server B. Usi

Re: [fpc-pascal] Interfaces works in FPC 2.6.4 but not in 3.0.2

2017-05-07 Thread Marcos Douglas B. Santos
On Sat, May 6, 2017 at 7:37 PM, Graeme Geldenhuys wrote: > var > cmd: ICmdLineParams; > begin > if Supports(fpgApplication, ICmdLineParams, cmd) then // Never works > begin > ... > end; > end. > > > fpgApplication is a global instance of TfpgApplication. > > The line marked with