Results 1 to 7 of 7

Thread: Lines L -- another Basic / Lisp hybrid

  1. #1

    Lines L -- another Basic / Lisp hybrid

    Hi folks,

    Been wandering around and getting more and more convinced about the symbiotic powers of two orthogonal languages.
    A little prog :
    a random line cutting 2 parallel's -- how are the line lenghts distributed (can be calculated on forehand , but ... just for fun).

    (use around 1000 lines for a clearer view - on top is a kind of frequency diagram )
    Data is processed in Lisp and given to tB for graphics. (in Lisp arguments are typeless and variadic .. that should be one of the gains)

    The two languages interact in an extreme easy way (see code).
    (and despite what Lispeners tell you, the language is easy to learn .... )

    best Rob

    (RAR file contains the DLL)
    Attached Files Attached Files
    Last edited by RobbeK; 03-07-2014 at 16:15.

  2. #2
    Hi all,

    tB + TBGL + NewLisp ,

    code : M(ove) -- U(p) -- D(own) -- any number , calculations by mappings ...
    Init 6 iterations (take a few seconds)


    best, Rob (dll inside the RAR file) -- use arrow keys / PgU/Dn for navigation
    Attached Files Attached Files
    Last edited by RobbeK; 29-07-2014 at 11:14.

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    Cool demo Rob!

    Runs perfectly on Windows 8...


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #4
    Thanks Petr,

    It's just a starter -- with this it will be possible to make 3D images of those L-system fractals ( the trees, the ferns etc ... )

    Last months I've been very busy with Lisp ( old love never dies -- or in this case "the first cut is the deepest " old=first ) , and to be frank and honnest , nothing comes near your TBGL of the things I've seen doing with OpenGL, GLU(T) as available Lisp packages ... etc ...
    (maybe one final attempt to make a combination of tB , TBGL , O² and compiled Lisp code )

    best Rob

  5. #5

    Update -- 3D L systems

    Starting to get workable ...


    Load and saves your base/mutator/iteration -- zooms closer -- more human navigation -- info activated


    best Rob

    Now, a look at embeddable Common Lisp (however unlike under Linux it compiles "only" to bytecode ). --Mr Jack, any idea ??

    dll inside the RAR
    Attached Files Attached Files
    Last edited by RobbeK; 30-07-2014 at 12:00.

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    Hi Rob,

    thanks for new version and compliments on TBGL. In case there is some functionality you would need me to add to the module, just let me know!


    Petr
    Last edited by Petr Schreiber; 30-07-2014 at 20:10.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  7. #7
    Hi Petr,

    "some functionality " -- already more that I can handle ;-)

    Well, TBGL is easy , clear and clean to use -- reminds me a quote of Albert Einstein : " if someone gives you a complex and difficult explanation, (s)he doesn't know what (s)he is talking about " .. I think the same is true for programmers, coders, hackers etc ....

    In the mean time - it runs together with compiled Lisp ( CLisp (bytecode + Lightning JIT) -- orig. univ München / Heidelberg iirc )

    (the CLisp interface at the left-top (attachm.) - uses Japi (java - from univ Koblenz ) , had to write the bindings myself -- it's A.D. 2002 , looking somewhat obsolete now , but perfectly usuable - for 2D it even can build images from memory arrays -- very fast ).

    best Rob
    compiled code runs (guesstimating) 5x faster than previous ... it runs happy together with tB (the drawings shows one line too much, i c now)
    Attached Images Attached Images
    Last edited by RobbeK; 31-07-2014 at 22:12.

Similar Threads

  1. Replies: 0
    Last Post: 14-07-2013, 17:27
  2. Common Lisp
    By danbaron in forum Other languages
    Replies: 13
    Last Post: 14-03-2011, 00:39
  3. More Common Lisp
    By danbaron in forum Other languages
    Replies: 4
    Last Post: 10-06-2010, 06:42
  4. BEE Lisp
    By danbaron in forum Shout Box Area
    Replies: 0
    Last Post: 30-04-2010, 21:41

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •