Re: [Lazarus] Protocol Buffers
On Fri, 24 Jul 2015, Leonardo M. Ramé wrote: Hi, does anyone know if there's a FreePascal implementation of Protocol Buffers, it seems to fit perfectly in on use case I'm working on: https://developers.google.com/protocol-buffers/ Yes, there are several. See e.g. fundamentals. http://fundementals.sourceforge.net/ Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Library for Android
Hi Aradeonas, I'm trying use library in linux (crosscompiled) can you tell some trics about this? {$linklib libxxxlinux.a} and other definition example. Thank you regards On 25.07.2015 15:57, Aradeonas wrote: I want to know how can I simply make a library and used it in multi platforms also in Android. For example I make library that do some math stuff and I used them in Windows and Linux version made with Lazarus simply but how used it in a Android Java project? I should say I dont want to use Lazarus for UI ,Just backend and what limits are there for this subject,wiki pages seems outdated. Regards, Ara -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Library for Android
Sorry I couldn't.I dont know about cross compiling. I think you should make a new email and send it to the list so others saw it or make new topic in forum. Regards, Ara -- http://www.fastmail.com - Same, same, but different... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Library for Android
thanx, my question is not about cross compile, using in linux. On 25.07.2015 17:50, Aradeonas wrote: Sorry I couldn't.I dont know about cross compiling. I think you should make a new email and send it to the list so others saw it or make new topic in forum. Regards, Ara -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Library for Android
I make library that do some math stuff and I used them in Windows and Linux version made with Lazarus simply but how used it in a Android Java project? The same as how use dynamic library written in any language from Java. Two options: JNI and JNA. Feel free to read Java's documentation for this. One thing for sure, it's no way easy once you want to pass parameters (unless they're simple types) or access the caller object/class fields. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Library-for-Android-tp4043315p4043319.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Protocol Buffers
Thank you. Ara -- http://www.fastmail.com - Does exactly what it says on the tin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Protocol Buffers
On 25/07/15 06:31, Michael Van Canneyt wrote: On Fri, 24 Jul 2015, Leonardo M. Ramé wrote: Hi, does anyone know if there's a FreePascal implementation of Protocol Buffers, it seems to fit perfectly in on use case I'm working on: https://developers.google.com/protocol-buffers/ Yes, there are several. See e.g. fundamentals. http://fundementals.sourceforge.net/ Michael. Nice!, I didn't know about this library. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Library for Android
Is there any demo,source or documentation? Regards, Ara -- http://www.fastmail.com - The way an email service should be -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Protocol Buffers
On 25/07/15 08:17, Aradeonas wrote: Leonardo can you explain where you can use it? Regards, Ara Currently one of my apps is sending JSON files to a server, with a structure similar to this: { document_name: doc 1, document_type: pdf, content: BASE64_ENCODED_PDF } Where BASE64_ENCODED_PDF is an binary file that must be converted to base64 to be included into a json field. The base64 encoding/decoding carries both processor and transfer size overhead, compared to a binary protocol. Of course I could have created my own proprietary protocol, but I have some constraints, for example, the sender is a Java application, and the receiver is a FreePascal one, so, using a standard protocol, like Google's Protocol Buffers seems to fit very well in this particular scenario. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Protocol Buffers
Leonardo can you explain where you can use it? Regards, Ara -- http://www.fastmail.com - Choose from over 50 domains or use your own -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Protocol Buffers
On Sat, 25 Jul 2015, Aradeonas wrote: Leonardo can you explain where you can use it? Any service that needs to exchange data fast over the network with another service. if human-readability and general accesibility and so on is not important, then this will work a lot faster than e.g. XML or JSON. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Protocol Buffers
How fast compare to JSON? Regards, Ara -- http://www.fastmail.com - Choose from over 50 domains or use your own -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Library for Android
Hi, I want to know how can I simply make a library and used it in multi platforms also in Android. For example I make library that do some math stuff and I used them in Windows and Linux version made with Lazarus simply but how used it in a Android Java project? I should say I dont want to use Lazarus for UI ,Just backend and what limits are there for this subject,wiki pages seems outdated. Regards, Ara -- http://www.fastmail.com - Access all of your messages and folders wherever you are -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus