Click here to Skip to main content
15,891,248 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralWhat is it with these overly reliable people? Pin
Jörgen Andersson15-Dec-19 2:29
professionalJörgen Andersson15-Dec-19 2:29 
JokeRe: What is it with these overly reliable people? Pin
Cp-Coder15-Dec-19 2:36
Cp-Coder15-Dec-19 2:36 
QuestionRe: What is it with these overly reliable people? Pin
lopatir15-Dec-19 2:42
lopatir15-Dec-19 2:42 
AnswerRe: What is it with these overly reliable people? Pin
Jörgen Andersson15-Dec-19 2:48
professionalJörgen Andersson15-Dec-19 2:48 
GeneralHealth and Safety Zen Pin
OriginalGriff15-Dec-19 0:05
mveOriginalGriff15-Dec-19 0:05 
GeneralRe: Health and Safety Zen Pin
Mark_Wallace15-Dec-19 1:13
Mark_Wallace15-Dec-19 1:13 
GeneralRe: Health and Safety Zen Pin
Daniel Pfeffer15-Dec-19 1:45
professionalDaniel Pfeffer15-Dec-19 1:45 
GeneralThis is cool. I figured out a neat thing Pin
honey the codewitch14-Dec-19 18:39
mvahoney the codewitch14-Dec-19 18:39 
Slang is kinda big, and build tools used in a pre-build step don't need DLL's to be dragged along with them.

But a slang enabled exe can be 350k easy in release mode.

So what I've done, is endeavored to remove

A) the startup processing time of a slang enabled code generator tool
B) the dependency of said tool on the large CodeDOM Go Kit (which includes Slang)

How I did it was I went meta, and I wrote code that generates code that generates code.

In this case, I can take all the work that slang requires and prebake it, because now I can serialize those code trees to arrays as code, so now I don't slang to reinstantiate them.

It's confusing to explain but easy to use.

So now i have this tool, Deslang. Basically you can precook all the work slang did into the code, add your dynamism by visiting that tree that got from Deslang as a prefab array (no slang required, just one visitor file) and add in your dynamic arrays or whatever that you wanted to generate.

Normally

Build Tool -> Slang -> Output

Now

Build Tool -> Precooked Slang -> Output

The latter runs a lot faster, and the build tool binary winds up a lot smaller because i don't need to include all the CodeDOM Go Kit source code.


Works perfectly for rolex, where 80% of what Slang is used for is easing maintenance - it's just static code, but it's written in slang just so it can be language agnostic and not force me to manually build a codedom.

Point is this is is clever. Rolex is 200k !! smaller and lightning fast now.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.


modified 15-Dec-19 1:12am.

JokeRe: This is cool. I figured out a neat thing Pin
lopatir14-Dec-19 19:41
lopatir14-Dec-19 19:41 
GeneralRe: This is cool. I figured out a neat thing Pin
Daniel Pfeffer14-Dec-19 22:05
professionalDaniel Pfeffer14-Dec-19 22:05 
GeneralRe: This is cool. I figured out a neat thing Pin
phil.o14-Dec-19 22:27
professionalphil.o14-Dec-19 22:27 
GeneralRe: This is cool. I figured out a neat thing Pin
W Balboos, GHB15-Dec-19 7:16
W Balboos, GHB15-Dec-19 7:16 
GeneralRe: This is cool. I figured out a neat thing Pin
phil.o15-Dec-19 7:27
professionalphil.o15-Dec-19 7:27 
GeneralRe: This is cool. I figured out a neat thing Pin
honey the codewitch15-Dec-19 7:49
mvahoney the codewitch15-Dec-19 7:49 
GeneralJust because you can doesn't mean you should. Pin
rjmoses14-Dec-19 11:28
professionalrjmoses14-Dec-19 11:28 
GeneralRe: Just because you can doesn't mean you should. Pin
Rick York14-Dec-19 11:54
mveRick York14-Dec-19 11:54 
GeneralRe: Just because you can doesn't mean you should. Pin
Gary Wheeler16-Dec-19 1:47
Gary Wheeler16-Dec-19 1:47 
GeneralRe: Just because you can doesn't mean you should. Pin
PIEBALDconsult14-Dec-19 12:53
mvePIEBALDconsult14-Dec-19 12:53 
GeneralRe: Just because you can doesn't mean you should. Pin
honey the codewitch14-Dec-19 16:48
mvahoney the codewitch14-Dec-19 16:48 
GeneralRe: Just because you can doesn't mean you should. Pin
PIEBALDconsult14-Dec-19 17:19
mvePIEBALDconsult14-Dec-19 17:19 
GeneralRe: Just because you can doesn't mean you should. Pin
honey the codewitch14-Dec-19 17:22
mvahoney the codewitch14-Dec-19 17:22 
GeneralRe: Just because you can doesn't mean you should. Pin
Kirk 1038982116-Dec-19 3:29
Kirk 1038982116-Dec-19 3:29 
GeneralRe: Just because you can doesn't mean you should. PinPopular
Cp-Coder14-Dec-19 14:05
Cp-Coder14-Dec-19 14:05 
GeneralRe: Just because you can doesn't mean you should. Pin
Greg Utas14-Dec-19 14:39
professionalGreg Utas14-Dec-19 14:39 
GeneralRe: Just because you can doesn't mean you should. Pin
Jon McKee14-Dec-19 16:23
professionalJon McKee14-Dec-19 16:23 

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.