Discuss Scratch

BigNate469
Scratcher
1000+ posts

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

Does “and” perform an AND or OR operation?

And there needs to be a way to do the other.

Edit: how does this topic have 3 pages already

Last edited by BigNate469 (Sept. 2, 2024 15:19:39)

i_eat_coffee
Scratcher
1000+ posts

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

BigNate469 wrote:

Does “and” perform an AND or OR operation?
it would be weird if and performed an OR operation quite frankly
ThisIsTemp1
Scratcher
1000+ posts

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

i_eat_coffee wrote:

ThisIsTemp1 wrote:

I'm having a bit of trouble with the input. This is the code that I put into it=

 ask <Original Suggestion?> as <OG> 
ask Original Suggestion? as OG

Oh, thanks.

ThisIsTemp1
Scratcher
1000+ posts

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

Another question, is this data science based?
elip100
Scratcher
100+ posts

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

i_eat_coffee wrote:

(#23)

elip100 wrote:

Cool! You should add lists and dictionaries.
soo…
arrays and JSON objects?
sorry i don't speak fancy python language
XD yes
i_eat_coffee
Scratcher
1000+ posts

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

i added “!=” operator and will add OR soon
i_eat_coffee
Scratcher
1000+ posts

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

3 pages in 2 days aint bad but the shinies topic literally got 40 pages in 7 days
or 20
idk
i dont remember

but
i need to advertise Obscure more

Last edited by i_eat_coffee (Sept. 2, 2024 17:59:39)

i_eat_coffee
Scratcher
1000+ posts

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

SevenGuy777
Scratcher
24 posts

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

Thanks! I'll try it out now
SevenGuy777
Scratcher
24 posts

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

Uh oh… It seems I can't rename delete or edit some of my projects… I think it has to do with the long name I gave them. Can you fix it?
i_eat_coffee
Scratcher
1000+ posts

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

SevenGuy777 wrote:

Uh oh… It seems I can't rename delete or edit some of my projects… I think it has to do with the long name I gave them. Can you fix it?
Press F12, go to the console tab, and tell me what errors show up when you try to delete / edit a project
You can also just mass-delete all of your projects by clearing your cookies
catfaceQWERTY
Scratcher
2 posts

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

i love it its like javascript but way more simple im gonna have a lot of fun with this tysm for the invite to thestudio
lemoncello1205
Scratcher
11 posts

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

How do you draw stuff?
i_eat_coffee
Scratcher
1000+ posts

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

lemoncello1205 wrote:

How do you draw stuff?
you don't?
SevenGuy777
Scratcher
24 posts

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

i_eat_coffee wrote:

lemoncello1205 wrote:

How do you draw stuff?
you don't?
maybe you should add that
i_eat_coffee
Scratcher
1000+ posts

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

SevenGuy777 wrote:

i_eat_coffee wrote:

lemoncello1205 wrote:

How do you draw stuff?
you don't?
maybe you should add that
how would that work
blubby4
Scratcher
100+ posts

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

i_eat_coffee wrote:

blubby4 wrote:

I've been trying to make a quine, but I've run into some problems. Here's a list of what I think should be added:

  • Escaping brackets like \{ and \}
  • Variable concatenation (concat <value1> <value2> as <variable>)
  • Outputting without a new line (outl, maybe?)
  • Functions
Added the first 3,
the functions will be a bit more tricky because currently, all blocks cannot be nested, so i'd focus on that before adding anything new
https://obscure.glitch.me/docs
TBH, I had a brain fart and didn't realise you could concatenate variables like that. It might make it simpler if you removed concatenation, because it can be accomplished with
set variable as {foo}{bar}

Edit: also, outl doesn't output anything if it's the first out instruction!

Edit again: I just had a terrible idea, what if you could use braces to set the name of a variable being assigned as the contents of the variable. That was a terrible explanation, so here is some code:
set var1 as foo
set {var1} as bar // equivalent to set foo as bar

out {foo} // outputs bar

Which then led me onto another suggestion: comments pls

Last edited by blubby4 (Sept. 2, 2024 20:48:38)

i_eat_coffee
Scratcher
1000+ posts

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

blubby4 wrote:

i_eat_coffee wrote:

blubby4 wrote:

I've been trying to make a quine, but I've run into some problems. Here's a list of what I think should be added:

  • Escaping brackets like \{ and \}
  • Variable concatenation (concat <value1> <value2> as <variable>)
  • Outputting without a new line (outl, maybe?)
  • Functions
Added the first 3,
the functions will be a bit more tricky because currently, all blocks cannot be nested, so i'd focus on that before adding anything new
https://obscure.glitch.me/docs
TBH, I had a brain fart and didn't realise you could concatenate variables like that. It might make it simpler if you removed concatenation, because it can be accomplished with
set variable as {foo}{bar}

Edit: also, outl doesn't output anything if it's the first out instruction!

Edit again: I just had a terrible idea, what if you could use braces to set the name of a variable being assigned as the contents of the variable. That was a terrible explanation, so here is some code:
set var1 as foo
set {var1} as bar // equivalent to set foo as bar

out {foo} // outputs bar

Which then led me onto another suggestion: comments pls
Error: Invalid variable assignment: set {var1} as bar

lol
also thanks for the bug report
ill remove the join function too
50_scratch_tabs
Scratcher
500+ posts

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

while 1 = 1
end
Warning: This WILL crash the whole browser tab.

EDIT: In order to be constructive, I'd say maybe add a check to see if it's running for too long?

Last edited by 50_scratch_tabs (Sept. 2, 2024 21:15:01)

blubby4
Scratcher
100+ posts

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

i_eat_coffee wrote:

blubby4 wrote:

i_eat_coffee wrote:

blubby4 wrote:

I've been trying to make a quine, but I've run into some problems. Here's a list of what I think should be added:

  • Escaping brackets like \{ and \}
  • Variable concatenation (concat <value1> <value2> as <variable>)
  • Outputting without a new line (outl, maybe?)
  • Functions
Added the first 3,
the functions will be a bit more tricky because currently, all blocks cannot be nested, so i'd focus on that before adding anything new
https://obscure.glitch.me/docs
TBH, I had a brain fart and didn't realise you could concatenate variables like that. It might make it simpler if you removed concatenation, because it can be accomplished with
set variable as {foo}{bar}

Edit: also, outl doesn't output anything if it's the first out instruction!

Edit again: I just had a terrible idea, what if you could use braces to set the name of a variable being assigned as the contents of the variable. That was a terrible explanation, so here is some code:
set var1 as foo
set {var1} as bar // equivalent to set foo as bar

out {foo} // outputs bar

Which then led me onto another suggestion: comments pls
Error: Invalid variable assignment: set {var1} as bar

lol
also thanks for the bug report
ill remove the join function too
That's the suggestion, make it valid, so it sets/creates a variable with the name of what's stored in the {}. This would also allow lists

Last edited by blubby4 (Sept. 2, 2024 21:04:41)

Powered by DjangoBB