If you are currently developing portable freeware or planning to do so, use this forum to discuss technical implementation, seek out like-minded developers for partnership, or solicit interested users for beta testing.
'euler method example
precision 4
let s = 2
gosub euler
let s = 5
gosub euler
let s = 10
gosub euler
end
sub euler
cls
cursor 1, 1
wait
print "step: ", s
let b = 100
let y = 100
for t = 0 to b step s
print t, " : ", y
let y = y + s * (-0.07 * (y - 20))
gosub delay
next t
alert "step ", s, " finished"
return
sub delay
let w = clock
do
wait
loop clock < w + 200
return
I have released version 1.3 to fix another issue with the for loops. They should be even more accurate and stable now. The issue was happening with things such as FOR i = -1 TO 0 STEP -1. No wonder.
There's now a QUOTE keyword to go along with COMMA and NEWLINE for output formatting.
I also "improved" the line number display to be more like margins. This required including a font file, increasing the size of the download, but making sure compatibility is kept with Windows 95 though 10.
A Van Eck sequence example has been added to the examples folder.
'van eck sequence example
define limit = 1000
dim list[limit]
print "calculating van eck sequence..."
for n = 0 to limit - 1
for m = n - 1 to 0 step -1
if list[m] = list[n] then
let c = n + 1
let list[c] = n - m
break m
endif
wait
next m
next n
print "First 10 terms: "
for i = 0 to 9
print list[i]
next i
print "Terms 991 to 1000: "
for i = 990 to 999
print list[i]
next i
end
@basicgames: Do you mind if the topic is moved to "Development" -- it appears more appropriate for what we're seeing from an user point of view and on more than one level...
I do not mind, although I would like to humbly request a quick review of the latest version as I have made many improvements and consider it to be stable.
As far as the not working on Windows 10 thing? I don't know. It works on the ones I tested. Oldergeeks uploaded it as well and have screenshots of it working on Win 10.
As it's a programming language, I plan to continually release updates to prevent it from stagnating. I understand if this language is not a fit for the archive yet.
I don't have a community surrounding my product yet, so any feedback is helpful.
Craft Basic is continuing to mature. With each update comes fixed problems, new features, and more examples. The project is stable and has been tested on Windows 10 and 11.
Any serious programming language is always under development and will be updated accordingly. Craft Basic is a programming language, so it will continue to receive updates. A language dies when it is no longer updated.
I have updated the original post to include a new set of screenshots demonstrating some recently added features and examples.
One of the main new features is the text output window for the PRINT command. This makes the overall programming experience a bit more like Just Basic. You may save, copy, paste, and edit your output. The window also fixed some issues with the previous PRINT output method of writing to the graphics window. If you still want to display text in the graphics window, you may use static text forms.
I am wondering if anyone has tried the new version. Feedback about the new PRINT output system for the PRINT command would be helpful. It's easy to try. Just run some of the math/science examples. The result should feel a bit like Just Basic.