Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-08

Right tool for the job?

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys
to Chavoux Luyt
Chavoux Luyt wrote 5 lines
Hi guys I am thinking of writing a new (3D) window manager for linux using OpenGL/glScene in Lazarus. Do you think it is the right tool for the job, or should I rather look at something else using C or C++ directly with openGL?

The Object Pascal language is 100% fine for just about any task.... GUI app, Console app, CGI / Web app, Services/Daemon apps etc. There are already a few X11 window managers implemented using Object Pascal. XPDE (implemented using Kylix 3), fpwm (available on SourceForge which first used fpGUI Toolki, but not sure what it uses now) etc. I have also seen some window managers implemented using SDL (projects also available on SourceForge), and FPC includes SDL bindings out of the box.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Chavoux Luyt
to Graeme Geldenhuys

Hi Graeme

Graeme Geldenhuys wrote 9 lines
The Object Pascal language is 100% fine for just about any task.... GUI app, Console app, CGI / Web app, Services/Daemon apps etc. There are already a few X11 window managers implemented using Object Pascal. XPDE (implemented using Kylix 3), fpwm (available on SourceForge which first used fpGUI Toolki, but not sure what it uses now) etc. I have also seen some window managers implemented using SDL (projects also available on SourceForge), and FPC includes SDL bindings out of the box.

Thanks for the answer. While I am very comfortable with the Object Pascal language, I know that the original Delphi was in many case simply a very thin layer over the Windows API (sometimes simply a Pascal translation). That is why I was not so sure about its use on Linux (especially for 3D).

I just want to confirm that SDL bindings you talk about is not the same as the JEDI SDL tools? Or does the JEDI SDL components make use of these existing bindings?

Thanks again
Chavoux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120808/fdfd4691/attachment.html>

Reply by email

Graeme Geldenhuys
to Chavoux Luyt
Chavoux Luyt wrote
That is why I was not so sure about its use on Linux (especially for 3D).

That's where FPC shines! FPC is very good at cross-platform support. I primarily code with the fpGUI toolkit, and every single fpGUI based project I work on doesn't have a single IFDEF Windows/Linux in the application code. My days with Borland Kylix 3 was very different. :)

I just want to confirm that SDL bindings you talk about is not the same as the JEDI SDL tools? Or does the JEDI SDL components make use of these existing bindings?

I'm not 100% sure (so don't quote me on it), but I think the original SDL bindings included with FPC, came from the JEDI SDL project. Since then I think each has been maintained on their own. The nice thing about SDL is that it supports various backends (Linux Framebuffer, X11, OpenGL etc), so if one doesn't exist, it could use the others. SDL also has a reference implementation of a software renderer as standard, and can use hardware acceleration when available.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Ian Godman
to Graeme Geldenhuys

I am using the Web Service Tool kit and have problems with "Hello World".

By tracing in debug mode I have found the following:

    SOAP Envelope is being received - saved the by adding the line:
    rsps.SaveToFile('ians.saved');
    at line 239 of soap_formater.pas.
    This gives:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <ns1:helloResponse xmlns:ns1="http://example.org/">
          <ns1:return>Hello fred_test</ns1:return>
        </ns1:helloResponse>
      </soap:Body>
    </soap:Envelope>
    In base_soap_formater around line 1550 it is looking for the
    "helloResponce" in the scope "http://example.org/" so it should find
    that scope is "ns1" but it does not find  it.
    At line 1552 nmspcSH = the empty string.
    At line 1574 strNodeName = 'helloResponse'  and findNode return nil
    so we have no result !

I am using version 0.5 of the WST which is the newest I can find though from 2007!

Any ideas on how I can fix this issue much appreciated, its beyond me at the monument and time is short. Any alternative would that allows me to avoid C even more appreciated! (I left hell a few years back and am reluctant to return).

Many thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120808/34443b30/attachment.html>

Reply by email

Unknown author
to Ian Godman
Ian Godman wrote 30 lines
I am using the Web Service Tool kit and have problems with "Hello World". By tracing in debug mode I have found the following: SOAP Envelope is being received - saved the by adding the line: rsps.SaveToFile('ians.saved'); at line 239 of soap_formater.pas. This gives: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns1:helloResponse xmlns:ns1="http://example.org/"> <ns1:return>Hello fred_test</ns1:return> </ns1:helloResponse> </soap:Body> </soap:Envelope> In base_soap_formater around line 1550 it is looking for the "helloResponce" in the scope "http://example.org/" so it should find that scope is "ns1" but it does not find it. At line 1552 nmspcSH = the empty string. At line 1574 strNodeName = 'helloResponse' and findNode return nil so we have no result ! I am using version 0.5 of the WST which is the newest I can find though from 2007!

Well, that is VERY old. This probably explains the problems you are experiencing !

Last change date is 2012-07-19 2012-01-10

You can upgrade from SVN:
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/wst/trunk

If you do, do not forget to re-generate the sources from the wsdl.

Michael.

Reply by email

Ian Godman
to Chavoux Luyt: Hi guys I am thinking of writing a new (3D) window manager for linux using OpenGL/glScene…

C / C++ is NOT recommended of anything. there is always a better choice (true of most things in IT and quite a few in life).

C is popular because it is popular and a reluctance of developers to move away from what they are familiar with.

However because of the large user base the support for C is much better.

The right tool for the job is always a matter of opinion and experience so the choice is yours and only your experience will tell you if it was good or bad.

Chavoux Luyt wrote 16 lines
Hi guys I am thinking of writing a new (3D) window manager for linux using OpenGL/glScene in Lazarus. Do you think it is the right tool for the job, or should I rather look at something else using C or C++ directly with openGL? Thanks! Chavoux -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120808/1acce5c6/attachment.html>

Reply by email

Ian Godman
to Unknown author: Well, that is VERY old. This probably explains the problems you are experiencing ! Last…

I have upgraded from SVN and get the same results :-(

Ian

Show quoted text 55 lines
On Wed, 8 Aug 2012, Ian Godman wrote: > I am using the Web Service Tool kit and have problems with "Hello > World". > > By tracing in debug mode I have found the following: > > SOAP Envelope is being received - saved the by adding the line: > rsps.SaveToFile('ians.saved'); > at line 239 of soap_formater.pas. > > This gives: > > <soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Body> > <ns1:helloResponse xmlns:ns1="http://example.org/"> > <ns1:return>Hello fred_test</ns1:return> > </ns1:helloResponse> > </soap:Body> > </soap:Envelope> > > > In base_soap_formater around line 1550 it is looking for the > "helloResponce" in the scope "http://example.org/" so it should find > that scope is "ns1" but it does not find it. > > At line 1552 nmspcSH = the empty string. > > At line 1574 strNodeName = 'helloResponse' and findNode return nil > so we have no result ! > > I am using version 0.5 of the WST which is the newest I can find though > from 2007! Well, that is VERY old. This probably explains the problems you are experiencing ! Last change date is 2012-07-19 2012-01-10 You can upgrade from SVN: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/wst/trunk If you do, do not forget to re-generate the sources from the wsdl. Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Unknown author
to Ian Godman

Well.

Without access to the actual webservice it's hard to say anything useful at this point.

I can only repeat that I use WST to consume several webservices, none of them written in WST: .NET, Remobjects and even Java spring...

I've forwarded your request to Inoussa; maybe he can do something more.

Michael.

Ian Godman wrote 69 lines
I have upgraded from SVN and get the same results :-( Ian On 08/08/12 12:24, wrote: > > > On Wed, 8 Aug 2012, Ian Godman wrote: > >> I am using the Web Service Tool kit and have problems with "Hello >> World". >> >> By tracing in debug mode I have found the following: >> >> SOAP Envelope is being received - saved the by adding the line: >> rsps.SaveToFile('ians.saved'); >> at line 239 of soap_formater.pas. >> >> This gives: >> >> <soap:Envelope >> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> >> <soap:Body> >> <ns1:helloResponse xmlns:ns1="http://example.org/"> >> <ns1:return>Hello fred_test</ns1:return> >> </ns1:helloResponse> >> </soap:Body> >> </soap:Envelope> >> >> >> In base_soap_formater around line 1550 it is looking for the >> "helloResponce" in the scope "http://example.org/" so it should find >> that scope is "ns1" but it does not find it. >> >> At line 1552 nmspcSH = the empty string. >> >> At line 1574 strNodeName = 'helloResponse' and findNode return nil >> so we have no result ! >> >> I am using version 0.5 of the WST which is the newest I can find though >> from 2007! > > Well, that is VERY old. This probably explains the problems you are > experiencing ! > > Last change date is 2012-07-19 2012-01-10 > > You can upgrade from SVN: > https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/wst/trunk > > If you do, do not forget to re-generate the sources from the wsdl. > > Michael. > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Unknown author
to Ian Godman: I have upgraded from SVN and get the same results :-( Ian

Hi,

Inoussa has looked into the matter, and made some adjustments. Can you please test again from the latest SVN ?

If that doesn't fix it, please send me the WSDL in private, so I can forward it to him.

Michael.

Ian Godman wrote 69 lines
I have upgraded from SVN and get the same results :-( Ian On 08/08/12 12:24, wrote: > > > On Wed, 8 Aug 2012, Ian Godman wrote: > >> I am using the Web Service Tool kit and have problems with "Hello >> World". >> >> By tracing in debug mode I have found the following: >> >> SOAP Envelope is being received - saved the by adding the line: >> rsps.SaveToFile('ians.saved'); >> at line 239 of soap_formater.pas. >> >> This gives: >> >> <soap:Envelope >> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> >> <soap:Body> >> <ns1:helloResponse xmlns:ns1="http://example.org/"> >> <ns1:return>Hello fred_test</ns1:return> >> </ns1:helloResponse> >> </soap:Body> >> </soap:Envelope> >> >> >> In base_soap_formater around line 1550 it is looking for the >> "helloResponce" in the scope "http://example.org/" so it should find >> that scope is "ns1" but it does not find it. >> >> At line 1552 nmspcSH = the empty string. >> >> At line 1574 strNodeName = 'helloResponse' and findNode return nil >> so we have no result ! >> >> I am using version 0.5 of the WST which is the newest I can find though >> from 2007! > > Well, that is VERY old. This probably explains the problems you are > experiencing ! > > Last change date is 2012-07-19 2012-01-10 > > You can upgrade from SVN: > https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/wst/trunk > > If you do, do not forget to re-generate the sources from the wsdl. > > Michael. > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email