Click here to Skip to main content
15,920,603 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: Apple slips in sales ranking - again. Pin
BillWoodruff16-Jul-21 22:23
professionalBillWoodruff16-Jul-21 22:23 
GeneralRe: Apple slips in sales ranking - again. Pin
abmv18-Jul-21 8:40
professionalabmv18-Jul-21 8:40 
GeneralRe: Apple slips in sales ranking - again. Pin
OriginalGriff18-Jul-21 8:44
mveOriginalGriff18-Jul-21 8:44 
GeneralTypescript optimisation benchmarks Pin
Chris Maunder16-Jul-21 6:17
cofounderChris Maunder16-Jul-21 6:17 
GeneralRe: Typescript optimisation benchmarks Pin
PIEBALDconsult16-Jul-21 7:56
mvePIEBALDconsult16-Jul-21 7:56 
GeneralRe: Typescript optimisation benchmarks Pin
Chris Maunder16-Jul-21 10:32
cofounderChris Maunder16-Jul-21 10:32 
GeneralRe: Typescript optimisation benchmarks Pin
PIEBALDconsult16-Jul-21 11:35
mvePIEBALDconsult16-Jul-21 11:35 
GeneralRe: Typescript optimisation benchmarks Pin
Chris Maunder16-Jul-21 16:13
cofounderChris Maunder16-Jul-21 16:13 
PIEBALDconsult wrote:
But I don't see how it can do that at compile time

There will be some cases when it can at compile time:
TypeScript
let arr: number= [ 1,2,3 ];
for (let x of arr) {
   ...
}

for this it's pretty clear cut. For other scenarios, some runtime pre-checks, then choose the fastest implementation that works.

Anyway, I'm way out of my depth on this stuff but it does seem odd we're still having the "never use foreach" directives.
cheers
Chris Maunder

GeneralRe: Typescript optimisation benchmarks Pin
Gary R. Wheeler16-Jul-21 10:37
Gary R. Wheeler16-Jul-21 10:37 
GeneralRe: Typescript optimisation benchmarks Pin
PIEBALDconsult16-Jul-21 11:25
mvePIEBALDconsult16-Jul-21 11:25 
GeneralRe: Typescript optimisation benchmarks Pin
Gary R. Wheeler16-Jul-21 13:43
Gary R. Wheeler16-Jul-21 13:43 
GeneralRe: Typescript optimisation benchmarks Pin
honey the codewitch16-Jul-21 13:00
mvahoney the codewitch16-Jul-21 13:00 
GeneralRe: Typescript optimisation benchmarks Pin
Jacquers16-Jul-21 20:58
Jacquers16-Jul-21 20:58 
GeneralRe: Typescript optimisation benchmarks Pin
BillWoodruff16-Jul-21 22:31
professionalBillWoodruff16-Jul-21 22:31 
GeneralRe: Typescript optimisation benchmarks Pin
theoldfool17-Jul-21 0:47
professionaltheoldfool17-Jul-21 0:47 
GeneralRe: Typescript optimization benchmarks Pin
BillWoodruff17-Jul-21 2:12
professionalBillWoodruff17-Jul-21 2:12 
GeneralRe: Typescript optimisation benchmarks Pin
Gerry Schmitz17-Jul-21 6:35
mveGerry Schmitz17-Jul-21 6:35 
GeneralThought of the Day Pin
OriginalGriff16-Jul-21 4:21
mveOriginalGriff16-Jul-21 4:21 
GeneralRe: Thought of the Day Pin
Richard Deeming16-Jul-21 4:56
mveRichard Deeming16-Jul-21 4:56 
GeneralRe: Thought of the Day Pin
PIEBALDconsult16-Jul-21 4:58
mvePIEBALDconsult16-Jul-21 4:58 
GeneralRe: Thought of the Day Pin
OriginalGriff16-Jul-21 6:01
mveOriginalGriff16-Jul-21 6:01 
GeneralRe: Thought of the Day Pin
Slow Eddie16-Jul-21 8:58
professionalSlow Eddie16-Jul-21 8:58 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer16-Jul-21 5:03
professionalDaniel Pfeffer16-Jul-21 5:03 
GeneralRe: Thought of the Day Pin
W Balboos, GHB16-Jul-21 8:44
W Balboos, GHB16-Jul-21 8:44 
JokeThings to think about Pin
Mike Hankey16-Jul-21 3:21
mveMike Hankey16-Jul-21 3:21 

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.