Re: [fpc-pascal] Pascal sensitive diff tool?

2025-02-20 Thread Wayne Sherman via fpc-pascal
Peter B wrote: > I'm wondering if there is any diff tool out there, > that caters for Pascal syntax, so can filter out > the noise from reformatting etc. Beyond Compare https://www.scootersoftware.com/ (30-day free trial, but well worth buying a license) (Beyond Compare is itself written using Del

Re: [fpc-pascal] I need to have launcher intent compatible with Android 14

2025-02-05 Thread Wayne Sherman via fpc-pascal
On Tue, Feb 4, 2025 Mgr. Janusz Chmiel wrote: >. App can be installed, but user is > helpless to find its launcher at The launcher desktop. > Here is The short intent. > > > > > > I have got AN error from Android 14 from ADB that Intents must be > spe

Re: [fpc-pascal] What to do to get new users

2025-01-06 Thread Wayne Sherman via fpc-pascal
Michael Van Canneyt wrote: > My wife creates websites for a living. > I nearly had to re-animate her after she looked at the FPC website. > The FPC website is a no-go area for her since that time. > > Hence my intent to re-open the debate. I ran across this 15 min lightning talk from FOSDEM 2024 t

Re: [fpc-pascal] Lessons from Thunderbird on sustaining an open source project

2025-01-04 Thread Wayne Sherman via fpc-pascal
Wayne Sherman wrote: > (recommend watching at 1.5x speed: using firefox | video player right > click menu | speed) To change playback speed in Chrome | in video player, use the three dots menu at lower right. ___ fpc-pascal maillist - fpc-pascal@lists.

[fpc-pascal] Lessons from Thunderbird on sustaining an open source project

2025-01-04 Thread Wayne Sherman via fpc-pascal
I thought about FPC and Lazarus. Not all open source projects can use the same way to sustain themselves, but all open source projects that want to be sustained need a way to do it. Take Your FOSS Project From Surviving To Thriving https://archive.fosdem.org/2024/schedule/event/fosdem-2024-2741-t

Re: [fpc-pascal] freepascal lz4 library?

2024-12-03 Thread Wayne Sherman via fpc-pascal
On Mon, Dec 2, 2024 at 4:16 AM wkitty42--- wrote: > TLDR; i'm looking for a (small?) Pascal library to handle lz4 data blocks > contained inside a data file... These use the lz4 library with pascal bindings (.a and.o files which can be compiled into your executable). One is written for Delphi but

Re: [fpc-pascal] What to do to get new users

2024-11-17 Thread Wayne Sherman via fpc-pascal
On Sun, Nov 17, 2024 at 2:20 PM Michael Van Canneyt via fpc-pascal wrote: > to pass it to the compiler through @extrafpc.cfg. > > If it is a fpc config file, then in that case it is definitely documented > here: > https://www.freepascal.org/docs-html/current/user/userse17.html "One of the comman

Re: [fpc-pascal] How to avoid Copy

2024-01-01 Thread Wayne Sherman via fpc-pascal
On Mon, Jan 1, 2024 at 6:14 AM Hairy Pixels wrote: > > On Jan 1, 2024, at 3:50 PM, Michael Van Canneyt wrote: > > You can't optimize that. As said, a generic is convenient but slow. > > I don't know about that. Like was mentioned the enumerator needs to return a > pointer, preferable without ^ so i

Re: [fpc-pascal] Procedures that work like WRITELN()

2023-12-27 Thread Wayne Sherman via fpc-pascal
On Wed, Dec 27, 2023 at 3:42 PM Wayne Sherman wrote: > Example using a TFileStream descendant and StreamIO AssignStream: > ...(line 42 follows) > FileWrite(TextRec(Output).Handle, Buffer, Count); Although that worked (I don't know why) I intended line 42 to be: FileWrite(TextRec(FOriginalStdOut)

Re: [fpc-pascal] Procedures that work like WRITELN()

2023-12-27 Thread Wayne Sherman via fpc-pascal
Example using a TFileStream descendant and StreamIO AssignStream: program TeeStdOut; {$mode objfpc} uses Classes, SysUtils, StreamIO; type TTeeStream = class(TFileStream) Private FOriginalStdOut: Text; FNewStdOut: Text; public constructor Create(const AFileName: string; Mode:

Re: [fpc-pascal] Procedures that work like WRITELN()

2023-12-27 Thread Wayne Sherman via fpc-pascal
On Wed, Dec 27, 2023 at 3:25 AM James Richters wrote: > I wanted to write what I thought should be a simple procedure, just instead > of calling WRITELN() with some arguments, call WRITELOG() with the same > arguments that you would use to write to a file, but my WRITELOG() procedure > would write

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-25 Thread Wayne Sherman via fpc-pascal
On Mon, Dec 25, 2023 Michael Van Canneyt wrote: > In short: To make a EBNF grammar which is 100% correct is not so simple > and will make the scheme extremely difficult to understand for a reader. > So I prefer to present a simpler version, and mention some limitations > only in the text ... > The

Re: [fpc-pascal] More syntax questions (part 3)

2023-12-16 Thread Wayne Sherman via fpc-pascal
On Sat, Dec 16, 2023 at 7:35 AM Michael Van Canneyt wrote: > Hm. Lot of corrections to do.. I'll be busy tonight :-) Are these grammars in GIT so others can help by submitting merge requests? That way you can spread the love :-) ___ fpc-pascal maillist

[fpc-pascal] Setenv is not Thread Safe (libc)

2023-11-20 Thread Wayne Sherman via fpc-pascal
Beware of using GetEnv / SetEnv in threads: https://www.evanjones.ca/setenv-is-not-thread-safe.html ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Serial connection via TCP/IP sockets on RPi?

2023-11-03 Thread Wayne Sherman via fpc-pascal
There is also some good info here: https://gist.github.com/DraTeots/e0c669608466470baa6c ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Serial connection via TCP/IP sockets on RPi?

2023-11-03 Thread Wayne Sherman via fpc-pascal
On Fri, Nov 3, 2023 at 12:56 AM Bo Berglund wrote: > I am wondering if there is already available what I am needing? Yes, there is software that bridges a serial connection over a network. On Windows it is often called a "virtual com port" or "virtual serial port" or "com port redirector". Open

Re: [fpc-pascal] [Lazarus] Running FPC in the browser...

2023-10-28 Thread Wayne Sherman via fpc-pascal
On Sun, Oct 22, 2023 at 3:20 AM Michael Van Canneyt wrote: > Thanks to the efforts of Nikolay Nikolov, the FPC compiler can now recompile > itself to webassembly I just watched an interesting talk from StrangeLoop called: "Inside the Wizard Research Engine" by Ben L. Titzer https://www.youtube.co

Re: [fpc-pascal] JSON RPC send server request to client

2022-10-04 Thread Wayne Sherman via fpc-pascal
Michael wrote: > Seems like both parts in the LSP protocol are playing 'client' and 'server', > because: > > "The Client is defined as the origin of Request objects and the handler of > Response objects. > The Server is defined as the origin of Response objects and the handler of > Request obj

Re: [fpc-pascal] JSON RPC send server request to client

2022-10-02 Thread Wayne Sherman via fpc-pascal
Wayne wrote: > JSON-RPC can be used bi-directionally when using > UNIX domain sockets, TCP sockets, and other > bidirectional transports (e.g websockets). > If implemented as such using a bi-direction transport, > the endpoints can be both a server and a client > at the same time... Sorry, my use

Re: [fpc-pascal] JSON RPC send server request to client

2022-10-02 Thread Wayne Sherman via fpc-pascal
Michael wrote: > There is no way to send data from server to client, > only responses to client requests. > What's more, HTTP 1 and 1.1 simplu do not allow this. > You'd need HTTP2 and/or websockets in order to > send data from server to client. >From the spec, JSON-RPC 2.0 is "transport agnostic

[fpc-pascal] How does FPC perform in the FASTEST Computer Language Race

2021-07-09 Thread Wayne Sherman via fpc-pascal
If you are a speed geek, you will probably be interested in this. What is the FASTEST Computer Language? 45 Languages Tested! (E01) https://www.youtube.com/watch?v=tQtFdsEcK_s Current standings at the time of this video Iterations per sec: Ada: 67 Pascal: 143 Fastest language: 7301 Slowest langu