Click here to Skip to main content
14,487,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.
 
GeneralRe: CCC- 1/10/20 Pin
OriginalGriff10-Jan-20 1:48
mveOriginalGriff10-Jan-20 1:48 
GeneralRe: CCC- 1/10/20 Pin
pkfox10-Jan-20 5:38
professionalpkfox10-Jan-20 5:38 
GeneralRe: CCC- 1/10/20 Pin
OriginalGriff10-Jan-20 5:47
mveOriginalGriff10-Jan-20 5:47 
GeneralI was sent this, and... Pin
OriginalGriff9-Jan-20 20:57
mveOriginalGriff9-Jan-20 20:57 
GeneralRe: I was sent this, and... Pin
musefan9-Jan-20 21:44
Membermusefan9-Jan-20 21:44 
GeneralRe: I was sent this, and... Pin
Joan M9-Jan-20 22:47
professionalJoan M9-Jan-20 22:47 
GeneralRe: I was sent this, and... Pin
Basildane10-Jan-20 1:44
MemberBasildane10-Jan-20 1:44 
QuestionHow much code is too much? Pin
honey the codewitch9-Jan-20 14:36
mvahoney the codewitch9-Jan-20 14:36 
So Parsley is cool, but the hand written parser I wrote for Slang is under 100K, and the Generated one is 939K. The latter parser is slower, but more accurate, and otherwise better, but not 10 times the size better.

For comparison, Antlr's grammar for parsing C#6 was worth about 800K and change of C# source code but it didn't parse so i don't know if it was complete, or what was wrong with it.

I'm considering a code synthesis approach which might make the generated code smaller, especially for loops but i don't know how much i can really save here, but the emitted code would look cooler. =P - closer to hand written code.

People say size doesn't matter these days. (Apparently its all in how you use it) but by my rough calculations, this is the difference between 40-50k of binary size and closer to 500k of binary size when its compiled. That means cache lines and locality are going to take a hit i think, because the working set has to grow accordingly though i would need to do extensive comparison testing before i could be sure of any of that. Still, it doesn't look good.
hack everything.

AnswerRe: How much code is too much? Pin
John R. Shaw9-Jan-20 18:23
MemberJohn R. Shaw9-Jan-20 18:23 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 18:45
mvahoney the codewitch9-Jan-20 18:45 
GeneralRe: How much code is too much? Pin
Stefan_Lang10-Jan-20 1:48
mveStefan_Lang10-Jan-20 1:48 
GeneralRe: How much code is too much? Pin
honey the codewitch10-Jan-20 2:52
mvahoney the codewitch10-Jan-20 2:52 
GeneralRe: How much code is too much? Pin
John R. Shaw17-Jan-20 1:45
MemberJohn R. Shaw17-Jan-20 1:45 
GeneralRe: How much code is too much? Pin
honey the codewitch17-Jan-20 2:22
mvahoney the codewitch17-Jan-20 2:22 
AnswerRe: How much code is too much? Pin
Mark_Wallace9-Jan-20 20:33
MemberMark_Wallace9-Jan-20 20:33 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 21:10
mvahoney the codewitch9-Jan-20 21:10 
AnswerRe: How much code is too much? Pin
KarstenK9-Jan-20 20:38
mveKarstenK9-Jan-20 20:38 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 21:09
mvahoney the codewitch9-Jan-20 21:09 
AnswerRe: How much code is too much? Pin
Jon McKee9-Jan-20 20:44
professionalJon McKee9-Jan-20 20:44 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 21:08
mvahoney the codewitch9-Jan-20 21:08 
GeneralRe: How much code is too much? Pin
Jon McKee9-Jan-20 22:03
professionalJon McKee9-Jan-20 22:03 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 22:31
mvahoney the codewitch9-Jan-20 22:31 
GeneralRe: How much code is too much? Pin
Jon McKee9-Jan-20 23:18
professionalJon McKee9-Jan-20 23:18 
GeneralRe: How much code is too much? Pin
honey the codewitch9-Jan-20 23:22
mvahoney the codewitch9-Jan-20 23:22 
GeneralRe: How much code is too much? Pin
Jon McKee9-Jan-20 23:35
professionalJon McKee9-Jan-20 23:35 

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.