Author Topic: Digital Playground  (Read 10259 times)

0 Members and 2 Guests are viewing this topic.

Mike Lobanovsky

  • Guest
Re: Digital Playground
« Reply #15 on: July 13, 2014, 01:38:33 PM »
I like your "robbish" very much, Rob, so don't hesitate to share whenever you have some. :D

RobbeK

  • Guest
Re: Digital Playground
« Reply #16 on: July 14, 2014, 07:31:54 AM »
Hi Mike,

Infact I'm kind of happy I already could could give those old lisps some graphics interface possibilities  (they come with nothing but a REPL -  read/eval/print/loop ).
---   attached how it looks with JAPI at this moment
.
2 ways of calculating orbits of fractals ,   red the classic abs value (x²+y²) or its squareroot and the "hyperbolic" abs(y*x) - green.  ---  i used it in our "inside of the fractal" algorithm -- faster than the abs values, but (maybe you rememeber) always gave those tridents in the gradient -- with the first method (and log(log(value)) ) it is completely smooth -- I missed this (once again )      ::)

best Rob
(the Lisp uses FreeBasic for foreign memory and lists are replace with arrays (which are in Lisp of a certain type and length - much faster but makes the fact of using Lisp for this somewhat idiotic -  it just imitates C , Basic , Pascal , Fortran .... at this moment )

.

JRS

  • Guest
Re: Digital Playground
« Reply #17 on: July 14, 2014, 02:16:47 PM »
Rob,

For grins, have you tried using Script BASIC and the JAPI extension module I sent you with the above example? Keep in mind that it's really easy to create a C extension module function for CPU intensive routines. I would be happy to create a rob.dll or rob.so Script BASIC extension module of the routines you need for maximum speed for the above example. You should be able to expand on your library from there.

Have a look at the Script BASIC SDL_gfx extension module I did using C BASIC  on Bitbucket. (c-basic / SBext / SDL_gfx )

The reason I mentioned it is SB/JAPI/SDL runs on both Windows and Linux (32/64 bit) allowing you to use the same SB script on either platform.


John
« Last Edit: July 14, 2014, 11:38:27 PM by John »

JRS

  • Guest
Re: Digital Playground
« Reply #18 on: July 15, 2014, 11:49:55 AM »
I wonder if Charles's DLLC ext. module for SB could be used to give your creations a multi-threaded  boost in conjunction with DLLC's ability to run arbitrary DLL functions in their own thread. The MT ext. module could be used to provide lockable shared variables between threads. I have been wanting to use both IUP and SDL together but haven't found anything exciting enough (until now) to invest any time into it. If you and Mike want to join forces and kick this around, I'll facilitate and participate in the effort. With Dave's COM/.NET Script BASIC ext. module, who knows where this could lead. You should give the new Script BASIC IDE/Debugger for Windows a try. Dave did an excellent job with it.
« Last Edit: July 15, 2014, 10:38:42 PM by John »

RobbeK

  • Guest
Re: Digital Playground
« Reply #19 on: July 16, 2014, 01:26:22 PM »
Hi John,

Well, made something with a modern look and feel , it works but combining it with Japi only results in blowing up the socket interface time after time .  (both work on their own --  (but it are just (net-send ....  )'s done in Lisp , nothing more advanced.

so, sent a mail to Mr Merten, and a prof. Java programmer --  I really hope, we could make something out of it ( the idea behind Japi is very excellent ).

best Rob ... 


JRS

  • Guest
Re: Digital Playground
« Reply #20 on: July 16, 2014, 08:26:06 PM »
So SDL_gfx is out of the question?

I'm talking about building a SB hot rod here.  8)



I'm in the next stall tearing apart Dave's new Script BASIC IDE/Debugger and trying to recreate it in IUP.

JRS

  • Guest
Re: Digital Playground
« Reply #21 on: July 16, 2014, 09:48:58 PM »
I'm setting up a Amazon EC2 instance of Ubuntu 12.04 LTS 64 bit server/desktop hybrid connected with a tunneled SSH connection. So far I'm able to run all the GUI applications I run on my laptop but without the desktop in the way. For me, best of all worlds.


 

.

JRS

  • Guest
Re: Digital Playground
« Reply #22 on: July 16, 2014, 10:36:53 PM »
Quote
Well, made something with a modern look and feel , it works but combining it with Japi only results in blowing up the socket interface time after time .  (both work on their own --  (but it are just (net-send ....  )'s done in Lisp , nothing more advanced.

I assume you are talking about SB, maybe not. Here are a few of my JAPI SB examples running on Ubuntu 64.



.
« Last Edit: July 16, 2014, 11:05:35 PM by John »

JRS

  • Guest
Re: Digital Playground
« Reply #23 on: July 17, 2014, 10:53:07 AM »
Oh well, just a thought. Good luck lisping to your fellow lispers. Obscure seems to be the flavor of the day.  :o

RobbeK

  • Guest
Re: Digital Playground
« Reply #24 on: July 17, 2014, 12:10:24 PM »
Hi John,

My excuses, but I need some time for this -- if it were anything but JAVA the solution was already on your table , but this does not mean I'm not busy with it , writing that lisp takes one minute - understanding JAVA days and days.
When it came into fashion I bought a book and read it,   it is a language I do not like at all , imho it does abstractions that imo are correct, but in the mean time making it very difficult to understand anything of it  because the essential content is hidden. (one is using pre-fabricated blocks of code)   --- 
these imo are the reasons it will take some time , and that no one (except you) made any try to pimp it up (while the complete source is there , and people from Haskell , GNU CL and many others use Japi as they only G interface , still as it came in 2002 ...  )
....  quod erat demonstrandum ....

(lupus ne mordet lupum , i hope  8)    Rob

JRS

  • Guest
Re: Digital Playground
« Reply #25 on: July 17, 2014, 06:55:58 PM »
Have you looked at SDL_gfx yet? JAPI may not be worth the effort since everyone is shying away from Java. (Google, most browsers, ...)

RobbeK

  • Guest
Re: Digital Playground
« Reply #26 on: July 18, 2014, 01:41:51 AM »
Hi John,

 SDL_gfx ?  nope -- I will do ...

As for FB , another sample (written some time ago)
OpenGL and using Debord's math lib  -- Gamma function for complex numbers (you can use SPACE to switch between abs(z) , R(z) and I(z) ..  rotate and zoom by the arrow keys  ..  Enough lib's for FB to program such things swift and easy...

best Rob

.

JRS

  • Guest
Re: Digital Playground
« Reply #27 on: July 18, 2014, 11:03:13 AM »


It would be great if you could supply source so we can play along in the sandbox of our choice.

The first European to discover North America was the Viking Leif Erikson in 1001. Binary year and the above image looking like viking ships discovering the new world. I think we have a hidden message here.  :)
« Last Edit: July 18, 2014, 11:43:45 AM by John »

jack

  • Guest
Re: Digital Playground
« Reply #28 on: July 18, 2014, 06:28:13 PM »
hello RobbeK,
I find your threads very interesting, though well over my expertise, but I agree with John, please share your code whether it be basic or lisp or something else. :)

JRS

  • Guest
Re: Digital Playground
« Reply #29 on: July 18, 2014, 10:23:16 PM »
I was able to get Wine 1.7 running on my Amazon EC2 instance via a SSH connection.


.