Re: [fpc-pascal] BSON formatter

2020-05-07 Thread Andreas Schneider
Am 2020-05-07 15:26, schrieb Ryan Joseph via fpc-pascal: The amount of redundant information being sent around is ridiculous. Mainly, the spec gives no way for the client to cache results and refer to them later in various requests. We're literally sending around mega bytes of data for no reason

Re: [fpc-pascal] BSON formatter

2020-05-07 Thread Andreas Schneider
Am 2020-05-07 08:40, schrieb Ryan Joseph via fpc-pascal: Working on the language server it's become clear that JSON is going to be a killer bottleneck, but that's what Microsoft decided to use. It's almost a deal breaker just because of the sheer size of the data due to JSON's verbose plain text

Re: [fpc-pascal] "Hello world" syscalls

2020-01-09 Thread Andreas Schneider
Am 2020-01-09 00:30, schrieb Graeme Geldenhuys: So the resulting Java.class is 16 MByte in size!!! How? No it's not. I quote: The size of all files which must be present at runtime (interpreters, stdlib, libraries, loader, etc) are included. So 16mb is pretty generous. I wouldn't

Re: [fpc-pascal] heaptrc and high RAM usage

2016-03-30 Thread Andreas Schneider
Am 2016-03-30 13:35, schrieb Felipe Monteiro de Carvalho: Any ideas if I should try something else instead of heaptrc? Or any other ideas about what to do? I think valgrind could be of more use in this case, since it has specific tools for profiling (not just error/leak detection):

Re: [fpc-pascal] libxml on MacOS X

2015-02-22 Thread Andreas Schneider
Oh god, that must have been tunnel vision. Yeah, that was the obvious next step. Thanks :-) I compiled all the supplied examples and ran them, and they seem to print plausible results. The only hurdle is, that ld doesn't pick up libxml2.dylib on its own - for whatever reason. I had to

[fpc-pascal] libxml on MacOS X

2015-02-21 Thread Andreas Schneider
Hello, is there a specific reason why libxml is not built for MacOS X / darwin? My first instinct was to just try it and but then I found out the hard way, that I have no idea how to correctly use fpmake ... So in case there is simply no one who tried libxml on OSX, I would be willing to do.

Re: [fpc-pascal] SourceForge April 2014 Project of the Month: Free Pascal

2014-04-15 Thread Andreas Schneider
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15.04.2014 14:43, João Marcelo Vaz wrote: Congratulations, FreePascal! http://sourceforge.net/blog/april-2014-project-of-the-month-free-pascal I just saw that news too in the SourceForge newsletter :-) That's really awesome! Hopefully this

Re: [fpc-pascal] Cloning objects?

2014-03-20 Thread Andreas Schneider
On 19.03.2014 23:01, Timothy Groves wrote: Is there a drop-dead simple way to clone an object? I've got a small tree of classes (tBaseProfile, and four descendants of such). Only the descendant classes are instantiated. I need to be able to create new copies of these objects for use in

Re: [fpc-pascal] Re: Objects in dynamic arrays

2013-11-27 Thread Andreas Schneider
On Saturday, November 16, 2013, at 02:36 Martin wrote: On 16/11/2013 01:03, Timothy Groves wrote: Here's the code I *actually* have in the method: var index, last : integer; begin last := length (t_volumes) - 1; index := 0; while ((t_volumes [index] t_current_volume) and

Re: [fpc-pascal] Bootstrap binaries

2013-03-04 Thread Andreas Schneider
On Monday, March 4, 2013, at 01:59 Joao Morais wrote: Hello list. How ftp://ftp.freepascal.org/pub/fpc/dist/2.6.2/bootstrap like lists are built? I missed at least i386-linux and i386-win32 binaries. Just to know how I will update my drafts. Joao Morais I guess bootstrap isn't necessary

Re: [fpc-pascal] Re: Cross platform signal handler?

2012-07-16 Thread Andreas Schneider
On Sunday, July 15, 2012, at 14:48 leledumbo wrote: It will depend on what you want to achive. So, what do you need it for? Handle Ctrl+C and other kinds of forced program termination. Take a look here

Re: [fpc-pascal] Re: Help!!

2012-01-17 Thread Andreas Schneider
On Sunday, January 15, 2012, at 15:04 Mattias Gaertner wrote: On Sun, 15 Jan 2012 05:58:21 -0800 (PST) Malvin malvin...@gmail.com wrote: So far i've managed to do the program quite well, and I was wondering, can i close the main form (form1) whils opening form2 and not closing the app? Is

Re: [fpc-pascal] Re: Help!!

2012-01-17 Thread Andreas Schneider
On Tuesday, January 17, 2012, at 13:15 Felipe Monteiro de Carvalho wrote: If the use case is closing the main form without quitting the application, then I would prefer a property TApplication.QuitApplicationWhenMainFormCloses or something like that. My current use case is: - show a login

Re: [fpc-pascal] Division by Zero

2011-08-23 Thread Andreas Schneider
At Tuesday, 23.08.2011 on 8:57 Michael Fuchs wrote: Hello, WriteLn(FloatToStr(100 / 0)); This code prints on the screen +Inf, but I think it should be NaN. Is this a bug or a special case in computer arithmetic? http://en.wikipedia.org/wiki/Division_by_zero#In_computer_arithmetic --

Re: [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread Andreas Schneider
At Tuesday, 26.07.2011 on 10:13 herux wrote: Hi, I use RSA encryption library lockbox turbo power. in a windows environment I managed to compile and the apps working well, I use {$ mode delphi}. but when I compile it on ubuntu 64bit, there is an error when compiling

Re: RE : [fpc-pascal] compiling turbo power lockbox on ubuntu 64

2011-07-26 Thread Andreas Schneider
At Tuesday, 26.07.2011 on 15:31 herux wrote: thanks for the info for you guys, where can I read the complete freepascal asm document for 64bit ? Assembler is not FreePascal specific. But before you rewrite that Assembler into x86_64 compatible Intel assembler, you better rewrite it into

Re: [fpc-pascal] Memory leak or object destruction?

2011-02-03 Thread Andreas Schneider
On Wed, 2 Feb 2011 21:09:42 -0800, Andrew Hall wrote: Interfaces support reference counting. Only COM interfaces, but they are currently the default anyway. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: How to use GetElementById?

2011-01-30 Thread Andreas Schneider
Title: Re: [fpc-pascal] Re: How to use GetElementById? On Sunday, January 30, 2011 13:52 silvioprog wrote: Sorry... but nobody? :( Well, when you crosspost to two mailing lists (which you shouldn't ...), then also check both of them ;-) There was an answer on the Lazarus ML. -- Best

Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-28 Thread Andreas Schneider
On Friday, January 28, 2011 15:52 Marcos Douglas wrote: You're right. The command line is more simple. Thanks for the tip, I will try this. I have not found Since you also mentioned that you need to access it from ASP, I guess that one might offer you the most flexibility:

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Andreas Schneider
On Saturday, January 15, 2011 18:52 Frank Church wrote: Is there a FCL library that can be used to convert a large integer into base64 format? Define large integer ... in case you mean a normal integer/int64: IntToHex(...); -- Best Regards, Andreas

Re: [fpc-pascal] How to convert a large integer to base64

2011-01-15 Thread Andreas Schneider
On Saturday, January 15, 2011 21:42 Frank Church wrote: I mean int64 into base64 encoding, as in the mime type. Oops, my bad. Then yeah, as Henry said the base64 unit should help. Depending on who and how the number is to be decoded then, you could also take a look at strutils.Dec2Numb

Re: [fpc-pascal] Converting .doc and/or .html to .pdf

2011-01-15 Thread Andreas Schneider
On Saturday, January 15, 2011 22:18 Marcos Douglas wrote: Hi, There are libs, in Pascal, to convert .doc and/or .html files to .pdf? I don't think so, but I would suggest to use a headless OpenOffice.org/LibreOffice for the conversion. Using the Pascal UNO Bridge you may

Re: [fpc-pascal] The new Delphi compatible unicode string

2011-01-04 Thread Andreas Schneider
On Tue, 4 Jan 2011 14:20:55 +0200, Juha Manninen wrote: If I told to a Java programmer that Object Pascal features match Java features, how would I prove it? By showing him the HTML component code? IFDEFs and self-made conversion funcs just to support different string types. The Java guy

Re: [fpc-pascal] Re: Reading MDB (MS-Access) data under Linux

2010-11-01 Thread Andreas Schneider
application on Linux, using unixodbc, freetds and sqldb :) Best Regards, Andreas Schneider. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TFileStream and stdin - how to make this work?

2010-10-03 Thread Andreas Schneider
On Sun, 03 Oct 2010 15:05:10 +0200, Bernd Kreuss prof7...@googlemail.com wrote: Hi, this might be a stupid question but I find myself again struggling with file IO and stdin/stdout. I am trying to do the following: StdIn := TFileStream.Create('/dev/stdin', fmOpenRead); and later on i

Re: [fpc-pascal] Hashmap for integers

2010-08-22 Thread Andreas Schneider
On Sun, 22 Aug 2010 17:05:21 +0300, Juha Manninen (gmail) juha.mannine...@gmail.com wrote: Hi Is there an implementation of a hash map where the keys are integers. It is needed when the integers are too big for a lookup array. I only need check the existence of keys so the data type is

Re: [fpc-pascal] OFF TOPIC - how I can migrate of Delphi to FPC

2010-08-15 Thread Andreas Schneider
On Sun, 15 Aug 2010 09:59:10 -0300, Marcos Douglas m...@delfire.net wrote: Zeoslib uses ADO too. So, it could be used with MS SQLServer. I think Zeoslib is more faster than ODBC. That depends on the platforms you want to target. AFAIK ADO is Windows-only, so you bind yourself to Microsoft

Re: [fpc-pascal] LNet

2010-06-11 Thread Andreas Schneider
Am Freitag 11 Juni 2010, 18:50:56 schrieb Felipe Monteiro de Carvalho: And from my tests Get is indeed returning the amount read. I still don't know if half a packet could be received in the OnReceive event or if it only returns an integer amount of packets. That makes difference in the

Re: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread Andreas Schneider
Hi, that works the same as in Windows and can probably be done with every executable format. Simply append the data to the end of the file and store the offset or length of that data at the end. All you have to do then is to let the program open itself (ParamStr(0)), seek to the end -

Re: [fpc-pascal] Re: creating a standalone executable (eg: application installation file)

2010-01-12 Thread Andreas Schneider
I think if digital signing is required, using Windows Resources would be the better way. Now that I think about it, with FPC 2.4 that should even be possible on Linux (and other platforms). Many roads lead to rome :D Am Dienstag 12 Januar 2010 14:17:21 schrieb Milan Marusinec: Andreas

[fpc-pascal] Class Operators

2009-12-11 Thread Andreas Schneider
Hi, since my reported bug (http://bugs.freepascal.org/view.php?id=15315) seems to turn out to be by design, a question came up: are there any plans to implement class operators? In delphi they are implemented to allow operators to affect instances of classes. This would also enable to write

Re: [fpc-pascal] Free Pascal created libraries used by other languages

2009-12-09 Thread Andreas Schneider
Am Mittwoch 09 Dezember 2009 15:26:11 schrieb Graeme Geldenhuys: But clearly this language relationship is a very one-sided thing. We use their (C/C++) libraries, they don't use ours. :-( Just look at the QT bindings. The LCL can't simply use QT, it has to use a wrapper library that flattens