This might be interesting to Olcott... We can use another stack, and
keep entire state on it, as we recurse. The phantom stack? This actually
is kind of a simulator in a loose sense. I have full control over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
On 11/5/2025 12:33 PM, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
[...]
It allows us to do strange shit. Like altering a prior recursion
stack... Hack galore!
On 11/5/2025 12:39 PM, Chris M. Thomasson wrote:
On 11/5/2025 12:33 PM, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
[...]
It allows us to do strange shit. Like altering a prior recursion
stack... Hack galore!
Actually, I can get rid of GOSUB on my Koch recursion line 8000 by using
a symbolic dispatch table. A return address would be stored in the stack frames...
This might be interesting to Olcott... We can use another stack, and[...]
keep entire state on it, as we recurse. The phantom stack? This actually
is kind of a simulator in a loose sense. I have full control over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
130 PRINT "ct_vfield_applesoft_basic"
140 GOSUB 1000
150 GOSUB 3000
160 SP = 0
170 RS(SP, 0) = 0
180 RS(SP, 1) = -1
190 RS(SP, 2) = 0
200 RS(SP, 3) = 1
210 RS(SP, 4) = 0
220 GOSUB 8000
230 V1(1) = 0: V1(2) = 0: V1(3) = 1: V1(4) = 128
240 GOSUB 6000
245 PRINT "Chris Thomasson's Koch Complete!"
250 END
1000 REM ct_init
1010 PRINT "ct_init"
1020 DIM A0(6)
1030 DIM V0(4)
1040 DIM V1(4)
1050 DIM V2(4)
1060 DIM V3(4)
1070 DIM V4(4)
1080 DIM V5(4)
1090 RN = 3
1100 DIM RS(RN, 16)
1110 GOSUB 2000
1120 RETURN
This might be interesting to Olcott... We can use another stack, and keep entire state on it, as we<..snip..>
recurse. The phantom stack? This actually is kind of a simulator in a loose sense. I have full
control over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic? There was a time when I was paid to write production code in a similar language (QBasic?) but
that language's day has passed (35,40 years ago!) and I for one will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
Mike.
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic? There was a time when I was paid to write production code in a similar language (QBasic?) but
that language's day has passed (35,40 years ago!) and I for one will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
On 11/5/2025 8:09 PM, Mike Terry wrote:
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic? There was a time when
I was paid to write production code in a similar language (QBasic?)
but that language's day has passed (35,40 years ago!) and I for one
will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
Mike.
One of the reasons that I *plonked* him.
I think that he is active on the C groups.
The basic seems to be nonsense for this
group only.
On 11/5/2025 6:09 PM, Mike Terry wrote:
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic? There was a time when
I was paid to write production code in a similar language (QBasic?)
but that language's day has passed (35,40 years ago!) and I for one
will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
:^D
Well, actually, I code in C as well... Check this old shit out, before C11:
https://groups.google.com/g/comp.lang.c/c/7oaJFWKVCTw/m/a8tuCuXZJ-UJ
https://pastebin.com/raw/f207f6232
(raw text link, no pastebin ads and shit...)
I code in C++, Python, JavaScript, HLSL, GLSL, asm SPARC, x86, PPC at a time...
Fwiw, here is some of my old asm code:
some of my atomic lock/wait free work:
https://web.archive.org/web/20060214112539/http:// appcore.home.comcast.net/appcore/src/cpu/i686/ac_i686_masm_asm.html
GCC AT&T syntax:
https://web.archive.org/web/20060214112345/http:// appcore.home.comcast.net/appcore/src/cpu/i686/ac_i686_gcc_asm.html
I code in lots of langs. Check this out:
https://www.shadertoy.com/view/tc2fzt
a little GLSL test.
A lot more. Actually I am really good with lock/wait free algos. Turn
from that to fractals. Actually, I made the cover of an AMS calendar
using my n-ary field line work:
https://www.facebook.com/photo/? fbid=1218640825961580&set=pcb.1218640912628238
2025 Calander of Mathmatical Imagery. Actually, I made it in their
webpage. They used my render:
Hey, its still there! :^)
https://www.ams.org/publicoutreach/math-imagery/math-imagery
I wanted to do this in BASIC because I loved my old Apple IIGS, and it
seems I can create something that might be able to be kind of relevant
to Olcott fancy sims? In AppleSoft BASIC of all things.
On 11/5/2025 6:09 PM, Mike Terry wrote:
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and keep entire state on it, as<..snip..>
we recurse. The phantom stack? This actually is kind of a simulator in a loose sense. I have full
control over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110���� HOME
120���� HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic?� There was a time when I was paid to write
production code in a similar language (QBasic?) but that language's day has passed (35,40 years
ago!) and I for one will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
:^D
Well, actually, I code in C as well... Check this old shit out, before C11:
I wanted to do this in BASIC because I loved my old Apple IIGS, and it seems I can create something
that might be able to be kind of relevant to Olcott fancy sims? In AppleSoft BASIC of all things.
On 06/11/2025 02:27, Chris M. Thomasson wrote:
On 11/5/2025 6:09 PM, Mike Terry wrote:<..snip..>
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full
control over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic? There was a time
when I was paid to write production code in a similar language
(QBasic?) but that language's day has passed (35,40 years ago!) and I
for one will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
:^D
Well, actually, I code in C as well... Check this old shit out, before
C11:
I wanted to do this in BASIC because I loved my old Apple IIGS, and it
seems I can create something that might be able to be kind of relevant
to Olcott fancy sims? In AppleSoft BASIC of all things.
Just saying - I don't think that's a good choice to get engagement from other posters. It's just too much effort working out what's going on. (I'm not saying if you presented C then you'd suddenly be flooded with responses; that's down to the points you're making, but line numbered
basic will put people off straight away...)
Mike.
On 06/11/2025 02:27, Chris M. Thomasson wrote:
I wanted to do this in BASIC because I loved my old Apple IIGS,
and it seems I can create something that might be able to be
kind of relevant to Olcott fancy sims? In AppleSoft BASIC of
all things.
Just saying - I don't think that's a good choice to get
engagement from other posters. It's just too much effort working
out what's going on. (I'm not saying if you presented C then
you'd suddenly be flooded with responses; that's down to the
points you're making, but line numbered basic will put people off
straight away...)
On 06/11/2025 02:49, Mike Terry wrote:
On 06/11/2025 02:27, Chris M. Thomasson wrote:
<snip>
I wanted to do this in BASIC because I loved my old Apple IIGS, and
it seems I can create something that might be able to be kind of
relevant to Olcott fancy sims? In AppleSoft BASIC of all things.
Just saying - I don't think that's a good choice to get engagement
from other posters. It's just too much effort working out what's
going on. (I'm not saying if you presented C then you'd suddenly be
flooded with responses; that's down to the points you're making, but
line numbered basic will put people off straight away...)
He also has form for trying to turn any and every thread into a way of showing off his fractal art. To be fair, the art is pretty good. The threadjacking, not so much.
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic? There was a time when I was paid to write production code in a similar language (QBasic?) but
that language's day has passed (35,40 years ago!) and I for one will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
On 06/11/2025 02:27, Chris M. Thomasson wrote:
On 11/5/2025 6:09 PM, Mike Terry wrote:<..snip..>
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full
control over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic? There was a time
when I was paid to write production code in a similar language
(QBasic?) but that language's day has passed (35,40 years ago!) and I
for one will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
:^D
Well, actually, I code in C as well... Check this old shit out, before
C11:
I wanted to do this in BASIC because I loved my old Apple IIGS, and it
seems I can create something that might be able to be kind of relevant
to Olcott fancy sims? In AppleSoft BASIC of all things.
Just saying - I don't think that's a good choice to get engagement from other posters.
It's just too much effort working out what's going on.
(I'm not saying if you presented C then you'd suddenly be flooded with responses; that's down to the points you're making, but line numbered
basic will put people off straight away...)
ROFL! Getting rid of GOSUB. Just need to hook it up to my stack frames: __________________
1 HOME
10 REM ct_dispatch concept... lol ;^)
20 PRINT "PING " : A$ = "30" : GOTO 1000
30 PRINT "PONG"
40 A$ = "666" : GOTO 1000
666 PRINT "FIN! :^D"
670 END
1000 REM ct_dispatch
1010 if A$ = "30" GOTO 30
1020 if A$ = "666" GOTO 666
1030 PRINT "WTF!"
1040 END
__________________
lol! Continuations, strange stack frame hacking, alter prior recursions, ect... All in AppleSoft basic? ;^)
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic 110 HOME 120 HGR: HCOLOR = 3:
VTAB 22
Why do you present code in line-numbered basic? There was a time when I
was paid to write production code in a similar language (QBasic?) but
that language's day has passed (35,40 years ago!) and I for one will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
Mike.
On 11/5/2025 6:09 PM, Mike Terry wrote:[...]
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic
110 HOME
120 HGR: HCOLOR = 3: VTAB 22
Why do you present code in line-numbered basic? There was a time when
I was paid to write production code in a similar language (QBasic?)
but that language's day has passed (35,40 years ago!) and I for one
will not seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
Well, fwiw, here is a program I made in C++ that "helps" me write BASIC.
On Thu, 06 Nov 2025 02:09:17 +0000, Mike Terry wrote:
On 05/11/2025 20:33, Chris M. Thomasson wrote:
This might be interesting to Olcott... We can use another stack, and<..snip..>
keep entire state on it, as we recurse. The phantom stack? This
actually is kind of a simulator in a loose sense. I have full control
over the recursion stack?
https://pastebin.com/raw/Effeg8cK
Can run it here:
https://www.calormen.com/jsbasic/
code:
___________________
100 REM ct_vfield_applesoft_basic 110 HOME 120 HGR: HCOLOR = 3:
VTAB 22
Why do you present code in line-numbered basic? There was a time when I
was paid to write production code in a similar language (QBasic?) but
that language's day has passed (35,40 years ago!) and I for one will not
seriously examine any more code like that today.
Are you the only person here who doesn't code (as a minimum) in C?
Mike.
You are a tool, Mike.
There is nothing wrong with writing code in historic
programming languages .. it can be fun.
Chris is active in comp.lang.c++
so I imagine his day job is as C++ coder and is posting BASIC here *for
fun*.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,076 |
| Nodes: | 10 (1 / 9) |
| Uptime: | 78:39:29 |
| Calls: | 13,805 |
| Files: | 186,990 |
| D/L today: |
5,991 files (1,958M bytes) |
| Messages: | 2,443,207 |