Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.development > #8747 > unrolled thread
| Started by | "Rod Pemberton" <boo@fasdfrewar.cdm> |
|---|---|
| First post | 2015-09-11 19:11 -0400 |
| Last post | 2015-11-01 09:07 -0800 |
| Articles | 20 on this page of 142 — 9 participants |
Back to article view | Back to alt.os.development
C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-11 19:11 -0400
Re: C parser ramblings, language design, etc "Alexei A. Frounze" <alexfrunews@gmail.com> - 2015-09-12 05:10 -0700
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-13 04:41 -0400
Re: C parser ramblings, language design, etc "Alexei A. Frounze" <alexfrunews@gmail.com> - 2015-09-13 02:37 -0700
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-13 07:20 -0400
Re: C parser ramblings, language design, etc "James Harris" <james.harris.1@gmail.com> - 2015-09-13 18:37 +0100
Re: C parser ramblings, language design, etc "Alexei A. Frounze" <alexfrunews@gmail.com> - 2015-09-13 21:03 -0700
Re: C parser ramblings, language design, etc "James Harris" <james.harris.1@gmail.com> - 2015-09-12 13:49 +0100
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-13 06:27 -0400
Re: C parser ramblings, language design, etc "James Harris" <james.harris.1@gmail.com> - 2015-09-13 19:02 +0100
Re: C parser ramblings, language design, etc "Alexei A. Frounze" <alexfrunews@gmail.com> - 2015-09-13 15:10 -0700
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-13 20:30 -0400
Re: C parser ramblings, language design, etc "Alexei A. Frounze" <alexfrunews@gmail.com> - 2015-09-13 20:07 -0700
Re: C parser ramblings, language design, etc "James Harris" <james.harris.1@gmail.com> - 2015-09-14 22:29 +0100
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-20 18:48 -0400
Re: C parser ramblings, language design, etc "James Harris" <james.harris.1@gmail.com> - 2015-09-22 20:04 +0100
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-30 20:32 -0400
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2015-12-27 13:51 +0000
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-12-27 17:35 -0500
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-16 17:09 +0000
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-16 14:30 -0500
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-16 21:40 +0000
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-18 07:34 -0500
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-18 08:37 -0500
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-18 23:35 +0000
Re: C parser ramblings, language design, etc "wolfgang kern" <nowhere@never.at> - 2016-01-19 12:52 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-19 13:09 +0000
Re: C parser ramblings, language design, etc "wolfgang kern" <nowhere@never.at> - 2016-01-19 21:46 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-21 11:15 +0000
Re: C parser ramblings, language design, etc "wolfgang kern" <nowhere@never.at> - 2016-01-21 21:48 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-22 15:16 +0000
Re: C parser ramblings, language design, etc "wolfgang kern" <nowhere@never.at> - 2016-01-22 23:02 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-01-23 17:04 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-27 15:27 +0000
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-02-29 09:26 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-02-29 19:02 +0000
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-03-02 20:48 +0000
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-03-09 22:29 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-03-17 16:41 +0000
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-03-29 09:00 +0200
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-03-09 22:29 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-03-17 17:36 +0000
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-03-29 09:01 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-04-02 10:13 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-04-10 19:33 +0200
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-04-15 16:27 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-04-26 08:10 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-05-03 20:14 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-05-04 09:17 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-05-21 21:10 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-05-29 08:44 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-05-29 12:05 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-05-29 12:28 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-06-01 19:22 +0200
OT: Obama in the UK (was: C parser ramblings, language design, etc) James Harris <james.harris.1@gmail.com> - 2016-04-26 08:46 +0100
Re: OT: Obama in the UK (was: C parser ramblings, language design, etc) Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-26 23:58 -0400
Re: OT: Obama in the UK (was: C parser ramblings, language design, etc) Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-27 00:08 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-04-27 06:40 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-27 05:25 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-04-27 17:45 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-27 18:25 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-02 23:44 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-03 16:56 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-04 09:23 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-04 17:22 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-06 11:47 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-06 19:34 -0400
Re: OT: Obama in the UK "James Harris" <james.harris.1@gmail.com> - 2016-05-07 12:51 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-07 19:20 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-08 01:46 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-07 21:43 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-08 09:36 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-08 15:34 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-10 11:25 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-10 17:32 -0400
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-10 18:25 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-15 00:06 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-07 21:32 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-06-02 07:41 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-06-02 16:21 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-20 14:59 +0100
Re: OT: Obama in the UK "wolfgang kern" <nowhere@never.at> - 2016-05-20 21:13 +0200
Re: OT: Obama in the UK "wolfgang kern" <nowhere@never.at> - 2016-05-20 21:17 +0200
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-21 08:04 +0100
Re: OT: Obama in the UK Bernhard Schornak <schornak@web.de> - 2016-05-21 21:10 +0200
Re: OT: Obama in the UK "wolfgang kern" <nowhere@never.at> - 2016-05-21 11:16 +0200
Re: OT: Obama in the UK Bernhard Schornak <schornak@web.de> - 2016-05-21 21:11 +0200
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-20 22:51 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-21 07:29 +0100
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-06-02 08:33 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-06-02 16:21 -0400
UK pronunciation was, [Re: OT: Obama in the UK, was C lang parser ramblings] Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-06-11 14:34 -0400
Re: UK pronunciation was, [Re: OT: Obama in the UK, was C lang parser ramblings] James Harris <james.harris.1@gmail.com> - 2016-07-24 18:28 +0100
Re: UK pronunciation was, [Re: OT: Obama in the UK, was C lang parser ramblings] Rod Pemberton <NoHaveNotOne@bcczxcfrze.cam> - 2016-07-25 21:54 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-07-24 18:21 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfrze.cam> - 2016-07-25 21:54 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-07-26 10:02 +0100
Re: OT: Obama in the UK Rod Pemberton <NoHaveNotOne@bcczxcfrze.cam> - 2016-07-26 07:56 -0400
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-07-30 12:26 +0100
Re: OT: Obama in the UK Bernhard Schornak <schornak@web.de> - 2016-05-03 20:14 +0200
Re: OT: Obama in the UK James Harris <james.harris.1@gmail.com> - 2016-05-04 09:25 +0100
Re: OT: Obama in the UK Bernhard Schornak <schornak@web.de> - 2016-05-21 21:11 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-04-26 07:59 +0100
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-27 00:01 -0400
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-04-27 09:28 +0100
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-27 05:42 -0400
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-04-27 17:16 +0100
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-27 18:05 -0400
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-04-27 09:29 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-04-27 09:42 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-05-03 20:14 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-05-07 14:34 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-05-21 21:10 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-05-29 11:27 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-06-01 19:22 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-05-07 16:34 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-05-21 21:10 +0200
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-05-29 12:10 +0100
Re: C parser ramblings, language design, etc Bernhard Schornak <schornak@web.de> - 2016-06-01 19:22 +0200
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-25 18:29 -0500
Re: C parser ramblings, language design, etc "wolfgang kern" <nowhere@never.at> - 2016-01-26 11:47 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-27 17:08 +0000
Re: C parser ramblings, language design, etc "wolfgang kern" <nowhere@never.at> - 2016-01-28 11:54 +0100
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-28 11:47 +0000
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-21 10:13 +0000
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-25 18:29 -0500
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-27 17:15 +0000
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-27 17:31 -0500
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-28 11:07 +0000
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-19 22:28 -0500
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-22 15:04 +0000
Re: C parser ramblings, language design, etc Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-01-25 17:48 -0500
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2016-01-27 17:16 +0000
Re: cows and bulls game, was [Re: C parser ramblings, language design, etc] "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-12-27 21:19 -0500
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-30 20:32 -0400
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2015-10-05 15:13 +0100
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-10-05 21:56 -0400
Re: C parser ramblings, language design, etc James Harris <james.harris.1@gmail.com> - 2015-12-27 13:56 +0000
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-10-21 19:46 -0400
Re: C parser ramblings, language design, etc "James Harris" <james.harris.1@gmail.com> - 2015-09-12 15:38 +0100
Re: C parser ramblings, language design, etc "Rod Pemberton" <boo@fasdfrewar.cdm> - 2015-09-13 07:10 -0400
Re: C parser ramblings, language design, etc "s_dubrovich@yahoo.com" <s_dubrovich@yahoo.com> - 2015-11-01 09:07 -0800
Page 7 of 8 — ← Prev page 1 2 3 4 5 6 [7] 8 Next page →
| From | "wolfgang kern" <nowhere@never.at> |
|---|---|
| Date | 2016-01-26 11:47 +0100 |
| Message-ID | <n87ir8$8f6$1@gioia.aioe.org> |
| In reply to | #9135 |
Rod Pemberton wrote: >> So my view (and usage) of languges maybe not restricted or >> ruled by what Rod often see as a failure. > ? > Oh, yes, you do need to turn on an English spell checker. ;-) :) If I'd just reread what I typed before I hit the send button ... >> I cannot stop laughing about windoze and Loonix and all who think >> that they can write any OS better than the two bloat/big-ones by >> using C, C+++ and other HLL-shit. > Aw ... I'm hurt. (feigned) :-) > I have nothing against assembly, having coded 6502 and 80x86, > except that it's much easier and faster to code in C. easier? (aka convenient?) faster? (by using libraries?) yeah, perhaps true if compared to AT&T Gas, but NASM and FASM need a lot lesser keystrokes and are not restricted by calling conventions. My Hex-coding style need lesser typing by magnitudes but it requires 'a bit more' brain activity. > My OS project is halted, but it wasn't due to C, although one > problematic C compiler library did contribute to that. > BTW, those to whom you're laughing at for using C, C++, would be > everyone who has posted here since I started in 2006 or 2007, > except you. AFAIR, you're the only person who was developing > in assembly, unless we're going way back, before 2007. ;-) My opinion about HLL may be well known meanwhile ... I'm not even sure for being the last machine code programmer, and much less sure that noone else use ASM for OS kernels and hw-drivers. __ wolfgang
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2016-01-27 17:08 +0000 |
| Message-ID | <n8atd5$4n6$1@dont-email.me> |
| In reply to | #9136 |
On 26/01/2016 10:47, wolfgang kern wrote: > > Rod Pemberton wrote: ... >> I have nothing against assembly, having coded 6502 and 80x86, >> except that it's much easier and faster to code in C. > > easier? (aka convenient?) faster? (by using libraries?) yeah, perhaps > true if compared to AT&T Gas, but NASM and FASM need a lot lesser > keystrokes and are not restricted by calling conventions. When I migrated a lot of code to C one thing I liked is that the compiler will handle pushes and pops around function calls. Keeping pushes and pops matched while only saving those I needed to was always a bit of a pain in raw assembly. James
[toc] | [prev] | [next] | [standalone]
| From | "wolfgang kern" <nowhere@never.at> |
|---|---|
| Date | 2016-01-28 11:54 +0100 |
| Message-ID | <n8csgf$9qc$1@gioia.aioe.org> |
| In reply to | #9142 |
James Harris wrote: > ... >>> I have nothing against assembly, having coded 6502 and 80x86, >>> except that it's much easier and faster to code in C. >> easier? (aka convenient?) faster? (by using libraries?) yeah, perhaps >> true if compared to AT&T Gas, but NASM and FASM need a lot lesser >> keystrokes and are not restricted by calling conventions. > When I migrated a lot of code to C one thing I liked is that the > compiler will handle pushes and pops around function calls. Keeping > pushes and pops matched while only saving those I needed to was always > a bit of a pain in raw assembly. Sure, ASM and machine code require that you keep track of the stack all the time by either use pen on paper or just use your brain. ;) I see your point, but this mean that your functions use parameters on stack rather than in registers, and this is exactly what I call redundant bloat production. __ wolfgang
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2016-01-28 11:47 +0000 |
| Message-ID | <n8cv04$8dg$1@dont-email.me> |
| In reply to | #9149 |
On 28/01/2016 10:54, wolfgang kern wrote: > > James Harris wrote: ... >> When I migrated a lot of code to C one thing I liked is that the >> compiler will handle pushes and pops around function calls. Keeping >> pushes and pops matched while only saving those I needed to was always >> a bit of a pain in raw assembly. > > Sure, ASM and machine code require that you keep track of the stack all > the time by either use pen on paper or just use your brain. ;) I was very careful but I still found that mismatched pushes and pops were one of the commonest sources of bugs. Perhaps that's because after each edit an asm programmer needs to see if additional or fewer registers need to be saved and restored, and adjust prologue and epilogue code accordingly. In order to make sure my asm code pushes and pops matched I couldn't even guess at how many times I have mentally enumerated things like A, B, SI, DI, reading the code up in one place and down in the other. (A and B are what I said in my head for AX and BX or their 32-bit equivalents.) > I see your point, but this mean that your functions use parameters on > stack rather than in registers, and this is exactly what I call > redundant bloat production. AIUI compilers can do inter-procedural register allocation. So they should be able to pass some parameters in registers. But I've never compiled with that enabled. Speaking of register allocation, one thing I dislike is how compilers use x86 registers. They usually use the 'wrong' register for a certain task (even though the 'right' register is available). And I don't like HLL caller and callee save rules. In asm code I tend to save everything in the callee. James
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2016-01-21 10:13 +0000 |
| Message-ID | <n7qaru$lg8$1@dont-email.me> |
| In reply to | #9113 |
On 19/01/2016 13:09, James Harris wrote: > On 19/01/2016 11:52, wolfgang kern wrote: > > [OT] ... > but I loved the *glee* with which this Frenchman (possibly played by > Cleese) took the opportunity to pour out his evidently long-held bile > against the hated and despised English, and his delight that the stupid > English just stood and listened to it! I can imagine him getting home to > the wife later and telling her what a great day he'd had. Brilliant! For anyone who does not know what I was referring to, above, someone has clipped exactly that part of the film: https://www.youtube.com/watch?v=A8yjNbcKkNY James
[toc] | [prev] | [next] | [standalone]
| From | Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> |
|---|---|
| Date | 2016-01-25 18:29 -0500 |
| Message-ID | <20160125182925.2022aca5@_> |
| In reply to | #9117 |
On Thu, 21 Jan 2016 10:13:55 +0000 James Harris <james.harris.1@gmail.com> wrote: > On 19/01/2016 13:09, James Harris wrote: > > On 19/01/2016 11:52, wolfgang kern wrote: > > but I loved the *glee* with which this Frenchman (possibly played by > > Cleese) took the opportunity to pour out his evidently long-held > > bile against the hated and despised English, and his delight that > > the stupid English just stood and listened to it! I can imagine him > > getting home to the wife later and telling her what a great day > > he'd had. Brilliant! > > For anyone who does not know what I was referring to, above, someone > has clipped exactly that part of the film: > > [link] I've seen it a number of times since it is a "cult classic" here. That was three or four times more than the one time it deserved to be viewed. It's not that funny IMO, but has a few light-hearted chuckles. What I never got to see was "Life of Brian," which I hear was a riot, if the viewer is not a Christian. Unfortunately, everyone I knew had seen it for some reason instead of the "Holy Grail." Oh, what do you think about Rimmer's name on Red Dwarf? That's vulgar, right? Personally, I think the funniest things I've ever seen are (all cartoons): Ren & Stimpy "The Littlest Giant" Beavis & Butthead "Pregnant Pause" Venture Bros. These were on U.S. TV. The Venture Bros. is about the brothers being failures, specifically, clones which keep dying. But, I found it funny for two reasons. It had lots of hidden U.S. culture references from the 1970s through the 2000s. It was realistic, i.e., failure, unlike most other cartoons. "The Littlest Giant" is about Stimpy being a giant, but there are even larger giants. http://renandstimpy.wikia.com/wiki/The_Littlest_Giant "Pregnant Pause" is where where Beavis thinks he's pregnant. http://beavisandbutthead.wikia.com/wiki/Pregnant_Pause Venture Bros. http://www.adultswim.com/videos/the-venture-bros/ https://en.wikipedia.org/wiki/The_Venture_Bros. Rod Pemberton
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2016-01-27 17:15 +0000 |
| Message-ID | <n8atr0$6ru$1@dont-email.me> |
| In reply to | #9134 |
On 25/01/2016 23:29, Rod Pemberton wrote: OT > Oh, what do you think about Rimmer's name on Red Dwarf? > That's vulgar, right? Do you mean his name, "Arnold Rimmer", or what he is called by the rest of the crew behind his back? If the latter, I had never thought of it as especially rude. We have discussed "smeg" before - a made-up word that can be used before the TV watershed to take the place of a swearword. As for the "head" part perhaps that could be meant to be worse than I realised. I had never thought of it that way. In the UK a "petrol head" is someone who is very keen on cars. So I can only guess that "head" is not meant to be anything ruder. Just a guess, though. James
[toc] | [prev] | [next] | [standalone]
| From | Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> |
|---|---|
| Date | 2016-01-27 17:31 -0500 |
| Message-ID | <20160127173112.3ab9cf15@_> |
| In reply to | #9143 |
On Wed, 27 Jan 2016 17:15:42 +0000 James Harris <james.harris.1@gmail.com> wrote: > On 25/01/2016 23:29, Rod Pemberton wrote: > OT > > Oh, what do you think about Rimmer's name on Red Dwarf? > > That's vulgar, right? > > Do you mean his name, "Arnold Rimmer", or what he is called by the > rest of the crew behind his back? > > If the latter, I had never thought of it as especially rude. We have > discussed "smeg" before - a made-up word that can be used before the > TV watershed to take the place of a swearword. As for the "head" part > perhaps that could be meant to be worse than I realised. I had never > thought of it that way. In the UK a "petrol head" is someone who is > very keen on cars. So I can only guess that "head" is not meant to be > anything ruder. Just a guess, though. I meant the former, the last name, which is a disgusting sexual act. But, the latter is too now that you brought it up. ;-) Rod Pemberton
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2016-01-28 11:07 +0000 |
| Message-ID | <n8csk6$vi9$1@dont-email.me> |
| In reply to | #9147 |
On 27/01/2016 22:31, Rod Pemberton wrote: ... > I meant the former, the last name, which is a disgusting sexual act. I didn't know that. But it seems it is a normal surname too. http://www.surnamedb.com/Surname/Rimmer It seems to be a name based on an occupation, as are slater, tyler, cooper, fletcher etc. James
[toc] | [prev] | [next] | [standalone]
| From | Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> |
|---|---|
| Date | 2016-01-19 22:28 -0500 |
| Message-ID | <20160119222824.3260966c@_> |
| In reply to | #9111 |
On Mon, 18 Jan 2016 23:35:32 +0000 James Harris <james.harris.1@gmail.com> wrote: > > Now, let's get back to the joke. The Aristocrat's joke ... > > I looked it up and found it is a form of joke with something > disgusting in the middle. > > [link] > > It seems rather stupid to me: vulgarity for the sake of it > or for shock value, perhaps. Haven't you ever watched Mr. Bean? Same thing, except the Aristocrat's joke has a filthy center. Many British comedy shows are based on laughing *at* someone: Fawlty Towers, Are You Being Served?, The Benny Hill Show, Keeping Up Appearances, Monty Python. "'When you hear someone tell The Aristocrats,' Penn Jillette observes, 'very clearly it’s the singer, not the song.'" Haven't you ever seen Gilbert Gottfried deliver any joke ever? It doesn't matter what joke he tells. Some people may be laughing at his funny jokes, but everyone is laughing AT him. Well, maybe someday, you'll find the humor in amongst the vulgarity. Until then, I'll try to get back to your other posts late tonight or maybe tomorrow afternoon. Rod Pemberton
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2016-01-22 15:04 +0000 |
| Message-ID | <n7tg9f$k4l$1@dont-email.me> |
| In reply to | #9116 |
On 20/01/2016 03:28, Rod Pemberton wrote: > On Mon, 18 Jan 2016 23:35:32 +0000 > James Harris <james.harris.1@gmail.com> wrote: ... > Haven't you ever watched Mr. Bean? Yes, though it was a long time ago. > Same thing, except the > Aristocrat's joke has a filthy center. OK > Many British comedy > shows are based on laughing *at* someone: Fawlty Towers, > Are You Being Served?, The Benny Hill Show, Keeping Up > Appearances, Monty Python. Agreed. And, strangely, British comedy is often about failure. National psyche, perhaps! Brits seem to relish characters who are failures. Americans seem much more positive. Americans tend to laud their stars. Brits don't want those who are successful to get above themselves. No wonder America is so successful! Here's a fun example of British and American differences: http://www.buzzfeed.com/davidmack/this-vine-perfectly-sums-up-the-difference-between-the-us-an#.ja7kxd7Yq7 ... > Haven't you ever seen Gilbert Gottfried deliver any joke ever? > It doesn't matter what joke he tells. Some people may be > laughing at his funny jokes, but everyone is laughing AT him. I hadn't heard of Gottfried. I checked Youtube for some of his videos. I don't think I would like them. Google returns descriptions: "See Gilbert's daughter nude" "Gilbert reads 50 shades of grey" "on Joan Rivers vagina" That lot sounds absolutely awful! I don't think I want to know any more about Gottfried but maybe you mean he is naturally funny. I think that's true of Jackie Mason. He does, IMO, go to far at times but he has the kind of voice that could say something mundane and still get a laugh. > Well, maybe someday, you'll find the humor in amongst > the vulgarity. I can usually see the humour but, and this is just a personal view, think it is spoiled if set in vulgarity. It's a bit like seeing a good meal on a dirty plate. I might see what the food looks like but not want to eat it! > Until then, I'll try to get back to > your other posts late tonight or maybe tomorrow afternoon. No problem. James
[toc] | [prev] | [next] | [standalone]
| From | Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> |
|---|---|
| Date | 2016-01-25 17:48 -0500 |
| Message-ID | <20160125174809.7d6e5f07@_> |
| In reply to | #9120 |
On Fri, 22 Jan 2016 15:04:51 +0000 James Harris <james.harris.1@gmail.com> wrote: > On 20/01/2016 03:28, Rod Pemberton wrote: > > On Mon, 18 Jan 2016 23:35:32 +0000 > > James Harris <james.harris.1@gmail.com> wrote: > > Haven't you ever seen Gilbert Gottfried deliver any joke ever? > > It doesn't matter what joke he tells. Some people may be > > laughing at his funny jokes, but everyone is laughing AT him. > > I hadn't heard of Gottfried. I checked Youtube for some of his > videos. I don't think I would like them. Google returns descriptions: > > "See Gilbert's daughter nude" > "Gilbert reads 50 shades of grey" > "on Joan Rivers vagina" > > That lot sounds absolutely awful! Bad selection? Other than the dirty aristocrats joke, I don't ever recall hearing any other vulgar jokes by him. He's always on TV specials, so those jokes can't be that dirty. Then, again, I haven't looked at what Youtube pulled out of the gutter and trash for him. His usual stick is he starts to tell a joke, diverts himself onto other insane and random stuff that makes no sense whatsoever in regards to the joke, all while screaming the random stuff and eventually the joke to the audience in a very grating voice all while squinting. The jokes are usually funny too, but not as funny as his performance, but the combination puts people over the edge with laughter. Also, Bob Saget, known as a nice and polite guy actor, had a long running filthy comedy tour when no one even knew he told dirty jokes ... So, maybe Gilbert did the same at some low point in his career. Rod Pemberton
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2016-01-27 17:16 +0000 |
| Message-ID | <n8atsu$6ru$2@dont-email.me> |
| In reply to | #9133 |
On 25/01/2016 22:48, Rod Pemberton wrote: > On Fri, 22 Jan 2016 15:04:51 +0000 > James Harris <james.harris.1@gmail.com> wrote: ... >> That lot sounds absolutely awful! > > Bad selection? Yes, possibly. They were just things that appeared on the first page that Google returned. James
[toc] | [prev] | [next] | [standalone]
| From | "Rod Pemberton" <boo@fasdfrewar.cdm> |
|---|---|
| Date | 2015-12-27 21:19 -0500 |
| Subject | Re: cows and bulls game, was [Re: C parser ramblings, language design, etc] |
| Message-ID | <op.yab0p7u4yfako5@localhost> |
| In reply to | #9048 |
On Sun, 27 Dec 2015 08:51:24 -0500, James Harris <james.harris.1@gmail.com> wrote:
> It reminds me, however, that when I was at school I tried to come up
> with an algorithm for marking a game that some people call bulls-and-cows.
Since you're reminiscing, here is a "bulls-and-cows" test
harness in C I just whipped up after dinner. You should be able
to modify it to add in an algorithm of your choice rather
easily. You need to activate a define for either TEST or USER
or RAND. USER is set. I don't have a preprocessor check for
none of them set. TEST uses hardcoded values. RAND generates
both the guess and secret. USER lets the user play. I left in most
standard C functions for you, except memset() which I implemented
as loops, although it's missing niceties like EXIT_SUCCESS, etc.
I likely would've eliminated isdigit() otherwise. It'll warn on
some unused variables depending on which define you choose. Ignore
this. Although one can implement a division at the end using
either floating point or integer arithmetic, I didn't bother.
Some of the code may look rudimentary, e.g., condition to
break exit while(1) loops, or aligned braces, but I assure
you, that I can just as easily code it the other way around.
If you want, you can rework cows() to call bulls(). Redundant.
Or, rework bulls() to pass scs instead of using a file scope var.
/* Bulls and Cows - test harness .RP */
/* Rod Pemberton - Dec 27 2015 */
#include <stdio.h>
#include <ctype.h> /* isdigit */
#include <stdlib.h> /* rand srand */
#include <time.h> /* time */
#define SC 4
#define DG 10
unsigned char secret[SC+1],guess[SC+1];
unsigned int sec_tab[DG],gue_tab[DG];
int scs;
#if 0
#define TEST
#endif
#if 1
#define USER
#endif
#if 0
#define RAND
#endif
#if !defined(TEST) && !defined(USER) && !defined(RAND)
#error "must define one"
#endif
#if defined(TEST) && defined(USER)
#error "two defined"
#endif
#if defined(USER) && defined(RAND)
#error "two defined"
#endif
#if defined(TEST) && defined(RAND)
#error "two defined"
#endif
#ifdef TEST
#define G1
#define S1
#endif
#ifdef RAND
#define G2
#define S2
#endif
#ifdef USER
#define G3
#define S2
#endif
void do_secret()
{
int i,r;
#ifdef S1
secret[0]='4';
secret[1]='0';
secret[2]='5';
secret[3]='1';
printf("Secret is %s.\n",secret);
#endif
#ifdef S2
for(i=0;i<DG;i++) /* memset */
{
sec_tab[i]=0;
}
i=0;
while(1)
{
r=(rand()>>3)%DG;
if(!sec_tab[r])
{
secret[i]=r+'0';
sec_tab[r]=1;
i++;
}
if(i==SC)
break;
}
#if 0
printf("Secret is %s.\n",secret);
#endif
#endif
}
void do_guess()
{
unsigned char c;
int i,r;
printf("Enter guess.\n");
#ifdef G1
guess[0]='1';
guess[1]='0';
guess[2]='3';
guess[3]='4';
#endif
#ifdef G2
for(i=0;i<DG;i++) /* memset */
{
gue_tab[i]=0;
}
i=0;
while(1)
{
r=(rand()>>3)%DG;
if(!gue_tab[r])
{
guess[i]=r+'0';
gue_tab[r]=1;
i++;
}
if(i==SC)
break;
}
#endif
#ifdef G3
i=0;
while(1)
{
c=getchar();
if(isdigit((int)c))
{
guess[i]=c;
i++;
}
if(i==SC)
break;
}
#endif
printf("Guess is %s.\n",guess);
}
void bulls(void)
{
int i,sts;
sts=0;
for(i=0;i<SC;i++)
{
if(guess[i]==secret[i])
sts++;
}
printf("%d bulls ",sts);
if(sts==SC)
scs=1;
}
void cows(void)
{
int i,sts;
sts=0;
for(i=0;i<DG;i++) /* memset */
{
sec_tab[i]=0;
gue_tab[i]=0;
}
for(i=0;i<SC;i++)
{
sec_tab[secret[i]-'0']=1;
gue_tab[guess[i]-'0']=1;
}
for(i=0;i<DG;i++)
{
if((sec_tab[i])&&(gue_tab[i]))
sts++;
}
for(i=0;i<SC;i++)
{
if(guess[i]==secret[i])
sts--;
}
printf("%d cows\n",sts);
}
int main(void)
{
char q; /* quit */
int attempts,games;
secret[SC]='\0';
guess[SC]='\0';
games=0;
attempts=0;
while(1)
{
games++;
scs=0;
srand(time(0));
do_secret();
while(1)
{
attempts++;
do_guess();
bulls();
cows();
if(scs)
break;
printf("Sorry, try again.\n");
#ifdef TEST
break;
#endif
};
printf("Congratulations!\n");
printf("Again? 'y' or 'n'\n");
while(1)
{
q=getchar();
if((q=='n')||(q=='N')||(q=='y')||(q=='Y'))
break;
}
if((q=='n')||(q=='N'))
break;
}
printf("attempts/games %d/%d\n",attempts,games);
return(0);
}
/* .RP */
Rod Pemberton
--
The idea that sentient beings can be suppressed by a few simple
rules is a farce. Even so, Isaac Asimov posited such rules for
sentient artificial intelligence.
[toc] | [prev] | [next] | [standalone]
| From | "Rod Pemberton" <boo@fasdfrewar.cdm> |
|---|---|
| Date | 2015-09-30 20:32 -0400 |
| Message-ID | <op.x5sw4jnryfako5@localhost> |
| In reply to | #8823 |
On Sun, 20 Sep 2015 18:48:58 -0400, Rod Pemberton <boo@fasdfrewar.cdm> wrote:
> On Mon, 14 Sep 2015 17:29:16 -0400, James Harris <james.harris.1@gmail.com> wrote:
>> else if symbol is RIGHT_BRACE
>> parser is confused not knowing which LEFT_BRACE it pairs with
>
> You don't need to know which brace goes with which brace as
> long as all braces are properly paired. An up/down counter
> can keep track of scope level and provide a count of missing
> braces.
I should clarify on that.
I thought there were five or so proven ways to generate
branches and target branch labels from braces.
In addition to walking or backtracking the AST, I thought
the following were proven solutions:
a) symbol lookup table
b) integer LIFO (push/pop) stack
c) an up/down counter for the scope level
and some block counters for each scope level,
either 15 (C89) or 127 (C99)
d) an up/down counter with a resettable up counter
My results are:
a) fails.
I think this is for the same reason as 'd)' fails,
which is information loss, but it just might be
the way I attempted to solve it ...
b) works.
c) works.
d) fails.
If 'd)' works, for the life of me, I can't seem to
get it to do so right now ...
I was attempting another method that used peak
detection of counters on the braces, but it's
flawed for more than a level or two of nesting.
So, that's another fail.
AIUI, all loops and conditionals in C can be
rewritten into this form:
/* pre-loop actions */
cond= ... ; /* entry value */
while(cond)
{
...
/* end-of-loop actions */
cond= ... ; /* repeat or exit condition */
}
Obviously, multiple block if-then statements must be
broken down into single blocks and for() and do-while()
must be rewritten into while() to use this. E.g., cond=1
for a do-while() upon entry and then cond would be set
appropriately at the end of the block. for() would be
unrolled. if() would be broken into single blocks, with
cond=0 at the end of block, etc.
So, for each braced block,
{
...
}
I wan't to produce a generic conditional code block
from the braces, such as:
bxxxx:
jz fxxxx
...
jmp bxxx:
fxxxx:
where 'xxxx' is a unique integer for that block,
where 'f' represents a forward branch, and 'b'
represents a backward branch, and 'fxxxx' and
'bxxxx' are the actual labels used once 'xxxx' is
filled in, i.e., b0000 f0000 ... b0009 f0009 ... etc.
So, there at least three succesful methods.
Here are two down-n-dirty (no C niceties) C programs
demonstrating using a integer LIFO stack 'b)' and
up/down counter with level counters 'c)'.
/* integer LIFO stack */
#include <stdio.h>
#define SIZE 1024
unsigned long stack[1024],sp;
unsigned long up_ctr=0,branch=0,idx=0;
#define TABSZ 2
void indent(int idx)
{
printf("%*c",idx*TABSZ,' ');
}
void filter(char *c)
{
/* filter out quotes, comments, character constants here */
}
void push(unsigned long r)
{
/* add stack overflow check here */
stack[sp]=r;
sp++;
}
void pop(unsigned long *r)
{
/* add stack underflow check here */
sp--;
*r=stack[sp];
}
void brclvl(char c)
{
switch(c)
{
case '{':
branch=up_ctr;
idx++;
indent(idx);
printf("b%08lx:\n",branch);
indent(idx);
printf("jz f%08lx\n",branch);
push(branch);
up_ctr++;
break;
case '}':
pop(&branch);
indent(idx);
printf("jmp b%08lx\n",branch);
indent(idx);
printf("f%08lx:\n",branch);
idx--;
break;
}
}
int main(void)
{
char c;
while(1)
{
c=getchar();
filter(&c);
brclvl(c);
if(feof(stdin))
break;
}
return(0);
}
/* end */
/* up/down counter w/level counters */
#include <stdio.h>
/* C89 15 nesting levels */
/* C99 127 nesting levels */
#if 1
#define MAX 15
#endif
#if 0
#define MAX 127
#endif
unsigned long idx=0;
unsigned short nst[MAX];
unsigned short up_ctr=0,branch=0;
#define TABSZ 2
void indent(int idx)
{
printf("%*c",idx*TABSZ,' ');
}
void filter(char *c)
{
/* filter out quotes, comments, character constants here */
}
void brclvl(char c)
{
switch(c)
{
case '{':
branch=nst[up_ctr];
idx++;
indent(idx);
printf("b%04hx%04hx:\n",up_ctr,branch);
indent(idx);
printf("jz f%04hx%04hx\n",up_ctr,branch);
up_ctr++;
break;
case '}':
up_ctr--;
branch=nst[up_ctr];
nst[up_ctr]++;
indent(idx);
printf("jmp b%04hx%04hx\n",up_ctr,branch);
indent(idx);
printf("f%04hx%04hx:\n",up_ctr,branch);
idx--;
break;
}
}
int main(void)
{
char c;
/* memset */
for(idx=0;idx<MAX;idx++)
nst[idx]=0;
while(1)
{
c=getchar();
filter(&c);
brclvl(c);
if(feof(stdin))
break;
}
return(0);
}
/* end */
Hopefully, those will provide an idea of how I'd prefer to
solve emitting assembly branches for C braces without needing
to walk or backtrack the AST.
Rod Pemberton
--
Just how many texting and calendar apps does humanity need?
Just how many food articles from neurotic millenials do we need?
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2015-10-05 15:13 +0100 |
| Message-ID | <muu0fg$d0t$1@dont-email.me> |
| In reply to | #8861 |
On 01/10/2015 01:32, Rod Pemberton wrote: > On Sun, 20 Sep 2015 18:48:58 -0400, Rod Pemberton <boo@fasdfrewar.cdm> > wrote: ... > In addition to walking or backtracking the AST, I thought > the following were proven solutions: > > a) symbol lookup table > b) integer LIFO (push/pop) stack > c) an up/down counter for the scope level > and some block counters for each scope level, > either 15 (C89) or 127 (C99) > d) an up/down counter with a resettable up counter I will get back to other messages but you may receive more/some responses to the above message (mostly snipped) on comp.lang.misc. That group is ideal for this sub-thread about parsing. James
[toc] | [prev] | [next] | [standalone]
| From | "Rod Pemberton" <boo@fasdfrewar.cdm> |
|---|---|
| Date | 2015-10-05 21:56 -0400 |
| Message-ID | <op.x52ac8e6yfako5@localhost> |
| In reply to | #8873 |
On Mon, 05 Oct 2015 10:13:59 -0400, James Harris <james.harris.1@gmail.com> wrote: > On 01/10/2015 01:32, Rod Pemberton wrote: >> On Sun, 20 Sep 2015 18:48:58 -0400, Rod Pemberton <boo@fasdfrewar.cdm> >> wrote: >> In addition to walking or backtracking the AST, I thought >> the following were proven solutions: >> >> a) symbol lookup table >> b) integer LIFO (push/pop) stack >> c) an up/down counter for the scope level >> and some block counters for each scope level, >> either 15 (C89) or 127 (C99) >> d) an up/down counter with a resettable up counter > > I will get back to other messages but you may receive more/some > responses to the above message (mostly snipped) on comp.lang.misc. > That group is ideal for this sub-thread about parsing. > Do you know why I find it _so_ annoying when someone sends a thread to another group? It's usually because the other person has a perspective which is different or which they believe to be correct and are looking for support to attack or prove incorrect the other party. E.g., if you were to simply forward that portion, it would be out of context, and many would reply that something was wrong and attack that and me, even though I pointed out what was correct and what wasn't in the original thread. That apparent "wrongness" of the minimally quoted section would incorrectly be attributed to me because of the loss of context. The newly introduced parties don't know what was said in the unquoted conversation. Now, I'm not saying that you're going to do that to me, at least not intentionally, but that has happened enough to me, that it's a cause for concern. I usually end of having to defend myself a half-dozen times to people who didn't know what I had said. So, if you wish to rephrase in your own words, and not attribute a quote to me which might be taken out of context when quoting, and post your words to c.l.m. on the issue, that's acceptable. Rod Pemberton -- Just how many texting and calendar apps does humanity need? Just how many food articles from neurotic millenials do we need?
[toc] | [prev] | [next] | [standalone]
| From | James Harris <james.harris.1@gmail.com> |
|---|---|
| Date | 2015-12-27 13:56 +0000 |
| Message-ID | <n5oqh8$r7r$1@dont-email.me> |
| In reply to | #8879 |
On 06/10/2015 02:56, Rod Pemberton wrote: > On Mon, 05 Oct 2015 10:13:59 -0400, James Harris > <james.harris.1@gmail.com> wrote: ... >> I will get back to other messages but you may receive more/some >> responses to the above message (mostly snipped) on comp.lang.misc. >> That group is ideal for this sub-thread about parsing. >> > > Do you know why I find it _so_ annoying when someone sends a > thread to another group? > > It's usually because the other person has a perspective which > is different or which they believe to be correct and are looking > for support to attack or prove incorrect the other party. E.g., > if you were to simply forward that portion, it would be out of > context, and many would reply that something was wrong and attack > that and me, even though I pointed out what was correct and what > wasn't in the original thread. That apparent "wrongness" of the > minimally quoted section would incorrectly be attributed to me > because of the loss of context. The newly introduced parties > don't know what was said in the unquoted conversation. Now, I'm > not saying that you're going to do that to me, at least not > intentionally, but that has happened enough to me, that it's a > cause for concern. I usually end of having to defend myself a > half-dozen times to people who didn't know what I had said. > So, if you wish to rephrase in your own words, and not attribute > a quote to me which might be taken out of context when quoting, > and post your words to c.l.m. on the issue, that's acceptable. Understood. I had no intention of forwarding all or part of your message to another group. There would be little point unless you wanted to discuss it there. That's why I just recommended it. If I do include another group in a reply it's not for the malicious or insecurity reasons you mention. It is usually because I think people in the new group would find the topic interesting. James
[toc] | [prev] | [next] | [standalone]
| From | "Rod Pemberton" <boo@fasdfrewar.cdm> |
|---|---|
| Date | 2015-10-21 19:46 -0400 |
| Message-ID | <op.x6vqz7qlyfako5@localhost> |
| In reply to | #8861 |
On Wed, 30 Sep 2015 20:32:33 -0400, Rod Pemberton <boo@fasdfrewar.cdm> wrote:
> Here are two down-n-dirty (no C niceties) C programs
> demonstrating using a integer LIFO stack 'b)' and
> up/down counter with level counters 'c)'.
>
So, this post corrects a few bugs, and mentions
some counts of maximum nesting levels expected.
First program bugs:
> /* integer LIFO stack */
> #include <stdio.h>
>
> #define SIZE 1024
> unsigned long stack[1024],sp;
1024 -> SIZE
> unsigned long up_ctr=0,branch=0,idx=0;
>
> #define TABSZ 2
> void indent(int idx)
int -> unsigned long
Second program bugs:
> /* up/down counter w/level counters */
> #include <stdio.h>
>
> /* C89 15 nesting levels */
> /* C99 127 nesting levels */
>
> [...]
>
> #define TABSZ 2
> void indent(int idx)
int -> unsigned long
> [...]
>
> /* memset */
> for(idx=0;idx<MAX;idx++)
> nst[idx]=0;
idx=0;
Well, that threw off indentation after changing MAX ...
There is still something odd with indentation for the
second program on 64-bit Linux, but I'm not interested
and don't have the time to find or fix it.
So, I modified those two programs and set MAX and SIZE
to 65535, and added some peak code to detect the maximum
nested depth and maximum number of inner-scope blocks.
E.g, this {{{}{}{}{{{}{}}}}} gives 5 3 with 3 being the
largest number of inner-scope blocks and 5 being the
maximum depth of blocks.
So, I ran the large single file C programs from the link
below and got the following results:
gcc.c 43 15720
oggenc.c 11 3504
gzip.c 9 221
bzip2.c 9 181
What that means is, if using either of the two posted
methods, you need a stack or array with a depth of
somewhat more than 15,720 to generate all the branch
targets for single-file gcc.c, since 15,720 are just
the count of the inner-most blocks.
However, it also shows that a stack or array of 256
should be sufficient for all programs, except the
absolute largest of C files.
Large single compilation-unit C programs
http://people.csail.mit.edu/smcc/projects/single-file-programs/
Rod Pemberton
--
Just how many texting and calendar apps does humanity need?
Just how many food articles from neurotic millenials do we need?
[toc] | [prev] | [next] | [standalone]
| From | "James Harris" <james.harris.1@gmail.com> |
|---|---|
| Date | 2015-09-12 15:38 +0100 |
| Message-ID | <mt1d9a$3fk$1@dont-email.me> |
| In reply to | #8747 |
"Rod Pemberton" <boo@fasdfrewar.cdm> wrote in message news:op.x4tmp0ssyfako5@localhost... ... > I also recently made some great progress on my OS-like > environment for DOS that provides a console window for DOS. > It's coded for DJGPP (GCC) C and uses CWSDPMI features. > I now just need to find some use for it. I am puzzled. Why did you write it if you didn't have a use for it? > At the moment it > doesn't provide any advantage over a standard DOS command > line, except I can watch PM interrupts, which are only called > by DJGPP apps, and install PM interrupts and keep them active. > So, no RM interrupts are being monitored at the moment. The > Windows 98/SE console windows was much faster than DOS. So, > improving speed is one potential option for a purpose. That sounds like a problem being found to fit a solution. > Unfortunately, switching RM interrupts back to PM has overhead > which could reduce any real gains from 32-bit PM C code. > Unfortunately, CWSDPMI doesn't use v86, unless VCPI is > installed, which would've reflected all RM interrupts to PM. Perhaps you could add it or something like it to your own OS to give you a shell window, unless your OS has that already. BTW, can you execute apps in your console windows? James
[toc] | [prev] | [next] | [standalone]
Page 7 of 8 — ← Prev page 1 2 3 4 5 6 [7] 8 Next page →
Back to top | Article view | alt.os.development
csiph-web