Re: [Lazarus] Sparta Docked Formed Editor Removed Without Discussion?

2023-10-16 Thread Anthony Walter via lazarus
Thank for for such a prompt and relevant response. I just noticed from the GitLab commit comment the alternative was listed right there. To all others please disregard my original message. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

[Lazarus] Sparta Docked Formed Editor Removed Without Discussion?

2023-10-16 Thread Anthony Walter via lazarus
I have been happy using Lazarus without rebuilding the IDE from source for some time but yesterday I finally built a new version from GitLab source trunk. I noticed that the Sparta docked form editor was removed and there doesn't seem to be any discussion here on the subject. Is there an

[Lazarus] GTK 3 Widget Set Status?

2023-09-26 Thread Anthony Walter via lazarus
Would someone be so kind to tell me if the GTK 3 widget set is working yet? Does the IDE work when built using GTK 3 and can I write most normal desktop applications using GTK 3 right now when using the a most recent trunk revision? What's not working in a general sense? I thought I'd ask you

[Lazarus] Copilot, VS Code, and OmniPascal

2023-05-15 Thread Anthony Walter via lazarus
Hello all! I would very much like to use Github Copilot with Free Pascal, and possibly within the Lazarus IDE. I have been using Github Copilot a lot recently with my C and C# coding projects and have found it to be an immensely useful tool. Recently I used it rapidly to create documentation

[Lazarus] More Flood Photos

2022-10-02 Thread Anthony Walter via lazarus
By your request here are more photos I took as hurricane Ian passed Cape Canaveral. Clubhouse Boardwalk Manatee --

[Lazarus] Improving my Pascal Simulation with a Fragment Shader

2022-09-13 Thread Anthony Walter via lazarus
I am writing some demos for my Tiny Sim library and also teaching kids programming. I wrote an interesting tutorial that is a good introduction to writing fragment shaders and thought I'd share it with you guys on this forum. https://www.getlazarus.org/pool/rendering/ I hope you find it

Re: [Lazarus] More Gtk3 Status

2022-07-20 Thread Anthony Walter via lazarus
After some research, I found a few more serious issues with Gtk3. I will not bother filing bugs as the issues seem too ingrained to the implementation. Here are some problems: 1) TGtkWidget makes custom drawing an inaccessible private field value that cannot be set. What this means is that only

Re: [Lazarus] More Gtk3 Status

2022-07-15 Thread Anthony Walter via lazarus
Kostas, We already have an object oriented layer to interact with controls. That layer is the LCL. What you are saying is it makes sense for each widgetset to create their own separate and independent class hierarchy, or to use TWidgetInfo, or have something akin to: LCL-> WSClasses ->

Re: [Lazarus] More Gtk3 Status

2022-07-15 Thread Anthony Walter via lazarus
Denis, I will attempt the big design flaws I have found so far while wrangling with the current Gtk3 widget implementation. There are three main layers underpinning cross platform LCL widgetset. 1) We obviously have the LCL itself that mimics the VCL and creates a cross platform component and

Re: [Lazarus] More Gtk3 Status

2022-07-15 Thread Anthony Walter via lazarus
Respectfully, I believe the current underlying implementation of Gtk3 is fundamentally a bad design making it unnecessarily difficult to work with. I do not see it being completed and see its poor design as a large part of the reason it has been languishing for so long. --

[Lazarus] More Gtk3 Status

2022-07-15 Thread Anthony Walter via lazarus
Last year in September 2021 I wrote this list asking about the status of the Gtk3 widgetset implementation for Lazarus. The consensus at the time seemed to indicate that the package was still incomplete and had no maintainer. Over the past few days, I have been attempting to add Gtk3 widgetset

[Lazarus] Codebot Cross Landing Page and Update

2022-07-01 Thread Anthony Walter via lazarus
Hello everyone. I wanted to let you all know I created a landing page for my recently updated Codebot Cross library. I've been working on the library as my base set of units for some time now, but have only been pushing updates to my private git server. With a FOSS application I published

[Lazarus] 6000+ Open Source Icon Tool and Git Repository

2022-06-30 Thread Anthony Walter via lazarus
Hi guys. I just wanted to post some information to this board about a cross platform programming and designer tool I wrote using Lazarus. https://www.getlazarus.org/apps/matview/ This tool is called Material Design Icon Viewer, and in summary, it allows programmers and designers to quickly

Re: [Lazarus] Type Library Viewer, Importer, and Editor?

2022-06-26 Thread Anthony Walter via lazarus
Thank you for the information. I'll take a look ay and see if it can be improved. I normally use Linux these days, which obliviates all use or reference to type libraries, but I have a need to write a program to automate AutoCAD with some specific hardware I recently acquired. While working with

[Lazarus] Type Library Viewer, Importer, and Editor?

2022-06-26 Thread Anthony Walter via lazarus
Does Lazarus have a type library viewer for previewing all the type libraries on your computer in the form of converted pascal source code? Does Lazarus have a type library editor allowing you to define plain COM and automation interfaces, enums, records, and such as IDL? If so does this tool

[Lazarus] Programming Mechanical Simulations

2021-12-15 Thread Anthony Walter via lazarus
I wanted to share this . I can't stop writing code. I was inspired to design a program that can convert any SVG drawing into a simulation of a physical machine. I am just getting started writing such a program, but have had some promising

[Lazarus] All Demos Are Done

2021-12-02 Thread Anthony Walter via lazarus
I've completed writing all the demos and most of the documentation for my soon to be released vector graphics and physics simulation library. The library is named Tiny Sim and the first version will be published soon. I have lots of planned features and improvements to come. If you are interested

Re: [Lazarus] New Synthwave Demo

2021-11-30 Thread Anthony Walter via lazarus
Did someone steal access to Juha's email? Not only are his ramblings off-topic, but he sounds like a deluded conspiracy theorist bent on disenfranchising rational people from using these mailing lists. -- ___ lazarus mailing list

Re: [Lazarus] New Synthwave Demo

2021-11-30 Thread Anthony Walter via lazarus
Here you go: https://en.wikipedia.org/wiki/Synthwave Also this: https://duckduckgo.com/?q=synthwave=images=images -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] New Synthwave Demo

2021-11-29 Thread Anthony Walter via lazarus
Hi guys, I just wanted to let you know I completed writing my final demo to be included in my soon to be released vector graphics and custom UI toolkit. On this page is the video and source code of the project. --

[Lazarus] Vector Based UI Supports Any Transform

2021-11-23 Thread Anthony Walter via lazarus
I've been busy with family ongoings the past week but managed to squeeze in a small quality of life improvement to my vector graphics toolkit with UI widgets and SVG parsing and rendering support. https://streamable.com/cv137g Above is a link to a quickly recorded video demonstrating UI widgets

[Lazarus] SVG Rendering Performance using Free Pascal

2021-11-17 Thread Anthony Walter via lazarus
I was watching an older video from Nvidia regarding their path rendering extensions, a feature specific to their video card drivers. I've written a more open implementation and have run an initial quality and performance test. https://www.youtube.com/watch?v=fTm_s_pCBEM This is test was run on

[Lazarus] Rendering SVG Documents in realtime in less than 160 lines of code

2021-11-14 Thread Anthony Walter via lazarus
It took me about 24 hours to design and write an SVG parser and rendering system from scratch. You can check it out on this page: https://www.getlazarus.org/videos/physics/svg/ The source code for the rendering is only 156 lines of Pascal code, Most of the work is done by the parser. It even

Re: [Lazarus] Crayon physics written in Pascal

2021-11-11 Thread Anthony Walter via lazarus
Thank you. Corrected. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Crayon physics written in Pascal

2021-11-11 Thread Anthony Walter via lazarus
In less than 500 lines of code, I created a crayon physics demo program using Free Pascal. Check it out at the link below. Source code is included at the bottom of the page. https://www.getlazarus.org/videos/physics/catapult/ I've tested it out and it runs well on Windows, Linux, Mac, and

[Lazarus] Asteroids in Pascal

2021-11-09 Thread Anthony Walter via lazarus
As one of several demos of my vector graphics library for Free Pascal, I've recreated an arcade game. I've included a copy of the entire game logic code. Check it out here: https://www.getlazarus.org/videos/physics/asteroids/ -- ___ lazarus mailing

Re: [Lazarus] GTK3 Status?

2021-09-10 Thread Anthony Walter via lazarus
After more research, here is a small bit of anecdotal information from my tests. Using the most recent git version LCL GTK3 seems to run somewhat but has errors and operates incorrectly in some situations. There seems to be rendering problems when I tested a TTIPropertyGrid. Colors and line

Re: [Lazarus] GTK3 Status?

2021-09-10 Thread Anthony Walter via lazarus
After a small bit of research, it looks like most of the information related to the LCL GTK3 can be found on this page. I am unsure how up to date the issues are as the README.txt file was last updated 8 years ago. https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main/lcl/interfaces/gtk3

[Lazarus] GTK3 Status?

2021-09-10 Thread Anthony Walter via lazarus
Can anyone tell me who is actively working on the LCL GTK3 or greater toolkit and also possibly refer me to a page or document listing what work was is or is remains to be done on it? Thanks, Anthony -- ___ lazarus mailing list

[Lazarus] Going Through My Educational Projects Material

2021-05-10 Thread Anthony Walter via lazarus
Upon request of some of the parents of the kids I teach, I am working on a document providing an overview of the methods, materials, and content used in my online classes. Thanks to a new government resource upon approval the parents of the kids I teach may be able to get reimbursement from the

Re: [Lazarus] Clipboard Data Goes Away

2021-04-01 Thread Anthony Walter via lazarus
Colin, After some research I've found that LCL Gtk2 isn't using gtk_clipboard_x functions, rather it's using gtk_selection_x functions. There are gtk_clipboard functions to do the same thing as gtk_selection functions, but because the gtk_clipboard functions are not being used, the

Re: [Lazarus] Clipboard Data Goes Away

2021-04-01 Thread Anthony Walter via lazarus
Here is a follow-up. I wrote a simple test using LCL Gtk2 and gtk_clipboard_store. This test allows the clipboard data to persist after my program exited. Button1 click sets the clipboard data. If Button2 clicked the data will persist after the program exits. If Button2 is not clicked, the data

Re: [Lazarus] Clipboard Data Goes Away

2021-04-01 Thread Anthony Walter via lazarus
Thanks Michael. It looks as if this problem was fixed in Gtk2 by version 2.6. The developers added this function to work around this problem: void gtk_clipboard_store (GtkClipboard *clipboard); Stores the current clipboard data somewhere so that it will stay around after the application has

Re: [Lazarus] Clipboard Data Goes Away

2021-04-01 Thread Anthony Walter via lazarus
Perhaps there is a Linux service that can be used by applications to hand over and take ownership of clipboard data, and applications such as those I mentioned are using it in order to solve the problem I am describing? -- ___ lazarus mailing list

Re: [Lazarus] Clipboard Data Goes Away

2021-04-01 Thread Anthony Walter via lazarus
I noticed a recent discussion touching on this problem posted by Bo Berglund on November 20, 2020 to this same mailing list. Andreas Schneider replied in that thread, 'Pasting basically asks the application that "copied" it to get the content. If that app is gone in the meantime, there's nothing

[Lazarus] Clipboard Data Goes Away

2021-04-01 Thread Anthony Walter via lazarus
On Linux Gtk2, over time I have noticed a problem where data copied to the clipboard by a Lazarus application does not persist on the clipboard after the Lazarus program has exited. While writing this application that captures image

Re: [Lazarus] *** SPAM *** Open Source IDE Written Using Delphi

2020-12-26 Thread Anthony Walter via lazarus
Why was the subject of my submission changed with "*** SPAM ***" inserted? Curious -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Open Source IDE Written Using Delphi

2020-12-26 Thread Anthony Walter via lazarus
I thought this bit of information might be of interest and useful to us Lazarus people. Apparently Embarcadero has forked the Bloodshed IDE and rewritten it to run natively using Delphi. Although this is a

Re: [Lazarus] TSQLQuery component editor

2020-04-30 Thread Anthony Walter via lazarus
Great! I'll test it out shortly. Thank you for enhancements :) -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] We are planning the next release: Lazarus 2.0.8

2020-04-02 Thread Anthony Walter via lazarus
Martin, I haven't reported this bug because it's difficult to reproduce, but with some of the recent releases and many of the trunk check in there seems to be a lot of problems with the sparta docked form designer (DFD), at least on Linux gtk2. What happens is that with the DFD installed on

Re: [Lazarus] The Problem with the Linux Desktop

2020-03-29 Thread Anthony Walter via lazarus
Teresa, thank you for your considered opinion. I agree with most of what you said, but with regards to the option of moving back to Windows, for me that is a non starter. I don't use Linux rather than Window because of some technical benefit. The primary reason I use Linux because I don't want to

Re: [Lazarus] The Problem with the Linux Desktop

2020-03-27 Thread Anthony Walter via lazarus
Juha, I saw someone had had modifications and unfortunately it caused the appindicator to stop working on my desktop. I rolled back the version to my last check in and it worked again. I also found that on the Cinnamon desktop you can add a systray applet and the old Gtk2 style tray icons work,

Re: [Lazarus] The Problem with the Linux Desktop

2020-03-27 Thread Anthony Walter via lazarus
Michael, I've been using the Linux desktop as my primary OS since 2006. I had dabbled in in before, but typically went back to windows when my networking had troubles. That said, I want Linux to be better. Yes I understand your points, but please understand even when you choose an environment

[Lazarus] The Problem with the Linux Desktop

2020-03-27 Thread Anthony Walter via lazarus
On Linux ... I was looking at the Unity tray icon code I submitted a while back and it had stopped working on my desktop environment. I was also looking for a way to track user log off events, monitor clipboard history, and how to register a global hot key. The sheer scattering of different

[Lazarus] Problems teaching kids programming

2020-03-24 Thread Anthony Walter via lazarus
Here is something I had to resort to this to teach one of my students: https://www.getlazarus.org/learn/courseware/homework/project-4/ For the effort I made for this one child in creating this lesson, I thought I'd at least share my sorrows. -- ___

[Lazarus] Gtk2 Linux detect user logoff?

2020-03-23 Thread Anthony Walter via lazarus
Does anyone here know how to detect user log off and gracefully terminate under Gtk2 Linux? I have an app which uses some temporary files (in /tmp) and I want to ensure those files are deleted when the user logs off. The application query/end session events don't seem to be connected when using

Re: [Lazarus] Linux GNU Debugger Freezing App on Run

2020-03-09 Thread Anthony Walter via lazarus
> > Thanks for that help Martin. It would seem gdb itself is hanging and it's tied to some code in my library that was problematic previously. I don't believe I am doing anything wrong, but it's related to a problem I had with gdb. I will research further to try to isolate the exact cause. --

[Lazarus] Linux GNU Debugger Freezing App on Run

2020-03-09 Thread Anthony Walter via lazarus
Has anyone else experienced the following problem? I continually have a problem where running a program on Linux with the GNU debugger through Lazarus results in either no control showing on my form or controls show but everything is frozen. This happens occasionally, probably on about 50% of

Re: [Lazarus] libgphoto2 camera capture and control

2020-03-03 Thread Anthony Walter via lazarus
My libgphoto2 pascal file is located here . That's what I've been doing on an idle timer, but admittedly when I submitted the changes I didn't actually change any of the libgphoto2 "widget" values. I just am calling ... function

[Lazarus] libgphoto2 camera capture and control

2020-03-03 Thread Anthony Walter via lazarus
Does anyone know if any projects exists for libgphoto2? I wrote an object oriented interface to libgphoto2 and have a problem with tethering (using the computer to control a camera) where after some time my camera will turn off during a period of inactivity. To reset camera tethering you have to

[Lazarus] Delphi is 25 years old today

2020-02-14 Thread Anthony Walter via lazarus
As the title says, Delphi turns 25 years old today. A discussion is going on over here on hacker news . Feel free to chime in there to let other people know Free Pascal and Lazarus is free open source software, under active development, and is better

Re: [Lazarus] NanoVG Graphics

2020-01-28 Thread Anthony Walter via lazarus
Marc, The library does not have any code to manage creating a window, creating a valid opengl context, or handle event processing. These are things which are not exactly trivial in nature, especially in a cross platform manner. Typically for simplicity makers of OpenGL demos rely upon things like

[Lazarus] NanoVG Graphics

2020-01-25 Thread Anthony Walter via lazarus
I am starting a rewrite of my 2D hardware accelerated Pascal graphics library based on an OpenGL 3D backend, and I stumbled across an open source project called NanoVG. I am impressed with how small and self contained NanoVG is, and although I will recreated my 2D graphics library upon OpenGL

Re: [Lazarus] gdb problems on ubtuntu 19.10

2019-11-02 Thread Anthony Walter via lazarus
If anyone wants to follow along with this problem, I've posted a question about it on askubuntu here: https://askubuntu.com/questions/1185729/ubuntu-19-10-gdb-nearly-unusable-long-delay -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] gdb problems on ubtuntu 19.10

2019-11-01 Thread Anthony Walter via lazarus
An update. I installed Linux Mint 19.2 on the same laptop and re-ran my install script. The problem previously described with gdb did not present itself. This leads me to believe there is some kind of problem with gdb in Ubtuntu 19.10, the prior OS I was testing. > --

Re: [Lazarus] gdb problems on ubtuntu 19.10

2019-10-31 Thread Anthony Walter via lazarus
Stripping debug symbols from my test program has no effect. The gdb program still takes 20-30 seconds to open my text programs written using Lazarus. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

[Lazarus] gdb problems on ubtuntu 19.10

2019-10-31 Thread Anthony Walter via lazarus
I know this problem is not entirely Lazarus related, but I'm hoping someone here might be able to provide some insight. On a fresh install of Ubuntu 19.10 when running projects from Lazarus with gdb debugging, any and all projects take anywhere from 20 to 30 seconds to become interactive after a

Re: [Lazarus] OSX 64 bit Cocoa + Catalina Installer

2019-10-15 Thread Anthony Walter via lazarus
I have to search my backup drives for some of this code, but I believe I also added a few extra classes to simplify some of the weirdness of Apple's classes. For example I greatly simplified the steps needed to work with CGContext and CGBitmapContextCreate such that it was completely transparent.

Re: [Lazarus] OSX 64 bit Cocoa + Catalina Installer

2019-10-15 Thread Anthony Walter via lazarus
Dimitry, What I've done is created a reference counted class hierarchy to match part of the Cocoa framework. It's only partially done, but it allows Pascal code to be written to simplify interaction with native OSX frameworks and APIs like AppKit in the following ways: Using NSWindow class as an

Re: [Lazarus] OSX 64 bit Cocoa + Catalina Installer

2019-10-15 Thread Anthony Walter via lazarus
Note to all, the install source I posted comes from a random clone of svn trunk fpc and trunk lazarus put together from whatever was in the svn repository on Saturday. As such it might contain any number of potential bugs. That said, the reason trunk sources should be used is that the Cocoa

Re: [Lazarus] OSX 64 bit Cocoa + Catalina Installer

2019-10-14 Thread Anthony Walter via lazarus
Here is a short video where I demonstrate how to switch between the gdb and lldb inside Lazarus. I also demonstrate how to move docked windows. There is no audio, but anyone should be able to follow along. Interestingly the Cocoa widgetset throws an exception when a docked window is undocked or

Re: [Lazarus] OSX 64 bit Cocoa + Catalina Installer

2019-10-14 Thread Anthony Walter via lazarus
Ryan, To answer your question, I just haven't taken the time to try out lldb yet. I guess it can be switched to lldb in the Lazarus interface. About that crash, it probably comes from somewhere in the Cocoa widgetset, which is currently still in development. It's far along enough to enable the

Re: [Lazarus] OSX 64 bit Cocoa + Catalina Installer

2019-10-14 Thread Anthony Walter via lazarus
Also, about code signing gdb, my setup script will install it for you using either Homebrew or Macports, you get to choose. You may want to try these alternate steps and skip the debugger install steps (the script already installed it), and proceed with the code signing steps:

Re: [Lazarus] OSX 64 bit Cocoa + Catalina Installer

2019-10-14 Thread Anthony Walter via lazarus
Martin, Yes I read the message requesting lldb testing the other day. I haven't taken the time to test it yet, but as I understand it's a great project that will hopefully allow for better debugging (such as inspecting and changing properties at runtime) but is still missing some important

[Lazarus] OSX 64 bit Cocoa + Catalina Installer

2019-10-14 Thread Anthony Walter via lazarus
Testers need. I created a new installer for OSX that includes a 64-bit only Cocoa version of FPC and Lazarus. I don't have Catalina installed, so I am looking for testers and any variety of OSX. The installer is a shells script that will walk you through Xcode, Homebrew or Macports, as well as

Re: [Lazarus] Default color of form in RGB?

2019-10-13 Thread Anthony Walter via lazarus
Okay, you made me laugh, but I hope you were joking. Just to be clear I don't mean to ask how to get the color of something on my screen, I meant how to calculate at runtime the default color of a form in RGB on all platforms without having to take a screenshot of the form. --

[Lazarus] OSX Catalina removes 32-bit and Carbon. Options?

2019-10-10 Thread Anthony Walter via lazarus
So it would seem that OSX Catalina entirely removes support for 32-bit applications and the entire Carbon toolkit. That means that Lazarus on Catalina will only work with 64-bit applications and the Cocoa toolkit. Where does this leave Lazarus? Does the Lazarus IDE compile and operate as exepcted

Re: [Lazarus] JsonTools issues in GH

2019-10-02 Thread Anthony Walter via lazarus
Thank you for posting that. I hadn't reviewed these issues at all until right now. It looks like all the issues posted aren't actually issues, save for the dual license request. All issues posted all already covered in the comments embedded in the original source. I will update them forthwith.

Re: [Lazarus] Feedback requested: File Search, a visual file search utility

2019-09-27 Thread Anthony Walter via lazarus
Bart, Thanks for suggesting TMaskList. I added it in and it works much better than the normal FindFirst pattern matching. It also allowed me to remove the duplicate checking. Regarding TShellView, you might want to look at my Shell Control library. It is explorer for Windows, as well as a few

Re: [Lazarus] Environment monitoring software on Linux?

2019-09-26 Thread Anthony Walter via lazarus
>From what you describe it would seem a simple script or program invoked through cron would be the best way to tackle this problem. Another option is the watch command, which can execute a program every x intervals. And of course if you want to kick off a process when run, you can add a script to

Re: [Lazarus] Feedback requested: File Search, a visual file search utility

2019-09-25 Thread Anthony Walter via lazarus
Thanks. I'll look into TMaskList. I assume you mean this bit of code? https://github.com/alrieckert/lazarus/blob/master/components/lazutils/masks.pas I am not sure how much this slows things down, and the checking if a file has already been added only happen on per directory basis, meaning the

[Lazarus] Feedback requested: File Search, a visual file search utility

2019-09-24 Thread Anthony Walter via lazarus
If anyone is interested I've posted another hopefully useful program along with the source. https://www.getlazarus.org/apps/filesearch/ The File Search utility is a stand alone tool for Mac, Windows, and Linux to search for files using a variety of criteria including containing text, file size,

Re: [Lazarus] Best examples of cross platform visual file or folder search application?

2019-09-12 Thread Anthony Walter via lazarus
Thank you for the replies. I think what I was getting at is not the code related to such a program, but the user interface design and popularity of such a program. I think most of you remember Microsoft implemented a file search into XP featuring an animate dog and a small form:

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Anthony Walter via lazarus
Michael, Internally JsonTools just stores the document as JSON fragments or text, in the case of object, array, or null, the text is empty, but in the case of number or bool, it converts the text to a number or bool when you ask AsNumber or AsBoolean. Now normally this wont be a problem because

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Anthony Walter via lazarus
> Could you include https://github.com/BeRo1985/pasjson in the comparison? Sure. I also have a few other people have requested. I will also list the license of each in the first table. Regarding a huge gigabytes of JSON in a file, I know a small portion of programmers of people might be inclined

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Anthony Walter via lazarus
Okay, going back and looking through the messages I see you did post a test with: {$codepage UTF8} and uses cwstring Here are the results with that added: On Linux using {$codepage UTF8} by itself causes both tests to fail. Adding cwstring causes both tests to work. On Windows trying to use

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Anthony Walter via lazarus
Michael, I hadn't tried your example code yet as I thought the discussion was on the topic of the unicode failure, and your example was about parsing speed. I'll be happy to take a look at speed improvements, but like you I am interested to find our what's failing with VerifyUnicodeCharsFPJson. --

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Anthony Walter via lazarus
If there is any chance the char codes are being altered through whatever browser / mail client you are using, here is a direct link to the program source: https://cache.getlazarus.org/projects/test.lpr -- ___ lazarus mailing list

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Anthony Walter via lazarus
Michael, regarding this unicode problem, all the code has already been posted in this thread. program Test; uses FPJson, JsonParser, JsonTools; const UnicodeChars = '{ "name": "Joe®Schmoe", "occupation": "bank teller \u00Ae " }'; function VerifyUnicodeCharsFPJson: Boolean; var N:

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
Okay, so I turned on my Windows VM with a different version of FPC and ran VerifyUnicodeChars with both FPJson and JsonTools. The resutls are the same. JsonTools sees the unicode correctly, and something is wrong when using FPJson. I don't know what the problem is, but other people are noticing

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
For those tracking the unicode issue, could you please verify the problem does not present in my JsonTools library on compiler revisions and platforms? I always get true (passed) with my library, but not with any other library. Here is the relevant test: function VerifyUnicodeChars: Boolean;

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
I am not sure how under any situation parsing a JSON from a stream source would be any faster than parsing a string. Also with regards to timing I am not sure how accurate Now is. For this purpose I've written: { Return a time based on system performance counters } function TimeQuery: Double;

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
Alan, oh that's a good idea. I will do that as well as add a few more parser libraries as requested by a few people in other non mailing lists threads. I will also try to find out what's going on the unicode strings as it might be a problem with the compiler. Michael, I am on Linux as well, but

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
On my system with FPJson the test is failing it failing on "bank teller \u00Ae ", but on when using approximately the same code with JSONTools it passes on both "name" and "occupation" always. What do you think is going on? -- ___ lazarus mailing list

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
Michael, Can you tell me why the second half (N.Items[1].AsUnicodeString) this test fails? This is the part that decodes "bank teller \u00Ae ". function VerifyUnicodeChars: Boolean; const UnicodeChars = '{ "name": "Joe®Schmoe", "occupation": "bank teller \u00Ae " }'; var N: TJSONData; begin

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
Michael, I have a hurricane headed my way, but when I'm done evacuating I'll send you a copy of my test. If you want to make improvements to the test program to be sure the manner in which I am using the FPJson functions and classes is correct and send me a revised test program, then that would

Re: [Lazarus] [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
With regards to duplicate key names, some libraries allow for the same key to be parsed resulting in multiple child nodes of the same name. Others throw an exception when parsing an object with a duplicate key name. The correct way to handle duplicate keys is to overwrite the existing key when a

Re: [Lazarus] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
Alexey, Currently JsonTools anything that is valid JSON as described on this page: https://www.json.org/ The only valid constants are: null, true, false Arrays can contain other arrays and object to any reasonable level [[[]]] // is a valid array [{}{}[{}{}]] // is a valid array Objects

[Lazarus] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter via lazarus
I've posted a new page that tests the speed and correctness of several pascal based JSON parsers. https://www.getlazarus.org/json/tests/ In full disclosure I am the author of the new open source JsonTools library, and even though my parser seems to a big improvement over the other alternatives,

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
In C# to define a property you write: visibility typename propname { [visibility] get; [visibility] set; } -or- public int Age { get; set; } This means you have a read write property that does nothing special. You could also write ... private int age; public int Age { get { return age; } set {

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
I use FPC for a lot of web stuff, but generally not for servers. In this project I am using an FPC program to create the database and download updates using my TClientSocket class. For long running stuff, which I may typically host on an Amazon cloud server with Linux, I'll generally either use

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
Yes, in C#. Personally I find ASP.NET or Core easier to use than a CGI executable. Also the ability to dynamically compose anonymous objects, write linq expressions, and use reflection can be quite powerful. The object formatting system is C#, where everything is an object and custom formatters

Re: [Lazarus] getlazarus.org search request

2019-08-12 Thread Anthony Walter via lazarus
Michael, Here is an example of how easy it is. public class CodeSearch : TemplateHandler { private static readonly string searchSql = "search.sql".LoadResourceText(); protected override void Run(Templates templates, StringBuilder output) { SearchItems

Re: [Lazarus] getlazarus.org search request

2019-08-11 Thread Anthony Walter via lazarus
Ryan, My sites are built on my custom web class library that optionally uses templates to generate content. Templates are simple fill in the blank page type text files which use reflection to pull properties of a objects into the template. Here is how a template is formatted: Search Results:

Re: [Lazarus] getlazarus.org search request

2019-08-11 Thread Anthony Walter via lazarus
Ryan, I was going to modify my project to allow for RESTful queries, when I realized it already does this. The url and format are as follows: https://docs.getlazarus.org/?method=codesearch=TStringList Alternate request for xml format:

Re: [Lazarus] Nice Lazarus ScrabbleControl, also a Gtk2 Bug

2019-08-09 Thread Anthony Walter via lazarus
The WS classes are very difficult to work with IMO. I've used them and they are just messy, as in difficult and not exactly straight forward or intuitive. I'd have to look them over again to put my finger on exactly what's hard to use about them, but I distinctly remember having unnecessary

Re: [Lazarus] Nice Lazarus ScrabbleControl, also a Gtk2 Bug

2019-08-09 Thread Anthony Walter via lazarus
Marc, I can completely understand how it evolved, and early on the features of both the Free Pascal language, and the way the LCL library were to be adapted to multiple platforms became more clear. Thanks for your hard work. I've thought about the way the LCL is structured to handle many

[Lazarus] Nice Lazarus ScrabbleControl, also a Gtk2 Bug

2019-08-09 Thread Anthony Walter via lazarus
While demonstrating objects to kids in my computer programming classes for kids this summer, I wrote a Scrabble board game control. It's on Github right now released under the LGPL. Here is a brief video demonstration: https://cache.getlazarus.org/videos/scrabble.mp4 The Github page for this

Re: [Lazarus] getlazarus.org search request

2019-08-09 Thread Anthony Walter via lazarus
Ryan, that is a good idea and I can absolutely add a search page that pulls a string from RESTful query string and returns a friendly hyperlinked summary of the most useful results. Also, I don't know if you know this, but you can edit Lazarus settings to open up https://docs.getlazarus.org to the

Re: [Lazarus] Lazarus Release 2.0.4

2019-08-06 Thread Anthony Walter via lazarus
Wow! Thanks for hard work, it's very much appreciated and congratulations! -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

  1   2   3   >