Page 1 of 1
CGoL Programming Language
Posted: April 23rd, 2022, 10:58 am
by squareroot12621
I heard someone wanted to make a programming language in CGoL, so… here's the start of one.
Code: Select all
x = 55, y = 80, rule = B3/S23Super
27.S$25.3S$24.S$24.2S5$18.3S7.2S5.2S$20.S7.2S5.2S$19.S$10.2S19.2S$10.
2S19.2S$10.S$11.4S$11.S3.S$13.3S$12.2S11.2N.3N2.2N$11.S12.N4.N2.N$4.2S
4.S14.N3.N2.N.N$4.2S5.S14.N2.N2.N.N$24.2N2.3N2.2N2$15.6H2$M.2M$2M.M5$
5.S.S.S.S.S2$5.S7.S$9.S$5.S2.S.S2.S$9.S$5.S7.S2$5.S.S.S.S.S16$6.7H19.
6H4$22.2pA5.2pA$22.2pA5.2pA2$26.2pA$26.2pA4$49.2pA$36.pA12.2pA$34.pA.
pA$34.3pA9.2pA5.2pA$34.pA11.2pA5.2pA4$23.2N2.2N2.2N$22.N3.N3.N11.2pA$
23.N2.N.N.N.N9.pA$24.N.N.N.N.N10.3pA$22.2N3.2N2.2N12.pA!
I won't be able to view for the next day because of camping, but let's see what everybody comes up with!

Re: CGoL Programming Language
Posted: April 23rd, 2022, 9:14 pm
by dani
That's a really cool period multiplier, but I don't think much could be improved from the already-existing
APGsembly. I also don't think it'd be that great to have competing standards in such a small space, unless the new standard has many clear advantages over the old.
Re: CGoL Programming Language
Posted: April 25th, 2022, 4:51 pm
by Anivec
dani wrote: April 23rd, 2022, 9:14 pm
That's a really cool period multiplier, but I don't think much could be improved from the already-existing
APGsembly. I also don't think it'd be that great to have competing standards in such a small space, unless the new standard has many clear advantages over the old.
I think the computer should be able to be adjusted with only the code being modified and not the computer itself. It will be less steps AGPsembly will have to do.
Similar to I thought up of a while ago, I think the code could just be a line of binary that is read by a reader.
And then it could further be modified into a universal constructor by having a switch for “compute/construct.”
When the switch is on construct mode, the binary code will be for a binary slow salvo instead of computer instructions.
Re: CGoL Programming Language
Posted: April 27th, 2022, 12:22 pm
by squareroot12621
I have four guns now.
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2pA11.2pA.pA$67.pA.pA$49.2pA5.2pA9.3pA19.2pA5.2pA31.
2pA5.2pA31.2pA5.2pA7.pA$49.2pA5.2pA11.pA19.2pA5.2pA31.2pA5.2pA31.2pA5.
2pA$184.pA$64.H39.H39.H39.GpA8$54.H39.H39.H39.H$53.H39.H39.H39.H$53.3H
37.3H37.3H37.3H! [[ ZOOM 8/3 ]]
Here's my explanation:
- Choose one of the four locations for gliders on the far left.
- This will hit one of the gliders in one of the streams, removing it.
- That gap will be inverted and turned into a usable signal, though this is not included in the code tag above.
I used four guns so that four different mechanisms were possible.
Edit: Two inverters are in place:
Code: Select all
x = 198, y = 89, rule = B3/S23Super
4.N.N$S3.N.N$.2S.3N$2S4.N$6.N2$10.2N$6.S5.N$7.2S.2N$6.2S4.N$10.2N5$46.
2N.N.N.N2.N3.N7.pA17.2N.N.N.N2.N2.2N7.pA17.2N.N.N.N2.N2.2N7.pA17.2N.N
.N.N2.N2.N.N6.pA$20.2N23.N3.N.N.2N.N2.2N5.3pA16.N3.N.N.2N.N4.N4.3pA16.
N3.N.N.2N.N4.N4.3pA16.N3.N.N.2N.N2.N.N4.3pA$16.S5.N22.N.N.N.N.N.2N3.N
4.pA19.N.N.N.N.N.2N3.N4.pA19.N.N.N.N.N.2N2.2N4.pA19.N.N.N.N.N.2N2.3N3.
pA$17.2S2.N23.N.N.N.N.N2.N3.N4.2pA18.N.N.N.N.N2.N2.N5.2pA18.N.N.N.N.N
2.N4.N3.2pA18.N.N.N.N.N2.N4.N3.2pA$13.L2.2S2.N25.2N2.N2.N2.N2.3N24.2N
2.N2.N2.N2.3N24.2N2.N2.N2.N2.2N25.2N2.N2.N2.N4.N$14.L5.3N$15.L34.N38.
N.N2.N35.N3.N35.N3.N2.N.N$16.L29.N2.N.N34.N2.N.N.N.N30.N2.N.N.N.N11.pA
18.N2.2N2.N.N.N.N$17.L27.3N.N.N17.2pA5.2pA7.3N.3N.N.N13.2pA5.2pA7.3N2.
N2.N.N10.2pA4.pA3.2pA7.3N2.N2.N.N.3N9.2pA5.2pA$18.L27.N2.N.N17.2pA5.2pA
8.N4.N.N.N13.2pA5.2pA8.N2.N.N.N.N9.2pA5.2pA2.2pA8.N3.N2.N.N3.N9.2pA5.
2pA$19.L30.N40.N2.N3.pA31.N3.N11.pA4.2pA16.3N2.N4.N$14.2O4.L10.N40.2pA
22.2pA.2pA11.2pA33.pA3.pA40.2pA$14.2O5.L4.S3.2N40.2pA19.5pA14.2pA78.2pA
$22.L4.2S2.N61.pA2.pA$23.L2.2S3.N61.pA2.pA89.2pA$17.2O5.L5.3N61.2pA88.
3pA.2pA$17.2O6.L23.2pA38.2pA38.2pA38.2pA13.pA.pA.2pA$26.L22.2pA12.pA25.
2pA38.2pA38.2pA11.2pA.pA$14.2O11.L35.pA.pA$14.2O12.L16.2pA5.2pA9.3pA19.
2pA5.2pA31.2pA5.2pA31.2pA5.2pA7.pA$6.2O21.L15.2pA5.2pA11.pA19.2pA5.2pA
31.2pA5.2pA31.2pA5.2pA$7.O22.L149.pA$7.O.O21.L28.H39.H39.H39.GpA$8.2O
22.L2$10.3N.N2.N.N3.N3.N$11.N2.2N.N.N3.N2.2N$11.N2.N.2N2.N.N4.N$11.N2.
N2.N2.N.N4.N$10.3N.N2.N3.N4.3N$50.H39.H39.H39.H$49.H39.H39.H39.H$21.2O
26.3H37.3H37.3H37.3H$20.O$19.2O.2O$9.2L9.O2.2O$11.L5.O2.2O2.2O$12.2L3.
O.2O4.O$14.L3.O$15.2L$17.L$14.2O2.2L$14.2O4.L4.2O$21.2L2.2O$23.L$17.2O
5.2L$17.2O7.L$27.2L$14.2O13.L$13.O2.O13.2L$6.2O6.O.O$7.O8.2O.3N.N2.N.
N3.N$7.O.O7.O2.N2.2N.N.N3.N$8.2O3.2O5.N2.N.2N2.N.N$13.2O5.N2.N2.N2.N.
N$13.2O4.3N.N2.N3.N$14.O.2O$14.3O2.2N$15.O5.N9.2O$20.N8.O4.O$19.N$19.
3N6.O2.2O2.O$28.O2.2O2.O2$29.O4.O$25.2O4.2O$25.2O2$22.2O$22.2O3$25.2O
$25.2O! [[ ZOOM 3 ]]
Edit 2: Here are all four inverters, hooked up to the system:
Code: Select all
#C Watch the orange gliders released by the inverters!
x = 198, y = 152, rule = B3/S23Super
4.N.N$S3.N.N$.2S.3N$2S4.N$6.N2$10.2N$6.S5.N$7.2S.2N$6.2S4.N$10.2N5$9.
L36.2N.N.N.N2.N3.N7.pA17.2N.N.N.N2.N2.2N7.pA17.2N.N.N.N2.N2.2N7.pA17.
2N.N.N.N2.N2.N.N6.pA$10.L9.2N23.N3.N.N.2N.N2.2N5.3pA16.N3.N.N.2N.N4.N
4.3pA16.N3.N.N.2N.N4.N4.3pA16.N3.N.N.2N.N2.N.N4.3pA$11.L4.S5.N22.N.N.
N.N.N.2N3.N4.pA19.N.N.N.N.N.2N3.N4.pA19.N.N.N.N.N.2N2.2N4.pA19.N.N.N.
N.N.2N2.3N3.pA$12.L4.2S2.N23.N.N.N.N.N2.N3.N4.2pA18.N.N.N.N.N2.N2.N5.
2pA18.N.N.N.N.N2.N4.N3.2pA18.N.N.N.N.N2.N4.N3.2pA$13.L2.2S2.N25.2N2.N
2.N2.N2.3N24.2N2.N2.N2.N2.3N24.2N2.N2.N2.N2.2N25.2N2.N2.N2.N4.N$14.L5.
3N$15.L34.N38.N.N2.N35.N3.N35.N3.N2.N.N$16.L29.N2.N.N34.N2.N.N.N.N30.
N2.N.N.N.N11.pA18.N2.2N2.N.N.N.N$17.L27.3N.N.N17.2pA5.2pA7.3N.3N.N.N13.
2pA5.2pA7.3N2.N2.N.N10.2pA4.pA3.2pA7.3N2.N2.N.N.3N9.2pA5.2pA$18.L27.N
2.N.N17.2pA5.2pA8.N4.N.N.N13.2pA5.2pA8.N2.N.N.N.N9.2pA5.2pA2.2pA8.N3.
N2.N.N3.N9.2pA5.2pA$19.L30.N40.N2.N3.pA31.N3.N11.pA4.2pA16.3N2.N4.N$14.
2O4.L10.N40.2pA22.2pA.2pA11.2pA33.pA3.pA40.2pA$14.2O5.L4.S3.2N40.2pA19.
5pA14.2pA78.2pA$22.L4.2S2.N61.pA2.pA$23.L2.2S3.N61.pA2.pA89.2pA$17.2O
5.L5.3N61.2pA88.3pA.2pA$17.2O6.L23.2pA38.2pA38.2pA38.2pA13.pA.pA.2pA$
26.L22.2pA12.pA25.2pA38.2pA38.2pA11.2pA.pA$14.2O11.L35.pA.pA$14.2O12.
L16.2pA5.2pA9.3pA19.2pA5.2pA31.2pA5.2pA31.2pA5.2pA7.pA$6.2O21.L15.2pA
5.2pA11.pA19.2pA5.2pA31.2pA5.2pA31.2pA5.2pA$7.O22.L149.pA$7.O.O21.L28.
H39.H39.H39.GpA$8.2O22.L2$10.3N.N2.N.N3.N3.N$11.N2.2N.N.N3.N2.2N$11.N
2.N.2N2.N.N4.N$11.N2.N2.N2.N.N4.N$10.3N.N2.N3.N4.3N$31.B18.H39.H39.H39.
H$32.B16.H39.H39.H39.H$21.2O7.3B16.3H37.3H37.3H37.3H$6.2L12.O$8.L10.2O
.2O$9.2L9.O2.2O$11.L5.O2.2O2.2O$12.2L3.O.2O4.O$14.L3.O$15.2L$17.L$14.
2O2.2L$14.2O4.L4.2O$21.2L2.2O$23.L$17.2O5.2L$17.2O7.L$27.2L$14.2O13.L
$13.O2.O13.2L$6.2O6.O.O$7.O8.2O.3N.N2.N.N3.N$7.O.O7.O2.N2.2N.N.N3.N$8.
2O3.2O5.N2.N.2N2.N.N$13.2O5.N2.N2.N2.N.N$13.2O4.3N.N2.N3.N$14.O.2O$14.
3O2.2N$15.O5.N9.2O$20.N8.O4.O$19.N$19.3N6.O2.2O2.O$28.O2.2O2.O$6.L$7.
L21.O4.O$8.2L15.2O4.2O3.B$10.L14.2O10.B$11.2L22.3B$13.L8.2O$14.2L6.2O
$16.L$17.2L$14.2O3.L5.2O$14.2O4.2L3.2O$22.L$23.2L$17.2O6.L$17.2O7.2L2$
14.2O$14.2O5.2O$6.2O12.O.O$7.O11.2O$7.O.O11.O$8.2O11.O.O$23.2O$22.3O$
29.2O$27.O4.O$6.3N.N2.N.N3.N$7.N2.2N.N.N3.N6.O2.2O3.O$7.N2.N.2N2.N.N7.
O2.2O4.O$7.N2.N2.N2.N.N$6.3N.N2.N3.N9.O4.2O3.O$32.2O$6.2N21.O4.2O2.O$
8.N16.2O3.O3.2O2.O$6.2N17.2O$8.N23.O4.O$6.2N6.3L5.2O10.2O3.B$12.2L3.L
4.2O16.B$10.2L6.L19.3B$8.2L4.2O3.L$6.2L6.2O4.L4.2O$21.L3.2O$22.L$17.2O
4.L$17.2O5.L$25.L$14.2O10.L$14.2O11.L$6.2O20.L$7.O21.L$7.O.O$8.2O$25.
O$24.O.O$6.3N.N2.N.N3.N3.2O.2O$7.N2.2N.N.N3.N3.O2.O$7.N2.N.2N2.N.N3.O
3.O$7.N2.N2.N2.N.N7.O5.2O$6.3N.N2.N3.N12.O4.O$36.O$6.N.N20.O2.2O$6.N.
N20.O2.2O4.O$6.3N25.2O3.O$8.N17.O3.O3.2O$8.N16.2O4.O9.O$37.2O3.O$22.2O
9.O3.2O$22.2O10.O4.2O2.O$39.2O2.O$36.O$25.2O10.O4.O$25.2O12.2O3.B$45.
B$43.3B! [[ ZOOM 3 AUTOSTART T 0 PAUSE 1 T 500 Y 50 LOOP 700 ]]
And if you haven't noticed, my programming language is based on timing, mod 120.

Re: CGoL Programming Language
Posted: April 28th, 2022, 4:51 pm
by squareroot12621
I know I have double-posted, but I added part of my adding/subtracting circuitry:
Code: Select all
x = 270, y = 199, rule = B3/S23Super
259.2U$259.U.U$261.U4.2U$257.4U.2U2.U2.U$257.U2.M.M.U.U.2U$260.M.M.M.
U$261.2M.M.U$265.U2$251.2U$252.U7.2M$252.U.U5.2M$4.N.N246.UM$S3.N.N$.
2S.3N253.3H5.H$2S4.N255.H6.H$6.N254.H5.3H2$10.2N$6.S5.N250.MU$7.2S.2N
230.2U10.2H7.U$6.2S4.N230.U9.H.H8.3U$10.2N195.2Q32.U13.H10.U$207.Q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.3H5.H34.U$19.L30.N40.N2.N3.pA31.N3.N11.pA4.2pA16.
3N2.N4.N18.L2.N2.2N4.H6.H30.3U$14.2O4.L10.N40.2pA22.2pA.2pA11.2pA33.pA
3.pA40.2pA4.L.2N2.N.N2.H5.3H30.U$14.2O5.L4.S3.2N40.2pA19.5pA14.2pA78.
2pA4.L2.N2.2N$22.L4.2S2.N61.pA2.pA101.L2.N2.N.N36.2U$23.L2.2S3.N61.pA
2.pA89.2pA10.L.3N.2N5.MQ31.U$17.2O5.L5.3N61.2pA88.3pA.2pA8.L12.Q32.U.
U$17.2O6.L23.2pA38.2pA38.2pA38.2pA13.pA.pA.2pA8.L13.3Q19.U10.UM$26.L22.
2pA12.pA25.2pA38.2pA38.2pA11.2pA.pA11.L16.Q17.3U$14.2O11.L35.pA.pA130.
L34.U$14.2O12.L16.2pA5.2pA9.3pA19.2pA5.2pA31.2pA5.2pA31.2pA5.2pA4.pA2.
pA13.L35.MU$6.2O21.L15.2pA5.2pA11.pA19.2pA5.2pA31.2pA5.2pA31.2pA5.2pA
20.L21.2U48.MU$7.O22.L146.pA2.pA3.pA8.L23.U48.MU$7.O.O21.L28.H39.H39.
H36.pA2.GpA2.pA7.L24.U.2U$8.2O22.L158.L26.U2.U$178.pA4.pA6.L28.2M$10.
3N.N2.N.N3.N3.N152.2pA7.L44.2M$11.N2.2N.N.N3.N2.2N160.L45.2M$11.N2.N.
2N2.N.N4.N159.L$11.N2.N2.N2.N.N4.N158.L$10.3N.N2.N3.N4.3N156.L$31.B18.
H39.H39.H39.H13.L58.M3.2U$32.B16.H39.H39.H39.H13.L58.U.M3.U11.H$21.2O
7.3B16.3H37.3H37.3H37.3H10.L58.U.U3.U13.H$6.2L12.O160.L55.2M.U.U3.U12.
3H$8.L10.2O.2O156.L56.2M.U2.4U.U5.UM$9.2L9.O2.2O154.L61.U.U3.U.U5.U$11.
L5.O2.2O2.2O152.L58.2U.2U2.U2.U.U2.3U$12.2L3.O.2O4.O151.L60.U.U2.2U3.
U3.U$14.L3.O157.L49.2M10.U.U$15.2L158.L50.2U11.U$17.L156.L$14.2O2.2L153.
L$14.2O4.L4.2O145.L$21.2L2.2O144.L$23.L146.L$17.2O5.2L143.L$17.2O7.L141.
L$27.2L138.L$14.2O13.L136.L$13.O2.O13.2L133.L$6.2O6.O.O147.L$7.O8.2O.
3N.N2.N.N3.N130.L$7.O.O7.O2.N2.2N.N.N3.N129.L$8.2O3.2O5.N2.N.2N2.N.N129.
L$13.2O5.N2.N2.N2.N.N128.L$13.2O4.3N.N2.N3.N128.L$14.O.2O140.L$14.3O2.
2N136.L$15.O5.N9.2O123.L$20.N8.O4.O120.L$19.N134.L$19.3N6.O2.2O2.O117.
L$28.O2.2O2.O116.L$6.L144.L$7.L21.O4.O115.L$8.2L15.2O4.2O3.B112.L$10.
L14.2O10.B110.L$11.2L22.3B109.L$13.L8.2O122.L$14.2L6.2O121.L$16.L127.
L$17.2L124.L$14.2O3.L5.2O115.L$14.2O4.2L3.2O114.L$22.L117.L$23.2L114.
L$17.2O6.L112.L$17.2O7.2L109.L$136.L$14.2O119.L$14.2O5.2O111.L$6.2O12.
O.O110.L$7.O11.2O111.L$7.O.O11.O109.L$8.2O11.O.O106.L$23.2O104.L$22.3O
103.L$29.2O96.L$27.O4.O93.L$6.3N.N2.N.N3.N105.L$7.N2.2N.N.N3.N6.O2.2O
3.O89.L$7.N2.N.2N2.N.N7.O2.2O4.O87.L$7.N2.N2.N2.N.N103.L$6.3N.N2.N3.N
9.O4.2O3.O83.L$32.2O86.L$6.2N21.O4.2O2.O80.L$8.N16.2O3.O3.2O2.O79.L$6.
2N17.2O80.11L$8.N23.O4.O68.L$6.2N6.3L5.2O10.2O3.B65.L5.Q$12.2L3.L4.2O
16.B63.L4.3Q$10.2L6.L19.3B62.L4.Q$8.2L4.2O3.L82.B5.MQ$6.2L6.2O4.L4.2O
74.B$21.L3.2O73.L8.2N2.3N.2N$22.L76.L6.H2.N.N.N3.N.N$17.2O4.L74.L8.H.
2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L11.Q2.M.M.Q.Q.2Q$79.L
11.4Q.2Q2.Q2.Q$79.L15.Q4.2Q$79.L13.Q.Q$78.L14.2Q! [[ ZOOM 2 ]]
I need help implementing my ideas (next paragraph) into CGoL. Here are my ideas:
I have four mechanisms, each one corresponding to a specific gun (labeled GUN #).
- The first mechanism is for adding/subtracting (ADD/SUB). It needs a start glider; an optional glider which, if present, subtracts instead of adds; and a number of gliders, which will each add or subtract one from a sliding block memory. The code, translated into English, is ADD/SUB[START, ADD or SUB, (number of gliders)].
- The second mechanism is for multiplying. I expect this to be harder to implement. It needs a start glider and a number of gliders, the number of gliders being the factor to which the number in the memory is multiplied. (In an absence of gliders after the start glider, the number is reset to zero.) The code is MUL[START, (number of gliders)].
- The third mechanism is for storing the number in the sliding block memory in another one. It needs a start glider and an optional glider. If the optional glider is present, it will detect when the two numbers in the sliding block registers are equal, and produce a glider that sets the first sliding block memory to zero. The code is STORE[START, DETECT or NO].
- The fourth mechanism is for printing one of twelve symbols: a space, a decimal point, and the ten digits. It only needs one glider, the one to trigger the printing. The digit printed depends on what the value of the sliding block memory is:
- 0: space
- 1: decimal point
- 10n+2+digit: digit
The code is PRINT[(number in memory)].
I know this is all very complicated, but if we can compile this, we can do all sorts of things.
