Click here to Skip to main content
15,891,863 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 2:59
mveRickZeeland28-Nov-19 2:59 
GeneralRe: So you like sandboxing in 1909? Pin
dandy7228-Nov-19 3:28
dandy7228-Nov-19 3:28 
GeneralRe: So you like sandboxing in 1909? Pin
maze329-Nov-19 0:14
professionalmaze329-Nov-19 0:14 
GeneralRe: So you like sandboxing in 1909? Pin
Paulo_JCG29-Nov-19 2:35
professionalPaulo_JCG29-Nov-19 2:35 
GeneralRe: So you like sandboxing in 1909? Pin
Stuart Dootson29-Nov-19 0:47
professionalStuart Dootson29-Nov-19 0:47 
GeneralRe: So you like sandboxing in 1909? Pin
agolddog29-Nov-19 3:35
agolddog29-Nov-19 3:35 
GeneralOi! Pompey 3! Pin
OriginalGriff27-Nov-19 23:07
mveOriginalGriff27-Nov-19 23:07 
GeneralWow, so this is cool, if you're a nerd like me Pin
honey the codewitch27-Nov-19 22:51
mvahoney the codewitch27-Nov-19 22: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:
C#
// 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
CodeWraith27-Nov-19 23:46
CodeWraith27-Nov-19 23:46 
GeneralRe: Wow, so this is cool, if you're a nerd like me Pin
honey the codewitch27-Nov-19 23:50
mvahoney the codewitch27-Nov-19 23:50 
GeneralRe: Wow, so this is cool, if you're a nerd like me Pin
CodeWraith28-Nov-19 0:29
CodeWraith28-Nov-19 0:29 
GeneralRe: Wow, so this is cool, if you're a nerd like me Pin
glennPattonWork328-Nov-19 1:18
professionalglennPattonWork328-Nov-19 1:18 
GeneralSo I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 20:21
mvahoney the codewitch27-Nov-19 20:21 
GeneralRe: So I've decided to make my own programming language Pin
Super Lloyd27-Nov-19 20:31
Super Lloyd27-Nov-19 20:31 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 20:35
mvahoney the codewitch27-Nov-19 20:35 
GeneralRe: So I've decided to make my own programming language Pin
Jon McKee27-Nov-19 20:44
professionalJon McKee27-Nov-19 20:44 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 20:45
mvahoney the codewitch27-Nov-19 20:45 
GeneralRe: So I've decided to make my own programming language Pin
Jon McKee27-Nov-19 20:48
professionalJon McKee27-Nov-19 20:48 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 20:55
mvahoney the codewitch27-Nov-19 20:55 
GeneralRe: So I've decided to make my own programming language Pin
Jon McKee27-Nov-19 21:04
professionalJon McKee27-Nov-19 21:04 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 21:08
mvahoney the codewitch27-Nov-19 21:08 
GeneralRe: So I've decided to make my own programming language Pin
CPallini27-Nov-19 20:54
mveCPallini27-Nov-19 20:54 
GeneralRe: So I've decided to make my own programming language Pin
Sander Rossel27-Nov-19 21:26
professionalSander Rossel27-Nov-19 21:26 
GeneralRe: So I've decided to make my own programming language Pin
honey the codewitch27-Nov-19 21:28
mvahoney the codewitch27-Nov-19 21:28 
PraiseRe: So I've decided to make my own programming language Pin
CPallini27-Nov-19 21:45
mveCPallini27-Nov-19 21: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.