D has them both
.init is not necessarily 0. For int it is, but for float it's NaN. For char it's 255 and for an enum, it's whatever you have decided it is. enum thing { first = -1, second, etc. } This way, a variable of type thing has…
What makes the choice of < > for template parameter bad appears when someone tries to nest templates. a<b<arg>> and now a means greater becomes a shift right. That's one of the reason that it you had a genious ideo to…
I just wrote a somewhat bigger program in D and I mostly used UFCS chains for the toString() overrides to have better debug outputs. There are also some idiomatic forms that are frequent like conversion bar = foo.to!int…
D such a fantastic language.
Apple /// was 2MHz and it was a disaster.
It was not just a bandwidth issue. I remember my first encounter with the Internet was on a HP workstation in Germany connected to South-Africa with telnet. The connection went over a Datex-P (X25) 2400 Baud line. The…
There also SDC which is an experimental D compiler not using DMD code. I don't know how complete it is but it is actively updated.
NEC V20/V30 not that much but 80186 and all their specialized embedded variants from Intel (80186EA/EB/EC) and AMD (Am186EM) were extremely appreciated as it allowed to use normal MS-DOS compilers and software. Am186EM…
Motorola's embedded cpu's had strange numbers that would make it difficult to recognize to which cpu family it belonged. 68705 were 6800 derived, 68302 were 68000 derived. As for the 6809 it l ooks like that there were…
In the list of applications of the 6502 architecture there is one big missing entry. Good old phone line modems using Rockwell chipsets (Hayes modem) that went up to 56Kbit/s. The central controller of the Rockwell…
There are also some very questionable statements in the articlle like saying that 6502 instructions only need one cycle. It's 2 to 7 in reality. Over the years the comparison between 6502 vs Z80 tend to show that you…
and ubyte - 8 bits ushort - 16 bits uint - 32 bits ulong - 64 bits ucent - 128 bits float - 32 bits double - 64 bits real - maximum precision hardware allows (80 bits on x87).
it has defined the type for very long: it's cent and ucent. It hasn't implemented it completely though, but named and defined it is already forever.
For bool it's even worse.
Yes, and that was exactly my point (yes, I wrote that SO answer). The indirect addressing mode that were introduced with 68020 are insane. Most people don't know them, as they didn't exist in 68000/68010/68008 and most…
Philips was a big proponent of MSX.
Take an Atari ST and you can see what a m68k PC could have been. Its operating system GEMDOS was a derivative of CP/M with comparable features of MS_DOS. The syscall even use the same numbers (trap #1 calls to GEMDOS…
People often forget that 'ab' or '1ert' multi-char immediate are allowed in C. They are almost unusable as they are highly un-portable (because of endianess issues between the front-end and the back-end).
D from Walter Bright took that problem head on and solved it quite nicely. https://digitalmars.com/articles/C-biggest-mistake.html https://dlang.org/articles/d-array-article.html
The calculators they have today in high-school here (France) use Python as programming interface (TI-83 Premium)
He appeared also several times in TV in his late years and it was always a delight. He was more a painter as a scientist in his late years but always funny and very nice.
Compound literals are anonymous variables, i.e. like variables except that there is no label visible in the C program. If you look at the assembly you'll see that they are declared exactly like a variable except with a…
Cool. Two of the tricks shown are from my contribution in stackoverflow.
Tell me you haven't read the paper without saying you haven't read it.
D has them both
.init is not necessarily 0. For int it is, but for float it's NaN. For char it's 255 and for an enum, it's whatever you have decided it is. enum thing { first = -1, second, etc. } This way, a variable of type thing has…
What makes the choice of < > for template parameter bad appears when someone tries to nest templates. a<b<arg>> and now a means greater becomes a shift right. That's one of the reason that it you had a genious ideo to…
I just wrote a somewhat bigger program in D and I mostly used UFCS chains for the toString() overrides to have better debug outputs. There are also some idiomatic forms that are frequent like conversion bar = foo.to!int…
D such a fantastic language.
Apple /// was 2MHz and it was a disaster.
It was not just a bandwidth issue. I remember my first encounter with the Internet was on a HP workstation in Germany connected to South-Africa with telnet. The connection went over a Datex-P (X25) 2400 Baud line. The…
There also SDC which is an experimental D compiler not using DMD code. I don't know how complete it is but it is actively updated.
NEC V20/V30 not that much but 80186 and all their specialized embedded variants from Intel (80186EA/EB/EC) and AMD (Am186EM) were extremely appreciated as it allowed to use normal MS-DOS compilers and software. Am186EM…
Motorola's embedded cpu's had strange numbers that would make it difficult to recognize to which cpu family it belonged. 68705 were 6800 derived, 68302 were 68000 derived. As for the 6809 it l ooks like that there were…
In the list of applications of the 6502 architecture there is one big missing entry. Good old phone line modems using Rockwell chipsets (Hayes modem) that went up to 56Kbit/s. The central controller of the Rockwell…
There are also some very questionable statements in the articlle like saying that 6502 instructions only need one cycle. It's 2 to 7 in reality. Over the years the comparison between 6502 vs Z80 tend to show that you…
and ubyte - 8 bits ushort - 16 bits uint - 32 bits ulong - 64 bits ucent - 128 bits float - 32 bits double - 64 bits real - maximum precision hardware allows (80 bits on x87).
it has defined the type for very long: it's cent and ucent. It hasn't implemented it completely though, but named and defined it is already forever.
For bool it's even worse.
Yes, and that was exactly my point (yes, I wrote that SO answer). The indirect addressing mode that were introduced with 68020 are insane. Most people don't know them, as they didn't exist in 68000/68010/68008 and most…
Philips was a big proponent of MSX.
Take an Atari ST and you can see what a m68k PC could have been. Its operating system GEMDOS was a derivative of CP/M with comparable features of MS_DOS. The syscall even use the same numbers (trap #1 calls to GEMDOS…
People often forget that 'ab' or '1ert' multi-char immediate are allowed in C. They are almost unusable as they are highly un-portable (because of endianess issues between the front-end and the back-end).
D from Walter Bright took that problem head on and solved it quite nicely. https://digitalmars.com/articles/C-biggest-mistake.html https://dlang.org/articles/d-array-article.html
The calculators they have today in high-school here (France) use Python as programming interface (TI-83 Premium)
He appeared also several times in TV in his late years and it was always a delight. He was more a painter as a scientist in his late years but always funny and very nice.
Compound literals are anonymous variables, i.e. like variables except that there is no label visible in the C program. If you look at the assembly you'll see that they are declared exactly like a variable except with a…
Cool. Two of the tricks shown are from my contribution in stackoverflow.
Tell me you haven't read the paper without saying you haven't read it.