Click here to Skip to main content
15,879,326 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: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 4:05
professionalGreg Utas20-Mar-20 4:05 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace20-Mar-20 5:13
Mark_Wallace20-Mar-20 5:13 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 5:29
professionalGreg Utas20-Mar-20 5:29 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
kalberts20-Mar-20 6:30
kalberts20-Mar-20 6:30 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 7:16
professionalGreg Utas20-Mar-20 7:16 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
kalberts20-Mar-20 7:43
kalberts20-Mar-20 7:43 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Joe Woodbury20-Mar-20 8:52
professionalJoe Woodbury20-Mar-20 8:52 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
kalberts20-Mar-20 6:11
kalberts20-Mar-20 6:11 
The possible memory leaks (you gave a count of 109 in your first post) is an inidication of why I have come to favor automatic garbage collection. You do not mention dangling pointers and double freeing - maybe your code is so disciplined that you don't experience it; it can certainly create nasty bugs.

Many years ago, we had a basic General Object Dispenser, GOD, and whe didn't free objects explicitly but send them home to GOD. Smile | :)
(and before you ask: I created GOD)

divide by zero: deliberate, to test the ability to handle SIGFPE
In my student days, the Computing Center newsletter brought an article about the shocking number of divide by zero faults on the great Univac mainframe, it was something like a million a day. The next issure brought a note from the Mechanical Engineering dept: Some of their matrix operations most certainly did divisions by matrix elements with value zero (i.e. uninitialized value), but the following operations would never use those partial results. Identifying which values were not relevant and skipping the divide for those would be far more complex and time consuming than using a tight loop over all elements and simply accept the divide faults.

So the essential question is: Can you flag this code in a/the faults database as intentional, so that you won't see it reported the next time aound? (I hate cluttering up code with thousands of lint directives! The database approach is far better - but far more complex/expensive.)

expression will always evaluate to true
Although the detail explanation is different: Embedded code in particular is overcrowded with "while (1)" (I tried to introduce "for ever", "ever" being a #define expanding to "(;;)", but the respones was certainly negative. Real Programmers write "while (1)"!)

I suspect that code checkers treat "while (1)" as a special case that is not reported. If not, being able to flag it as intentional is an absolute must!
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 6:33
professionalGreg Utas20-Mar-20 6:33 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
ZurdoDev20-Mar-20 6:12
professionalZurdoDev20-Mar-20 6:12 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 6:17
professionalGreg Utas20-Mar-20 6:17 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
ZurdoDev20-Mar-20 6:19
professionalZurdoDev20-Mar-20 6:19 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Nelek20-Mar-20 8:48
protectorNelek20-Mar-20 8:48 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
ZurdoDev20-Mar-20 6:10
professionalZurdoDev20-Mar-20 6:10 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas20-Mar-20 6:19
professionalGreg Utas20-Mar-20 6:19 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Kent Sharkey20-Mar-20 6:49
staffKent Sharkey20-Mar-20 6:49 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Joe Woodbury20-Mar-20 8:46
professionalJoe Woodbury20-Mar-20 8:46 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas23-Mar-20 3:44
professionalGreg Utas23-Mar-20 3:44 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace23-Mar-20 6:57
Mark_Wallace23-Mar-20 6:57 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Greg Utas23-Mar-20 7:05
professionalGreg Utas23-Mar-20 7:05 
GeneralRe: DeepCode brings AI-powered code review to C and C++ Pin
Mark_Wallace23-Mar-20 7:17
Mark_Wallace23-Mar-20 7:17 
NewsIT security report finds 97% have suspicious network activity Pin
Kent Sharkey19-Mar-20 10:45
staffKent Sharkey19-Mar-20 10:45 
GeneralRe: IT security report finds 97% have suspicious network activity Pin
Nelek19-Mar-20 11:37
protectorNelek19-Mar-20 11:37 
GeneralRe: IT security report finds 97% have suspicious network activity Pin
Mark_Wallace19-Mar-20 20:18
Mark_Wallace19-Mar-20 20:18 
GeneralRe: IT security report finds 97% have suspicious network activity Pin
Bohdan Stupak21-Mar-20 5:55
professionalBohdan Stupak21-Mar-20 5:55 

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.