Is Blockly Confirmed as Turing Complete?

174 views
Skip to first unread message

Amber Blaylock

unread,
Nov 8, 2018, 1:52:14 PM11/8/18
to Blockly
This is a weird question, but is basic Blockly (that is, including all of the out of the box Blockly blocks in a workspace) confirmed to be Turing complete? I'm fairly sure it is, as it can generate fairly complex arbitrary code, but I'm not sure how to actually prove it.

Chris Johnson

unread,
Nov 8, 2018, 2:49:39 PM11/8/18
to blo...@googlegroups.com
Amber Blaylock sent me the following 1.7K:
Usually this term is reserved for programming languages that are equivalent to a Turing machine, which is an early description of computing device based on a state machine. In practice, a language is Turing complete if it has memory, conditionals, and loops. Blockly has builtin blocks for all of these. But it is an interface to other languages and does not execute any of these itself. I don't think the term applies.

- Chris

Andrew n marshall

unread,
Nov 8, 2018, 2:57:03 PM11/8/18
to blo...@googlegroups.com
That's an excellent point, Chris. Blockly is not a language in itself.

That said, the builtin blocks have code generation support for all five supported (and turing-complete) languages, so the set of programs Blockly can generate in those languages with the built in blocks should also be turing complete.

There is a discussion on Stack Exchange about proving whether a language is turing complete.



--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amber B

unread,
Nov 8, 2018, 3:13:34 PM11/8/18
to Blockly
Thank you both!
Reply all
Reply to author
Forward
0 new messages