Search found 362 matches

by JohnM
Sep 1st, '18, 17:32
Forum: Projects
Topic: How to use serial port?
Replies: 1
Views: 59

Re: How to use serial port?

Here are the built-in GP serial port functions: -- Serial Port -- listSerialPorts openSerialPort isOpenSerialPort closeSerialPort readSerialPort writeSerialPort I got this by running the 'help' function in a workspace window. (To open a workspace, first enter developer mode, then select 'workspace.....
by JohnM
Sep 1st, '18, 17:17
Forum: Requests
Topic: Using microphone and webcam in GP?
Replies: 5
Views: 128

Re: Using microphone and webcam in GP?

GP supports getting data from the microphone using the "sound input" block in the Sound category.

I agree, camera support would be nice to have as well, but its a fair bit of work to support that on all platforms.
by JohnM
Sep 1st, '18, 17:12
Forum: Experience Reports
Topic: Why does Creating a New Instance have such an Overhead?
Replies: 1
Views: 121

Re: Why does Creating a New Instance have such an Overhead?

I suspect what your'e seeing may be the result of displaying a thumbnail for the new instance, rather than creating the instance itself. It's also slow to add an instance to the stage. One way to address the thumbnail slowdown is to select a different class before running the code the generates new ...
by JohnM
Sep 1st, '18, 17:08
Forum: Working with GP
Topic: Pulls GP benefits from the 64bit architecture?
Replies: 3
Views: 85

Re: Pulls GP benefits from the 64bit architecture?

GP uses the same size integers on both 32-bit and 64-bit architectures. GP does run a little faster when compiled for 64-bit architectures. However, the speed increase isn't really noticeable except on benchmarks.
by JohnM
Sep 1st, '18, 17:01
Forum: Requests
Topic: asymetrical encryption/decryption?
Replies: 7
Views: 143

Re: asymetrical encryption/decryption?

As Gosha pointed out, the RSA encryption system involves multiplying and taking the modulus of very large numbers (500-1000 decimal digits). If you have a system that supports working with such large integers, then RSA isn't too difficult to implement. As I recall, the most difficult part is generat...
by JohnM
Jul 22nd, '18, 21:27
Forum: Extending GP
Topic: Great to see the new GP mods, please share links!
Replies: 2
Views: 136

Re: Great to see the new GP mods, please share links!

Oh, I see -- you need to click on the number in the "Fork" box. Thanks!
by JohnM
Jul 22nd, '18, 21:24
Forum: Projects
Topic: BootToGP - minimal Linux to run a GP project as embeded app?
Replies: 6
Views: 331

Re: BootToGP - minimal Linux to run a GP project as embeded app?

This is really cool! I love the idea of "booting into GP".
by JohnM
Jul 22nd, '18, 21:21
Forum: Working with GP
Topic: How to check internet connection without error message?
Replies: 2
Views: 337

Re: How to check internet connection without error message?

Check out the "safelyRun" function in tasks.gp. That will allow you to try to open a socket to a given host. If you provide an error function, it will be called if the attempt fails. Or, if you don't provide an error function, you'll get a Task object back if it fails or an ExternalReference back if...
by JohnM
Jul 11th, '18, 17:57
Forum: Extending GP
Topic: Great to see the new GP mods, please share links!
Replies: 2
Views: 136

Great to see the new GP mods, please share links!

I've seen GP mods on Github by MSanders and Calloway. It's super exciting to see folks taking GP in new directions! Are there other GP mods out there? It would be great to share links to your mods in the "Share your Mods" forum. You might also add a few notes to highlight what you've changed or adde...
by JohnM
Jul 11th, '18, 17:47
Forum: Working with GP
Topic: What's the Interpreter/Bootstrapper Programmed in?
Replies: 7
Views: 446

Re: What's the Interpreter/Bootstrapper Programmed in?

I tried -Ofast but, unfortunately, it gives the same performance as -O3. BTW, a quick performance check is the "tinyBenchmarks" function. You can make a block for that by opening a workspace (in dev mode), typing it in, selecting it, and using the "blockify" menu command (ctrl-B) to make a block: Sc...