I haven't tried running the project but looking the code it appears that your project defines a shared variable named 'true'. It's possible that that GP is confusing that variable name with the literal boolean value 'true'.
That might not be the problem, just something to check...
Search found 376 matches
- Aug 6th, '19, 18:13
- Forum: Bugs
- Topic: Weird Project Corruption
- Replies: 3
- Views: 132078
- Jun 3rd, '19, 14:04
- Forum: Bugs
- Topic: log outputs nil at the end, bug?
- Replies: 1
- Views: 14705
Re: log outputs nil at the end, bug?
The "nil" you are seeing is probably the return value of whatever expression you evaluated in the REPL. For example: print 'hello!' runs the command "print", which outputs the string 'hello' to the console. Since "print" is a command whose value is discarded when running as a block, it just returns ...
- Jun 3rd, '19, 13:59
- Forum: Bugs
- Topic: Kind of a Bug about the "http host" Block
- Replies: 1
- Views: 14316
Re: Kind of a Bug about the "http host" Block
I'm guessing Amazon is doing a redirect to HTTPS. GP's HTTP function is uber-simple and it only handles normal HTTP, not HTTPS. Doing HTTPS requires using encryption, managing certificates, and a bunch of other complex stuff that it would be tedious to re-implement in GP. Furthermore, since security...
- Jun 3rd, '19, 13:52
- Forum: Requests
- Topic: Rename the stage to something else
- Replies: 2
- Views: 19919
Re: Rename the stage to something else
Good point! I don't have time to change the now, but if and when I return to active GP development (it could happen in a few years), it would make sense to give it a different name to avoid confusion with Scratch. "Background" might be good.
- Jun 3rd, '19, 13:48
- Forum: Extending GP
- Topic: Lambda Calculus?
- Replies: 1
- Views: 14825
Re: Lambda Calculus?
GP doesn't have closures, but it does have first-class functions. It also has "Action" objects. An Action is a sort of "explicit lambda" -- a way to bundle up a set of variable bindings in a closure-like object that can evaluated. Omitting closures was an explicit design choice made for didactic rea...
- Jun 3rd, '19, 13:33
- Forum: Experience Reports
- Topic: Cloud Data seems down
- Replies: 1
- Views: 107393
Re: Cloud Data seems down
In February, I fixed a bug that made the cloud data server crash if it was passed a bad key (e.g. a non-string). The server has stayed up since I fixed that bug (three months now).
- Jun 3rd, '19, 13:29
- Forum: Working with GP
- Topic: Initiate Arrays, Lists, etc.
- Replies: 2
- Views: 17122
Re: Initiate Arrays, Lists, etc.
You can create a fixed size Array object with ten elements like this:
If you add a third parameter, the Array is filled with that value:
Finally, you can turn an Array into a List like this:
Code: Select all
print (newArray 10)
Code: Select all
print (newArray 10 'ha!')
Code: Select all
print (toList (newArray 10 'ho!'))
- Jun 3rd, '19, 13:24
- Forum: Working with GP
- Topic: How to open a blank Window from the REPL?
- Replies: 2
- Views: 16897
Re: How to open a blank Window from the REPL?
You should be able to call the "openWindow" primitive. (Type "help openWindow" for a short description.) If the normal GP app works on your computer, the above should also work. There may be a limit on the maximum window size. You can only have one window open at a time.
- Jun 3rd, '19, 13:20
- Forum: Requests
- Topic: An Update?
- Replies: 3
- Views: 20103
Re: An Update?
Yes, the GP project has slowed to a crawl since we lost funding around two years ago. Jens went back to working on Snap!, which has most of the things GP has but they work better and Snap! is being actively evolved. I've been working on MicroBlocks (microblocks.fun), a blocks-based system for progra...
- Feb 9th, '19, 12:57
- Forum: Requests
- Topic: Adding Stereo output?
- Replies: 3
- Views: 19157
Re: Adding Stereo output?
By the way, here are all the sounds "primitives". -- Sound -- openAudio closeAudio samplesNeeded writeSamples fft generateNoteSamples sendMIDI startSpeech stopSpeech startAudioInput stopAudioInput readAudioInput I got this list from the list of primitives you get from typing "help" at the GP command...