using Pascal scripting instead of Lua

43 views
Skip to first unread message

Guru Kathiresan

unread,
Feb 8, 2010, 7:00:10 PM2/8/10
to Delphi on Rails
I'm wondering if you have considered using a Pascal scripting
component instead of Lua for the View ?
Long time ago Pascal Server Pages was using a modified Pascal
interpreter from the JVCL project, may be you can consider using it in
the future ? Source can be found at : http://sourceforge.net/projects/npascal/files/

Henri Gourvest

unread,
Feb 9, 2010, 4:00:59 AM2/9/10
to delphi...@googlegroups.com
Yes I have considered the possibility to write views in Pascal, but not more than 5 minutes, 
after that I erased this idea of my head.

Here are the reasons that convinced me that LUA is the best choice:
- Lua is a dynamically typed language that implements associative arrays.
- Lua provides automatic conversion between string and number values at run time.
- Lua manages memory automatically by running a garbage collector.
- Lua have iterators.
- Lua is fast, very fast.
- Lua have a community.
- Lua is crossplatform.

Keep in mind that the main purpose of a scripting language in DOR is to produce text.
Everything else is written in Delphi.

Henri

2010/2/9 Guru Kathiresan <gkat...@yahoo.com>

Guru Kathiresan

unread,
Feb 9, 2010, 4:13:44 PM2/9/10
to Delphi on Rails
Thanks for your reply.

The advantage of having a Pascal scripting is

1) I do not want to learn yet another scripting language
2)Dont have to work with a Basic like language
3)Use my Pascal knowledge when coding the View as well
4)Ability to interface with Delphi VCL without much problem
5)JvInterpreter is also cross platform
6)Not to have additional DLLs supplied with the web
7)Delphi/Freepascal do have a big community

Even with these advantages, if you are going to say no to Pascal
scripting, I'm atleast wondering if you can make Pascal scripting an
option one other than Lua ? May be you can check how other delphi
developers feel about having a pascal scripting as well.

-Guru Kathiresan

Henri Gourvest

unread,
Feb 10, 2010, 4:53:16 AM2/10/10
to delphi...@googlegroups.com
Unfortunately pascal scripting is not adapted to DOR. 
I really need an untyped language. In Dor, all data passes through flexible data structures, specifically to avoid having to write too much code and stay productive. All the popular languages used on the Web have this feature. 
I think you underestimate LUA, it is much more powerful than you imagine.

Henri

2010/2/9 Guru Kathiresan <gkat...@yahoo.com>
Thanks for your reply.

Marcos Barreto

unread,
Feb 10, 2010, 11:18:57 AM2/10/10
to delphi...@googlegroups.com
I work with delphi a lot of time, when i start on DOR i think the same way (whould be better work with pascal language), but lua is incredible, fantastic. Better choice that you could do Henri.

We developers often are not used to adapt and for this reason we have lost great opportunities to learn new things and interesting.
Reply all
Reply to author
Forward
0 new messages