Click here to Skip to main content
15,886,919 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: What about using AI to optimize compiler code generation? Pin
megaadam17-Oct-23 1:47
professionalmegaadam17-Oct-23 1:47 
GeneralRe: What about using AI to optimize compiler code generation? Pin
Daniel Pfeffer17-Oct-23 2:43
professionalDaniel Pfeffer17-Oct-23 2:43 
GeneralRe: What about using AI to optimize compiler code generation? Pin
honey the codewitch17-Oct-23 3:01
mvahoney the codewitch17-Oct-23 3:01 
GeneralRe: What about using AI to optimize compiler code generation? Pin
jschell17-Oct-23 6:17
jschell17-Oct-23 6:17 
GeneralRe: What about using AI to optimize compiler code generation? Pin
honey the codewitch17-Oct-23 6:26
mvahoney the codewitch17-Oct-23 6:26 
GeneralRe: What about using AI to optimize compiler code generation? Pin
trønderen17-Oct-23 7:48
trønderen17-Oct-23 7:48 
GeneralRe: What about using AI to optimize compiler code generation? Pin
jschell18-Oct-23 5:43
jschell18-Oct-23 5:43 
GeneralRe: What about using AI to optimize compiler code generation? Pin
trønderen18-Oct-23 12:41
trønderen18-Oct-23 12:41 
jschell wrote:
'micro optimization'.
Happens when a developer comes across a bit of code which they 'know' can be written to execute more efficientl
I guess that in 99% of these cases, optimizing is 'real' and does save time - except that it happened before your developers got a hand of it. They moved invariants out of loops. They removed dead code. They factored out common expressions to be calculated once.

But the compiler already did all of this. The efforts of your developers made no change to that. You are comparing optimized code (by the compiler) to optimized code (by your developers). Take that as a proof: Compilers do as good a job at compiling as a human. (And often better, but you do not notice it.)
1. Most of my time is spent designing and writing code. Hardware can't speed that up.
For the intellectual part, that is mostly true. In my early student days, handing in card stacks to be compiled and run, receiving printouts 24-48 hours later, the hardware definitely affected our mental process of software development. Even when we later got a VAX750, and our student problems took half an hour to compile, it did affect our way of working. Today, small scale system development is usually different - it depends on the setup in in your shop. A few years ago, my employer invested in a new powerful testbed: Earlier, running all the regression tests took a week: We started it Monday morning, having all the regressions reported the next Monday morning. Or rather: We used to start in Friday when we left for the weekend, giving it nine days. With the new test bench, we started the complete regression test suite Friday when we left, and it was completed Monday morning, two days later. That most certainly did affect our development work!
2. Compiling. Certainly never seen a compile go from 1 hour to 1 minute regardless of hardware. If it goes from 60 minutes to 50 minutes (more than 1%) I would not even notice.
Well, that 60 times speedup you are calling for usually demands more than one hardware upgrade. But through my career, I have seen compile times drop by a factor far larger than 60! Maybe not in a single step, but not that many. If you haven't seen a speedup in compile times, either you haven't been in software for very long, or you are suppressing the memory of earlier experiences.
3. Debugging. Hardware can't help with that.
In execution speed: Certainly not. In lots of other aspects: Of course it can! The ability to trap to the debugger on special conditions can be very helpful, and is far more developed in today's processors than in those a decade or two ago.

For the problems you mention: If the real problem lies outside your scope, you are most certainly right: Trying to fix them within your scope is futile. That should't paralyze you to make you unable to solve the problems within your scope.
GeneralRe: What about using AI to optimize compiler code generation? Pin
jschell19-Oct-23 5:00
jschell19-Oct-23 5:00 
GeneralRe: What about using AI to optimize compiler code generation? Pin
trønderen17-Oct-23 7:27
trønderen17-Oct-23 7:27 
GeneralRe: What about using AI to optimize compiler code generation? Pin
jmaida17-Oct-23 11:59
jmaida17-Oct-23 11:59 
Generalworldle 633 1/6 Pin
jmaida16-Oct-23 16:44
jmaida16-Oct-23 16:44 
GeneralCode telepathy Pin
honey the codewitch16-Oct-23 15:53
mvahoney the codewitch16-Oct-23 15:53 
GeneralRe: Code telepathy Pin
David O'Neil16-Oct-23 16:56
professionalDavid O'Neil16-Oct-23 16:56 
GeneralRe: Code telepathy Pin
honey the codewitch16-Oct-23 17:16
mvahoney the codewitch16-Oct-23 17:16 
GeneralRe: Code telepathy Pin
jmaida16-Oct-23 17:06
jmaida16-Oct-23 17:06 
GeneralRe: Code telepathy Pin
honey the codewitch16-Oct-23 17:13
mvahoney the codewitch16-Oct-23 17:13 
GeneralRe: Code telepathy Pin
jmaida16-Oct-23 19:00
jmaida16-Oct-23 19:00 
GeneralRe: Code telepathy Pin
englebart18-Oct-23 2:20
professionalenglebart18-Oct-23 2:20 
GeneralWordle 850 Pin
StarNamer@work16-Oct-23 13:05
professionalStarNamer@work16-Oct-23 13:05 
GeneralRe: Wordle 850 Pin
Amarnath S16-Oct-23 14:27
professionalAmarnath S16-Oct-23 14:27 
GeneralRe: Wordle 850 Pin
GKP199216-Oct-23 18:14
professionalGKP199216-Oct-23 18:14 
GeneralRe: Wordle 850 Pin
Shane010316-Oct-23 18:44
Shane010316-Oct-23 18:44 
GeneralRe: Wordle 850 Pin
GuyThiebaut16-Oct-23 19:30
professionalGuyThiebaut16-Oct-23 19:30 
GeneralRe: Wordle 850 Pin
Sandeep Mewara16-Oct-23 20:13
mveSandeep Mewara16-Oct-23 20:13 

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.