Re: [fpc-pascal] parameter list declaration

2017-04-01 Thread leledumbo via fpc-pascal
> I found this: http://www.freepascal.org/docs-html/ref/refse91.html but I think it's not really clear, especially for newbie Newbies often skip http://www.freepascal.org/docs-html/ref/refli5.html so they can't read the diagrams used in all later sections. > Compare that to official document

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-16 Thread leledumbo via fpc-pascal
> However i would like to be able to do a partial text search on the strings, prefeably with a result as a list of matching string/object pairs but getting an index to the first matching pair would be fine. The match only has to be done from the first character of both strings, so a complex

Re: [fpc-pascal] Browser and exe

2017-05-23 Thread leledumbo via fpc-pascal
> Is there a way to call an Exe (previously installed, no problem with that) to interact with an Exe, working in IE and Chrome? Not from client side AFAIK. You'll need to create a local server side app, let that one executes the exe and response back to the client (if needed). -- View this

Re: [fpc-pascal] GLM library alternative?

2017-05-27 Thread leledumbo via fpc-pascal
> Has anyone converted these to Pascal before or having some similar I could look at? I don't usually do the matrix calculation myself, I delegate that by calling OpenGL functions in proper order. However, just a few days ago I found this:

Re: [fpc-pascal] Error building FPC 3.0.2 from svn sources on RPi3

2017-05-29 Thread leledumbo via fpc-pascal
> I do not understand what -iVSPTPSOTO is... That's what happened when the compiler cannot be called by make. Watch: > make: -iVSPTPSOTO: Command not found it's a parameter list for fpc to get (from fpc -h): -i Information ... -iSO Return compiler OS -iSP Return

Re: [fpc-pascal] JavaScript versions of pascal RTL functions (FormatFloat, DateToStr etc)

2017-10-15 Thread leledumbo via fpc-pascal
> The component developer is doing fantastic work with the visual components, and it starts to look really good. visual? how and/or what does it output? will be interesting if ExtPascal dream can be revived somewhat. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

Re: [fpc-pascal] Google Drive API

2017-10-13 Thread leledumbo via fpc-pascal
Marcos Douglas B. Santos wrote > I didn't found... In this path \packages\googleapi\examples only > exists \generator directory. :( > > Trunk, rev 37453. Try this, it wasn't running well due to RTTI changes back then, but probably works now:

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread leledumbo via fpc-pascal
> Would it be possible to do this via a Lua shim? How is it even related with that? -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] How to call C++ function with Vector

2017-09-26 Thread leledumbo via fpc-pascal
> I am stuck at the keyword vector. > > How is it translated into free pascal? It's hard, you must create additional wrapper that exposes simpler type (pointer or array of pchar) OR make wrapper for the vector methods and simply declare it as an opaque pointer. std::vector is template/generic

Re: [fpc-pascal] fpReport released

2017-08-21 Thread leledumbo via fpc-pascal
> fpreport has been committed to FPC SVN: packages/fcl-report. > It should compile on windows, linux, freebsd and darwin. From the wiki: "An important use-case was a Linux server running in a container without X libraries installed" Yep, yep, yep. Finally I can replace my old statically

Re: [fpc-pascal] Compiler directive to compile to 64 bits

2017-11-02 Thread leledumbo via fpc-pascal
> Hi, a newbie question but the docs aren't clear on how to say that I want to use the 64-bit compiler, not the i386 fpc -Px86_64 -Twin64 -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist -

Re: [fpc-pascal] Object-oriented file (path) handling library

2017-11-09 Thread leledumbo via fpc-pascal
> is there something simliar to Java's java.io.File or java.nio.Path for FPC? Google makes me think there isn't... No, there isn't. Welcome to hybrid paradigm programming language. It's not difficult to make an OO wrapper for File* SysUtils functions or even the classic ones in System unit,

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread leledumbo via fpc-pascal
> When I'm in doubt about the conditional defines, I either google or take advantage of Lazarus: in project->options I select the target CPU family and the target processor, and then I use "show all options" to see which defines are set. fpc -vc is your friend here. -- Sent from:

Re: [fpc-pascal] Use OpenDocument (.odt) files as templates

2017-12-02 Thread leledumbo via fpc-pascal
> Does someone knows a component to use OpenDocument (.odt) files as templates to generate a .odt output file given some data? FPVectorial seems to support it: http://wiki.freepascal.org/fpvectorial_-_Text_Document_Support -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2017-10-28 Thread leledumbo via fpc-pascal
> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread leledumbo via fpc-pascal
> Create a call that calls Application.Terminate. I just call DumpHeap(false); instead -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] detecting recursive loops

2018-05-06 Thread leledumbo via fpc-pascal
> Any ideas how to identify potential unintentional loops? That depends on your design. Is it intended that the 3 procedures can call each other, directly or indirectly? If no, then things are a lot easier. You can just put on the currently entered procedure name to a map shared by the 3 (or just

Re: [fpc-pascal] FPC on Android tablets: ARM, x86_64

2018-05-11 Thread leledumbo via fpc-pascal
> Has anybody come across https://wiki.termux.com/wiki/Main_Page which I've seen mentioned elsewhere? Yes, that's current terminal emulator in my android devices. We can contribute just by making pull request here: https://github.com/termux/termux-packages/pulls -- Sent from:

Re: [fpc-pascal] Default record fields

2018-06-23 Thread leledumbo via fpc-pascal
> My thinking was that because variables can assign values at declaration it would be reasonable to assume that record fields could have default values which would be assigned at declaration. It sounds like a natural extension of the syntax that already exists. Those are two different things

Re: [fpc-pascal] Lazarus and Linked Lists

2018-06-27 Thread leledumbo via fpc-pascal
> Is there a basic linked List object for Lazarus? https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/src/glinkedlist.pp -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist -

Re: [fpc-pascal] List of chars for case

2018-07-02 Thread leledumbo via fpc-pascal
> So it can’t be done? Only through macro ATM, I believe. Note that case statement body does NOT expect a set (it expects values, list of values and/or range of values), despite the very similar look (missing enclosing angle brackets only), hence the inability to do what you want. -- Sent

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread leledumbo via fpc-pascal
> The problem is that the WS could take so long time that the entire request will broke with a "time out". I suggest making the request handling asynchronous instead. So request will only register and return some unique id to the requester, then do call to the WS in background thread. An endpoint

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-04 Thread leledumbo via fpc-pascal
> Is there a complete list of packages available somewhere? $ svn co https://svn.freepascal.org/svn/fpc/trunk fpc $ cd fpc/packages $ ls tadaaa... -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist -

Re: [fpc-pascal] Modern Compiler Construction using Pascal

2018-01-04 Thread leledumbo via fpc-pascal
I used to play with this a bit: https://github.com/lysee/lysee It's written by a Chinese programmer and I remember reading his page about the language using google translate :p The github page is without documentation, but its older google code page is still accessible (just hope he didn't break

Re: [fpc-pascal] Python interaction... how?

2018-02-16 Thread leledumbo via fpc-pascal
> Does anyone know of a minimal example or pseudo code or just an explanation? Python actually provides a Python.h that you can convert to a Pascal unit. But inside, it includes a bunch of other header files and conversion might be a tedious task. If you made it, though, simply call:

Re: [fpc-pascal] Trying to compile ZeosDBO cli program

2018-02-15 Thread leledumbo via fpc-pascal
> Never mind I have it figured out. You have to add the path to > the /etc/fpc.cfg file, such as: You can do it from command line, too. In fact, if you already have it working from Lazarus, simply open Project Options->Show Options->Command Line Parameters tab, copy the content for your fpc

Re: [fpc-pascal] Why win64 program are considerably bigger in exe size than win 32?

2017-12-22 Thread leledumbo via fpc-pascal
> Why? At least pointer size takes double space, multiply it with every instances 1.5x bigger is not impossible. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FPC for linking only

2018-08-20 Thread leledumbo via fpc-pascal
> Is it possible to use FPC for linking only? I've asked this in the past with straight "no" answer. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FPC_PCHAR_LENGTH dog slow

2018-07-03 Thread leledumbo via fpc-pascal
> i think i'm still waiting for the string "length byte" becoming a "length word" or possibly a "length long" so the speed of pascal strings can be reacquired -=B-) Ansi and any other dynamic strings already have length longint that allows 2GB string length with O(1) length retrieval. --

Re: [fpc-pascal] [FCL-WEB] Multiple Modules - On Session

2018-03-22 Thread leledumbo via fpc-pascal
> It seems that session management create one separate session by each module That's right but should be OK, as the session is created based on cookie, which if already exists, will be loaded instead of created. If memory serves right, I remember you should set one or a few of these: *

Re: [fpc-pascal] Uniform initialization?

2018-11-11 Thread leledumbo via fpc-pascal
> But *if* I had to decide I would pick #1, cause then there wouldn't be > the chance to break existing code if a user decides to add a constructor > to their record and some other code relies on there not being a > constructor. Also due to the syntax >

Re: [fpc-pascal] Running tests with FPC units only

2018-11-11 Thread leledumbo via fpc-pascal
> acording example I found in FPC examples directory, Check the one here instead: $(fpcsrcdir)/packages/fcl-fpcunit/src/demo/consolerunner/testrunner.pp It depends only on FPC units. I guess you're looking at examples from Lazarus directory instead of FPC. -- Sent from:

Re: [fpc-pascal] Announcement GLPT

2018-09-24 Thread leledumbo via fpc-pascal
> https://github.com/daar/GLPT This is more GLFW rather than GLUT. Good, I prefer it this way as I have much greater control with regards to the event handling. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist

Re: [fpc-pascal] CopyFile for FreePascal without Lazarus?

2019-04-18 Thread leledumbo via fpc-pascal
> but that seems to only work with Lazarus. The unit is part of LazUtils package. It has no dependency on other packages but indeed can't be used as a standalone unit, you need other units from the same package but that's all. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

Re: [fpc-pascal] Using docker to build software

2019-05-28 Thread leledumbo via fpc-pascal
> I am curious to know if there is someone out there that have tried to > use Docker (https://www.docker.com) containers to build fpc applications? Search docker hub, you will find a lot of them, either fpc only, with lazarus, single target or even cross compiling ready. -- Sent from:

Re: [fpc-pascal] Improve message "Wrong ppu found"

2019-04-27 Thread leledumbo via fpc-pascal
> Please provide a real example of a compiler output, cause I can't find "Wrong ppu found" in the sources. I think what he meant is: $ grep -i 'wrong ppu version' -r * pkgutil.pas: Comment(V_Error,'Wrong PPU Version '+tostr(ppuversion)+' in '+PPUFn); utils/ppufiles.pp: Error('Error:

Re: [fpc-pascal] Documentation generation

2019-08-17 Thread leledumbo via fpc-pascal
> How are the FPC RTL documentations generated? I wanted to see if I could generate .docsets files from them also. A starting point: https://wiki.freepascal.org/FPCDocs_Tutorial I believe that "write me" part is not far from calling make with certain options. -- Sent from:

Re: [fpc-pascal] Calling function pointer to main program

2020-01-02 Thread leledumbo via fpc-pascal
> I know I can use -XM to set another function name besides "main" but then how do I call back the original function "main" later? I quickly analyze the generated assembly when you don't pass -XM: .globl main .type main,@function main: .globl PASCALMAIN .type

Re: [fpc-pascal] Linux GTK-2 GUI app

2020-08-31 Thread leledumbo via fpc-pascal
> I meant to say that, without a .desktop file, the app is not double-clickable. This is DE/WM/FM dependent, you app must already have execute bit set anyway (otherwise, it won't be executable even through CLI). Some allow double clicking, some not, some configurable. -- Sent from:

Re: [fpc-pascal] Linux GTK-2 GUI app

2020-08-31 Thread leledumbo via fpc-pascal
> Or create different packages for different distros ? If you can afford the maintenance burden, this is the best that every specific distro user will love. Otherwise, just provide a compressed archive with README inside. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/

Re: [fpc-pascal] Procedural generics question

2020-08-24 Thread leledumbo via fpc-pascal
> I remember something like this in RTTI though but can't find it in your docs yet for generics. {$mode objfpc} uses typinfo; generic procedure Add; begin if TypeInfo(T) = TypeInfo(Integer) then WriteLn('an integer'); if TypeInfo(T) = TypeInfo(String) then WriteLn('a string'); end;

Re: [fpc-pascal] Database migration

2020-06-20 Thread leledumbo via fpc-pascal
> But before I proceed I would like to check here if something like this already exists None that I know of for native Pascal. As I no longer use ORM, Sqitch does the job for me these days. Basically it's like a git for database schema (surely you can do CRUD as well there, but it's mainly for

Re: [fpc-pascal] Graphing library

2020-11-15 Thread leledumbo via fpc-pascal
> I am looking for a simple to use non-visual graphing library to produce x-y plots in a raster file format (similar to how pyplot works). Rather than developing something from scratch or writing a wrapper to GNU plot (additional dependency), I was hoping something like this already would exist

Re: [fpc-pascal] Mustache templates implementation

2021-04-20 Thread leledumbo via fpc-pascal
> Since dmustache (part of mORMot) fails the official mustache tests and did not work > on the platform I needed it for, I wrote my own implementation. I do remember it didn't pass all the tests, but still works for my needs so I let it be. > The result has been committed to