Logic gates? LogicGate!

Because of a bet from me and my entire class where I can make a programming language from having no knowledge of how to code, all in this year.
Here we have a prototype
The LogicGate
This is an esolang I made which is inspired by logic gates, very obvious(lol)

This language can compile and decompile stuff, where because of my own technical problem it is designed for manual encryption.

Now in this link we can see
the main module, LogicGate.py
the code, main.lgeso
and everyone should know this, main.py

This template program compiles the â€śHello World!â€ť into lgeso code and run it, you guys can try to have fun with it, or testing itâ€™s limit without touching any of the code in LogicGate.py

Documentation: LogicGate - Esolang

7 Likes

It is now published as template, I was speed drawing its icon lol

Feel free to fork it and try different functions

1 Like

Cool! Do you have network access implemented?

I donâ€™t think so as Iâ€™m still a newbie in programming, how to do that?

I love how the license is mispelt and named `LISENSE`

This is a very cool program. Frankly, I canâ€™t even begin to comprehend the monstrosity that is `main.lgeso`

Sorry Iâ€™m from Asia and my English is not that good

Also yes this esolang is designed for manual encryption so I donâ€™t think you can easily read the raw code

1 Like

No clue how it works, but I commend any try at new languages!

Basically, one line is one bit
The bit being 1 or 0 is determined by the gates of that line
If you set ascii to True it will convert the result to ascii, separated by any line with â€”(3 hyphens)
Gates:
A(and gate)
O(or gate)
N(not gate)
Example use case:
A10 â†’ 0(and gate with 1 and 0)
O10 â†’ 1(or gate with 1 and 0)
N1 â†’ 0 (not gate with 1)
OA101 â†’ 1 (or gate with (and gate with 1 and 0) and 1)
Etc

2 Likes

Example code:
The binary of ascii E is 1000101
The binary of ascii e is 1100101
So to output E
You can do like

1
0
0
0
1
0
1

Done
Or you can like
A11
AON010
ON10
O00
A1N0
NNNNNN0
AOAO10101

Itâ€™s the same, thatâ€™s why I say this is a manual encryption language

Also if you want to output Ee you can go
1
0
0
0
1
0
1
â€”- (three hyphens here)
1
1
0
0
1
0
1

And done

nice. BTW you did nt need all gates, you just needed the NAND gate and let people define other gates

Well since I want to make an INCLUDE function like pythonâ€™s import
And then I failed unable to prevent exploits to the code and process multi output gates

But yeah I am still working on it

1 Like

Keep going. making an esoteric lng is fun.

1 Like

And sometimes frustrating lol
Like one time me adding a check para to the run function, and struggled on colouring for 6 hours

I was about to have mental breakdown and my stack overflow saved me lmao

Frustration is the teacher of programmer â€¦ if programming does nt bring frustration than nothing new is being done (well this is true un anything actually).

Now I sound like when I am preaching my kids â€¦

Well I agree, no pain no gain right?
Just that some of us is already having too much pressure and now facing pressures created by themselves.

Still I love programming, and is ready to suffer from it
(Yay time to have mental breakdown)

Do not tell me that.
I have immense pressure at work, busy at home, and getting frustrated over few things I am programming in my little free time. And no regrets!

Personal question tho, how many of us is about or already bold because of programming too much

(Iâ€™m 15 tomorrow and my hair is already losing)

Programming is not why people (well I) get bold â€¦ it is genetic. Stress only accelerate the inevitable.