Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - John Spikowski

Pages: 1 [2]
16
General Discussion / RPI Forum
« on: December 03, 2019, 04:40:04 PM »
Quote
I don't know if John is still following this thread or not, but if he is, thanks for finding that note. Those pages covered the mathematics so I could proceed directly to the software engineering needed to write an efficient program. It also helped to look at the sample code included in the post.

@ejolson,

Glad it helped! Wish you were here.

17
General Discussion / MS Rust
« on: December 02, 2019, 06:52:49 PM »

18
Programming Challenges / SALC Rasbian 32
« on: November 28, 2019, 05:03:24 AM »
I 'm going to take this challenge one more round and add a string and array  to the mix.

FYI:  This site is a forum and not my blog. Without contributing members it will soon become dormant. It only takes a minute to register. It's okay to be a member of multiple forums and I'm pretty sure the RPi moderators won't ban you if you appear here.

19
General Discussion / gcc optimization on the RPi
« on: November 24, 2019, 10:46:16 PM »
Quote from: ejolson@RPi
The PC results are interesting because the native optimization setting in gcc results in an executable that runs an astonishing 20 percent slower.

That is motivation enough for me to reconfigure ScriptBasic's build scripts to use these settings rather than the default O3.

20
Programming Challenges / One Mil Dash
« on: November 24, 2019, 09:22:52 PM »
ScriptBasic

Code: Script BASIC
  1. ' ScriptBasic - 1mil.sb
  2.  
  3. accum = 0
  4. milvar = 1000000
  5.  
  6. FOR x = 1 TO 1000000
  7.   accum += 1
  8.   milvar -= 1
  9.   IF accum = milvar THEN PRINT "Middle\n"
  10. NEXT
  11. PRINT "Plus:  ",accum,"\n"
  12. PRINT "Minus: ",milvar,"\n"
  13.  


pi@RPi4B:~/sbrt/examples $ /usr/bin/time scriba 1mil.sb
Middle
Plus:  1000000
Minus: 0
2.18user 0.00system 0:02.21elapsed 99%CPU (0avgtext+0avgdata 1972maxresident)k
520inputs+0outputs (1major+108minor)pagefaults 0swaps
pi@RPi4B:~/sbrt/examples $

21
General Discussion / RPi 4 Update
« on: November 24, 2019, 06:12:52 PM »
I updated my RPi 4 OS and now the default file browse opens and closes immediately. I ended up removing it and installing Nautilus. I replaced the default text editor with gedit.

22
General Discussion / Raspberry Pi Forum
« on: November 23, 2019, 11:21:21 PM »
I have been banned at the RPi forum for standing up to the moderators that think they're gods and only their opinion matters. My take is the RPi forum is focused as a support channel rather than a learning / tutorial forum.

It would be great is the guys from the challenge circle were to join the forum and continue with discussions without the moderators jumping in at every opportunity.

Even if BASIC isn't your language of choice, you are welcome to join and share your knowledge with others. In the end it's all a stream of bits.

If you have any questions, need help registering then contact me support @ raspberrybasic.org.

23
C BASIC / Hello C BASIC
« on: April 19, 2019, 07:30:38 PM »
Code: C
  1. #include <stdio.h>
  2. #include "cbasic.h"
  3.  
  4. MAIN
  5. BEGIN_FUNCTION
  6.   PRINT("Hello, World!\n");
  7. END_FUNCTION
  8.  


$ gcc hello.c -o hello
$ ./hello
Hello, World!
$


24
BBC BASIC / BBC BASIC Compiler?
« on: April 15, 2019, 03:33:17 AM »
Richard,

Quote from: Your Web Site
The Raspberry Pi edition has an ARM assembler.

This was the reason I thought BBC BASIC was a BASIC to ASM compiler.


Pages: 1 [2]