• Graphics in Forth?

    From minforth@21:1/5 to All on Mon Apr 17 08:38:06 2023
    Is anybody doing (simple) scientific/engineering plotting in Forth?
    How?

    I just stumpled over Atlast-Forth running on a raspberry Pi https://elinux.org/Forth
    doing plots in Sixel graphics. Looks nice and easy. However it requires
    a Sixel-enabled terminal.

    In the olden days graphics with or without turtle had been very popular.
    DOS with its simple interfaces made it easy. I don't know any modern
    Forth taking at least 2D graphics support seriously.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans Bezemer@21:1/5 to minforth on Mon Apr 17 14:59:29 2023
    On Monday, April 17, 2023 at 5:38:08 PM UTC+2, minforth wrote:
    In the olden days graphics with or without turtle had been very popular.
    DOS with its simple interfaces made it easy. I don't know any modern
    Forth taking at least 2D graphics support seriously.
    4tH has both 2D and 3D graphics libraries. With Turtle graphics. I won't
    take the credits for those - it were contributions from a very capable programmer. I added flood fills, circles, ellipses and (quadratic) Bezier curves.

    Add Brodie math into the mix and you got yourself some fast graphs.

    Hans Bezemer

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard@21:1/5 to All on Mon Apr 17 22:24:53 2023
    [Please do not mail me a copy of your followup]

    minforth <minforth@arcor.de> spake the secret code <c9875e5e-09bc-4030-a4ec-90b9f152d315n@googlegroups.com> thusly:

    Is anybody doing (simple) scientific/engineering plotting in Forth?

    GraFORTH ][ for the Apple ][ has 2D and 3D graphics words: <https://mirrors.apple2.org.za/ftp.apple.asimov.net/images/programming/forth/> --
    "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
    The Terminals Wiki <http://terminals-wiki.org>
    The Computer Graphics Museum <http://computergraphicsmuseum.org>
    Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron AARON@21:1/5 to Hans Bezemer on Tue Apr 18 06:18:08 2023
    On 18/04/2023 0:59, Hans Bezemer wrote:
    On Monday, April 17, 2023 at 5:38:08 PM UTC+2, minforth wrote:
    In the olden days graphics with or without turtle had been very popular.
    DOS with its simple interfaces made it easy. I don't know any modern
    Forth taking at least 2D graphics support seriously.
    4tH has both 2D and 3D graphics libraries. With Turtle graphics. I won't
    take the credits for those - it were contributions from a very capable programmer. I added flood fills, circles, ellipses and (quadratic) Bezier curves.

    Add Brodie math into the mix and you got yourself some fast graphs.

    Hans Bezemer

    8th also has built-in graphics using OpenGL for output, so it mostly
    "just works" on the common OSes and hardware.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to Hans Bezemer on Tue Apr 18 00:08:57 2023
    Hans Bezemer schrieb am Montag, 17. April 2023 um 23:59:31 UTC+2:
    On Monday, April 17, 2023 at 5:38:08 PM UTC+2, minforth wrote:
    In the olden days graphics with or without turtle had been very popular. DOS with its simple interfaces made it easy. I don't know any modern
    Forth taking at least 2D graphics support seriously.
    4tH has both 2D and 3D graphics libraries. With Turtle graphics. I won't take the credits for those - it were contributions from a very capable programmer. I added flood fills, circles, ellipses and (quadratic) Bezier curves.

    Add Brodie math into the mix and you got yourself some fast graphs.

    Thanks. I installed 4th on Win11. But your UI really needs getting used to it...

    Silly me tried
    include examples/gkoch.4th
    but nothing happened. Unfortunately, browsing the docs I couldn't find a fool-proof graphics example either, with immediate screen output.
    It seems that you generate ppm-files instead. That's okay, but ISTM that
    the user has to send the results to a ppm-viewer manually ????

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to Ron AARON on Tue Apr 18 00:54:41 2023
    Ron AARON schrieb am Dienstag, 18. April 2023 um 05:18:12 UTC+2:
    8th also has built-in graphics using OpenGL for output, so it mostly
    "just works" on the common OSes and hardware.

    Okay. Also SDL2 offers a simpler interface on top of OpenGL ...
    Move a mountain to draw a line into sand ...

    The time of using just 2 simple matrices as alternating framebuffers
    for simple 2D output seems to have passed away for good ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron AARON@21:1/5 to minforth on Tue Apr 18 11:08:04 2023
    On 18/04/2023 10:54, minforth wrote:
    Ron AARON schrieb am Dienstag, 18. April 2023 um 05:18:12 UTC+2:
    8th also has built-in graphics using OpenGL for output, so it mostly
    "just works" on the common OSes and hardware.

    Okay. Also SDL2 offers a simpler interface on top of OpenGL ...
    Move a mountain to draw a line into sand ...

    I do use SDL2 for overall cross-platform GUI control, and (my version
    of) Nuklear for the actual GL output.


    The time of using just 2 simple matrices as alternating framebuffers
    for simple 2D output seems to have passed away for good ...

    Well, true enough.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans Bezemer@21:1/5 to minforth on Tue Apr 18 01:02:44 2023
    On Tuesday, April 18, 2023 at 9:08:59 AM UTC+2, minforth wrote:
    Hans Bezemer schrieb am Montag, 17. April 2023 um 23:59:31 UTC+2:
    On Monday, April 17, 2023 at 5:38:08 PM UTC+2, minforth wrote:
    In the olden days graphics with or without turtle had been very popular. DOS with its simple interfaces made it easy. I don't know any modern Forth taking at least 2D graphics support seriously.
    4tH has both 2D and 3D graphics libraries. With Turtle graphics. I won't take the credits for those - it were contributions from a very capable programmer. I added flood fills, circles, ellipses and (quadratic) Bezier curves.

    Add Brodie math into the mix and you got yourself some fast graphs.
    Thanks. I installed 4th on Win11. But your UI really needs getting used to it...
    Oh dear - a developer that works under Windows ;-)

    Silly me tried
    include examples/gkoch.4th
    but nothing happened. Unfortunately, browsing the docs I couldn't find a fool-proof graphics example either, with immediate screen output.
    Nope. I never said it did. You implied that all by yourself. Note a manual comes along with every package. And it features an installation guide. You probably have to set DIR4TH to the appropriate directory.

    It seems that you generate ppm-files instead. That's okay, but ISTM that
    the user has to send the results to a ppm-viewer manually ????
    That usually is the case with CLI tools. ImageMagix doesn't do that for you either. But PPM is well supported under serious operating systems. The
    fastest is "display".

    But maybe you and 4tH are a bad fit. Fair enough. It happens..

    Hans Bezemer

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jos Ven@21:1/5 to All on Tue Apr 18 01:47:50 2023
    Op maandag 17 april 2023 om 17:38:08 UTC+2 schreef minforth:
    Is anybody doing (simple) scientific/engineering plotting in Forth?
    How?

    I just stumpled over Atlast-Forth running on a raspberry Pi https://elinux.org/Forth
    doing plots in Sixel graphics. Looks nice and easy. However it requires
    a Sixel-enabled terminal.

    In the olden days graphics with or without turtle had been very popular.
    DOS with its simple interfaces made it easy. I don't know any modern
    Forth taking at least 2D graphics support seriously.

    Hi,
    My RPI and ESP32 Forth's plot SVG graphics in a web browser.
    Screen shots are at: http://home.kpn.nl/~josv/ on my Smart home page.
    Jos

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to Hans Bezemer on Tue Apr 18 01:30:00 2023
    Hans Bezemer schrieb am Dienstag, 18. April 2023 um 10:02:46 UTC+2:
    On Tuesday, April 18, 2023 at 9:08:59 AM UTC+2, minforth wrote:
    Hans Bezemer schrieb am Montag, 17. April 2023 um 23:59:31 UTC+2:
    On Monday, April 17, 2023 at 5:38:08 PM UTC+2, minforth wrote:
    In the olden days graphics with or without turtle had been very popular.
    DOS with its simple interfaces made it easy. I don't know any modern Forth taking at least 2D graphics support seriously.
    4tH has both 2D and 3D graphics libraries. With Turtle graphics. I won't take the credits for those - it were contributions from a very capable programmer. I added flood fills, circles, ellipses and (quadratic) Bezier curves.

    Add Brodie math into the mix and you got yourself some fast graphs.
    Thanks. I installed 4th on Win11. But your UI really needs getting used to it...
    Oh dear - a developer that works under Windows ;-)

    I'd like to do the smiley myself, but when you have to interface with other engineering software on Windows, you bite into that sour apple ... :-(

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dxforth@21:1/5 to minforth on Tue Apr 18 20:52:41 2023
    On 18/04/2023 1:38 am, minforth wrote:
    Is anybody doing (simple) scientific/engineering plotting in Forth?
    How?

    I just stumpled over Atlast-Forth running on a raspberry Pi https://elinux.org/Forth
    doing plots in Sixel graphics. Looks nice and easy. However it requires
    a Sixel-enabled terminal.

    In the olden days graphics with or without turtle had been very popular.
    DOS with its simple interfaces made it easy. I don't know any modern
    Forth taking at least 2D graphics support seriously.

    There are no applications today that take your data and plot it for you?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From S Jack@21:1/5 to dxforth on Tue Apr 18 04:36:39 2023
    On Tuesday, April 18, 2023 at 5:52:43 AM UTC-5, dxforth wrote:
    There are no applications today that take your data and plot it for you?
    When first on internet, I found a DOS spreadsheet very very nicely done.
    It was old, had the Pascal window look. It included many scripts for generating just about any kind of graph, from the spreadsheet data, that one could think of.
    I thought to myself if they're throwing away software this well done, then programming
    is no longer relevant.
    --
    me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to dxforth on Tue Apr 18 04:52:09 2023
    dxforth schrieb am Dienstag, 18. April 2023 um 12:52:43 UTC+2:
    On 18/04/2023 1:38 am, minforth wrote:
    Is anybody doing (simple) scientific/engineering plotting in Forth?
    How?

    I just stumpled over Atlast-Forth running on a raspberry Pi https://elinux.org/Forth
    doing plots in Sixel graphics. Looks nice and easy. However it requires
    a Sixel-enabled terminal.

    In the olden days graphics with or without turtle had been very popular. DOS with its simple interfaces made it easy. I don't know any modern
    Forth taking at least 2D graphics support seriously.
    There are no applications today that take your data and plot it for you?

    This is a good pseudo-question. Actually today I use macros from another guy
    to plot signals in Excel, transferred via csv-files. Cumbersome but familiar
    to the service team. Many years ago there was a file interface
    to Gnuplot, but by tragic accident the guy who wrote that (compiled
    binary..) died and the sources are lost.

    For test and development of new filters the a.m. Excel procedure is _very_ slow and awkward. This motivated this thread of how other people do plots in Forth.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From S Jack@21:1/5 to minforth on Tue Apr 18 04:20:41 2023
    On Monday, April 17, 2023 at 10:38:08 AM UTC-5, minforth wrote:
    Is anybody doing (simple) scientific/engineering plotting in Forth?

    kForth posted simple-graphics-x11 in this group; do search.
    --
    me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jali Heinonen@21:1/5 to All on Tue Apr 18 08:31:00 2023
    tiistai 18. huhtikuuta 2023 klo 10.54.43 UTC+3 minforth kirjoitti:
    Ron AARON schrieb am Dienstag, 18. April 2023 um 05:18:12 UTC+2:
    8th also has built-in graphics using OpenGL for output, so it mostly
    "just works" on the common OSes and hardware.
    Okay. Also SDL2 offers a simpler interface on top of OpenGL ...
    Move a mountain to draw a line into sand ...

    The time of using just 2 simple matrices as alternating framebuffers
    for simple 2D output seems to have passed away for good ...

    8th includes almost everything for my needs. It can even be used to create a scrolling platform game: https://www.dropbox.com/s/l1tbsi86si8aywn/platf.png?dl=0

    Maybe I should use my time better and do something more useful next... ;D

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marcel Hendrix@21:1/5 to minforth on Tue Apr 18 12:05:56 2023
    On Monday, April 17, 2023 at 5:38:08 PM UTC+2, minforth wrote:
    Is anybody doing (simple) scientific/engineering plotting in Forth?
    How?

    [..]
    In the olden days graphics with or without turtle had been very popular.
    DOS with its simple interfaces made it easy. I don't know any modern
    Forth taking at least 2D graphics support seriously.

    You obviously have not seen iForth ...

    We have 'device drivers' (in Forth) which link to the native Windows or X11 libraries. At this first level you can do simple 2D stuff and turtle graphics, and some
    very fast (but rather primitive) graphing with LaTeX annotation.

    At the second level you have access to some more system calls that add
    native Windows/X11 GUI elements.

    There are still higher level graphics (OpenGL, SDL2, ...) and alternative library interfaces that allow Gnuplot and MATLAB/Octave calls. (Geared
    to scientific/engineering work). E.g. the MATLAB matrix engine and its
    full (non-GUI, no Java) cli is available from DLL calls.

    Parallel thread access to the screenbuffer is build on top of the first
    level calls. You can use this with Occam-like CSP constructs.

    -marcel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Petremann@21:1/5 to All on Tue Apr 18 14:45:21 2023
    Le mardi 18 avril 2023 à 21:05:58 UTC+2, Marcel Hendrix a écrit :
    On Monday, April 17, 2023 at 5:38:08 PM UTC+2, minforth wrote:
    Is anybody doing (simple) scientific/engineering plotting in Forth?
    How?

    Good morning,
    An alternative solution: eFORTH web

    https://www.facebook.com/groups/eforth
    and https://eforth.arduino-forth.com/article/installation_web_graphic_startGraphics

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dxforth@21:1/5 to S Jack on Wed Apr 19 13:17:06 2023
    On 18/04/2023 9:36 pm, S Jack wrote:
    On Tuesday, April 18, 2023 at 5:52:43 AM UTC-5, dxforth wrote:
    There are no applications today that take your data and plot it for you?
    When first on internet, I found a DOS spreadsheet very very nicely done.
    It was old, had the Pascal window look. It included many scripts for generating
    just about any kind of graph, from the spreadsheet data, that one could think of.
    I thought to myself if they're throwing away software this well done, then programming
    is no longer relevant.

    When researching DOS BGI graphics in the mid 2000's I found plenty of technical info, geeks writing new drivers etc but very few examples of average programmers
    doing graphical apps. Beyond implementing graphics and replicating others' plots
    and animations, I can't say I've touched it since. Programming graphics isn't trivial and, as you say, chances are someone has already done it better. Like games programming, I'm happy to leave graphics to those who have the patience.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to dxforth on Wed Apr 19 02:01:59 2023
    dxforth schrieb am Mittwoch, 19. April 2023 um 05:17:10 UTC+2:
    On 18/04/2023 9:36 pm, S Jack wrote:
    On Tuesday, April 18, 2023 at 5:52:43 AM UTC-5, dxforth wrote:
    There are no applications today that take your data and plot it for you?
    When first on internet, I found a DOS spreadsheet very very nicely done. It was old, had the Pascal window look. It included many scripts for generating
    just about any kind of graph, from the spreadsheet data, that one could think of.
    I thought to myself if they're throwing away software this well done, then programming
    is no longer relevant.
    When researching DOS BGI graphics in the mid 2000's I found plenty of technical
    info, geeks writing new drivers etc but very few examples of average programmers
    doing graphical apps. Beyond implementing graphics and replicating others' plots
    and animations, I can't say I've touched it since. Programming graphics isn't
    trivial and, as you say, chances are someone has already done it better. Like
    games programming, I'm happy to leave graphics to those who have the patience.

    Requirements for plotting are minimal: lines, text and colours.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dxforth@21:1/5 to minforth on Thu Apr 20 00:24:33 2023
    On 19/04/2023 7:01 pm, minforth wrote:
    dxforth schrieb am Mittwoch, 19. April 2023 um 05:17:10 UTC+2:
    On 18/04/2023 9:36 pm, S Jack wrote:
    On Tuesday, April 18, 2023 at 5:52:43 AM UTC-5, dxforth wrote:
    There are no applications today that take your data and plot it for you? >>> When first on internet, I found a DOS spreadsheet very very nicely done. >>> It was old, had the Pascal window look. It included many scripts for generating
    just about any kind of graph, from the spreadsheet data, that one could think of.
    I thought to myself if they're throwing away software this well done, then programming
    is no longer relevant.
    When researching DOS BGI graphics in the mid 2000's I found plenty of technical
    info, geeks writing new drivers etc but very few examples of average programmers
    doing graphical apps. Beyond implementing graphics and replicating others' plots
    and animations, I can't say I've touched it since. Programming graphics isn't
    trivial and, as you say, chances are someone has already done it better. Like
    games programming, I'm happy to leave graphics to those who have the patience.

    Requirements for plotting are minimal: lines, text and colours.

    Given graphics in forth have been available from at least mid-80's (LMI PC/Forth),
    how would you explain the lack of take up?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From S Jack@21:1/5 to dxforth on Wed Apr 19 10:20:29 2023
    On Wednesday, April 19, 2023 at 9:24:37 AM UTC-5, dxforth wrote:
    Given graphics in forth have been available from at least mid-80's (LMI PC/Forth),
    how would you explain the lack of take up?

    Been on my list long time; don't think will get to it
    in the life time. Xterm's have a graphic mode that I
    never played with to see if it's worth while. For me
    when I think of graphics I think of SVG markup and
    display in browser, the browser being a universal
    graphic display. But again, something I haven't done
    much of.
    --
    me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to S Jack on Wed Apr 19 12:00:34 2023
    S Jack schrieb am Mittwoch, 19. April 2023 um 19:20:31 UTC+2:
    On Wednesday, April 19, 2023 at 9:24:37 AM UTC-5, dxforth wrote:
    Given graphics in forth have been available from at least mid-80's (LMI PC/Forth),
    how would you explain the lack of take up?
    Been on my list long time; don't think will get to it
    in the life time. Xterm's have a graphic mode that I
    never played with to see if it's worth while. For me
    when I think of graphics I think of SVG markup and
    display in browser, the browser being a universal
    graphic display. But again, something I haven't done
    much of.

    Jos Ven showed SVG-made plots too. Control a web server and display the
    curves anywhere, like a remote terminal. There is some charm to it.
    Although on a desktop workstation or laptop it seems like overkill, but
    for simple 2D graphics SVG command strings are much easier to use than full-fledged graphics systems like OpenGL.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to S Jack on Wed Apr 19 11:53:57 2023
    S Jack schrieb am Mittwoch, 19. April 2023 um 19:20:31 UTC+2:
    On Wednesday, April 19, 2023 at 9:24:37 AM UTC-5, dxforth wrote:
    Given graphics in forth have been available from at least mid-80's (LMI PC/Forth),
    how would you explain the lack of take up?
    Been on my list long time; don't think will get to it
    in the life time. Xterm's have a graphic mode that I
    never played with to see if it's worth while. For me
    when I think of graphics I think of SVG markup and
    display in browser, the browser being a universal
    graphic display. But again, something I haven't done
    much of.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doug Hoffman@21:1/5 to dxforth on Thu Apr 20 04:31:32 2023
    On Wednesday, April 19, 2023 at 10:24:37 AM UTC-4, dxforth wrote:
    On 19/04/2023 7:01 pm, minforth wrote:
    dxforth schrieb am Mittwoch, 19. April 2023 um 05:17:10 UTC+2:
    On 18/04/2023 9:36 pm, S Jack wrote:
    On Tuesday, April 18, 2023 at 5:52:43 AM UTC-5, dxforth wrote:
    There are no applications today that take your data and plot it for you?
    When first on internet, I found a DOS spreadsheet very very nicely done. >>> It was old, had the Pascal window look. It included many scripts for generating
    just about any kind of graph, from the spreadsheet data, that one could think of.
    I thought to myself if they're throwing away software this well done, then programming
    is no longer relevant.
    When researching DOS BGI graphics in the mid 2000's I found plenty of technical
    info, geeks writing new drivers etc but very few examples of average programmers
    doing graphical apps. Beyond implementing graphics and replicating others' plots
    and animations, I can't say I've touched it since. Programming graphics isn't
    trivial and, as you say, chances are someone has already done it better. Like
    games programming, I'm happy to leave graphics to those who have the patience.

    Requirements for plotting are minimal: lines, text and colours.
    Given graphics in forth have been available from at least mid-80's (LMI PC/Forth),
    how would you explain the lack of take up?

    Include MacOS MacForth and Neon (1984), both with full support for graphics
    and GUI (windows, pull down menus, controls, fonts, mouse, related events).

    Perhaps graphics and GUI capability in Forth are like strings, arrays, objects, and other
    constructs: Anyone who wants them does it for themself, and in their own way.

    -Doug

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stephen Pelc@21:1/5 to dxforth on Thu Apr 20 12:48:32 2023
    On 19 Apr 2023 at 05:17:06 CEST, "dxforth" <dxforth@gmail.com> wrote:

    When researching DOS BGI graphics in the mid 2000's I found plenty of technical
    info, geeks writing new drivers etc but very few examples of average programmers
    doing graphical apps. Beyond implementing graphics and replicating others' plots
    and animations, I can't say I've touched it since. Programming graphics isn't
    trivial and, as you say, chances are someone has already done it better. Like
    games programming, I'm happy to leave graphics to those who have the patience.

    VFX Forth for Win, Lin and MacOS have all supported a simple BGI style
    graphics
    interface since 2011, when it was written for a client. It is based on GTK.
    See the
    Examples/GTK folder.

    By modern standards it is primitive, but it is what was asked for then.

    Stephen

    --
    Stephen Pelc, stephen@vfxforth.com
    MicroProcessor Engineering, Ltd. - More Real, Less Time
    133 Hill Lane, Southampton SO15 5AF, England
    tel: +44 (0)23 8063 1441, +44 (0)78 0390 3612,
    +34 649 662 974
    http://www.mpeforth.com - free VFX Forth downloads

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to Doug Hoffman on Thu Apr 20 05:52:54 2023
    Doug Hoffman schrieb am Donnerstag, 20. April 2023 um 13:31:34 UTC+2:
    On Wednesday, April 19, 2023 at 10:24:37 AM UTC-4, dxforth wrote:
    On 19/04/2023 7:01 pm, minforth wrote:
    dxforth schrieb am Mittwoch, 19. April 2023 um 05:17:10 UTC+2:
    On 18/04/2023 9:36 pm, S Jack wrote:
    On Tuesday, April 18, 2023 at 5:52:43 AM UTC-5, dxforth wrote:
    There are no applications today that take your data and plot it for you?
    When first on internet, I found a DOS spreadsheet very very nicely done.
    It was old, had the Pascal window look. It included many scripts for generating
    just about any kind of graph, from the spreadsheet data, that one could think of.
    I thought to myself if they're throwing away software this well done, then programming
    is no longer relevant.
    When researching DOS BGI graphics in the mid 2000's I found plenty of technical
    info, geeks writing new drivers etc but very few examples of average programmers
    doing graphical apps. Beyond implementing graphics and replicating others' plots
    and animations, I can't say I've touched it since. Programming graphics isn't
    trivial and, as you say, chances are someone has already done it better. Like
    games programming, I'm happy to leave graphics to those who have the patience.

    Requirements for plotting are minimal: lines, text and colours.
    Given graphics in forth have been available from at least mid-80's (LMI PC/Forth),
    how would you explain the lack of take up?
    Include MacOS MacForth and Neon (1984), both with full support for graphics and GUI (windows, pull down menus, controls, fonts, mouse, related events).

    Perhaps graphics and GUI capability in Forth are like strings, arrays, objects, and other
    constructs: Anyone who wants them does it for themself, and in their own way.

    Tcl/Tk did it better then. BTW Holon Forth is a clever mix of Tcl/Tk and Forth and 'draws'
    from both worlds (see the chessboard drawing): https://holonforth.com/tclforth.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dxforth@21:1/5 to Doug Hoffman on Fri Apr 21 11:26:08 2023
    On 20/04/2023 9:31 pm, Doug Hoffman wrote:
    On Wednesday, April 19, 2023 at 10:24:37 AM UTC-4, dxforth wrote:
    On 19/04/2023 7:01 pm, minforth wrote:
    dxforth schrieb am Mittwoch, 19. April 2023 um 05:17:10 UTC+2:
    On 18/04/2023 9:36 pm, S Jack wrote:
    On Tuesday, April 18, 2023 at 5:52:43 AM UTC-5, dxforth wrote:
    There are no applications today that take your data and plot it for you? >>>>> When first on internet, I found a DOS spreadsheet very very nicely done. >>>>> It was old, had the Pascal window look. It included many scripts for generating
    just about any kind of graph, from the spreadsheet data, that one could think of.
    I thought to myself if they're throwing away software this well done, then programming
    is no longer relevant.
    When researching DOS BGI graphics in the mid 2000's I found plenty of technical
    info, geeks writing new drivers etc but very few examples of average programmers
    doing graphical apps. Beyond implementing graphics and replicating others' plots
    and animations, I can't say I've touched it since. Programming graphics isn't
    trivial and, as you say, chances are someone has already done it better. Like
    games programming, I'm happy to leave graphics to those who have the patience.

    Requirements for plotting are minimal: lines, text and colours.
    Given graphics in forth have been available from at least mid-80's (LMI PC/Forth),
    how would you explain the lack of take up?

    Include MacOS MacForth and Neon (1984), both with full support for graphics and GUI (windows, pull down menus, controls, fonts, mouse, related events).

    Perhaps graphics and GUI capability in Forth are like strings, arrays, objects, and other
    constructs: Anyone who wants them does it for themself, and in their own way.

    Graphics, GUI, HTML etc make for great eye-candy but that's not what drew me to computing or keeps my interest. While the general public loves this stuff, it's
    incredibly tedious and boring to program. Why one has to pay people to do it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doug Hoffman@21:1/5 to dxforth on Fri Apr 21 02:55:33 2023
    On Thursday, April 20, 2023 at 9:26:11 PM UTC-4, dxforth wrote:
    On 20/04/2023 9:31 pm, Doug Hoffman wrote:
    ...
    Perhaps graphics and GUI capability in Forth are like strings, arrays, objects, and other
    constructs: Anyone who wants them does it for themself, and in their own way.
    Graphics, GUI, HTML etc make for great eye-candy but that's not what drew me to
    computing or keeps my interest. While the general public loves this stuff, it's
    incredibly tedious and boring to program. Why one has to pay people to do it.

    A GUI (and often graphics) can greatly benefit those using non-trivial programs written by others.
    Often the software, written to a standard interface, won't even require (much) documentation.
    I agree that programming this stuff can be painful which is why I appreciate a Forth that makes it
    as easy as possible.

    I remember the command-line vs GUI debates back in the mid 1980s. Most software on the
    market seem to have a GUI these days. No?

    -Doug [who pressed the Reply-All and Post-Message buttons just now]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@21:1/5 to Doug Hoffman on Fri Apr 21 07:45:57 2023
    Doug Hoffman schrieb am Freitag, 21. April 2023 um 11:55:35 UTC+2:
    On Thursday, April 20, 2023 at 9:26:11 PM UTC-4, dxforth wrote:
    On 20/04/2023 9:31 pm, Doug Hoffman wrote:
    ...
    Perhaps graphics and GUI capability in Forth are like strings, arrays, objects, and other
    constructs: Anyone who wants them does it for themself, and in their own way.
    Graphics, GUI, HTML etc make for great eye-candy but that's not what drew me to
    computing or keeps my interest. While the general public loves this stuff, it's
    incredibly tedious and boring to program. Why one has to pay people to do it.
    A GUI (and often graphics) can greatly benefit those using non-trivial programs written by others.
    Often the software, written to a standard interface, won't even require (much) documentation.
    I agree that programming this stuff can be painful which is why I appreciate a Forth that makes it
    as easy as possible.

    I remember the command-line vs GUI debates back in the mid 1980s. Most software on the
    market seem to have a GUI these days. No?


    Most software these days runs on smartphones. Everything is GUI'ing there.

    GUIs and science graphics are completely different issues. Matlab/SciPy/Octave/Julia don't sport
    real GUIs, but engineers/scientist couldn't go far without visualization of results e.g. through
    MatPlotLib.

    BTW I also found Dislin. It provides a cross-platform plotting library that seems rather easy to use:
    https://dislin.de/examples.html
    It shouldn't be too difficult to link with and use it from Forth. When I have more time.....

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doug Hoffman@21:1/5 to minforth on Fri Apr 21 10:05:10 2023
    On Friday, April 21, 2023 at 10:45:59 AM UTC-4, minforth wrote:
    Most software these days runs on smartphones. Everything is GUI'ing there.

    True. Actually, on my desktop I can't think of any software I use that isn't GUI,
    Forth programming being the sole exception.

    GUIs and science graphics are completely different issues. Matlab/SciPy/Octave/Julia don't sport
    real GUIs, but engineers/scientist couldn't go far without visualization of results e.g. through
    MatPlotLib.

    Wikipedia:
    "Matplotlib is a plotting library for the Python programming language and its numerical mathematics
    extension NumPy. It provides an object-oriented API for embedding plots into applications using
    general-purpose GUI toolkits like Tkinter, wxPython, Qt, or GTK.".

    Interesting. I will admit to exporting textual output to Excel and doing somewhat simple
    plotting/charting there.

    I once had a need to plot many large airfoils. Accuracy was important. Someone gave me some Fortran code that used the Akima technique for creating smooth curve
    interpolation even when the curve sloped suddenly. I used Forth (Mops I think) and the MacOS printer calls to print, e.g., 3 foot long airfoils on several sheets of
    8.5" x 11" plain paper. With registration marks to assemble the different sheets it all worked quite well. 600 dpi can get very accurate. Other people used the
    software. It had a complete (standard Mac) GUI and they were unaware that it was
    written in Forth unless they read the documentation.

    -Doug

    BTW I also found Dislin. It provides a cross-platform plotting library that seems rather easy to use:
    https://dislin.de/examples.html
    It shouldn't be too difficult to link with and use it from Forth. When I have more time.....

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From S Jack@21:1/5 to dxforth on Fri Apr 21 09:40:21 2023
    On Thursday, April 20, 2023 at 8:26:11 PM UTC-5, dxforth wrote:
    Graphics, GUI, HTML etc make for great eye-candy but that's not what drew me to
    computing or keeps my interest. While the general public loves this stuff, it's
    incredibly tedious and boring to program. Why one has to pay people to do it.

    For me HTML is fine, without the JavaScript. It and XML
    are my second choice after plain text; PDF and PS are
    third and fourth. On occasion when I surf, I turn off
    JavaScript to look for quality sites.
    --
    me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doug Hoffman@21:1/5 to All on Fri Apr 21 10:33:52 2023
    http://www-personal.umich.edu/~msc/aviation.html

    (The link below is not valid, even if it were a 680x0 or PPC Macintosh would be needed)
    J-Foil 0.1, written by Doug Hoffman, is a tool for creating high quality airfoil plots using
    the Macintosh computer and a printer. Skin thickness adjustments can be made, thus producing rib plots.
    (J-Foil 0.1 is free but not public domain.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dxforth@21:1/5 to Doug Hoffman on Sun Apr 23 16:20:38 2023
    On 21/04/2023 7:55 pm, Doug Hoffman wrote:
    On Thursday, April 20, 2023 at 9:26:11 PM UTC-4, dxforth wrote:
    On 20/04/2023 9:31 pm, Doug Hoffman wrote:
    ...
    Perhaps graphics and GUI capability in Forth are like strings, arrays, objects, and other
    constructs: Anyone who wants them does it for themself, and in their own way.
    Graphics, GUI, HTML etc make for great eye-candy but that's not what drew me to
    computing or keeps my interest. While the general public loves this stuff, it's
    incredibly tedious and boring to program. Why one has to pay people to do it.

    A GUI (and often graphics) can greatly benefit those using non-trivial programs written by others.
    Often the software, written to a standard interface, won't even require (much) documentation.
    I agree that programming this stuff can be painful which is why I appreciate a Forth that makes it
    as easy as possible.

    I remember the command-line vs GUI debates back in the mid 1980s. Most software on the
    market seem to have a GUI these days. No?

    Which GUI would that be - that which rendered the previous one obsolete?
    ISTM the only debate is when to get off the rat wheel.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Krishna Myneni@21:1/5 to minforth on Sun Apr 23 12:01:11 2023
    On 4/17/23 10:38, minforth wrote:
    Is anybody doing (simple) scientific/engineering plotting in Forth?
    How?


    Please see,

    https://github.com/mynenik/XYPLOT-32

    or

    https://github.com/mynenik/XYPLOT-Win32


    Both of the above programs are user-extensible with Forth source
    modules. They include a Forth module for importing/exporting the plots
    to Grace for generating publication-quality hardcopy plots.

    kForth-32 for Linux also provides some X-Windows library interfaces for
    simple plotting and graphics

    https://github.com/mynenik/kForth-32/tree/master/forth-src/x11

    Example of a plotting program:

    https://github.com/mynenik/kForth-32/blob/master/forth-src/bifurc-logmap.4th

    Cheers,
    Krishna

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dxforth@21:1/5 to S Jack on Mon Apr 24 13:30:56 2023
    On 22/04/2023 2:40 am, S Jack wrote:
    On Thursday, April 20, 2023 at 8:26:11 PM UTC-5, dxforth wrote:
    Graphics, GUI, HTML etc make for great eye-candy but that's not what drew me to
    computing or keeps my interest. While the general public loves this stuff, it's
    incredibly tedious and boring to program. Why one has to pay people to do it.

    For me HTML is fine, without the JavaScript. It and XML
    are my second choice after plain text; PDF and PS are
    third and fourth. On occasion when I surf, I turn off
    JavaScript to look for quality sites.

    HTML as a tool for the Everyman to assemble text and pictures ended when FrontPage Express did. Tools today are so complicated they require a
    degree to operate. Not that we're expected to ... any more than we're
    expected to use a word processor today.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From S Jack@21:1/5 to dxforth on Mon Apr 24 06:05:24 2023
    On Sunday, April 23, 2023 at 10:30:59 PM UTC-5, dxforth wrote:

    HTML as a tool for the Everyman to assemble text and pictures ended when FrontPage Express did. Tools today are so complicated they require a
    degree to operate. Not that we're expected to ... any more than we're expected to use a word processor today.

    Do mine by hand. Don't use tools; that's just letting
    someone get between me and my project.
    --
    me

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans Bezemer@21:1/5 to minforth on Wed May 3 04:13:07 2023
    On Wednesday, April 19, 2023 at 9:00:36 PM UTC+2, minforth wrote:
    Jos Ven showed SVG-made plots too. Control a web server and display the curves anywhere, like a remote terminal. There is some charm to it.
    Although on a desktop workstation or laptop it seems like overkill, but
    for simple 2D graphics SVG command strings are much easier to use than full-fledged graphics systems like OpenGL.

    Thanks to the discussion here, we've recently released a set of SVG libraries. It's modeled after the already existing PPM bitmap libraries, so porting programs
    from bitmap to vector graphics is a breeze.

    Due to this compatibility, it allows Turtle graphics and 3D graphics as well. On
    top of that, polylines and polygons are supported.

    Thank you all to give me the motivation to dive into the subject ;-)

    Hans Bezemer

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)