Recent Posts

Pages: [1] 2 3 ... 10
1
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by John on Today at 09:00:36 PM »
I'm having pretty good luck with Nim on the RPi. Nimble makes it painless to install extensions. I have the following extensions installed and a quick test.

* IUP
* GMP
* SDL2 and GFX
* SQLite 3
2
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by John on Today at 08:51:04 PM »
My 5.1.2 of Swift was built from the latest Apple sources and native on the RPi 4B. The latest binary I was able to find for the RPi was 5.1.1 which has the compare bug I found.

3
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by AIR on Today at 08:30:03 PM »
The String object in Swift.org's RPI version of Swift is brain dead, on top of being slow.

I downloaded and installed the RPI deb from their site, tried a few things, but it reinforces the fact that I will never use Swift for any real code.  I'm about to uninstall it now.

AIR.
4
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by John on Today at 06:19:18 PM »
No improvement.


pi@RPi4B:~/swift-dev/examples $ swiftc -O 1mil3-4.swift
pi@RPi4B:~/swift-dev/examples $ timex ./main
r LEN:  999986
Front:  ZYXWVUTSRQPONMLKJIHGFEDCBA
Back:   ZYXWVUTSRQPONMLKJIHGFEDCBA
UBVal:  100000
23.33user 0.05system 0:23.51elapsed 99%CPU (0avgtext+0avgdata 12024maxresident)k
6368inputs+0outputs (25major+1877minor)pagefaults 0swaps
pi@RPi4B:~/swift-dev/examples $



You can download my Swift 5.1.2 RPi build here.
https://raspberrybasic.org/download/swift-5.1.2_armv7.tgz
5
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by AIR on Today at 06:06:59 PM »
John, what timing do you get with the following?

Code: Text
  1. // Swift 5.1.2 - 1mil3.swift
  2.  
  3. var s = ""
  4. var t = ""
  5. var a = [Int](repeating: 0, count: 1000001)
  6. var i = 0
  7.  
  8. for x in 1...1000000 {
  9.   let c = Character(UnicodeScalar(((x - 1) % 26)+65)!)
  10.   s.append(c)
  11.   i += 1
  12.   a[x] = x
  13.   if i == 26 {
  14.     t.append(String(s.reversed()))
  15.     s = ""
  16.     i = 0
  17.   }
  18. }
  19.  
  20. print("r LEN: ", t.count)
  21. print("Front:  \(t.prefix(26))")
  22. print("Back:   \(t.suffix(26))")
  23. print("UBVal: ", a[100000])
  24.  

AIR.
6
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by John on Today at 01:52:49 PM »
Use the toolbar login method and it should save your cookie.

This seems to be happening with all the sites I host. Sorry!
7
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by AIR on Today at 01:35:06 PM »
Ever since you approved me, this is what I get when logging in:

Quote from: FAIL
  An Error Has Occurred!    Your session timed out while posting.  Please go back and try again.
8
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by John on Today at 01:06:06 PM »
Can we move this thread to the RaspberryBASIC forum? It isn't a blog and I'm wasting a lot of time being a messenger. I approved AIR's membership so he is free to post there. I'm sadden that @ejolson, heater, hippy and others didn't bother to join us. I miss the relationship.
9
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by John on Today at 11:55:21 AM »
I'm hoping a FreeBasic fan sees this and submits an optimized version.
10
Open Forum / Re: RaspberryBASIC.org Forum
« Last post by John on Today at 11:51:10 AM »
AIR,
I used -O with your last submission. Swift generates a main even if you use the -o option. There was about a second improvement over non-optimized.
Pages: [1] 2 3 ... 10