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

2024-11-23 Thread Zamrony P. Juhara via fpc-pascal
❤️ zamron...@yahoo.com reacted via Yahoo Mail On Sun, Nov 24, 2024 at 8:04, Hairy Pixels via fpc-pascal wrote: ___ fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___

[fpc-pascal] reverse for in loop

2023-07-07 Thread Zamrony P. Juhara via fpc-pascal
I like simplicity for .. in .. loop. but is there equivalent for reverse loop? Fano Framework https://fanoframework.github.io___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Illegal expression when redeclare typed constant

2023-03-25 Thread Zamrony P. Juhara via fpc-pascal
Suppose  I have unit mytest; interface const    MY_VALUE = 1;    MY_INT_VALUE: integer = 1; implementationend. and second unit unit mytest2; interface uses mytest; const    // this is legal    MY_VALUE = mytest.MY_VALUE;     // this  causes illegal expression    // MY_INT_VALUE = mytest.MY_INT_VA

[fpc-pascal] Old Mantis issue broken URL redirection

2021-08-03 Thread Zamrony P. Juhara via fpc-pascal
Hi, URL redirection of old mantis issue to Gitlab  is not working https://bugs.freepascal.org/view.php?id=[issue id] redirects to https://gitlab.com/freepascal.org/fpc/source/-/issues/[issue id] which yields page not found (404) error. Regards, Fano Framework https://fanoframework.github.io__

[fpc-pascal] Separate release cycle for RTL and compiler proposal

2021-04-18 Thread Zamrony P. Juhara via fpc-pascal
I would like to propose to separate RTL release   from compiler release so that RTL bug fixes and features can be released with shorter release cycle. Is that possible? Zamrony P. Juharahttps://github.com/zamronypj___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] Merging units

2020-10-06 Thread Zamrony P. Juhara via fpc-pascal
I use a secondary unit as alias of all separate units as Marco suggests in https://github.com/fanoframework/fano/blob/master/src/fano.pas However I am curious if merging units like this has drawback. AFAIK smart linking works. Sent from Yahoo Mail on Android On Sat, Oct 3, 2020 at 3:31, Marc

Re: [fpc-pascal] how to make this tp7 code work on fpc

2020-06-27 Thread Zamrony P. Juhara via fpc-pascal
Use {$MODE TP} Zamrony P. Juhara https://v3.juhara.com https://github.com/zamronypj Fano Framework https://fanoframework.github.io mod_pascal https://zamronypj.github.io/mod_pascal On Sat, Jun 27, 2020 at 14:27, Travis Siegel wrote: I'm porting some code from tp7 to fpc, and I'm running

Re: [fpc-pascal] Segmentation fault with cthreads on FreeBSD

2020-06-08 Thread Zamrony P. Juhara via fpc-pascal
@fredvs yes I install from source code. Zamrony P. Juhara https://v3.juhara.com https://github.com/zamronypj Fano Framework https://fanoframework.github.io mod_pascal https://zamronypj.github.io/mod_pascal On Tue, Jun 9, 2020 at 0:12, fredvs via fpc-pascal wrote: Hello. When compiling y

[fpc-pascal] Segmentation fault with cthreads on FreeBSD

2020-06-08 Thread Zamrony P. Juhara via fpc-pascal
Following program program test;{$IFDEF UNIX}uses cthreads;{$ENDIF}begin     writeln('test');end. Compile with FPC 3.0.4 on FreeBSD 12. When run test program, it causes segmentation fault.  What is wrong? Without cthreads unit, it run fine. Zamrony P. Juhara https://v3.juhara.com https://github.co

Re: [fpc-pascal] Vector code

2020-05-01 Thread Zamrony P. Juhara via fpc-pascal
I found that this repository have some free ebooks about assembly but maybe not specific to vector code https://github.com/EbookFoundation/free-programming-books/blob/master/free-programming-books.md#assembly-language I also wrote vector operation utility in assembly with SIMD in case you are in

Re: [fpc-pascal] Converting http date back to TDateTime

2020-04-29 Thread Zamrony P. Juhara via fpc-pascal
Yes, it works if I remove timezone part from pattern as suggested by Santiago. This one works adatetime := scanDateTime(     'ddd, dd mmm hh:mm:ss',     'Tue, 28 Apr 2020 10:11:12 GMT'); So i guess, we must convert timezone information to local timezone manually. Thank you Zamrony P. Juhara

Re: [fpc-pascal] Converting http date back to TDateTime

2020-04-28 Thread Zamrony P. Juhara via fpc-pascal
I try with your suggested pattern format but it does not work either. Same EConvertError with different error message. I guess, I have to parse it manually Zamrony P. Juhara https://v3.juhara.com https://github.com/zamronypj Fano Framework https://fanoframework.github.io mod_pascal https://zamr

Re: [fpc-pascal] Converting http date back to TDateTime

2020-04-28 Thread Zamrony P. Juhara via fpc-pascal
No it does not work. Docs says literal string needs to be quoted with " Zamrony P. Juhara On Wed, Apr 29, 2020 at 9:37, Alexander Grotewohl wrote: ___ fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/ma

[fpc-pascal] Converting http date back to TDateTime

2020-04-28 Thread Zamrony P. Juhara via fpc-pascal
Hi, How do I convert string with HTTP date format such as Wed, 29 Apr 2020 10:35:50 GMT back to its TDateTime value? I try with ScanDateTime() adateTime := ScanDateTime(     'ddd", "dd" "mmm" "" "hh:mm:ss" GMT"',      'Wed, 29 Apr 2020 10:35:50 GMT'); but EConvertError exception is raised with

[fpc-pascal] Apache 2.4 module that execute Pascal program

2020-03-13 Thread Zamrony P. Juhara via fpc-pascal
Hi, I want to announce Apache module I develop. It allows pascal program to be executed as scripting language using InstantFPC. It is still early stage but it is already capable of executing simple pascal programs. In case anyone interested, here is repository https://github.com/zamronypj/mod_pas

[fpc-pascal] Command line -a cannot be combined with -Sewn

2020-03-08 Thread Zamrony P. Juhara via fpc-pascal
For example I have following code program teststr;begin     writeln('test');end. Compile it with -a and -Sewn or -Sen $ fpc -a -Sewn teststr.pas It fails to compile. this is not a bug but it makes me pulling hair for hours. The problem is -a options add note which causing -Sewn to stop compilation

[fpc-pascal] Missing mirror link in download page

2020-02-18 Thread Zamrony P. Juhara via fpc-pascal
In Linux download page https://freepascal.org/down/x86_64/linux.html Hungary and Canada mirror links is there but are inaccessible due to missing label. Zamrony P. Juharahttps://fanoframework.github.io___ fpc-pascal maillist - fpc-pascal@lists.freepas

[fpc-pascal] Is forum down?

2020-02-02 Thread Zamrony P. Juhara via fpc-pascal
>From my location https://forum.lazarus.freepascal.org/ takes long time to load or sometime timeout. Does it happens to anyone? Zamrony P. Juhara Fano Framework, pascal web framework, https://fanoframework.github.io ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Passing a CORBA interface as parameter

2019-12-20 Thread Zamrony P. Juhara via fpc-pascal
If you need to know if an instance implement certain interface, you can use is operator if anInstance is IInterface1 thenbegin     end; Zamrony P. Juhara On Sat, Dec 21, 2019 at 0:25, Adriaan van Os wrote: I would like to pass a CORBA interface-type as parameter and test for equality, So

Re: [fpc-pascal] Floating point exception not always caught on Linux i386.

2019-10-11 Thread Zamrony P. Juhara via fpc-pascal
I use FPC 3.0.4 on Ubuntu 16.04 I get same behavior after compile it with ppc386. 64bit binary executable run OK Zamrony P. Juhara Fano Framework, Free Pascal web application framework https://fanoframework.github.io On Friday, October 11, 2019, 4:39:38 PM GMT+8, Bernd Mueller wrote: H

[fpc-pascal] Interface delegation causes memory leak

2019-08-29 Thread Zamrony P. Juhara via fpc-pascal
- unit DelegateTalkerImpl; -   - interface -   - {$MODE OBJFPC} -   - uses -   -     TalkerIntf; -   - type -   -     TDelegateTalker = class(TInterfacedObject, ITalker) -     private -         fActualTalker : ITalker; -     public -         co

Re: [fpc-pascal] A new design for a JSON Parser

2019-08-26 Thread Zamrony P. Juhara via fpc-pascal
Very cool library. It would be nice if separator character can be change For example, for me personally aval := n.find('billTo.name'). value; more intuitive instead of aval := n.find('billTo/name'). value; Also AFAIK, GPL v3 license will require application using this library must use GPL too. Z

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-06-28 Thread Zamrony P. Juhara via fpc-pascal
(kontributor) Github: https://github.com/zamronypj Stackoverflow: http://stackoverflow.com/users/5855039/zamrony-p-juhara Google Play Store: http://goo.gl/gCs4Bc On Saturday, June 29, 2019, 10:31:33 AM GMT+8, Zamrony P. Juhara via fpc-pascal wrote: Hi Darius, I am author of Fano Framework. I

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-06-28 Thread Zamrony P. Juhara via fpc-pascal
Hi Darius, I am author of Fano Framework. I encourage people to try Fano Framework, but as of now, I would not advise you to use it on production setup. While many of web framework features are already built, they have not been tested on production. The error Exception class : ERouteHandlerNotFo

Re: [fpc-pascal] ContentData field size in FCGI_ContentRecor

2019-05-18 Thread Zamrony P. Juhara via fpc-pascal
I do not think so, because custfpcgi.pp is using many const and types declared in fastcgi.pp. removing it will cause rewrite in many parts of custfcgi units Zamrony P. Juhara On Sat, May 18, 2019 at 17:36, Michael Van Canneyt wrote: On Sat, 18 May 2019, Zamrony P. Juhara via fpc-pascal

Re: [fpc-pascal] ContentData field size in FCGI_ContentRecor

2019-05-18 Thread Zamrony P. Juhara via fpc-pascal
custfcgi.pp and fpfcgi.pp both directly /indirectly depends on fastcgi unit. Zamrony P. Juhara On Sat, May 18, 2019 at 16:54, Michael Van Canneyt wrote: On Sat, 18 May 2019, Zamrony P. Juhara via fpc-pascal wrote: >> From fastcgi.pp > > https://github.com/graemeg/freepascal

[fpc-pascal] ContentData field size in FCGI_ContentRecord of fastcgi unit

2019-05-18 Thread Zamrony P. Juhara via fpc-pascal
>From fastcgi.pp https://github.com/graemeg/freepascal/blob/master/packages/fastcgi/src/fastcgi.pp In line 510 FCGI_ContentRecord = record     header : FCGI_Header;     ContentData : array[0..1023] of byte; end; Field ContentData is 1024 bytes. Actual ContentData length is related to field Conte

Re: [fpc-pascal] Implementation through interface delegation not pass to descendant

2019-03-17 Thread Zamrony P. Juhara via fpc-pascal
Hi Martok, Thank you for explanation.  Zamrony P. Juhara On Mon, Mar 18, 2019 at 9:04, Martok wrote: Am 17.03.2019 um 15:21 schrieb Zamrony P. Juhara via fpc-pascal: > I repost my question that I post on StackOverflow here in case anyone can > answer it. This is my question

[fpc-pascal] Implementation through interface delegation not pass to descendant

2019-03-17 Thread Zamrony P. Juhara via fpc-pascal
I repost my question that I post on StackOverflow here in case anyone can answer it. This is my question about implementation of interface through delegation. Parent class is concrete class which implement an interface through delegation but descendant of this class is not considered as concrete

Re: [fpc-pascal] Operator overloading collection for vector operation using Intel SIMD SSE instruction

2019-03-13 Thread Zamrony P. Juhara via fpc-pascal
Yes I plan to add matrix operation too. Sent from Yahoo Mail on Android On Thu, Mar 14, 2019 at 11:04, Anthony Walter wrote: ___ fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pasc

[fpc-pascal] Operator overloading collection for vector operation using Intel SIMD SSE instruction

2019-03-12 Thread Zamrony P. Juhara via fpc-pascal
In case anyone interested, I just want to announce a repository which is collection of operator overloading for vector operation using Intel SIMD SSE instruction. https://github.com/zamronypj/oprsimd Zamrony P. Juhara Fano Framework, web application framework for modern Pascal programming lang

Re: [fpc-pascal] Web application framework in Free Pascal

2019-02-14 Thread Zamrony P. Juhara via fpc-pascal
If you read roadmap section in readme file, I plan to add functionality to support not only CGI, but also FastCGI and as standalone http server (similar to Node.js + Express). After found out about piradoiv/Prack | | | | || | | | | | piradoiv/Prack Simple and Scalab

[fpc-pascal] Web application framework in Free Pascal

2019-02-12 Thread Zamrony P. Juhara via fpc-pascal
Hi, everyone I just want to announce web application framework that I am developing, in case anyone interested.  Not yet mature but beginning to take shape. Source code fanoframework/fano | | | | || | | | | | fanoframework/fano Pascal web application framework. Cont