Jump to content

RDP1974

Members
  • Content Count

    198
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by RDP1974

  1. RDP1974

    json string to FD MemTable

    ah Webbroker calling Request.Content (example for POST body) is applying encoding/decoding text but there is a method to access the raw content as TBytes I found webbroker classes to be excellent
  2. RDP1974

    json string to FD MemTable

    var LField: TField; begin mtEmpty.LoadFromJSON(memoEmpty.Lines.Text); for LField in mtEmpty.Fields do mmDataType.Lines.Add(Format('Field: %s - %s', [LField.FieldName, GetEnumName(System.TypeInfo(TFieldType), Ord(LField.DataType))])); this is enough, calling LoadFromJSON directly from firedac table however (webbroker post) if I load from Request.ContentFields.Text (posting raw json) I get a general error if I load from Request.ContentFields.Values['mandatory'] it's working then some minor trouble re-serializing with JsonSuperObject with characters unicode utf8, etc. I'll take a look
  3. RDP1974

    json string to FD MemTable

    I have found this https://github.com/viniciussanchez/dataset-serialize
  4. RDP1974

    gnEdit2k component

    hello, I need a component from the 2004 named gnEdit2k please can somebody help me?
  5. RDP1974

    gnEdit2k component

    I need to compile an application done 15 years ago gnEdit2k was a TEdit enhanced, with bitmaps and unicode unfortunately I haven't a copy of it
  6. RDP1974

    Skia4Delphi

    skia is the library used in Flutter, nice work, thank you!
  7. RDP1974

    How to run D2007

    hello, I own a regular license of D2007, however I miss the registration data, Emba doesn't support it anymore can somebody help me?
  8. RDP1974

    How to run D2007

    ah finally I have found the license keys thank you for the hints
  9. https://blogs.embarcadero.com/add-the-powerful-angular-web-framework-to-your-delphi-apps/ https://github.com/HashLoad/horse https://github.com/viniciussanchez/examples https://github.com/viniciussanchez/embarcadero-conference/tree/master/2020/backend https://github.com/HashLoad/kanbana-api
  10. RDP1974

    take a look to this REST API Server

    seems well coded, small, highly modularized it's new... has a community of a thousand coders asking opinions
  11. RDP1974

    take a look to this REST API Server

    you are alright, I have changed the title
  12. hyper-v is way faster in order of magnitude than vmware for desktop delphi ide usb you can insert them in client connect options
  13. RDP1974

    migration app help

    hello, I need to port a old Delphi 2007 app to Delphi 10.4 64bit and unicode MDI VCL with 1000+ forms ANSI codepage to a oracle using BDE and DBexpress third party components as WPCubed, TMS custom components do you know a good tutorial, or the most difficulties? can be good to use DUnit to test each converted mask? firedac dataset maps the same dbexpress events onchange, onupdate, etc.?
  14. hello, I'm updating my github wrapper of Intel Performance Libraries, Memory manager super scalar, (they have fixed memory consuption and I will add a thread to release cache every n minutes) RTL SIMD foundation, Zlib enhanced this is one of the best industry proven foundation, game industry and servers deeply use those libs, so Delphi multihreaded apps will get an exceptional performance boost I need you help. I have done the DLLs without touch sources, 0 errors, 0 warnings, O2 optimized all. TBB (memory manager) IPP (RTL patches) WebBroker ZLIB (for now only 64bit, I need time to patch 32bit zlib) Why memory manager with 32bit doesn't work? I get an exception. Further can you help me with 32bit asm in IPP file for patching 32bit RTL functions? With 64bit works perfectly up to the stairs. Thank you! IntelMM2.zip (BTW consider, having time with one or a pair of volunteers we can pathc a whole of low level string RTL routines with the SIMD intel libs... also VCL Imaging as JPEG, PNG, Bilinear StretchAPI et.etc.)
  15. I have deleted the repositories because somebody pointed me about problems with intel license IPP and redistributables (seems that intel permits to redistribute for free the complete 30MB of dlls with the compiled exe, but don't cover over custom thiny dll as I used). btw: with TBBMalloc there are no problems of redistribute https://github.com/oneapi-src/oneTBB here the sources and here a delphi wrapper for tbbmalloc https://sites.google.com/site/scalable68/intel-tbbmalloc-interfaces-for-delphi-and-delphi-xe-versions-and-freepascal
  16. https://github.com/RDP1974/Delphi-64-bit-compiler-RTL-speed-up_2 win32 win64 intel tbb 100x speed up on core I9 windows 2016 server wizard webserver app indy/webbroker Response.Content := '<html>' + '<head><title>Web Server Application</title></head>' + '<body>Web Server Application '+ FormatDateTime('YYYY-MM-DD hh:mm:ss', Now) +' </body>' + '</html> win32 60 ops/s win64 45 ops/s win32 replacement 6400 ops/s win64 replacement 6400 ops/s (btw. you will gain those speed up only on heavy multithreaded apps deeply relying over heap allocations, strings, etc.) C:\ApacheBench>ab -n 100 -c 100 -k -r http://192.168.1.160:8080/ This is ApacheBench, Version 2.3 <$Revision: 1843412 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.1.160 (be patient).....done Server Software: Server Hostname: 192.168.1.160 Server Port: 8080 Document Path: / Document Length: 119 bytes Concurrency Level: 100 Time taken for tests: 1.625 seconds Complete requests: 100 Failed requests: 0 Keep-Alive requests: 0 Total transferred: 25500 bytes HTML transferred: 11900 bytes Requests per second: 61.54 [#/sec] (mean) Time per request: 1624.997 [ms] (mean) Time per request: 16.250 [ms] (mean, across all concurrent requests) Transfer rate: 15.32 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 15 88.4 0 516 Processing: 0 833 579.8 1031 1547 Waiting: 0 817 582.5 1031 1547 Total: 0 848 578.3 1031 1547 Percentage of the requests served within a certain time (ms) 50% 1031 66% 1031 75% 1547 80% 1547 90% 1547 95% 1547 98% 1547 99% 1547 100% 1547 (longest request) C:\ApacheBench>ab -n 100 -c 100 -k -r http://192.168.1.160:8080/ This is ApacheBench, Version 2.3 <$Revision: 1843412 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.1.160 (be patient).....done Server Software: Server Hostname: 192.168.1.160 Server Port: 8080 Document Path: / Document Length: 119 bytes Concurrency Level: 100 Time taken for tests: 2.156 seconds Complete requests: 100 Failed requests: 0 Keep-Alive requests: 0 Total transferred: 25500 bytes HTML transferred: 11900 bytes Requests per second: 46.38 [#/sec] (mean) Time per request: 2156.256 [ms] (mean) Time per request: 21.563 [ms] (mean, across all concurrent requests) Transfer rate: 11.55 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 21 101.6 0 516 Processing: 0 1186 667.9 1031 2062 Waiting: 0 1165 672.7 1031 2062 Total: 0 1207 662.9 1547 2062 Percentage of the requests served within a certain time (ms) 50% 1547 66% 1547 75% 1547 80% 2062 90% 2062 95% 2062 98% 2062 99% 2062 100% 2062 (longest request) C:\ApacheBench>ab -n 100 -c 100 -k -r http://192.168.1.160:8080/ This is ApacheBench, Version 2.3 <$Revision: 1843412 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.1.160 (be patient).....done Server Software: Server Hostname: 192.168.1.160 Server Port: 8080 Document Path: / Document Length: 119 bytes Concurrency Level: 100 Time taken for tests: 0.016 seconds Complete requests: 100 Failed requests: 0 Keep-Alive requests: 0 Total transferred: 25500 bytes HTML transferred: 11900 bytes Requests per second: 6396.72 [#/sec] (mean) Time per request: 15.633 [ms] (mean) Time per request: 0.156 [ms] (mean, across all concurrent requests) Transfer rate: 1592.93 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 0 15 2.2 16 16 Waiting: 0 1 4.5 0 16 Total: 0 15 2.2 16 16 Percentage of the requests served within a certain time (ms) 50% 16 66% 16 75% 16 80% 16 90% 16 95% 16 98% 16 99% 16 100% 16 (longest request) C:\ApacheBench>ab -n 100 -c 100 -k -r http://192.168.1.160:8080/ This is ApacheBench, Version 2.3 <$Revision: 1843412 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.1.160 (be patient).....done Server Software: Server Hostname: 192.168.1.160 Server Port: 8080 Document Path: / Document Length: 119 bytes Concurrency Level: 100 Time taken for tests: 0.016 seconds Complete requests: 100 Failed requests: 0 Keep-Alive requests: 0 Total transferred: 25500 bytes HTML transferred: 11900 bytes Requests per second: 6405.33 [#/sec] (mean) Time per request: 15.612 [ms] (mean) Time per request: 0.156 [ms] (mean, across all concurrent requests) Transfer rate: 1595.08 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 1.6 0 16 Processing: 0 14 4.7 16 16 Waiting: 0 14 4.9 16 16 Total: 0 14 4.5 16 16 Percentage of the requests served within a certain time (ms) 50% 16 66% 16 75% 16 80% 16 90% 16 95% 16 98% 16 99% 16 100% 16 (longest request) Cheers. Bob
  17. https://github.com/RDP1974/Delphi-64-bit-compiler-RTL-speed-up_2 give me a pair of hours to fix 32bit memory manager wrapper
  18. hello dear community, I'm doing a C library conversion producing .o static files However now I'm stopped by this linker error: [dcc64 Error] E2216 Can't handle section '.tls$' in object file Can be possible to solve this problem with C compiler options making the files? I'm using clang 11 Thank you
  19. https://quality.embarcadero.com/browse/RSP-33463
  20. this E2216 should be solved in the Delphi/Linker compiler example with Clang 11 a large ecosystem of C libraries can be compiled without rely on VisualC runtime (further Windows 10 comes with VC 2015 crt by default). So we can embed objects without redistribute any DLL or dependancies!
  21. hello dear Delphinius Delphi 64 bit compiler RTL speedup Strong performance speedup for multithreaded server apps Deflate compression 5x faster than gzlib for WebBroker apps, brings your client-server experience up to the stars I'll update sometime. Regards.
  22. RDP1974

    new frameworks

    do you know Fano or Brook web frameworks? Quality? https://github.com/fanoframework/fano https://github.com/risoflora/brookframework probably this is the best mvc https://github.com/danieleteti/delphimvcframework
  23. hello, using Delphi 10.4.1 I do a soap call using XML.OmniXMLDom for Linux target and I get EEncodingError "No mapping for the unicode character exists in the target multi-byte code page" Seeing raw stream the remote server is sending bad codes for some Francais characters (out from the map). Do you know how to set HTTPRIO to ask UTF-8 unicode xml instead of multi-byte code page? Thank you
  24. RDP1974

    SOAP Client EEncodingError

    client cannot be solved, also trying different xml parsers problem was solved server-side
×