Re: [fpc-pascal] FPC for ARM

2011-12-23 Thread Dariusz Mazur
Is there an embedded web-server that would run on the ARM machine? I use this one from Synapse (work on openWRT and Android) -- Darek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] getting started with threads

2009-09-18 Thread Dariusz Mazur
David Emerson pisze: I am getting started with threads (linux/cthreads) and I'm very happy so far, but unsure of the best way to tackle my situation. I have a program that needs to perform about 10,000 independent tasks, which usually involve waiting for I/O; thus it makes sense to use

Re: [fpc-pascal] getting started with threads

2009-09-18 Thread Dariusz Mazur
Jonas Maebe pisze: On 18 Sep 2009, at 16:24, Dariusz Mazur wrote: I use own lockfree FIFO http://www.emadar.com/fpc/lockfree.htm to distribute task between threads its much faster and well scaling on multicore. Note that it won't work as is on non-x86 machines, because it's missing memory

Re: [fpc-pascal] getting started with threads

2009-09-18 Thread Dariusz Mazur
Jonas Maebe pisze: On 18 Sep 2009, at 21:30, Dariusz Mazur wrote: On 18 Sep 2009, at 16:24, Dariusz Mazur wrote: I use own lockfree FIFO http://www.emadar.com/fpc/lockfree.htm to distribute task between threads its much faster and well scaling on multicore. Note that it won't work

Re: [fpc-pascal] getting started with threads

2009-09-19 Thread Dariusz Mazur
Helmut Hartl pisze: -Original message- From: Dariusz Mazur dar...@emadar.com Sent: Fri 18-09-2009 16:24 To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org; Subject: Re: [fpc-pascal] getting started with threads David Emerson pisze: I am getting started

Re: [fpc-pascal] Forin Test

2009-11-07 Thread Dariusz Mazur
Paul Ishenin pisze: darekm wrote: I've play with forin construction. To my work I need more than one per collection. In attach is one of example program. Can someone review it. is this proper construction. operator enumerator (AEnumerator: TEnumerator): TEnumerator; begin Result :=

Re: [fpc-pascal] Forin Test

2009-11-07 Thread Dariusz Mazur
Paul Ishenin pisze: Dariusz Mazur wrote: Where? Its work now with current compilator. Are You plan to disable this? I made a typo: read 'I see *no* problems with this'. for i in List using GetEnumerator(DoUpArgument) current for i in List will be just short form of for i in List using

Re: [fpc-pascal] Forin Test

2009-11-07 Thread Dariusz Mazur
Paul Ishenin pisze: Of course. for-in loop expect to have a collection not an enumerator. What enumerator should for-in loop to choose in the next case: [example] TMyListEnumerator = class public function GetEnumerator: TMyListEnumeratorEnumerator; function MoveNext: Boolean; property

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-07 Thread Dariusz Mazur
Hartmut Eilers pisze: Hallo List, thanks for your first and fast response. According to the suggestions from Marco and Jonas I try it this way: ubu...@kubuntu904:~/OpenLabTools/DeviceServer$ /usr/local/bin/ppcrossarm -CfFPA -dUSB92 -CaARMEB -CpARMV5 -darm -dFPC_ARMEL -gl -Fu../webserver

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-08 Thread Dariusz Mazur
Hartmut Eilers pisze: Hallo List, thanks for your first and fast response. According to the suggestions from Marco and Jonas I try it this way: ubu...@kubuntu904:~/OpenLabTools/DeviceServer$ /usr/local/bin/ppcrossarm -CfFPA -dUSB92 -CaARMEB -CpARMV5 -darm -dFPC_ARMEL -gl -Fu../webserver

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-08 Thread Dariusz Mazur
Jonas Maebe pisze: On 08 Dec 2009, at 15:06, Dariusz Mazur wrote: Hartmut Eilers pisze: DeviceServer.pas(609,2) Error: Error while linking DeviceServer.pas(609,2) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted ubu...@kubuntu904:~/OpenLabTools

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-09 Thread Dariusz Mazur
Jonas Maebe pisze: On 08 Dec 2009, at 23:25, Dariusz Mazur wrote: By the way: when XR path is set then XP should be default, but its not -XP is set by /etc/fpc.cfg if the source cpu is different from the target CPU, and if the source and target OS are not both Darwin (because on Mac

Re: [fpc-pascal] android share library with classes unit

2011-04-12 Thread Dariusz Mazur
W dniu 2011-04-12 11:56, herux pisze: I managed to compile and run the library for android on emulator, which I compile the project just a libhellojni.so compile using paramater like this ppcarm -Scghi -O1 -Parm -gl -b -B -XX -Xc -XD -CpARMv6 -CfSOFT -dandroid -vewnhi -l -XParm-linux-

Re: [fpc-pascal] atomic primitives for lock-free algorithms?

2008-02-13 Thread Dariusz Mazur
Marco Alvarado pisze: I'm reading about lock-free algorithms: http://en.wikipedia.org/wiki/Lock-free_algorithms#Implementation Is there a way to access those atomic primitives, but in a multiplatform manner? CAS=interlockedCompareExchange as in Microsoft API rest in unit classes Darek

Re: [fpc-pascal] number of cpu cores

2008-11-29 Thread Dariusz Mazur
Mattias Gaertner pisze: I need a default value of the number of maximum threads. Is there already some RTL function that can be used for that? For example if the program runs on a 2 x quad core it would be nice to get 8. Hyperthreading multipliers should be applied. I've found something

Re: [fpc-pascal] Creating FPC enabled websites

2009-03-04 Thread Dariusz Mazur
Prince Riley pisze: Since the discussion in this thread has advanced pretty far along toward recommending a FP and Powtils solution to you, then it appears you have a technical answer from the group you can explore. However, without suggesting there is a bias in favor of a specific

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Dariusz Mazur
Why does one need to translate from Pascal to Java ? Not from pascal to Java, but to Javascript: The browsers only understand javascript. Translating pascal to Javascript means you can write browser-side code in pascal, and then send it to the browser. May I ask when do You need

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Sun, 29 Mar 2009, Dariusz Mazur wrote: Why does one need to translate from Pascal to Java ? Not from pascal to Java, but to Javascript: The browsers only understand javascript. Translating pascal to Javascript means you can write browser-side

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 30 Mar 2009, Dariusz Mazur wrote: I want to write my client-side GUI code in pascal. I have no wish to learn Javascript. All extensive computation (mostly queries and database stuff) happens on the server, but the GUI must be programmed in Javascript

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Bee pisze: May I ask when do You need write ordinal code parallel on browser and server side? What kind of computation? For me 99% of code should be on server. As You write we have very fast (because compiled) application on server. Fast is relative. You may have a very good and fast

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 30 Mar 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: On Mon, 30 Mar 2009, Dariusz Mazur wrote: I want to write my client-side GUI code in pascal. I have no wish to learn Javascript. All extensive computation (mostly queries

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Marco van de Voort pisze: In our previous episode, Michael Van Canneyt said: But maybe I dont understand your need. You think about counterpart of LCL level, or computation wide consist in event (form.onclick, form.onedit) function in Delphi ? All events and almost any class I need

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: I just want to make them in pascal and keep the codebase and know-how I have in my team. As I. I want (i;ve done succesfully) reuse 90% of desktop code in webbased. But you want to rewrite quite huge part to JS. Why? What for. Because some of the

Re: [fpc-pascal] Re: Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Andrew Brunner pisze: I've been reading this thread for a while and wanted to ask something... What if someone had a cluster based cloud computing server written entirely from the ground up in Delphi? Including hot-swappable core object for backend AJAX calls and all the major Web2.0 protocol

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 30 Mar 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: I just want to make them in pascal and keep the codebase and know-how I have in my team. As I. I want (i;ve done succesfully) reuse 90% of desktop code in webbased

Re: [fpc-pascal] problem with procedural types

2004-12-18 Thread Dariusz Mazur
Jonas Maebe wrote: But when it was changed (if any) I port all my source to FPC (it compile in both Delphi and FPC) in many places I use {$IFDEF [EMAIL PROTECTED] and now all must be deleted or I don't know something Darek On Dec 18, 2004, at 21:01, Dariusz Mazur wrote: procedure tForm1.onnn(var

[fpc-pascal] problem with array of string

2004-12-20 Thread Dariusz Mazur
I have problem with two dimension array of string my program: procedure testlinie; var linie : array[0..1,0..100] of shortstring; i,ii : integer; begin fillchar(linie,sizeof(linie),0); for i := 0 to 1 do begin for ii:= 1 to 10 do begin linie[i,ii]:= linie[i,ii]+char(64+ii);

Re: [fpc-pascal] problem with array of string

2004-12-20 Thread Dariusz Mazur
Sorry, I make but when i prepare test program with FPC all work OK, bug is in WatchList I send second post to Lazarus list. Darek Marco van de Voort wrote: I have problem with two dimension array of string my program: procedure testlinie; var linie : array[0..1,0..100] of shortstring; i,ii

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread Dariusz Mazur
On 2014-04-14 14:39, silvioprog wrote: Hello, Just a question, anyone here has implemented some code for OAuth 2.0? (FPC or Delphi) I does one. If You interested I public it on github. Darek I implemented with 1.0 in my new TDropbox class, but now I'm trying to implement it with 2.0,

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-15 Thread Dariusz Mazur
On 2014-04-14 23:27, silvioprog wrote: 2014-04-14 17:52 GMT-03:00 Dariusz Mazur dar...@emadar.com mailto:dar...@emadar.com: [...] I does one. If You interested I public it on github. I'm interested! :) https://github.com/darekm/openid4fpc Darek

Re: [fpc-pascal] XML Canonicalization Support

2015-10-17 Thread Dariusz Mazur
On 2015-10-16 23:40, Mazola Winstrol wrote: 2015-10-16 15:19 GMT-03:00 Dariusz Mazur <dar...@emadar.com <mailto:dar...@emadar.com>>: I've do one https://github.com/darekm/xades4fpc/blob/master/xmlc14n.pas -- Darek Very good news! Thanks a lot for the contrib

Re: [fpc-pascal] set code page

2015-12-17 Thread Dariusz Mazur
On 2015-12-17 13:40, Mattias Gaertner wrote: On Thu, 17 Dec 2015 13:36:17 +0100 Dariusz Mazur <dar...@emadar.com> wrote: Hi is there possible to set codepage {$codepage xxx} to cp_none Do you mean CP_ACP? maybe yes, this don't know as well --

[fpc-pascal] set code page

2015-12-17 Thread Dariusz Mazur
Hi is there possible to set codepage {$codepage xxx} to cp_none for example one source file have {$codepage 1250} but rest i need default (without any setting) -- Darek ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Digital Certificate, CAPICOM

2016-07-04 Thread Dariusz Mazur
W dniu 2016-06-29 o 18:06, Marcos Douglas pisze: Hi, Do you use Digital Certificate? If yes, which library/component? This is my library, that I use to Sign in Xades standard https://github.com/darekm/xades4fpc -- Darek ___ fpc-pascal