Click here to Skip to main content
14,449,309 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 3:29
communityengineerJörgen Andersson15-Dec-19 3:29 
JokeRe: What is it with these overly reliable people? Pin
Cp-Coder15-Dec-19 3:36
MemberCp-Coder15-Dec-19 3:36 
QuestionRe: What is it with these overly reliable people? Pin
lopatir15-Dec-19 3:42
Memberlopatir15-Dec-19 3:42 
AnswerRe: What is it with these overly reliable people? Pin
Jörgen Andersson15-Dec-19 3:48
communityengineerJörgen Andersson15-Dec-19 3:48 
GeneralHealth and Safety Zen Pin
OriginalGriff15-Dec-19 1:05
communityengineerOriginalGriff15-Dec-19 1:05 
GeneralRe: Health and Safety Zen Pin
Mark_Wallace15-Dec-19 2:13
MemberMark_Wallace15-Dec-19 2:13 
GeneralRe: Health and Safety Zen Pin
Daniel Pfeffer15-Dec-19 2:45
professionalDaniel Pfeffer15-Dec-19 2:45 
GeneralThis is cool. I figured out a neat thing Pin
honey the codewitch14-Dec-19 19:39
mvahoney the codewitch14-Dec-19 19: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 20:41
Memberlopatir14-Dec-19 20:41 
GeneralRe: This is cool. I figured out a neat thing Pin
Daniel Pfeffer14-Dec-19 23:05
professionalDaniel Pfeffer14-Dec-19 23:05 
GeneralRe: This is cool. I figured out a neat thing Pin
phil.o14-Dec-19 23:27
mvephil.o14-Dec-19 23:27 
GeneralRe: This is cool. I figured out a neat thing Pin
W Balboos15-Dec-19 8:16
mveW Balboos15-Dec-19 8:16 
GeneralRe: This is cool. I figured out a neat thing Pin
phil.o15-Dec-19 8:27
mvephil.o15-Dec-19 8:27 
GeneralRe: This is cool. I figured out a neat thing Pin
honey the codewitch15-Dec-19 8:49
mvahoney the codewitch15-Dec-19 8:49 
GeneralJust because you can doesn't mean you should. Pin
rjmoses14-Dec-19 12:28
professionalrjmoses14-Dec-19 12:28 
GeneralRe: Just because you can doesn't mean you should. Pin
Rick York14-Dec-19 12:54
mveRick York14-Dec-19 12:54 
GeneralRe: Just because you can doesn't mean you should. Pin
Gary Wheeler16-Dec-19 2:47
MemberGary Wheeler16-Dec-19 2:47 
GeneralRe: Just because you can doesn't mean you should. Pin
PIEBALDconsult14-Dec-19 13:53
professionalPIEBALDconsult14-Dec-19 13:53 
GeneralRe: Just because you can doesn't mean you should. Pin
honey the codewitch14-Dec-19 17:48
mvahoney the codewitch14-Dec-19 17:48 
GeneralRe: Just because you can doesn't mean you should. Pin
PIEBALDconsult14-Dec-19 18:19
professionalPIEBALDconsult14-Dec-19 18:19 
GeneralRe: Just because you can doesn't mean you should. Pin
honey the codewitch14-Dec-19 18:22
mvahoney the codewitch14-Dec-19 18:22 
GeneralRe: Just because you can doesn't mean you should. Pin
Kirk 1038982116-Dec-19 4:29
MemberKirk 1038982116-Dec-19 4:29 
GeneralRe: Just because you can doesn't mean you should. Pin
Cp-Coder14-Dec-19 15:05
MemberCp-Coder14-Dec-19 15:05 
GeneralRe: Just because you can doesn't mean you should. Pin
Greg Utas14-Dec-19 15:39
professionalGreg Utas14-Dec-19 15:39 
GeneralRe: Just because you can doesn't mean you should. Pin
Jon McKee14-Dec-19 17:23
professionalJon McKee14-Dec-19 17: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.