Page 2 of 2

Re: Run Time Compiler

Posted: Tue Aug 24, 2010 12:53 pm
by swhite
Thorium wrote:You dont need runtime compiling for that. Just store a dll in the database download it and load it. It's the same you just skip the runtime compile.
In my previous development environment that was not possible but in PB that makes good sense. I will keep this idea in mind for the future.

Simon

Re: Run Time Compiler

Posted: Tue Aug 24, 2010 3:56 pm
by Thorium
cybergeek wrote:what about other kind of code like any code to be executed dyncamially?
I dont know what you mean. What kind of code? And what do you mean by dynamicaly executed?

PB is a compiler language and does not execute PB code on runtime. You can generate and execute machine code on runtime which is very rarely needed. Or you can write a scripting engine. Actualy there are some projects that implement the PB syntax as script language.

Re: Run Time Compiler

Posted: Tue Aug 24, 2010 5:11 pm
by IdeasVacuum

Re: Run Time Compiler

Posted: Wed Aug 25, 2010 1:27 pm
by Yogi Yang
swhite wrote:HI

I guess I was not thinking of making a simple wrapper but I see your point. I was thinking more along the lines of what you can do in dynamic languages. I often store code in a database or create scripts on the fly using Visual FoxPro which then compiles and executes the code at runtime. In fact there is a specific command called "ExecScript" which compiles and runs the program code you pass to it. This allows a high degree of customization in your application that the user can control. So I was thinking it would be nice to have some kind of compiling ability from within an application. You could even put code in web-pages and execute it on the server at runtime this way.
Check out WinWrap scripting language. it is very costly to be fore warned ;). (http://www.winwrap.com/web/basic/default.asp)

I use its ancestor ActiveX solution Sax Basic (Basic Engine) in many product that require such functionality.

HTH

Re: Run Time Compiler

Posted: Wed Aug 25, 2010 2:25 pm
by Trond
If you want a dynamic language, use a dynamic language.
I do not particularly want a dynamic language
I was thinking more along the lines of what you can do in dynamic languages.
It seems like you want a dynamic language.

By the way, every result that can be gotten with a dynamic programming language can also be achieved in a compiled language, only by using different implementation techniques.

Re: Run Time Compiler

Posted: Wed Feb 23, 2011 6:52 pm
by psavolai
Hi,

how about using the WebGadget for executing dynamically generated javascript and PB handling postbacks (url loads) ?

That way you could have a decent dynamic language and facilitate it with suitable PV backend.

I might give this a try since I need this too.

petri.