I'm a bit scared of the prospect that a single PR might be able to pull the entire ZX Spectrum out of their hands...
C++ nerd, WG21, INFJ, electrical engineer, she/her, science connoisseur, jazz addict
Sponsoring member: Wikimedia, Greenpeace, Digitalcourage, noyb, and more
@DanielaKEngert
But does it run 'ed' ?
I failed miserably to even try to pronounce this 🤔
Is it *that* exceptional?
Be reducing the amount of code to the max, i.e -0 lines?
@vitaut
Not "somehow", as they are supposed to be.
@vitaut
The key idea of modules is to precompile as much as you can:
- the implementation
- the intented API
- the accidental/unavoidable API 😮
- lots of name lookup
- lots of name resolution
- lots of template specializations and instantiations
Hence, make modules reasonably big.
Aren't you speaking about entire {fmt}?
As it is supposed to.
20% is a bit on the low side, though, given all the template stuff you have.
CISC is the solution.
More than 40 years ago, while still at university, I built together with a few fellow students a computer around the NS32000 processor: full 3-address machine, every operand type and addressing mode (for each of the three) you could imagine (including 'module' !). CISC through and through.
While we built the PASCAL compiler for it, we noticed that code generation was pretty much a 1 to 1 translation from simple PASCAL to machine code 😊😎
Is your current implementation small enough to fit into µ-code?
The mnemonic 'd2a' (hex D2 0A ...) comes to mind.
Just thinking out loud...
@vitaut
The measured throughput decreases? 😮
Nah, just a side effect. Just write non-scientifically to restore your convictions.
I wouldn't call this normal. Such improvements sound like to opposite of 'subnormal' 😎🤘
It conveys intent. I use it every day.
Do you happen to have performance numbers for comparisons?
Cool, cool 😎🎉
Formatting with argument types checked at compile time and translated at run time works now. All strings need to be UTF encoded.
The last expression doesn't compile because of a subtle error in the plural format string. 😊
The translation engine is backed by 'gettext'.
Antifascista)