Go to advanced search

by John_Spikowski
Sat Nov 23, 2019 7:57 pm
Forum: General programming discussion
Topic: Just REM
Replies: 13
Views: 1018

Re: Just REM

John was wrong.
Wouldn't be the first time. Thanks for the clarification.
by John_Spikowski
Sat Nov 23, 2019 7:54 pm
Forum: General programming discussion
Topic: Just REM
Replies: 13
Views: 1018

Re: Just REM

I have languages I use on a daily basis and contribute my time to keep them whole. I'm always open to learn new languages and approaches as the industry matures.
by John_Spikowski
Sat Nov 23, 2019 7:50 pm
Forum: General programming discussion
Topic: Just REM
Replies: 13
Views: 1018

Re: Just REM

I had to disable registration on the RaspberryBASIC.org forum as I have had over 50 spammer request to join in less than 24 hours. Not one real member request.

I'll reenable registration when I finish my spammer ratification acript. Until then send me an e-mail to join.
by John_Spikowski
Sat Nov 23, 2019 7:08 pm
Forum: General programming discussion
Topic: Just REM
Replies: 13
Views: 1018

Re: Just REM

Mainly because there are language zealots out there who cannot take a hint. I think you are confusing senior level developers that use a variety of languages in their jobs and for their clients as a bunch of kids fighting on the playground. Over moderated forums loose the respects of the members an...
by John_Spikowski
Sat Nov 23, 2019 2:43 am
Forum: General programming discussion
Topic: Just REM
Replies: 13
Views: 1018

Re: Just REM

The following languages have been posted on the RaspberryBASIC.org forum.
  • ScriptBasic
  • BaCon
  • FreeBasic
  • Python 3
  • Perl
  • bash
  • C
  • JavaScript
  • Java
Comments welcome unless this thread is shut down.
by John_Spikowski
Fri Nov 22, 2019 9:33 pm
Forum: General programming discussion
Topic: Just REM
Replies: 13
Views: 1018

Just REM

Management killed the Just REM challenge saying it has nothing to do with the Raspberry Pi. All submissions ran on the RPi. A bit heavy handed on the moderators front so I'm done posting on this board. I hope the same doesn't happen with the Swift thread. I'm surprised the RPi benchmarks thread wasn...
by John_Spikowski
Fri Nov 22, 2019 9:21 pm
Forum: General programming discussion
Topic: Just REM
Replies: 3
Views: 399

Re: Just REM

FreeBasic REM Output [email protected]:~/freebasic/examples $ fbc updown.bas [email protected]:~/freebasic/examples $ ls -l total 28 -rwxr-xr-x 1 pi pi 23528 Nov 22 13:19 updown -rw-r--r-- 1 pi pi 4 Nov 22 10:55 updown.bas [email protected]:~/freebasic/examples $ /usr/bin/time ./updown 0.00user 0.00system 0:00.01elapsed 58%C...
by John_Spikowski
Fri Nov 22, 2019 6:58 pm
Forum: General programming discussion
Topic: Just REM
Replies: 3
Views: 399

Re: Just REM

BaCon REM OutPut [email protected]:~/bacon-dev/examples $ bacon updown.bac Converting 'updown.bac'... done, 2 lines were processed in 0.026 seconds. Compiling 'updown.bac'... cc -c updown.bac.c cc -o updown updown.bac.o -lbacon -L. -lm Done, program 'updown' ready. [email protected]:~/bacon-dev/examples $ /usr/bin/t...
by John_Spikowski
Fri Nov 22, 2019 6:23 pm
Forum: General programming discussion
Topic: Just REM
Replies: 3
Views: 399

Just REM

This thread is focused on the startup and shutdown costs of a programming language. The challenge is to time an empty program with just a REMark as its code. ScriptBasic REM OutPut [email protected]:~/sbrt/examples $ /usr/bin/time scriba updown.sb (0): error &H3a:The compiled program contains no executable c...
by John_Spikowski
Fri Nov 22, 2019 6:02 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

Startup / shutdown costs can be expensive for some languages.

I've started a new topic for this challenge so we don't stray off topic with the Tatami challenge.
by John_Spikowski
Fri Nov 22, 2019 5:05 pm
Forum: Other programming languages
Topic: Swift RPi
Replies: 31
Views: 2326

Re: Swift RPi

Welcome aboard!

Do you have Swift installed on your RPi?

Swift seems to have come a long way on Linux since I took a peek at it a few years ago when it was at version 2.1.
by John_Spikowski
Fri Nov 22, 2019 5:57 am
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

A possible approach could be creating the 50 MB string in ScriptBasic and let the extension module update it (do_v) passing the pointer to the string. The MID could seach the binary string for CHR(200). The question is the time it takes for SB to create a string longer then how it's being done now a...
by John_Spikowski
Fri Nov 22, 2019 5:08 am
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

Can you add the chart as a file to where you have the code examples?

I think the old thread was closed because Heater was acting like a troll. Hi was warned for the same thing in the Swift thread just before doing the same in the old thread. Maybe he was having a bad day and needed to vent.
by John_Spikowski
Fri Nov 22, 2019 4:33 am
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

However, I'm not sure the chart would be welcome on this forum.
I think it is important part of this challenge. My vote is to have the chart.

There's no prizes so give us something.
by John_Spikowski
Fri Nov 22, 2019 3:51 am
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

You're right. It returned a zero index value.

I think the concept has merit, just not using the right tool.

I could do it in ScriptBasic with MID but that means returning the array as a string. I don't think scriba can return a 50 MB string.
by John_Spikowski
Fri Nov 22, 2019 2:17 am
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

Would it be faster to use the strchr function to find CHR(200) in the v character array (String) rather than scan the array with an IF?
by John_Spikowski
Thu Nov 21, 2019 10:53 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

It's interesting to see the two distinctive approaches to Tatami.
by John_Spikowski
Thu Nov 21, 2019 8:43 pm
Forum: Other programming languages
Topic: Swift RPi
Replies: 31
Views: 2326

Re: Swift RPi

Anyone with a Swift interest out there?

I could use a mentor for this thread.

If I can figure out how to install these C library packages so that an IMPORT finds them, I will create a project in the sandbox for them.
by John_Spikowski
Thu Nov 21, 2019 6:03 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

@ejolson,

Will we be seeing an updated Tatami chart soon?
by John_Spikowski
Thu Nov 21, 2019 1:36 am
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

ScriptBasic Tatami UPDATE ' Tatamism.sb DECLARE SUB do_v ALIAS "do_v" LIB "ta" DECLARE SUB find_s ALIAS "find_s" LIB "ta" nMax = 100000000 nMaxSqrt = INT(SQR(nMax)) FUNCTION Tatami(s) LOCAL i, j, k1, k2, k3, k4 FOR k1 = 7 TO 8 FOR i = k1 TO nMaxSqrt - 1 STEP 2 k2 = i + 3 k3 = i + i - 4 WHILE (k2 <=...
by John_Spikowski
Thu Nov 21, 2019 12:54 am
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

I feel there are two aspects of these challenges. The language you use and the code that you generate. It says a lot about who you are.
by John_Spikowski
Wed Nov 20, 2019 10:00 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

ScriptBasic Tatami ' Tatamix.sb DECLARE SUB do_v ALIAS "do_v" LIB "ta" DECLARE SUB find_s ALIAS "find_s" LIB "ta" nMax = 100000000 nMaxSqrt = INT(SQR(nMax)) FUNCTION Tatami(s) LOCAL i, j, k2, k3, k4 FOR i = 7 TO nMaxSqrt - 1 STEP 2 k2 = i + 3 k3 = i + i - 4 WHILE (k2 <= k3) AND ((i * k2) < nMax) k4...
by John_Spikowski
Wed Nov 20, 2019 9:50 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16756

Re: The Tatami-Free Rooms coding challenge.

BaCon Tatami tatami.bac OPTION BASE 0 GLOBAL nMax, nMaxSqrt TYPE long GLOBAL v TYPE char ARRAY 50000000 nMax = 100000000 nMaxSqrt = INT(SQR(nMax)) FUNCTION Tatami(s) LOCAL i, j, k2, k3, k4 TYPE long FOR i = 7 TO nMaxSqrt - 1 STEP 2 k2 = i + 3 k3 = i + i - 4 WHILE (k2 <= k3) AND ((i * k2) < nMax) k4...
by John_Spikowski
Wed Nov 20, 2019 8:59 pm
Forum: General programming discussion
Topic: ScriptBasic to BaCon Converter
Replies: 7
Views: 523

Re: ScriptBasic to BaCon Converter

I got it to work finally. tatami.bac OPTION BASE 0 GLOBAL nMax, nMaxSqrt TYPE long GLOBAL v TYPE char ARRAY 50000000 nMax = 100000000 nMaxSqrt = INT(SQR(nMax)) FUNCTION Tatami(s) LOCAL i, j, k2, k3, k4 TYPE long FOR i = 7 TO nMaxSqrt - 1 STEP 2 k2 = i + 3 k3 = i + i - 4 WHILE (k2 <= k3) AND ((i * k2...
by John_Spikowski
Wed Nov 20, 2019 5:24 pm
Forum: General programming discussion
Topic: ScriptBasic to BaCon Converter
Replies: 7
Views: 523

Re: ScriptBasic to BaCon Converter

Here is the converted ScriptBasic script I used with BaCon if anyone wishing to comment on this to help solve the issue of hanging and not returning a result the help would be appreciated. I haven't used BaCon in a while. Update : I noticed that my find s code overshot the end of the array. I added ...

Go to advanced search