News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Subforum for Free Basic

Started by Vortex, January 14, 2020, 06:56:27 AM

Previous topic - Next topic

jj2007

Quote from: caballero on January 26, 2020, 04:30:29 AMbasic was designed more for simplicity than for power.

Back in 1986, GfaBasic could beat C compilers and still was very simple to use. I program in "pure" assembly every day, and quite a lot, but I would definitely not waste time on doing standard tasks like pulling a text file into a string array in "pure" assembly if the Recall() macro can do that in one line. The Masm32 SDK is so easy to use because it was written by somebody who came from PowerBASIC. If Hutch was a C++ guy, it would be an entirely different story.

Vortex

Today's Basic dialects are much more powerful compared to their ancestors. PowerBASIC is a nice one. It supports assembly and the community support looks good. Free Basic is another interesting choice as it supports 64-bit programming and the GNU tool chain. One can mix Free Basic object modules with assembly and even C\C++ modules.


avcaballero

Talking about freebasic and if I may do it, I attach a raytracing program in freebasic that I just made for drawing a Sphereflake. I promise not to attach more freebasic programs, or even I could remove it. It is a sphere flake generator with raytracing source code and compiled attached. The program takes a while to raise up but it is working and it is making a ppm graphic file in the same folder where you can see its progress. It is 45 kb in size once compiled.

daydreamer

Quote from: jj2007 on January 26, 2020, 04:52:55 AM
Quote from: caballero on January 26, 2020, 04:30:29 AMbasic was designed more for simplicity than for power.

Back in 1986, GfaBasic could beat C compilers and still was very simple to use. I program in "pure" assembly every day, and quite a lot, but I would definitely not waste time on doing standard tasks like pulling a text file into a string array in "pure" assembly if the Recall() macro can do that in one line. The Masm32 SDK is so easy to use because it was written by somebody who came from PowerBASIC. If Hutch was a C++ guy, it would be an entirely different story.
but no wonder,C came 1979,BASIC already existed pn many slow builtin basic on cpus,but super fast basic could be loaded from disk,basic games listings with or without Machine Language part in data statements was in computer magazines,and you could get assemblers to your computer
the stars of that time was game programmers that made Pacman,space invaders... in assembler
so you was wannabe game programmer and necesary to learn asm for that purpose,but also thrill of 1000x speed
so first asm game was make game in basic first and make parts of it in data statements until everything was translated

@caballero
great basic program,looks great
@AW
sometimes works on 128bit+ version of this:
http://masm32.com/board/index.php?topic=7324.0
but sometimes busy with doing other things,enjoy sketch manga and scan and import to 2d paint program and use various 3d programs too
maybe lowpoly near 500 polys could be fit into tiny asm program,but you can also enjoy reduction and make tiny same as in assembly
http://masm32.com/board/index.php?topic=6937.0



my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

avcaballero

Hello, I have improved this fractal, taking advantage that it is reflexive, so in fact I only have to paint one octanct and generate only the spheres in this region. With this, it takes 0.1476 seconds to be executed in my computer, while the original one took more than 20 seconds.

TimoVJL

Quote from: daydreamer on January 27, 2020, 01:31:43 AM
but no wonder,C came 1979,BASIC already existed ...
BASIC was born 1964.
PASCAL was born 1970.
C was born 1972.
C++ was born 1985.
May the source be with you

HSE

Quote from: caballero on February 08, 2020, 07:37:49 PM
I have improved this fractal

:thumbsup: Instantaneus!

Perhaps you have to change BitBlt by StretchBlt in your framework, to maintain aspect when resizing window.
Equations in Assembly: SmplMath

avcaballero


HSE

Quote from: caballero on February 09, 2020, 03:17:26 AM
But... It is
:biggrin:  BitBlt is comented!  Anyway, aspect it's not preserved.
Equations in Assembly: SmplMath

avcaballero

What do you mean?, the image is streatched

HSE

Aspect is h/w ratio.  Perhaps not a  definition. 
Equations in Assembly: SmplMath

avcaballero

Proportion goes with H/W resizing size, that is what I really want, surely there is any switch in stretchblt to get proportion invariable, this way some parts of the window will be black.

HSE

Quote from: caballero on February 09, 2020, 08:36:38 AM
this way some parts of the window will be black.
A little obvious... you must paint that  :biggrin:

later: ... remembering, I think I maked that in MathArt
Equations in Assembly: SmplMath