Click here to Skip to main content
15,900,569 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.

 
AnswerRe: Not a programming question, but... Pin
Mark_Wallace13-Jan-20 1:54
Mark_Wallace13-Jan-20 1:54 
AnswerRe: Not a programming question, but... Pin
theoldfool13-Jan-20 2:40
professionaltheoldfool13-Jan-20 2:40 
GeneralRe: Not a programming question, but... Pin
lopatir13-Jan-20 3:32
lopatir13-Jan-20 3:32 
GeneralRe: Not a programming question, but... Pin
dan!sh 13-Jan-20 3:18
professional dan!sh 13-Jan-20 3:18 
GeneralRe: Not a programming question, but... Pin
Sander Rossel14-Jan-20 3:32
professionalSander Rossel14-Jan-20 3:32 
AnswerRe: Not a programming question, but... Pin
Dominic Burford13-Jan-20 3:50
professionalDominic Burford13-Jan-20 3:50 
AnswerRe: Not a programming question, but... Pin
BryanFazekas15-Jan-20 0:44
BryanFazekas15-Jan-20 0:44 
GeneralOh no (Update: OH YEAH in my best kool aid man voice) Pin
honey the codewitch13-Jan-20 0:09
mvahoney the codewitch13-Jan-20 0:09 
I recently rewrote the hand rolled Slang parser to make it better.

That was successful. It parses all my test material, and faster than the two previous parsers.

However, I then began reintegrating it back into projects like Deslang and Parsley.

So far so good, except wait, this is curious.

Deslang is no longer able to resolve my LookAheadEnumerator code! (Not even part of the parsing process!)

Funny thing, it can't determine the runtime type for IEnumerator<t> (duh! it has no runtime type - it's an uninstantiated generic!)

I'm not confused as to why it doesn't work. What blows my mind is that it worked before.

I have no idea how. It shouldn't have, as far as I can tell.

And yet, I know it did, because if it didn't, Parsley couldn't even parse word one. LookAheadEnumerator sits right next to its black little heart.

I still have the old codebase, but it's non-trivial to find out why Deslang worked in this case. So much easier to trap error conditions than success

Update: I fixed it all and figured out the old magic. I just convinced myself that magic wouldn't work, but yes Ramona, you can call
C#
typeof(IEnumerator<>).GetMembers()

and get a meaningful result

Update 2: in what was one of may the most hair raising migrations i've encountered since i left the professional fold, I've migrated all of BuildPack to use the new slang parser.

19 projects, all building successfully (which requires slang to work or these build tools error!)

so yay. If this blew up i don't know what i'd do.
Steve Wozniak is the only thing at Apple that isn't evil.


modified 13-Jan-20 7:34am.

GeneralRe: Oh no Pin
OriginalGriff13-Jan-20 0:11
mveOriginalGriff13-Jan-20 0:11 
GeneralRe: Oh no Pin
honey the codewitch13-Jan-20 1:11
mvahoney the codewitch13-Jan-20 1:11 
GeneralRe: Oh no Pin
Mark_Wallace13-Jan-20 0:13
Mark_Wallace13-Jan-20 0:13 
GeneralRe: Oh no Pin
honey the codewitch13-Jan-20 1:10
mvahoney the codewitch13-Jan-20 1:10 
GeneralThere are times when I hate updaters. Pin
OriginalGriff12-Jan-20 23:39
mveOriginalGriff12-Jan-20 23:39 
GeneralRe: There are times when I hate updaters. PinPopular
phil.o12-Jan-20 23:45
professionalphil.o12-Jan-20 23:45 
GeneralRe: There are times when I hate updaters. Pin
Mark_Wallace13-Jan-20 0:19
Mark_Wallace13-Jan-20 0:19 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 1:40
professionalEddy Vluggen13-Jan-20 1:40 
GeneralRe: There are times when I hate updaters. Pin
OriginalGriff13-Jan-20 1:52
mveOriginalGriff13-Jan-20 1:52 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 2:04
professionalEddy Vluggen13-Jan-20 2:04 
GeneralRe: There are times when I hate updaters. Pin
musefan13-Jan-20 2:47
musefan13-Jan-20 2:47 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 4:46
professionalEddy Vluggen13-Jan-20 4:46 
GeneralRe: There are times when I hate updaters. Pin
kalberts13-Jan-20 22:21
kalberts13-Jan-20 22:21 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen14-Jan-20 1:26
professionalEddy Vluggen14-Jan-20 1:26 
GeneralRe: There are times when I hate updaters. Pin
kalberts14-Jan-20 3:02
kalberts14-Jan-20 3:02 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen14-Jan-20 3:10
professionalEddy Vluggen14-Jan-20 3:10 
GeneralRe: There are times when I hate updaters. Pin
dandy7213-Jan-20 3:59
dandy7213-Jan-20 3:59 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   489 votes