Click here to Skip to main content
15,888,984 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: Unpopular opinions: LINQ Pin
Super Lloyd8-Feb-21 13:32
Super Lloyd8-Feb-21 13:32 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 14:21
mvahoney the codewitch8-Feb-21 14:21 
GeneralRe: Unpopular opinions: LINQ Pin
Super Lloyd8-Feb-21 14:31
Super Lloyd8-Feb-21 14:31 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 14:41
mvahoney the codewitch8-Feb-21 14:41 
GeneralRe: Unpopular opinions: LINQ Pin
Kiriander8-Feb-21 20:26
Kiriander8-Feb-21 20:26 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 1:06
mvahoney the codewitch9-Feb-21 1:06 
GeneralRe: Unpopular opinions: LINQ Pin
Kiriander23-Feb-21 22:52
Kiriander23-Feb-21 22:52 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch24-Feb-21 2:00
mvahoney the codewitch24-Feb-21 2:00 
It's not so much about the code generation per se, but the type and amount of iterations you'll be doing.

Consider the following source file that generates an LR table. The code is ugly because the algo is ugly. There's not much way around it. See the accompanying article for an explanation of the algo if you want:
Downloads: GLR Parsing in C#: How to Use The Most Powerful Parsing Algorithm Known[^]

The point in showing you this is the iteration code to generate things like the LRFA state graph.

When I say generate above, I'm not talking about code generation, but simply computation of tables.

Trying to do those things with LINQ - massive recursive iteration is just a mug's game.
Real programmers use butterflies


modified 24-Feb-21 8:22am.

GeneralRe: Unpopular opinions: LINQ Pin
Kiriander2-Mar-21 4:50
Kiriander2-Mar-21 4:50 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet8-Feb-21 22:26
professionalafigegoznaet8-Feb-21 22:26 
GeneralRe: Unpopular opinions: LINQ Pin
Peter Adam8-Feb-21 23:18
professionalPeter Adam8-Feb-21 23:18 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:28
MeziLu9-Feb-21 2:28 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:29
mvahoney the codewitch9-Feb-21 2:29 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:39
MeziLu9-Feb-21 2:39 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:47
mvahoney the codewitch9-Feb-21 2:47 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:56
MeziLu9-Feb-21 2:56 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 3:05
MeziLu9-Feb-21 3:05 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:52
MeziLu9-Feb-21 2:52 
GeneralRe: Unpopular opinions: LINQ Pin
Member 140926059-Feb-21 2:31
Member 140926059-Feb-21 2:31 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:39
mvahoney the codewitch9-Feb-21 2:39 
GeneralRe: Unpopular opinions: LINQ Pin
obermd9-Feb-21 3:08
obermd9-Feb-21 3:08 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu10-Feb-21 13:55
MeziLu10-Feb-21 13:55 
GeneralRe: Unpopular opinions: LINQ Pin
TnTinMn9-Feb-21 3:43
TnTinMn9-Feb-21 3:43 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 3:54
mvahoney the codewitch9-Feb-21 3:54 
GeneralRe: Unpopular opinions: LINQ Pin
Bruce Greene9-Feb-21 5:54
Bruce Greene9-Feb-21 5:54 

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.