Reputation
8,141
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 16 39
Newest
 Nice Answer
Impact
~360k people reached

Jan
5
awarded  Nice Answer
Oct
20
comment How to write a very basic compiler
One of the nice things about Pascal, is that everything has to be defined or declared before being used. Therefore it can be compiled in one pass. Turbo Pascal 3.0 is one such example, and there is a lot of documentation about the internals here.
Sep
17
awarded  Yearling
Sep
1
awarded  Nice Answer
Aug
1
comment How did programming work when programmers used punchcards?
@supercat Your scheme sounds like a good one, but as you can see from the picture, most everyone (including myself) just used one stripe.
Feb
24
comment Is it reasonable to assume that any physical quantity can be represented by a 64-bit integer without overflow or underflow?
I do mean multiply by 10000. If you want to store 1.0001 as an integer, you need to multiply it by 10000 before storing it as 10001. I was using superscripts characters for the -31, maybe they don't show correctly on all browsers. Look fine in Firefox.
Feb
24
revised Is it reasonable to assume that any physical quantity can be represented by a 64-bit integer without overflow or underflow?
added 260 characters in body
Feb
24
revised Is it reasonable to assume that any physical quantity can be represented by a 64-bit integer without overflow or underflow?
added 197 characters in body
Feb
24
answered Is it reasonable to assume that any physical quantity can be represented by a 64-bit integer without overflow or underflow?
Nov
26
revised Why are self-hosting compilers considered a rite of passage for new languages?
added 245 characters in body
Nov
26
answered Why are self-hosting compilers considered a rite of passage for new languages?
Nov
23
comment Is it normal for a programmer to not have 100% clarity over their own code at times?
@rwong Thank you. Most of it is experience -- I've been writing programs for 46 years and have no intention of quitting anytime soon.
Nov
23
revised Is it normal for a programmer to not have 100% clarity over their own code at times?
added 70 characters in body
Nov
23
answered Is it normal for a programmer to not have 100% clarity over their own code at times?
Oct
19
comment Should all programmers know how to solve algorithms, etc
You're 15. In three years go to college and get a CS degree. Assuming it's a half decent school, you'll get plenty of practice with algorithms there. With your experience, you'll have a head start compared to some (the ones that didn't also start programming when you did). Good luck.
Sep
17
awarded  Yearling
Apr
29
comment Why do C arrays not keep track of their length?
@TomG yes, your construction is nicer, you don't have to know the type of the array in your case. I'll have to remember that.
Apr
28
comment Why do C arrays not keep track of their length?
@GwynEvans then pass sizeof(xs) as another parameter if the called function needs the information.
Apr
28
comment Why do C arrays not keep track of their length?
"You can't usually query this length" -- actually you can, it's the sizeof operator -- sizeof(xs) would return 168 assuming int's are four bytes long. To get the 42, do: sizeof(xs) / sizeof(int)
Apr
16
comment Why must directories be empty before being deleted?
@maaartinus That's not my experience; I just made a copy of a folder containing dozens of commands (it's my c:\bin) and Windows only asked if I wanted to delete the folder, nothing else. I'm using Windows 7 on this particular computer, haven't tried it on Windows 8.