Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gallier2
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
gallier2
1y ago
D has them both
2.
▲
by
gallier2
1y ago
.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
3.
▲
by
gallier2
1y ago
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 gen
4.
▲
by
gallier2
1y ago
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 is much more reada
5.
▲
by
gallier2
2y ago
D such a fantastic language.
6.
▲
by
gallier2
2y ago
Apple /// was 2MHz and it was a disaster.
7.
▲
by
gallier2
2y ago
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 issue with X25 nets wa
8.
▲
by
gallier2
3y ago
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.
9.
▲
by
gallier2
3y ago
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 we
10.
▲
by
gallier2
3y ago
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 no embedde
11.
▲
by
gallier2
3y ago
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 chipset was an embed
12.
▲
by
gallier2
3y ago
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 have to clock the
13.
▲
by
gallier2
3y ago
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).
14.
▲
by
gallier2
3y ago
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.
15.
▲
by
gallier2
3y ago
For bool it's even worse.
16.
▲
by
gallier2
3y ago
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 c
17.
▲
by
gallier2
3y ago
Philips was a big proponent of MSX.
18.
▲
by
gallier2
3y ago
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 map 1:1 on int 21H
19.
▲
by
gallier2
3y ago
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).
20.
▲
by
gallier2
3y ago
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
21.
▲
by
gallier2
3y ago
The calculators they have today in high-school here (France) use Python as programming interface (TI-83 Premium)
22.
▲
by
gallier2
4y ago
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.
23.
▲
by
gallier2
4y ago
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 compiler generat
24.
▲
by
gallier2
4y ago
Cool. Two of the tricks shown are from my contribution in stackoverflow.
25.
▲
by
gallier2
4y ago
Tell me you haven't read the paper without saying you haven't read it.
26.
▲
by
gallier2
4y ago
That's the issue with C++ metaprogramming. It's so unwieldy and complex that the benefits are difficult to see and the occasions to be worthwhile limited. When the language has better (i.e. simpler) facilities for meta-programming
27.
▲
by
gallier2
4y ago
<i>D will always evaluate normal "if's" at runtime even if they are comptime-known, it will not do this automatically for you.</i> WRONG. if in a CTFE function works without problems. static if has nothing t
28.
▲
by
gallier2
5y ago
The AGC (Apollo Guidance Computer). This means we won't go to the moon anytime soon ;-)
29.
▲
by
gallier2
5y ago
> That really undersells the `static if considered paper` which has got to be the most offensive standards paper I've read. Indeed. Never read something stinking so much of sour grapes from NIH-suffering old farts.
30.
▲
by
gallier2
5y ago
Loved my V30 in my Atari ST. The fun part was that it was faster than the 68000 on bus access (3 cycles instead of 4) which allowed with some special drivers to accelerate even operations under TOS.
More ›