Click here to Skip to main content
15,904,153 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: There are many gotos, but these ones are mine Pin
Ravi Bhavnani12-May-24 6:05
professionalRavi Bhavnani12-May-24 6:05 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch12-May-24 8:37
mvahoney the codewitch12-May-24 8:37 
GeneralRe: There are many gotos, but these ones are mine Pin
jmaida12-May-24 14:46
jmaida12-May-24 14:46 
GeneralRe: There are many gotos, but these ones are mine Pin
Daniel Will13-May-24 17:09
Daniel Will13-May-24 17:09 
GeneralRe: There are many gotos, but these ones are mine Pin
Amarnath S11-May-24 17:02
professionalAmarnath S11-May-24 17:02 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen11-May-24 17:40
trønderen11-May-24 17:40 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch11-May-24 18:01
mvahoney the codewitch11-May-24 18:01 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen12-May-24 8:15
trønderen12-May-24 8:15 
Compilers will generate jump statements. I don't mind, as long as I don't have to trace them, and maintain the code at that level.

Other generators may generate source format goto statements. I don't mind, as long as I don't have to trace them, and maintain the code at that level.

If the gotos and labels you presented are created by a generator, and you never will have to trace them and maintain the code at that level, I do not consider them "your" gotos. Not any more than I consider the conditional and unconditional jumps generated from your source code to be "your" jmp instructions.

I'd be curious to also see your input to Visual FA to generate this code, as well as the table driven code generated by Visual FA!

If you have any reason at all to relate to the generated code: Trading readability and maintainability for "slightly faster code" is generally a bad move. Besides: From the snippet you presented, I am surprised that a table driven variety generated from the same input can be even "slightly" slower. I really wonder what that generator generates! (That is why I'd like to see it.)

I have never been using Visual FA, but from what I gather from a quick net search, it looks like you are not at all using SM as a development too. You are just generating code for different virtual machines, one with a state oriented execution model, one with a C/C++ oriented execution model. A comparison between them is like compiling some (arbitrary language) source code for x64 and for AArch64 and observing that the x64 is "slightly faster".

To me, the SM table is not the result delivered by a generator - it is a modeling tool for the human developer. The driver is typically a score code statements, independent of the model (a.k.a. transition table). I certainly agree that an editor tailored to transition table editing is a great thing to have. I have tried to maintain a compile time initialized C++ array for a transition table, using Np++. Even for trivial SMs, that is almost impossible (unless you just copy the table from e.g. a standard document and it will be carved in stone).

Religious freedom is the freedom to say that two plus two make five.

GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch12-May-24 8:28
mvahoney the codewitch12-May-24 8:28 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch12-May-24 13:56
mvahoney the codewitch12-May-24 13:56 
GeneralRe: There are many gotos, but these ones are mine Pin
den2k8812-May-24 23:08
professionalden2k8812-May-24 23:08 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen13-May-24 0:17
trønderen13-May-24 0:17 
GeneralRe: There are many gotos, but these ones are mine Pin
giulicard13-May-24 6:59
giulicard13-May-24 6:59 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 9:21
mvahoney the codewitch13-May-24 9:21 
GeneralRe: There are many gotos, but these ones are mine Pin
giulicard13-May-24 10:03
giulicard13-May-24 10:03 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 10:04
mvahoney the codewitch13-May-24 10:04 
GeneralRe: There are many gotos, but these ones are mine Pin
giulicard13-May-24 10:07
giulicard13-May-24 10:07 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 5:10
trønderen14-May-24 5:10 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 6:21
mvahoney the codewitch14-May-24 6:21 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 13:12
trønderen14-May-24 13:12 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 13:14
mvahoney the codewitch14-May-24 13:14 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 14:12
trønderen14-May-24 14:12 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 14:13
mvahoney the codewitch14-May-24 14:13 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 14:25
trønderen14-May-24 14:25 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 14:31
mvahoney the codewitch14-May-24 14:31 

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.