Click here to Skip to main content
15,899,025 members
Home / Discussions / C#
   

C#

 
GeneralDeploying a dot NET app Pin
antoine@orchus-tech14-Jan-03 5:10
antoine@orchus-tech14-Jan-03 5:10 
GeneralRe: Deploying a dot NET app Pin
Stephane Rodriguez.14-Jan-03 5:37
Stephane Rodriguez.14-Jan-03 5:37 
GeneralRe: Deploying a dot NET app Pin
Stephane Rodriguez.16-Jan-03 2:41
Stephane Rodriguez.16-Jan-03 2:41 
QuestionNetworkStream? Pin
gekoscan13-Jan-03 19:59
gekoscan13-Jan-03 19:59 
QuestionRuntime Compilation - Worth It? Pin
Eric Astor13-Jan-03 15:14
Eric Astor13-Jan-03 15:14 
AnswerRe: Runtime Compilation - Worth It? Pin
Frank Hileman8-Apr-03 10:23
Frank Hileman8-Apr-03 10:23 
GeneralRe: Runtime Compilation - Worth It? Pin
Eric Astor8-Apr-03 11:41
Eric Astor8-Apr-03 11:41 
GeneralRe: Runtime Compilation - Worth It? Pin
Frank Hileman10-Apr-03 6:06
Frank Hileman10-Apr-03 6:06 
The answer to 3) really depends on the usage of the solution. Your state the scenario, but there are not enough details in that scenario to answer the question. Why put the source in the DB? Why not compile and store the binary at the same time? What will the binaries be used for? Will the process using the binaries be long or short-lived (the most important question)? How often does the source change?

If you just throw away the process then there is no need for an appdomain infrastructure. Even if you build one, you may still see memory growing. I believe even unloading an assembly still may cause memory leakage -- I seem to remember a problem in the vsa newsgroup, anyway. Perhaps it is the string cache (interned strings). If the only sure-fire way is to use a temp process, your solution is simplified -- you only need remoting.

So you can look at the appdomain stuff as an optimization, and it may be you are optimizing something which does not need to be optimized. As I said, there is not enough info in your scenario to say exactly what is important.

For myself, I was thinking of a .net interpreter. Mainly for testing. It is very useful to have an incrementaly constructed environment for testing. Sometimes you don't want to write a whole program to test one function. You want to type something on a command line or use a gui and have the function tested. NUnit etc. are nice, but they are really for automated testing. To test interactively you need an interpreter, that can create typed variables, and can pass the values of those vars to functions, using a commmand line or a gui.

An interpreter, as I envision, would have to be able to do some run-time compiling, at least of expressions and functions. Command-line or gui variable assignments can be done with reflection, but expression evaluation must be very rich, as rich as a .net language, so you need a full-blown compile. If nobody does it I will do it someday. As I said, it is a time saver.

In such an environment memory will be wasted (all the little dlls created each time a change is made to an expression). But it does not really matter.



Regards,
Frank Hileman
GeneralRe: Runtime Compilation - Worth It? Pin
Eric Astor10-Apr-03 6:51
Eric Astor10-Apr-03 6:51 
GeneralRe: Runtime Compilation - Worth It? Pin
Frank Hileman10-Apr-03 8:28
Frank Hileman10-Apr-03 8:28 
GeneralRe: Runtime Compilation - Worth It? Pin
Eric Astor10-Apr-03 10:01
Eric Astor10-Apr-03 10:01 
GeneralRe: Runtime Compilation - Worth It? Pin
Frank Hileman10-Apr-03 11:18
Frank Hileman10-Apr-03 11:18 
QuestionSockets with Server but what event? Pin
gekoscan13-Jan-03 11:28
gekoscan13-Jan-03 11:28 
GeneralRemoting (events/delegates) Pin
leppie13-Jan-03 9:40
leppie13-Jan-03 9:40 
GeneralRe: Remoting (events/delegates) Pin
James T. Johnson14-Jan-03 8:19
James T. Johnson14-Jan-03 8:19 
GeneralRe: Remoting (events/delegates) Pin
leppie14-Jan-03 10:08
leppie14-Jan-03 10:08 
GeneralRe: Remoting (events/delegates) Pin
James T. Johnson15-Jan-03 0:02
James T. Johnson15-Jan-03 0:02 
GeneralRe: Remoting (events/delegates) Pin
leppie15-Jan-03 6:32
leppie15-Jan-03 6:32 
GeneralRe: Remoting (events/delegates) Pin
Gertjan Schuurmans15-Jan-03 12:13
Gertjan Schuurmans15-Jan-03 12:13 
GeneralRe: Remoting (events/delegates) Pin
leppie15-Jan-03 13:27
leppie15-Jan-03 13:27 
GeneralRe: Remoting (events/delegates) Pin
leppie15-Jan-03 14:41
leppie15-Jan-03 14:41 
GeneralRe: Remoting (events/delegates) Pin
leppie15-Jan-03 21:44
leppie15-Jan-03 21:44 
GeneralRe: Remoting (events/delegates) Pin
Gertjan Schuurmans16-Jan-03 7:20
Gertjan Schuurmans16-Jan-03 7:20 
GeneralRe: Remoting (events/delegates) Pin
leppie16-Jan-03 10:56
leppie16-Jan-03 10:56 
QuestionHow to use the SqlClientPermission? Pin
shanelhatcher13-Jan-03 7:48
shanelhatcher13-Jan-03 7:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.