Compiler Optimizations

The cluster focuses on debates about compiler optimization capabilities, including how much compilers can optimize code versus humans, specific optimization techniques, levels, and comparisons across languages.

➡️ Stable 0.6x Programming Languages
6,615
Comments
19
Years Active
5
Top Authors
#281
Topic ID

Activity Over Time

2008
24
2009
65
2010
122
2011
145
2012
157
2013
232
2014
299
2015
432
2016
431
2017
444
2018
417
2019
342
2020
522
2021
547
2022
584
2023
608
2024
594
2025
611
2026
39

Keywords

FPU GHC AI CPU PGO PRISM wikipedia.org ASUS QA HotSpot compiler optimization optimize optimizations code compilers optimized profile optimizing assembly

Sample Comments

johnlorentzson Jun 30, 2020 View on HN

Some things are best optimized by the actual compiler.

gruez Nov 3, 2018 View on HN

you're greatly overestimating how much the compiler can optimize code.

g15jv2dp Jun 22, 2024 View on HN

Do you think other compilers for other languages don't perform optimizations like this?

temac Jul 31, 2021 View on HN

That's the case with tons of compiler optims.

simias Jun 2, 2015 View on HN

Frankly if your compiler can't optimize this it's not worth using.

kroltan Mar 29, 2021 View on HN

Maybe "the compiler generates better assembly code per second than a human could"?

bluecalm Nov 29, 2022 View on HN

If you don't want the compiler to optimize that much then turn down the optimization level.

jhallenworld Dec 3, 2018 View on HN

I'm finding it impressive that the compilers even attempt to implement this optimization.

danlugo92 Nov 24, 2020 View on HN

This should be abstracted away, optimizing for compiler performance feels straight out of the 80s.

SoftwareMaven Jun 1, 2014 View on HN

Have you seen what optimizing compilers do? I'd hardly call that simple!