Run Time Compiler

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
swhite
Enthusiast
Enthusiast
Posts: 789
Joined: Thu May 21, 2009 6:56 pm

Re: Run Time Compiler

Post 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
Simon White
dCipher Computing
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: Run Time Compiler

Post 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.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Run Time Compiler

Post by IdeasVacuum »

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Yogi Yang
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 2:19 pm

Re: Run Time Compiler

Post 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
--
Yogi Yang
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Run Time Compiler

Post 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.
psavolai
New User
New User
Posts: 5
Joined: Tue Feb 22, 2011 3:35 pm

Re: Run Time Compiler

Post 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.
Post Reply