|
rjmccall posted:in clang, i can tell you that the objc arc optimizer is a bit suspect. it used to be really buggy, and then we neutered it a lot, and now i think it mostly just doesn't optimize all that well these days it seems to do an okay job with purely local analysis but never ever optimizes away retain/release pairs for function arguments even if the function gets inlined, which i guess is in practice probably not an issue for idiomatic obj-c that doesn't have anything that can be inlined
|
# ¿ Jun 29, 2017 23:06 |
|
|
# ¿ May 3, 2024 06:20 |
|
echinopsis posted:does writing a compiler (presumably understanding it while doing so rather than apeing something else) make you a better coder writing anything that is significantly different from things you have worked on before while putting in the effort to properly understand why you're doing what you're doing will make you a better coder
|
# ¿ Jul 1, 2017 05:37 |
|
rjmccall posted:apple's arm32 abi is pretty terrible, mostly around floating-point arguments. the calling convention clearly predates the idea that arm processors might drive general-purpose computation and/or actually have a floating-point unit; it's basically an all-arguments-on-stack convention that pops the first 16 bytes into integer registers, which means e.g. an early double will get passed as two ints. also the arm bitfield layout rules are needlessly different from the standard sysv rules actually that's something that i've wondered about. was there any particular reason apple had to use the lovely arm abi rather than diverging like with arm64, or is that just one of those ideas that just never came up until years after it was too late to be practical?
|
# ¿ Jul 1, 2017 05:49 |
|
The Management posted:hey, how about we make a c compiler that doesn't need declarations of local functions before use because it's not the 70's anymore? use c++ and make all of your functions templates
|
# ¿ Jul 2, 2017 06:27 |
|
watchOS and tvOS are really wacky and different in ways that you would probably not expect
|
# ¿ Jul 4, 2017 23:29 |
|
i guess "wacky" has overly negative connotations, but they definitely took advantage of the chance to make backwards-incompatible changes
|
# ¿ Jul 4, 2017 23:30 |
|
the kernel isn't the same everywhere. it's a single code base, but there's nontrivial differences in what's enabled for each platform
|
# ¿ Jul 5, 2017 19:26 |
|
The Management posted:I.e., you were writing a program
|
# ¿ Jul 7, 2017 23:10 |
|
if you've ever typed sudo make install without running make first you've probably run a linker as root. it's obviously not something you should be doing, but it's not at all hard to do accidentally
|
# ¿ Jul 10, 2017 22:13 |
|
|
# ¿ May 3, 2024 06:20 |
|
it's portable to every compiler that actually exists. even tcc supports it.
|
# ¿ Aug 17, 2017 18:30 |