Go to advanced search

by John_Spikowski
Wed Oct 16, 2019 4:45 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

Sorry, I never tried it with unicode based filenames. If someone gives it a try, please let us know how it works out.
by John_Spikowski
Wed Oct 16, 2019 12:02 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

John_Spikowski, I try to stay away from languages that require declaring and framework definitions. How does that help in this case? What does ScriptBasic do when you list the content of directories in different operating systems? ScriptBasic directory read is very flexable and produces the same re...
by John_Spikowski
Wed Oct 16, 2019 3:47 am
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

I try to stay away from languages that require declaring and framework definitions.
by John_Spikowski
Tue Oct 15, 2019 5:41 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

Heater,

You would have a blast building the RPi Tank.
by John_Spikowski
Tue Oct 15, 2019 3:54 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

How well languages scale isn't a topic often discussed.
by John_Spikowski
Wed Oct 09, 2019 9:29 am
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

Is Heater on vacation? I would have thought he would be investigating and offered reasons for the wide gap by now.  but by not using GMP doesn't make Python unusable by any stretch of the imagination. Can we agree on bloated and partially crippled? @ejolson was correct by saying the purpose of the 1...
by John_Spikowski
Tue Oct 08, 2019 7:23 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

Both the laptop and RPi are running 3.7.3.

I'm curious what other scripting engines / interpreters use the GMP library for their BIGINT support?

What slows down Python more, 32 bit or ARM?
by John_Spikowski
Tue Oct 08, 2019 4:37 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

So what I'm hearing is Python's internal BIGINT is crap and GMP should be installed by default to make the language usable? So was Python's GMP support installed on the notebook but not the Pi, or was it not installed on either? I ran Python out the box on the laptop and RPi4B. Why is Python so slo...
by John_Spikowski
Tue Oct 08, 2019 1:51 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

So what I'm hearing is Python's internal BIGINT is crap and GMP should be installed by default to make the language usable?
by John_Spikowski
Tue Oct 08, 2019 12:57 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

You would think that Python would throw an error calling functions that don't exist. Auto fallback is news to me.
by John_Spikowski
Mon Oct 07, 2019 11:02 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

#!/usr/bin/python3 ## Fibonacci script using an improved version of fast doubling import time, sys, math use_gmp = True use_gmp_fibo = False timing_only = False string_conversion = True index = 4784969 compare = False usage = '''Usage: python fibo_fdi.py [options] [index] or python3 fibo_fdi.py [op...
by John_Spikowski
Mon Oct 07, 2019 10:29 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

Please remember that when ScriptBasic entered this challenge starting native using the QB code it was taking 4 hours or so to complete. Adding GMP BIGINT support was a huge step forward.

I'm happy and for me that's all that counts.
by John_Spikowski
Mon Oct 07, 2019 7:16 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

I picked up the Lenovo laptop at Costco on sale for $800. Normally sells for a grand. With the Sandisk SSD and persistant LIVE, I get that performance under Win10 and Ubuntu. I'm happy at the moment how it turn out including the splitters for HDMI and USB for my Raspberry Pi farm. The Lenovo laptop ...
by John_Spikowski
Sun Oct 06, 2019 8:56 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

Here is the time for 1milfibo on the RPI 4B 4GB.

Code: Select all

pi@RPi4B:~/sbrt/examples $ time scriba 1milfibo.sb
1000000

real	0m19.103s
user	0m18.801s
sys	0m0.281s
pi@RPi4B:~/sbrt/examples $ 
Is there there a RPi 4B Fibo chart?
by John_Spikowski
Sun Oct 06, 2019 12:24 am
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1175
Views: 56568

Re: Liberation through Computer Literacy

For grins, here is AIR's GMP2 1milfibo running on my new laptop and Ubuntu 19.04. IMPORT gmp2.bas count = 4784969 a = 1 b = 0 p = 0 q = 1 WHILE count > 0 IF (count % 2) = 0 THEN psq = gmp2::mul(p, p) qsq = gmp2::mul(q, q) twopq = gmp2::mul(p, q) twopq = gmp2::mul_si(twopq, 2) p = gmp2::add(psq, qsq)...
by John_Spikowski
Sat Oct 05, 2019 6:33 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 60374

Re: ScriptBasic

I wonder how hard it would be to set up a portable USB drive with Raspberry Pi desktop for x86 computers? I'm happy to report that personalized setting like WIFI and browser history are retained with the persistent LIVE USB portable Linux. I think I found a good solution to match what my goals were...
by John_Spikowski
Sat Oct 05, 2019 1:39 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 60374

Re: ScriptBasic

The mkusb Linux utility did its job and created a persistent LIVE USB SSD for me. It's portable and has a Windows accessible partition to store and transfer files among OS platforms. ubuntu@ubuntu:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev tmpfs 1.6G 1.8M 1.6G 1% /r...
by John_Spikowski
Fri Oct 04, 2019 5:56 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 60374

Re: ScriptBasic

Do you have a link that explains how to do that?

I kind of like the idea of a portable Linux on a USB SSD.

Thanks!
by John_Spikowski
Fri Oct 04, 2019 6:05 am
Forum: Other programming languages
Topic: The Rust debate.
Replies: 151
Views: 4125

Re: The Rust debate.

Wow!

That has to be a huge boost for Rust when Microsoft recommends it as the best memory safe kernel level programming language.
by John_Spikowski
Fri Oct 04, 2019 4:49 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 60374

Re: ScriptBasic

Welcome back AIR! I think I would go dual boot with a Ubuntu install before going back to VirtualBox again. I plan to use it as a clean Linux system for testing with 16 GB and 8 cores running at 1.8 ghz. Sandisk isn't lying. This SSD is lightning fast. This is the fastest I've seen ScriptBasic build...
by John_Spikowski
Thu Oct 03, 2019 10:04 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 60374

Re: ScriptBasic

I got a new Lenovo laptop a few months back as a Windows 10 development box. It is much faster than my old Gateway laptop currently running Ubuntu 64 bit. (19.04) I picked up a fast external USB-C SSD drive and installed Ubuntu on it. Pressing F12 at boot time gives me the option to boot the interna...
by John_Spikowski
Thu Oct 03, 2019 5:33 pm
Forum: Other programming languages
Topic: The Rust debate.
Replies: 151
Views: 4125

Re: The Rust debate.

Sure it can. A and B being negative numbers then added then compared.
by John_Spikowski
Thu Oct 03, 2019 5:13 pm
Forum: Other programming languages
Topic: The Rust debate.
Replies: 151
Views: 4125

Re: The Rust debate.

For me the two biggest reasons I use C is portability and the extensive code / library base that comes standard with Linux essential development tools.
by John_Spikowski
Thu Oct 03, 2019 12:15 pm
Forum: Other programming languages
Topic: The Rust debate.
Replies: 151
Views: 4125

Re: The Rust debate.

Code: Select all

PRINT FORMAT("%0.f",0xFFFF * 0xFFFF),"\n"

pi@RPi4B:~/sbrt/examples $ scriba 32math.sb
4294836225
pi@RPi4B:~/sbrt/examples $ 
What are you expecting as a result?
by John_Spikowski
Thu Oct 03, 2019 11:59 am
Forum: Other programming languages
Topic: The Rust debate.
Replies: 151
Views: 4125

Re: The Rust debate.

I think Peter Verhas's design and unlimited expansion is an example of vision at its best.

Go to advanced search