Recent Posts

Pages: [1] 2 3 ... 10
1
Code Challenges / Re: Array Sort
« Last post by John on Today at 12:22:38 AM »
That's twice as fast as my PC running at 1.3 ghz 4 cores.
2
Code Challenges / Re: Array Sort
« Last post by AIR on Today at 12:20:07 AM »
This was done on my Mac Mini:

      Model Name: Mac mini
      Model Identifier: Macmini6,2
      Processor Name: Intel Core i7
      Processor Speed: 2.3 GHz
      Number of Processors: 1
      Total Number of Cores: 4
3
Code Challenges / Re: Array Sort
« Last post by John on Today at 12:07:31 AM »
Nice to see GO has native array sort. I was hoping for something in C I could use in an extension module.

Based on your fast PC compared to my PoS PC, SB seems faster than GO. Try the bible line sort in GO.
4
Code Challenges / Re: Array Sort
« Last post by AIR on May 26, 2019, 11:56:52 PM »
Code: Go
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5.     "sort"
  6.     "strings"
  7. )
  8.  
  9. func main() {
  10.     s := strings.Split("pear,cranberry,orange,apple,carrot,banana,grape", ",")
  11.     sort.Strings(s)
  12.     fmt.Println(strings.Join(s, "\n"))
  13. }

[riveraa@mini ~/Projects/go/sort] $ time ./sort
apple
banana
carrot
cranberry
grape
orange
pear

real    0m0.006s
user    0m0.002s
sys    0m0.002s


5
Code Challenges / Array Sort
« Last post by John on May 25, 2019, 07:25:52 PM »
We haven't had a code challenge in a while so I thought I would suggest an Array Sort challenge in your language of choice.

I gave this a try in native ScriptBasic but I would love to extend the T module with it done in C. The speed of SPLITA gives me hope array access at the C level would be much faster.

ScriptBasic Initial Submission
6
Open Forum / Re: PINE64 ROCK64
« Last post by jalih on May 25, 2019, 09:52:57 AM »
Sounds like you have a hot board there. Does it come with GPIO?

It should have more GPIO than RPI3 but I have not really looked about that yet.
7
Open Forum / Re: PINE64 ROCK64
« Last post by John on May 25, 2019, 09:23:59 AM »
I was beginning to think your board got lost in delivery.

Sounds like you have a hot board there. Does it come with GPIO?
8
Open Forum / Re: PINE64 ROCK64
« Last post by jalih on May 25, 2019, 08:49:13 AM »
I have been playing a couple of days with my new ROCK64 based computer. Suprisingly it's fast enough to be used as a desktop replacement for most of my work.

8th works great with this setup. Attached is a picture with 8th running my simple analog clock and mine sweeper game. You can also notice that running fibo(4784969) takes just 800 msec.
9
Scripting Languages / Re: Scriptbasic Build Linux
« Last post by John on May 21, 2019, 04:49:21 PM »
For me everything gets created properly except the directory in obj. Using SB-dev-cleanup.
10
Scripting Languages / Re: Scriptbasic Build Linux
« Last post by AIR on May 21, 2019, 04:26:48 PM »
I don't have that issue, the required structure is created for me.
Pages: [1] 2 3 ... 10