Click here to Skip to main content
15,885,137 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: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 3:28
professionalDavid O'Neil30-Jun-20 3:28 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 4:27
professionalDavid O'Neil30-Jun-20 4:27 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas30-Jun-20 7:23
professionalGreg Utas30-Jun-20 7:23 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 7:55
professionalDavid O'Neil30-Jun-20 7:55 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas30-Jun-20 8:15
professionalGreg Utas30-Jun-20 8:15 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 9:06
professionalDavid O'Neil30-Jun-20 9:06 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
kalberts30-Jun-20 10:18
kalberts30-Jun-20 10:18 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Greg Utas30-Jun-20 13:15
professionalGreg Utas30-Jun-20 13:15 
Interesting write-up.

I still sometimes write code in a way that reflects a lack of confidence in the compiler to optimize it. Caching a result or moving an invariant out of a loop, for example, when the compiler would probably do those itself. Sometimes the code would be clearer if simply written the inefficient way! But given what I've seen, there's no way I could write code that wouldn't benefit from optimization.

When it comes to GC, I do a better job not by replacing the GC algorithm, but by not using GC at all! But that's only because I'm interested in hard/soft real-time systems, where GC can seriously affect latency. However, I have a background form of GC that can recover what an application leaks. If a system is heavily loaded, the time allotted to this GC can be reduced until the system is no longer stressed.

GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
honey the codewitch29-Jun-20 15:51
mvahoney the codewitch29-Jun-20 15:51 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
honey the codewitch29-Jun-20 15:46
mvahoney the codewitch29-Jun-20 15:46 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil29-Jun-20 16:08
professionalDavid O'Neil29-Jun-20 16:08 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Richard MacCutchan29-Jun-20 21:43
mveRichard MacCutchan29-Jun-20 21:43 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 3:10
professionalDavid O'Neil30-Jun-20 3:10 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Richard MacCutchan30-Jun-20 3:26
mveRichard MacCutchan30-Jun-20 3:26 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Richard MacCutchan30-Jun-20 3:51
mveRichard MacCutchan30-Jun-20 3:51 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
David O'Neil30-Jun-20 4:24
professionalDavid O'Neil30-Jun-20 4:24 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Nelek29-Jun-20 9:56
protectorNelek29-Jun-20 9:56 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Sander Rossel29-Jun-20 11:36
professionalSander Rossel29-Jun-20 11:36 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Nelek29-Jun-20 12:08
protectorNelek29-Jun-20 12:08 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
honey the codewitch29-Jun-20 15:48
mvahoney the codewitch29-Jun-20 15:48 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Sander Rossel29-Jun-20 21:02
professionalSander Rossel29-Jun-20 21:02 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
Garth J Lancaster29-Jun-20 13:12
professionalGarth J Lancaster29-Jun-20 13:12 
GeneralRe: The most complicated P/Invoke call I've ever had to make from C# and it's a doozy Pin
honey the codewitch29-Jun-20 14:23
mvahoney the codewitch29-Jun-20 14:23 
GeneralThought of the Day Pin
OriginalGriff29-Jun-20 4:45
mveOriginalGriff29-Jun-20 4:45 
GeneralRe: Thought of the Day Pin
PIEBALDconsult29-Jun-20 5:00
mvePIEBALDconsult29-Jun-20 5:00 

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.