[fpc-pascal] file identification and metadata retrieval

2014-12-23 Thread Marc Santhoff
Hi, currently I'm searching for a library for use with fpc to handle arbitrary files. My goal is to check if file extension corresponds with content (e.g. a .gif named .png) and to extract metadata like author, topic, creation date and the like. What I have found is: - Apache Tika - https://tika

Re: [fpc-pascal] Linux, keypressed, readkey

2014-12-23 Thread Rainer Stratmann
On Sunday 21 December 2014 07:26:42 you wrote: > > I downloaded the sources, but can not find the crt sources. > > > >fpsrc/rtl/linux ? > > latest stable: > http://svn.freepascal.org/svn/fpc/tags/release_2_6_4/rtl/unix/crt.pp > trunk: > http://svn.freepascal.org/svn/fpc/trunk/packages/rtl-console

[fpc-pascal] Generated names in specialized classes are weird in Free Pascal

2014-12-23 Thread silvioprog
Hello, Recently I've made a class to generate error log for codes in Delphi and Free Pascal. It works capturing the class name where the problem occurred, adding the date/time concatenated with the error message. It's working perfectly in Delphi. The problem is in Free Pascal and in your approach

Re: [fpc-pascal] Generated names in specialized classes are weird in Free Pascal

2014-12-23 Thread Sven Barth
Am 23.12.2014 15:53 schrieb "silvioprog" : > It is very weird this generated class names. The Free Pascal will continue to use these weird names or there are plans to improve this in future versions? With names like that is almost impossible to create automated error logs structures with Free Pasca

Re: [fpc-pascal] Generated names in specialized classes are weird in Free Pascal

2014-12-23 Thread silvioprog
On Tue, Dec 23, 2014 at 1:22 PM, Sven Barth wrote: > Am 23.12.2014 15:53 schrieb "silvioprog" : > > It is very weird this generated class names. The Free Pascal will > continue to use these weird names or there are plans to improve this in > future versions? With names like that is almost impossi

Re: [fpc-pascal] Generated names in specialized classes are weird in Free Pascal

2014-12-23 Thread silvioprog
And: C:\repository\git\freepascal\bin\i386-win32>fpc -iDV 2014/12/23 2.7.1 ... begin WriteLn({$I %FPCDATE%}); end. Out: 2014/12/23 On Tue, Dec 23, 2014 at 2:10 PM, silvioprog wrote: > On Tue, Dec 23, 2014 at 1:22 PM, Sven Barth > wrote: > >> Am 23.12.2014 15:53 schrieb "silvioprog" : >> >

[fpc-pascal] Benchmarks are odious, but...

2014-12-23 Thread Mark Morgan Lloyd
At http://www.fourmilab.ch/fbench/fbench.html John Walker, formerly of Autodesk, rates FPC as one of the faster languages but remarks "To the best of my knowledge, none of the language implementations tested exploit the thread-level parallelism implemented in modern processors." Allowing that

Re: [fpc-pascal] Benchmarks are odious, but...

2014-12-23 Thread leledumbo
> Allowing that he used FPC 2.2.0, is optimisation etc. likely to have improved enough that somebody could usefully suggest he rerun the test? Upgrading his tools would be better, they're waaay to old. However, for FPC, I'd like to see when the next stable release comes out. There are new op