Click here to Skip to main content
15,906,708 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
honey the codewitch14-May-24 14:31
mvahoney the codewitch14-May-24 14:31 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 15:02
trønderen14-May-24 15:02 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 15:03
mvahoney the codewitch14-May-24 15:03 
GeneralRe: There are many gotos, but these ones are mine Pin
trønderen14-May-24 17:41
trønderen14-May-24 17:41 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 18:06
mvahoney the codewitch14-May-24 18:06 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 18:09
mvahoney the codewitch14-May-24 18:09 
GeneralRe: There are many gotos, but these ones are mine Pin
jochance13-May-24 10:02
jochance13-May-24 10:02 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 10:28
mvahoney the codewitch13-May-24 10:28 
There is one issue with that.

The compiled ones can be augmented in a way that the table driven ones cannot.

For example, I wrote an embedded JSON pull parser in C++. I used compiled DFA code, and then I parsed floats, ints, and bools out of the stream *as* I was lexing, making the API both easier to use and marginally more performant because you didn't have to get the string back and then reexamine it in order to call atoi() or whatever. It was a simple little surgery on the generated code, with excellent results.

I admit this isn't the most common case out there, but I have used this technique several times.

Edited to add: It's also easier in practice to debug and step through a generated lexer than it is a table driven lexer. And with my Visual FA project, it produces images of directed graphs that map one to one to the labels/jump points in the code. q0: maps to the state q0 in the graph. It makes it really easy to see what it's doing, in terms of documenting it.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: There are many gotos, but these ones are mine Pin
klinkenbecker13-May-24 2:23
klinkenbecker13-May-24 2:23 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 3:49
mvahoney the codewitch13-May-24 3:49 
GeneralRe: There are many gotos, but these ones are mine Pin
klinkenbecker13-May-24 4:33
klinkenbecker13-May-24 4:33 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 4:34
mvahoney the codewitch13-May-24 4:34 
GeneralRe: There are many gotos, but these ones are mine Pin
klinkenbecker13-May-24 4:49
klinkenbecker13-May-24 4:49 
GeneralRe: There are many gotos, but these ones are mine Pin
TNCaver13-May-24 3:10
TNCaver13-May-24 3:10 
GeneralRe: There are many gotos, but these ones are mine Pin
dandy7213-May-24 7:27
dandy7213-May-24 7:27 
GeneralRe: There are many gotos, but these ones are mine Pin
glennPattonWork313-May-24 8:25
professionalglennPattonWork313-May-24 8:25 
AnswerRe: There are many gotos, but these ones are mine Pin
Payton Byrd 202313-May-24 9:16
Payton Byrd 202313-May-24 9:16 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 9:36
mvahoney the codewitch13-May-24 9:36 
GeneralRe: There are many gotos, but these ones are mine Pin
Payton Byrd 202313-May-24 9:51
Payton Byrd 202313-May-24 9:51 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch13-May-24 10:08
mvahoney the codewitch13-May-24 10:08 
GeneralRe: There are many gotos, but these ones are mine Pin
jschell14-May-24 13:33
jschell14-May-24 13:33 
GeneralRe: There are many gotos, but these ones are mine Pin
honey the codewitch14-May-24 13:36
mvahoney the codewitch14-May-24 13:36 
NewsSite slowness Pin
Chris Maunder11-May-24 6:58
cofounderChris Maunder11-May-24 6:58 
GeneralRe: Site slowness Pin
RickZeeland11-May-24 8:20
mveRickZeeland11-May-24 8:20 
GeneralRe: Site slowness Pin
Chris Maunder11-May-24 8:32
cofounderChris Maunder11-May-24 8:32 

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.