Click here to Skip to main content
15,121,230 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: ZIP common root fantasy Pin
Mircea Neacsu23-Oct-21 12:10
mvaMircea Neacsu23-Oct-21 12:10 
GeneralRe: ZIP common root fantasy Pin
PaltryProgrammer23-Oct-21 13:58
MemberPaltryProgrammer23-Oct-21 13:58 
GeneralRe: ZIP common root fantasy Pin
RickZeeland23-Oct-21 20:46
mveRickZeeland23-Oct-21 20:46 
GeneralRe: ZIP common root fantasy Pin
TX643024-Oct-21 2:52
MemberTX643024-Oct-21 2:52 
GeneralRe: ZIP common root fantasy Pin
RickZeeland24-Oct-21 3:06
mveRickZeeland24-Oct-21 3:06 
GeneralRe: ZIP common root fantasy Pin
Fueled By Decaff25-Oct-21 2:28
MemberFueled By Decaff25-Oct-21 2:28 
GeneralRe: ZIP common root fantasy Pin
englebart25-Oct-21 8:05
professionalenglebart25-Oct-21 8:05 
PraiseI love when that happens! Pin
honey the codewitch23-Oct-21 8:32
mvahoney the codewitch23-Oct-21 8:32 
I was making a state removal method that would turn a state machine into a regular expression.

In the process I needed to do a subtask, to wit, I needed to set up a quick and dirty finite automaton engine to hold the states.

Rather than make a bunch of objects/states that point to other objects/states using dictionaries, I simply stored all the dictionary transitions as a single tuple (int from, int to, string input) in a flat list.

The result is smaller, and allows me to do complicated queries on the relationships between the states (now represented as simple integers) very simply.

In fact, the result is so good, I may be able to rewrite a more compact and efficient state engine using this technique. And it was originally just intended to be "just enough of a thing" to be scaffolding for my overarching algorithm to work with.

I'm elated. Even if the overarching algorithm doesn't work, it means far more compact and efficient code potentially in terms of the finite automata code it works with.

Big Grin | :-D
Real programmers use butterflies


modified 23-Oct-21 14:03pm.

GeneralRe: I love when that happens! Pin
PIEBALDconsult23-Oct-21 8:59
professionalPIEBALDconsult23-Oct-21 8:59 
GeneralRe: I love when that happens! Pin
honey the codewitch23-Oct-21 9:01
mvahoney the codewitch23-Oct-21 9:01 
GeneralRe: I love when that happens! Pin
Richard Andrew x6423-Oct-21 9:00
professionalRichard Andrew x6423-Oct-21 9:00 
GeneralRe: I love when that happens! Pin
honey the codewitch23-Oct-21 9:02
mvahoney the codewitch23-Oct-21 9:02 
GeneralRe: I love when that happens! Pin
Nelek23-Oct-21 10:18
protectorNelek23-Oct-21 10:18 
GeneralRe: I love when that happens! Pin
jschell24-Oct-21 8:03
Memberjschell24-Oct-21 8:03 
GeneralRe: I love when that happens! Pin
honey the codewitch24-Oct-21 8:23
mvahoney the codewitch24-Oct-21 8:23 
GeneralRe: I love when that happens! Pin
englebart25-Oct-21 8:19
professionalenglebart25-Oct-21 8:19 
GeneralRe: I love when that happens! Pin
honey the codewitch25-Oct-21 8:25
mvahoney the codewitch25-Oct-21 8:25 
GeneralMy takeaway from Arden's Theorem. Pin
honey the codewitch22-Oct-21 8:44
mvahoney the codewitch22-Oct-21 8:44 
GeneralRe: My takeaway from Arden's Theorem. Pin
PIEBALDconsult22-Oct-21 9:04
professionalPIEBALDconsult22-Oct-21 9:04 
GeneralRe: My takeaway from Arden's Theorem. Pin
RickZeeland22-Oct-21 10:00
mveRickZeeland22-Oct-21 10:00 
GeneralRe: My takeaway from Arden's Theorem. Pin
OriginalGriff22-Oct-21 10:16
mveOriginalGriff22-Oct-21 10:16 
GeneralRe: My takeaway from Arden's Theorem. Pin
RickZeeland22-Oct-21 10:19
mveRickZeeland22-Oct-21 10:19 
GeneralRe: My takeaway from Arden's Theorem. Pin
Greg Utas22-Oct-21 11:06
mvaGreg Utas22-Oct-21 11:06 
GeneralRe: My takeaway from Arden's Theorem. Pin
Cp-Coder22-Oct-21 12:23
MemberCp-Coder22-Oct-21 12:23 
GeneralRe: My takeaway from Arden's Theorem. Pin
RickZeeland22-Oct-21 20:15
mveRickZeeland22-Oct-21 20:15 

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.