Click here to Skip to main content
14,450,208 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: So you like sandboxing in 1909? Pin
RickZeeland28-Nov-19 3:59
communityengineerRickZeeland28-Nov-19 3:59 
GeneralRe: So you like sandboxing in 1909? Pin
dandy7228-Nov-19 4:28
Memberdandy7228-Nov-19 4:28 
GeneralRe: So you like sandboxing in 1909? Pin
maze329-Nov-19 1:14
professionalmaze329-Nov-19 1:14 
GeneralRe: So you like sandboxing in 1909? Pin
Paulo_JCG29-Nov-19 3:35
professionalPaulo_JCG29-Nov-19 3:35 
GeneralRe: So you like sandboxing in 1909? Pin
Stuart Dootson29-Nov-19 1:47
professionalStuart Dootson29-Nov-19 1:47 
GeneralRe: So you like sandboxing in 1909? Pin
agolddog29-Nov-19 4:35
Memberagolddog29-Nov-19 4:35 
GeneralOi! Pompey 3! Pin
OriginalGriff28-Nov-19 0:07
communityengineerOriginalGriff28-Nov-19 0:07 
GeneralWow, so this is cool, if you're a nerd like me Pin
honey the codewitch27-Nov-19 23:51
mvahoney the codewitch27-Nov-19 23:51 
My lexer generator generates over 8000 lines of source code (though mostly whitespace), and about 405k of source code going by raw size, for this input specification:
// pre build macro follows:
// "$(ProjectDir)rolex.exe" "$(ProjectDir)SlangTokenizer.rl" /output "$(ProjectDir)SlangTokenizer.cs" /namespace CDU
keyword='abstract|add|as|ascending|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|descending|do|double|dynamic|else|enum|equals|explicit|extern|false|finally|fixed|float|for|foreach|get|global|goto|if|implicit|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|partial|private|protected|public|readonly|ref|remove|return|sbyte|sealed|set|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|var|virtual|void|volatile|while|yield'
identifier='[A-Z_a-z][0-9A-Z_a-z]*'
lineComment='//[^\n]*'
blockComment<blockEnd="*/">="/*"
stringLiteral='"([^"\\]|\\.)*"'
characterLiteral='\'([^\'\\]|\\.)\''
integerLiteral = '(0x[0-9A-Fa-f]{1,16}|(0|\-?[1-9][0-9]*))([Uu][Ll]?|[Ll][Uu]?)?'
floatLiteral= '\-?(0|[1-9][0-9]*)(\.[0-9]+)?([Ee][\+\-]?[0-9]+)?[DdMm]?'
booleanLiteral = 'true|false'
nullLiteral = 'null'
whitespace<hidden>='\s+'


Most of it is initialization of a large static nested array with over 500 entries.

But it compiles down to where the entire assembly is only 67k.

I know the CIL code is relatively compact, but still this surprised me since it's initializing arrays with const values you'd think all those values would bloat the assembly size. I was expecting over 100k for this binary, not under 70k with additional source involved. Neat!
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.

GeneralRe: Wow, so this is cool, if you're a nerd like me Pin
CodeWraith28-Nov-19 0:46
MemberCodeWraith28-Nov-19 0:46 
GeneralRe: Wow, so this is cool, if you're a nerd like me Pin
honey the codewitch28-Nov-19 0:50
mvahoney the codewitch28-Nov-19 0:50 
GeneralRe: Wow, so this is cool, if you're a nerd like me Pin
CodeWraith28-Nov-19 1:29
MemberCodeWraith28-Nov-19 1:29 
GeneralRe: Wow, so this is cool, if you're a nerd like me Pin
glennPattonWork28-Nov-19 2:18
professionalglennPattonWork28-Nov-19 2:18 
GeneralSo I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 21:21
mvahoney the codewitch27-Nov-19 21:21 
GeneralRe: So I've decided to make my own programming language Pin
Super Lloyd27-Nov-19 21:31
MemberSuper Lloyd27-Nov-19 21:31 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 21:35
mvahoney the codewitch27-Nov-19 21:35 
GeneralRe: So I've decided to make my own programming language Pin
Jon McKee27-Nov-19 21:44
professionalJon McKee27-Nov-19 21:44 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 21:45
mvahoney the codewitch27-Nov-19 21:45 
GeneralRe: So I've decided to make my own programming language Pin
Jon McKee27-Nov-19 21:48
professionalJon McKee27-Nov-19 21:48 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 21:55
mvahoney the codewitch27-Nov-19 21:55 
GeneralRe: So I've decided to make my own programming language Pin
Jon McKee27-Nov-19 22:04
professionalJon McKee27-Nov-19 22:04 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 22:08
mvahoney the codewitch27-Nov-19 22:08 
GeneralRe: So I've decided to make my own programming language Pin
CPallini27-Nov-19 21:54
mveCPallini27-Nov-19 21:54 
GeneralRe: So I've decided to make my own programming language Pin
Sander Rossel27-Nov-19 22:26
professionalSander Rossel27-Nov-19 22:26 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 22:28
mvahoney the codewitch27-Nov-19 22:28 
PraiseRe: So I've decided to make my own programming language Pin
CPallini27-Nov-19 22:45
mveCPallini27-Nov-19 22:45 

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.