Re: [julia-users] best practices for using Julia to generate+save Julia source code

2016-07-05 Thread Jeffrey Sarnoff
typo -- Mauro On Tuesday, July 5, 2016 at 3:26:13 AM UTC-4, Jeffrey Sarnoff wrote: > > Hi Mauio, > Using another parameter is ok if it solves things in a way that precludes > wanting other synthetic parameters for each sort of Both that is of interest > e.g `( (size,digits), (size,bits),

Re: [julia-users] best practices for using Julia to generate+save Julia source code

2016-07-05 Thread Jeffrey Sarnoff
Hi Mauio, Using another parameter is ok if it solves things in a way that precludes wanting other synthetic parameters for each sort of Both that is of interest e.g `( (size,digits), (size,bits), (bits, digits), (size, internal precision) ... (internal precision, digits) )`. otoh, it is

Re: [julia-users] best practices for using Julia to generate+save Julia source code

2016-07-05 Thread Mauro
What about: immutable fromClibWithCfinalizer{ sizeofThisType, digitsofSignificand, Both } exponent ::NTuple{ Both, UInt32 ) ... end function fromClibWithCfinalizer( _ ) Both = fn( sizeofThisType, digitsOfSignificand ) fromClibWithCfinalizer{sizeofThisType, digitsOfSignificand, Both}(_)

[julia-users] best practices for using Julia to generate+save Julia source code

2016-07-04 Thread Tony Kelman
Are you building up a representation of the code an Expr objects? Maybe just show on those could be decent to start with? There's also Mustache.jl which can do generic templating.

[julia-users] best practices for using Julia to generate+save Julia source code

2016-07-04 Thread Jeffrey Sarnoff
Are there styles/approaches/packages/practices that may make simple and untedious using Julia to generate and fill templated Julia source code? My use case is to complete facets of type declarations that require more symbiosis of parameters than Julia learned to do while in kindergarten.