Re: [fpc-pascal] What's in Hello World

2024-01-11 Thread DougC via fpc-pascal
Ah, yes! The Hello World Machine.



Doug C.







 On Thu, 11 Jan 2024 14:34:29 -0500 Adriaan van Os via fpc-pascal 
 wrote ---



Nikolay Nikolov via fpc-pascal wrote: 
 > But that increases the binary size to 28 bytes. We can put a 'ret' 
 
That's still 27 bytes too much. Let's design a CPU that has "Hello World" as a 
one-byte 
instruction, implement that CPU in a Field-programmable gate array, write an OS 
for it and let it 
say hello. That's HelloWorld ad absurdum. 
 ___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


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

2023-12-27 Thread DougC via fpc-pascal
It would be very useful if WriteStr() was a function that returned the 
resulting string instead of returning it via an output parameter. Then you 
could just wrap the Writeln parameters in WriteStr() and pass it to the new 
logging procedure. Unfortunately, the ISO extension did not end up doing that!



Doug C.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Pause Key

2023-04-13 Thread DougC via fpc-pascal
I think any function where you provide the key code value and obtain the status 
of the key should work.



>From the Linux Documenation Project:

The two keys 
PrintScrn/SysRq and Pause/Break are special in that they have two 
keycodes: the former has keycode 84 when Alt is pressed simultaneously, 
and keycode 99 otherwise; the latter has keycode 101 when Ctrl is pressed 
simultaneously, and keycode 119 otherwise.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Working on a new way to educate people about pascal

2022-12-29 Thread DougC via fpc-pascal
Well, this discussion has not gone well at all!



I suggest that everyone relax and discontinue pursuing it. 



The response has been made that the example code in the tutorial is more 
complicated than it should be. Digressions on SQL and databases are not 
relevant. Nor are comments on grammar. Let it be.



Doug C.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Program efficiency

2022-11-09 Thread DougC via fpc-pascal
Maintaining understandable and readable code is often more important that 
runtime efficiency. Like others have said, there are likely many additional 
places you can address overall efficiency before dealing with these 
calculations.



Doug C.







 On Wed, 09 Nov 2022 09:52:12 -0500 James Richters via fpc-pascal 
 wrote ---




Sounds to me that if the compiler will probably insert temp variables anyway, 
then I might as well make my own and make it easier to understand later.

 

James



___ 
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Bug or feature ?

2022-07-27 Thread DougC via fpc-pascal
WRITELN(F: 'Hello');

is not proper Pascal.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] StrToInt is using ShortString buffer?

2022-01-12 Thread DougC via fpc-pascal
So, are you saying the one cannot declare an IntToStr function with the string 
represented by a PChar argument? Seems pretty straightforward to me.



Isn't that what is being requested?



Doug C.







 On Wed, 12 Jan 2022 11:10:57 -0500 Sven Barth via fpc-pascal 
 wrote 



DougC via fpc-pascal <mailto:fpc-pascal@lists.freepascal.org> schrieb am Mi., 
12. Jan. 2022, 15:20:

Alexey-



You can always create such a function yourself,  gain experience using it, and 
share the source with us. That way others can gain experience with it and maybe 
someday also ask for it to be added to the standard library.








While that is in general the case, here this is not that easy, cause as Michael 
wrote, Val is an intrinsic which is fact backed by multiple function and the 
compiler itself needs to call them correctly. So in this case to play around 
with it means adjusting *both* the RTL and the compiler. 



Regards, 

Sven 






___
fpc-pascal maillist  - mailto:fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] StrToInt is using ShortString buffer?

2022-01-12 Thread DougC via fpc-pascal
Alexey-



You can always create such a function yourself,  gain experience using it, and 
share the source with us. That way others can gain experience with it and maybe 
someday also ask for it to be added to the standard library.



Doug C.







 On Tue, 11 Jan 2022 10:46:24 -0500 Alexey Tor. via fpc-pascal 
 wrote 



Hello. As I see in the commit 
https://gitlab.com/freepascal.org/fpc/source/-/commit/beecbf1581a986f544fde77aa428e05c21a35f6f

StrToInt always uses ShortString buffer:

Function fpc_Val_SInt_ShortStr(DestSize: SizeInt; Const S:
ShortString; out Code: ValSInt): ValSInt;

If it is correct: Can we skip using ShortString buffer and have e.g.
'common' PChar base function for AnsiString/ShortString?-- 
Alexey


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] freepascal.org SSL_ERROR_BAD_CERT_DOMAIN

2022-01-04 Thread DougC via fpc-pascal
You can add Firefox on Windows 10 which also sees this error. 



Seems not to be a browser issue. If the user requests an https: connection, the 
website should NOT revert to a http: connection. Instead it should return an 
error if the https: connection cannot be made.







 On Tue, 04 Jan 2022 21:37:09 -0500 Trev via fpc-pascal 
 wrote 



Dmitry Boyarintsev via fpc-pascal wrote on 5/1/22 12:17 pm:
> You probably want to give a bit more context here.
> 
> 1. The error seems to be visible only in Safari (iOS or macOS).

You can add the SeaMonkey web browser on FreeBSD to the list.

___
fpc-pascal maillist  - mailto:fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


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

2021-10-15 Thread DougC via fpc-pascal
I would be helpful if you could meld this work into other Pascal-based efforts, 
such as the Castle Game Engine. I don't know the details of CGE but if it could 
use more of this type of functionality, why not make your work even more useful 
by connecting up with CGE?



Doug C.






 On Fri, 15 Oct 2021 18:18:13 -0400 Anthony Walter via fpc-pascal 
 wrote 


I've been working on writing Pascal bindings a friendly object orient interface 
to a few open source projects. I have put together Chipmunk2D, NanoVG, MiniMP3, 
and SDL2 for rendering nice real time platform independent programs where fast 
logic can be easily controlled with physics or fast graphics can easily be 
rendered.



If you are interested in hearing more, I've put up a quick and dirty video of 
one of my test scene that precisely detects points of contact and the forces 
behind them at the page below.



https://www.getlazarus.org/videos/physics/collisions/


Source code for the test scene is included on that page. If you want to help, I 
need to bounce ideas off people as well as test on Raspberry Pi, Mac, and 
Windows. Message me and maybe we can try to meet on a Discord channel.


___
fpc-pascal maillist  - mailto:fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-04 Thread DougC via fpc-pascal
I received the original posting and also the second direct attempt.



Doug C.






 On Mon, 04 Oct 2021 04:36:32 -0400 Bo Berglund via fpc-pascal 
 wrote 


On Mon, 04 Oct 2021 10:28:38 +0200, Bo Berglund via fpc-pascal
 wrote:

>I have tried to post to the list (via GMane) but it does not come through.
>And the last post made seems to be on 2021-10-01...
>Is the list itself down or is there a GMane problem?

Seems to be GMane...
I repeated the posting via email instead and this appears in the GMane listing.
So their posting function seems to have broken for the lazarus list. :(


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  - mailto:fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal