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


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] 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] 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] 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] 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] 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] 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] 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] 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] 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] What to do to get new users

2024-10-15 Thread DougC via fpc-pascal
 On Tue, 15 Oct 2024 21:34:01 -0400 Rainer Stratmann via fpc-pascal 
 wrote ---



Please notice that Telegram does not spend any money in marketing! 

Telegram is one of the most popular messenger: 

https://www.oberlo.com/statistics/most-popular-messaging-apps 










I don't think the situations are vary similar, so I don't think the comparison 
is useful. Messaging apps are relatively new and the market is in a state of 
flux. No one has much of an investment in their messaging app - they could 
change in an instant. But the programming language market requires substantial 
investment in learning. The technical debt of active systems is also huge. It 
is not nearly as easy to change programming languages as messaging apps!



User privacy is a huge draw for messaging apps. There is nothing comparable in 
programming languages except maybe simplicity. But Object Pascal has already 
succumbed to the lure of complexity that accompanies features like generics, 
attributes, redefined operators, and other decorative comments.



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


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

2024-10-15 Thread DougC via fpc-pascal
 On Tue, 15 Oct 2024 19:07:58 -0400 Rainer Stratmann via fpc-pascal 
 wrote ---

At the Lazarus Congress in Cologne in October 2024, it ended up being very 

interesting. An important question came up.



Why are no new users coming to Lazarus/Freepascal?

Why do we find it so difficult?

How can we get new, younger users to come to us?











The most fundamental reason more people are not adopting Pascal as a 
programming language is because in the mid-1990's Pascal lost out to Java as 
the initial language that was taught in university settings. Because that was 
the last place Pascal was widely used, it quickly became obscure. Also, C was 
always thought to be the pinnacle of achievement. That is, if you could program 
in C you were considered elite. That continues today, although those promoting 
Rust are making a commendable and stalwart effort to have it accepted into the 
Linux kernel.



Today, Python is probably the most widely used programming language. Its appeal 
is based on ease of learning and relaxed rules that increase ease of use. While 
it is as severely flawed language from a strict design viewpoint, it has taken 
over.



So, faced with this situation, what can be done? Short of a massive and 
expensive marketing effort, not much, except to remove obvious attributes that 
hinder adoption. One such attribute is the messy, cluttered look of the IDE. An 
IDE redesign with a cleaner, simpler, and visually appealing presentation would 
help enormously. It looks like that is what is being proposed here. 



I have always found that the self-contained nature of Pascal/Delphi executables 
is a big advantage over other language systems. Just copy the file and run it, 
even on a system that has never seen a Pascal/Delphi executable before. If we 
could do that with the IDE/compiler it would be magic! The install process is 
far from that goal right now.



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


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

2024-11-15 Thread DougC via fpc-pascal
I'm tempted to ask if you are seriously asking this. But I won't.



Design is a whole professional specialty. To say it boils down to light vs. 
dark background or the amount of whitespace is to insult those who do this work 
as a career. I'm sure you aren't trying to do that, so I'm not sure what you 
are looking for in this line of inquiry.



In the off chance that you really do not know the answers, here is some info 
for you:

-
White
 space, also known as negative space, plays a crucial role in effective 
web design. Here are the key ways white space contributes to creating 
compelling and user-friendly websites: Enhancing Readability and Content 
Prioritization

White space significantly improves the readability of content on a
 website. By breaking up blocks of text and providing visual breathing 
room, it allows users to process information more efficiently.This is 
especially important in the age of skim reading, as it helps 
visitors quickly comprehend content without feeling overwhelmed.White space 
also aids in content prioritization. By surrounding 
important elements with ample space, designers can draw attention to key
 messages, calls-to-action (CTAs), or other critical content.This strategic use 
of space creates a visual hierarchy, guiding users' focus to the most important 
parts of the page. Improving User Experience and Navigation

Effective use of white space contributes to a better overall user experience: 
Reduced Cognitive Overload: By preventing visual clutter, white space helps 
users avoid feeling overwhelmed by too much information at once.

Improved Navigation: 
White space can create clear separations between different sections of a
 website, making it easier for users to understand the structure and 
navigate the content.

Enhanced Focus: By 
isolating important elements, white space helps direct users' attention 
to specific areas, improving engagement with key features or content.


Creating Visual Appeal and Brand Perception

White space plays a significant role in the aesthetic aspect of web design: 
Elegance and Sophistication:
 Websites with ample white space often appear clean, modern, and 
uncluttered, which can enhance the perception of professionalism and 
trustworthiness.

Balance and Harmony: White space helps create a sense of balance in design, 
contributing to a more visually pleasing and cohesive layout.

Brand Tone: The use of white space can communicate a brand's personality and 
style, reinforcing its identity in the digital space.


Facilitating Responsive Design

In the context of responsive web design, white space is crucial 
for ensuring a seamless experience across different devices. It allows 
for flexibility in layout adjustments, ensuring that content remains 
readable and visually appealing on various screen sizes.Conclusion

White space is not merely empty space but a powerful design 
element that significantly impacts the effectiveness of a website. When 
used strategically, it enhances readability, improves user experience, 
creates visual appeal, and supports responsive design. By mastering the 
use of white space, designers can create websites that are not only 
aesthetically pleasing but also highly functional and user-friendly.












 On Fri, 15 Nov 2024 18:35:22 -0500 Steve Litt via fpc-pascal 
 wrote ---



So what do you all think? Does a good site really boil down to generous 
sections of light content on dark background plus generous spacing 
between sections and subsections?___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Adding Javascript to Pascal

2025-02-21 Thread DougC via fpc-pascal
I am also allergic to javascript!



Consider Lua instead.



Doug C.






 On Fri, 21 Feb 2025 07:35:39 -0500 Alexey T. via fpc-pascal 
 wrote ---



Scripting is good thing. But I hate JS. No mandatory quotes around dict 
keys. Arrow functions which are sugar and not needed. etc etc. 
I suggest to use Python. 
Python-for-Lazarus is in the github. 
I like Python! 
Alexey 
___ 
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] Pascal sensitive diff tool?

2025-02-20 Thread DougC via fpc-pascal
Beyond Compare is the single most valuable utility I have bought in 30 years of 
PC use. Highly recommended!






 On Thu, 20 Feb 2025 20:33:41 -0500 Wayne Sherman via fpc-pascal 
 wrote ---



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 Delphi on Windows and Free 
Pascal and Lazarus on macOS and Linux) 
___ 
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] Adding Javascript to Pascal

2025-02-22 Thread DougC via fpc-pascal
Why not? Because it helps a distinctly inferior language design to perpetuate.



It used to be said that any programmer that first learned to program using 
BASIC was ruined for life. I would say the same thing about Javascript. 



Doug C.






 On Fri, 21 Feb 2025 17:46:49 -0500   wrote ---



Again, not my choice, but folks do tend to like it for some
  reason, so why not?___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal