Click here to Skip to main content
15,887,267 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: What does a 1972 paper have to do with the Single Responsibility Principle? Pin
David O'Neil2-Mar-22 12:01
professionalDavid O'Neil2-Mar-22 12:01 
NewsSoftware development coaching dos and don’ts Pin
Kent Sharkey2-Mar-22 7:46
staffKent Sharkey2-Mar-22 7:46 
NewsAttacks abusing programming APIs grew over 600% in 2021 Pin
Kent Sharkey2-Mar-22 7:46
staffKent Sharkey2-Mar-22 7:46 
NewsCrypto exchanges resist calls for ban on Russia transactions Pin
David O'Neil1-Mar-22 12:49
professionalDavid O'Neil1-Mar-22 12:49 
NewsWe should format code on demand Pin
Kent Sharkey1-Mar-22 11:01
staffKent Sharkey1-Mar-22 11:01 
GeneralRe: We should format code on demand Pin
David O'Neil1-Mar-22 12:53
professionalDavid O'Neil1-Mar-22 12:53 
GeneralRe: We should format code on demand Pin
Greg Utas1-Mar-22 12:54
professionalGreg Utas1-Mar-22 12:54 
GeneralRe: We should format code on demand Pin
trønderen1-Mar-22 13:06
trønderen1-Mar-22 13:06 
Why not take it a step further, ALGOL 68 style, defined in abstract tokens. Each implementation may define concrete representations of abstract tokens, e.g. German language keywords. (That has been done!)

The storage format could be a parse tree that could be unparsed at display time, so that block delimiters could be displayed as {} or as BEGIN-END, the datatypes as INT or int or integer, as float or REAL or single, statement ends as newline or with a semicolon. Editing operations could operate directly on the parse tree, rather than on a textualized linear representation that must be parsed again.

If the compiler was integrated into the IDE, the parsing would already be done, so it would save a significant amount of time. And it might be more or less language independent.

I never dug into the gcc suite, so I do not know how much of external representation is lost when you get down to the language independent levels. I guess it would be possible to augment the structures with tags making it possible to reconstruct the source code. Maybe so much of this would be rule based that you could (re?)construct it into a different source language than the original one. Maybe you still need tagging for higher level source construct, but the tags may be general, not tied to one specific source language.

An intermediate language editor that can display the code as Pascal source, C#, Java or C++, or even Fortran IV or Cobol ... That would be really fascinating. Maybe some gcc guru could create something based on that suite's intermediate formats? Or maybe one could go into the Roslyn suite and do something, probably based on an earlier stage than MSIL, but still after tokenizing and parsing, to make it somewhat language independent.

I think this would be far better than sticking to a linear text representation of program source code.
GeneralRe: We should format code on demand Pin
Oliver Gramberg17-Mar-22 0:05
Oliver Gramberg17-Mar-22 0:05 
GeneralRe: We should format code on demand Pin
Eddy Vluggen2-Mar-22 3:09
professionalEddy Vluggen2-Mar-22 3:09 
GeneralRe: We should format code on demand Pin
trønderen2-Mar-22 14:05
trønderen2-Mar-22 14:05 
GeneralRe: We should format code on demand Pin
Eddy Vluggen2-Mar-22 14:25
professionalEddy Vluggen2-Mar-22 14:25 
GeneralRe: We should format code on demand Pin
Dan Neely3-Mar-22 3:06
Dan Neely3-Mar-22 3:06 
GeneralRe: We should format code on demand Pin
trønderen3-Mar-22 8:06
trønderen3-Mar-22 8:06 
GeneralRe: We should format code on demand Pin
Marc Clifton2-Mar-22 3:30
mvaMarc Clifton2-Mar-22 3:30 
GeneralRe: We should format code on demand Pin
trønderen2-Mar-22 13:55
trønderen2-Mar-22 13:55 
GeneralRe: We should format code on demand Pin
obermd2-Mar-22 3:53
obermd2-Mar-22 3:53 
GeneralRe: We should format code on demand Pin
r_hyde2-Mar-22 9:59
r_hyde2-Mar-22 9:59 
GeneralRe: We should format code on demand Pin
trønderen2-Mar-22 14:11
trønderen2-Mar-22 14:11 
NewsMicrosoft identifies and mitigates new malware targeting Ukraine “within 3 hours” Pin
Kent Sharkey1-Mar-22 11:01
staffKent Sharkey1-Mar-22 11:01 
NewsWhat is developer productivity and how to measure it? Pin
Kent Sharkey1-Mar-22 11:01
staffKent Sharkey1-Mar-22 11:01 
GeneralRe: What is developer productivity and how to measure it? Pin
Dan Neely2-Mar-22 3:23
Dan Neely2-Mar-22 3:23 
GeneralRe: What is developer productivity and how to measure it? Pin
Marc Clifton2-Mar-22 3:33
mvaMarc Clifton2-Mar-22 3:33 
GeneralRe: What is developer productivity and how to measure it? PinPopular
Dan Neely2-Mar-22 5:48
Dan Neely2-Mar-22 5:48 
GeneralRe: What is developer productivity and how to measure it? Pin
#realJSOP2-Mar-22 8:23
mve#realJSOP2-Mar-22 8:23 

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.