Discuss Scratch

i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language



Try it out: https://obscure.glitch.me/
I want to see what fun stuff y'all come up with


1. Enter the website, you will see 3 sample projects

2. Open any project or create a new one to try it out

3. In the editor, you can click “Run” to run the project

4. You can also hit “Save” to save it, every project is stored
in your browser and will be there when you enter the page again

5. The full guide that shows all functions & their explanation is
on the navigation bar, called the Documentation

Please share on this topic any fun games or apps you make!

Last edited by i_eat_coffee (Sept. 5, 2024 14:46:09)

BigNate469
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Docs, please.
if nobody can learn the programming language, it's just gibberish that does math.
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

BigNate469 wrote:

Docs, please.
if nobody can learn the programming language, it's just gibberish that does math.
Done
https://new-lang-demo.glitch.me/docs
made with chatgpt lol
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

the web app is almost done
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

the web app is almost done
it's up

yay its finished
ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Did you make this @i_eat_coffee ?
EDIT: i just read the post again. it says you did it

Last edited by ominouswolf (Sept. 1, 2024 20:11:21)

ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

In my opinion, I would have set “out” to “output”. Feels like it makes more sense.
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

ominouswolf wrote:

In my opinion, I would have set “out” to “output”. Feels like it makes more sense.
i mean, the language is basically just a bit more verbose than others anyway, might aswell just put “write”
i'll add that in the next release
ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

ominouswolf wrote:

In my opinion, I would have set “out” to “output”. Feels like it makes more sense.
i mean, the language is basically just a bit more verbose than others anyway, might aswell just put “write”
i'll add that in the next release
Maybe make both “out” and “write” synonyms as just changing “out” with “write” can break programs. For instance, Python 3.0's change from the syntax of “print” from Python 2.0's “print <Input>” to “print(<Input>)” broke aton of programs!
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

ominouswolf wrote:

i_eat_coffee wrote:

ominouswolf wrote:

In my opinion, I would have set “out” to “output”. Feels like it makes more sense.
i mean, the language is basically just a bit more verbose than others anyway, might aswell just put “write”
i'll add that in the next release
Maybe make both “out” and “write” synonyms as just changing “out” with “write” can break programs. For instance, Python 3.0's change from the syntax of “print” from Python 2.0's “print <Input>” to “print(<Input>)” broke aton of programs!
i guess i can just do a script to replace all “out” statements on projects
ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

ominouswolf wrote:

i_eat_coffee wrote:

ominouswolf wrote:

In my opinion, I would have set “out” to “output”. Feels like it makes more sense.
i mean, the language is basically just a bit more verbose than others anyway, might aswell just put “write”
i'll add that in the next release
Maybe make both “out” and “write” synonyms as just changing “out” with “write” can break programs. For instance, Python 3.0's change from the syntax of “print” from Python 2.0's “print <Input>” to “print(<Input>)” broke aton of programs!
i guess i can just do a script to replace all “out” statements on projects
Wouldn't just adding “write” to act the same as “out” work?
ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Also getting an error that while is an invald command.
Heres the code:
out “Welcome to a guessin game =OO”
out “Try to guess the number!”
set Play as 1
set Correct as 0
while {Play} = 1
random 1 9999 as Num
while {Correct} = 0 #The bug is on this line.
ask “Number: ” as Input
if {Input} > {Num}
out “Think Smaller!”
end
if {Input} < {Num}
out “Think Bigger!”
end
if {Input} = {Num}
out “You got it correct!”
set Correct = 1
end
end
ask “Want to play again? (Y/N): ” as again
if {again} = “Y”
set Play as 0
end
end
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

ominouswolf wrote:

Also getting an error that while is an invald command.
-snip-
one second
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

^^ seems like there is a bug with the interpreter executing nested while & if blocks. trying to fix it
ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

^^ seems like there is a bug with the interpreter executing nested while & if blocks. trying to fix it
Ok!
ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Thanks! I think its fixed now?
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

ominouswolf wrote:

Thanks! I think its fixed now?
unfortunately its gonna take a while until i fix it because i have to rebuild the entire function that executes the if/while block
tomorrow it should be fixed but for now there cant be any if/while loops inside of another if/while loop
ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

ominouswolf wrote:

Thanks! I think its fixed now?
unfortunately its gonna take a while until i fix it because i have to rebuild the entire function that executes the if/while block
tomorrow it should be fixed but for now there cant be any if/while loops inside of another if/while loop
Ok.
8to16
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

ya rickrolled me :D
Redstone1080
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Maybe you could open-source this? I'd love to help with the interpreter. IIRC there's a way to turn a Glitch project into a GitHub repo.

Powered by DjangoBB