[Jprogramming] Building multiline definitions in code

Pascal Jasmin godspiral2000 at yahoo.ca
Mon Nov 6 10:26:14 HKT 2006


I have no suggestion.  An adverb that processes your definitions into a multiline verb is why I brought up JHP as an example.  Creating a script, I'm sure, is needed if you say so. 

----- Original Message ----
From: Oleg Kobchenko <olegykj at yahoo.com>
To: Programming forum <programming at jsoftware.com>
Sent: Sunday, November 5, 2006 8:46:05 PM
Subject: Re: [Jprogramming] Building multiline definitions in code

Every example has, in the "View Source" frame, both
Source and Code generated from the latter.

I honestly can't figure out what you are suggesting?
Could you be more specific?


--- Pascal Jasmin <godspiral2000 at yahoo.ca> wrote:

> On the wiki page for JHP, http://www.jsoftware.com/jwiki/JHP?highlight=%28JHP%29
> you have a very sensible example syntax.  Other than a few html statements that could be
> factored out to the annoyance of people other than me, that example is very good in terms of
> friendly syntax.
> 
> On your web site though (down atm), the examples appear as a series of print statements. It
> wasn't obvious that the content creation step wasn't through those print statements.
> 
> going from the wiki example to the multiline println statements was exactly the type of
> templating I was referring to.
> 
> 
> ----- Original Message ----
> From: Oleg Kobchenko <olegykj at yahoo.com>
> To: Programming forum <programming at jsoftware.com>
> Sent: Sunday, November 5, 2006 5:15:41 PM
> Subject: Re: [Jprogramming] Building multiline definitions in code
> 
> The initial implementation used Linear Representation (5!:5)
> for the whole stretch with multiple LFs, but
> it was converted into 65 66 10 67 ... 97{a.
> which is worse. So println was a compromise.
> 
> That's a good point to combine multiple println
> into a single print 0 : 0 ... ).
> However, it won't work: in order to use the
> convenience of control statements in JHP code,
> the whole page is a single verb. 
> This was a desing decision.
> 
> If JHP generated code is a set back, look at
> transient code generated by ASP.NET.
> 
> Note: JHP is still a proof of concept and I was
> hoping for constructive feedback, which it is. 
> Thank you.
> 
> 
> The point about Templating is a good one. In fact
> the template component should be factored out from
> JHP for reusal. It's very powerful and can generate
> all kinds of textual representations mingled with
> code, XML, HTML for report output, SQL, plain text, etc.
> 
> Chris Sells (inventor of Gen<X>, I still have their t-shirt)
> Generative Programming: Modern Techniques to Automate Repetitive Programming Tasks
> http://msdn.microsoft.com/msdnmag/issues/01/12/GenProg/
> 
> Interview with Eric J. Smith, creator of CodeSmith
> This already uses ASP.NET engine.
> http://www.codegeneration.net/tiki-read_article.php?articleId=28
> 
> ASP.NET model with custom tags is more powerful, but
> requires a pipeline and events and is more involved
> in creating the custom controls. I don't think it feasible
> for J. PHP uses the same single pass through as classic ASP.
> 
> 
> At an Active Scripting web site related to the engine and
> ASP host, one of the Microsoft insiders commented on an undocumented
> feature of ASP host to emit chunks of multiline text and
> the fact that Gen<X> were able to neatly crack and reuse
> that feature.
> 
> 
> --- Pascal Jasmin <godspiral2000 at yahoo.ca> wrote:
> 
> > One practical application off the top of my head is Oleg's JHP system.  Looking at the example
> > code, there seems to be a lot of redundant writeln and write statements, that feel like a bit
> of
> > a turn off.  Writing JHP as a naturally formatted multiline noun, and then processing it into
> > the multiline scripts in the examples should be pretty straightforward.
> > 
> > Templating, even if very simple, could be useful to you, or to someone providing useful code
> to
> > you.
> 
> 
> 
>  
> ____________________________________________________________________________________
> Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates 
> (http://voice.yahoo.com)
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> 
> 
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 



 
____________________________________________________________________________________
Access over 1 million songs - Yahoo! Music Unlimited 
(http://music.yahoo.com/unlimited)

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm







More information about the Programming mailing list