Author Topic: TinyScheme  (Read 63657 times)

0 Members and 2 Guests are viewing this topic.

Mike Lobanovsky

  • Guest
Re: TinyScheme
« Reply #120 on: September 06, 2014, 04:07:13 AM »
I'm trying to understand these warning messages of downgrading my integers.

Hi John,

It seems you're getting conflicts between the capacity of your locals redefined by you as (signed) long long's and that of Scheme's definitions and/or typification of ret and num structures and num_ivalue() function.

You haven't appended the TS header file but judging by your warnings, TS numbers are defined as unsigned long long's whose data capacity in positive numbers is greater than in a (signed) long long. IMO this is where most of your warnings are coming from. You aren't downgrading your integers, you are downgrading Tiny Scheme's.

Try to define your locals as unsigned long long's, recompile, and see what happens.

JRS

  • Guest
Re: TinyScheme
« Reply #121 on: September 06, 2014, 07:47:47 AM »
I attached the complete TinyScheme source a few posts back, did you see it? Would you like me to repost it again? 

If your unable to help, it compiled (with warnings) and I'll leave it at that. This was for Rob not me.


Mike Lobanovsky

  • Guest
Re: TinyScheme
« Reply #122 on: September 06, 2014, 08:00:25 AM »
I attached the complete TinyScheme source a few posts back...
If your unable to help...

John, if you mean this post then I'm telling you again there's no header file in it, and please stop making fool of me. I can't mend your socks until you take them off and hand them over.

JRS

  • Guest
Re: TinyScheme
« Reply #123 on: September 06, 2014, 08:07:02 AM »
Sorry Mike!

I swear I posted the complete source zip. Here is the URL to the project I'm using.

https://github.com/ignorabimus/tinyscheme




JRS

  • Guest
Re: TinyScheme
« Reply #124 on: September 06, 2014, 11:05:18 AM »
Quote from: Rob
And the idea to embed NewLisp ??

That is pretty cool to see that kind if precision from a 32 bit app. COM also keeps the effort in the 32 bit world. Nice to see it work on Wine even with a OCX requirement.

 

.

RobbeK

  • Guest
Re: TinyScheme
« Reply #125 on: September 06, 2014, 11:59:46 AM »
Hi John,

The GFA compiler is not bad at all -- 
(I have a slight problem under Wine , when running the kind of programs as attached -- after a while the active window darkens as if something is hanging -- I wonder, this can be fixed  -- )

It's the Mandelbrot changing from z² to z³ , ....   this can not be calculated with real numbers -- I used DeMoivre"s Cis function to calculate things.   --- it several moments, one can see the fractal tearing (such things should be done on Riemann surfaces I think to be representable  ::) 

to be honnest , oxygen does it faster -- needing around 2/3 of GFA's benchmark ...

best, Rob
(ps , Wine has some nice themes nowadays -- some looking better than the original window gadget  8) )

in the animation , much time is spent calculating the gradient inside the fract.  --  it is of the form log(log(A)) , this takes a lot of time   to calculate




.
« Last Edit: September 06, 2014, 12:39:00 PM by RobbeK »

Mike Lobanovsky

  • Guest
Re: TinyScheme
« Reply #126 on: September 06, 2014, 12:20:19 PM »
John,

Here's your pair of socks. Each directory contains a VS2013 solution, a precompiled release executable, and Rob's scripts to test. Regex and tcx (whatever that is) aren't included in the solutions. Note the tiny size of exes vs. the one that you posted here.

No changes to the original sources were necessary. They compiled in both 32 and 64 bits out of the box.

Enjoy and never call me a fool or a spado again. :)
« Last Edit: September 06, 2014, 01:00:06 PM by Mike Lobanovsky »

Mike Lobanovsky

  • Guest
Re: TinyScheme
« Reply #127 on: September 06, 2014, 12:42:27 PM »
Wine has some nice themes nowadays -- some looking better than the original window gadget  8) )

Hi Rob,

There's nothing like Windows Aero -- pretty, configurable, and solid as a rock. Linuxoid OpenGL-based aero is buggy, shaky, and crushy. Non-aero GTK-based drawable GUI's may sometimes look prettier than Windows at a first glance but are really nowhere as easy to skin with prebuilt images.

 :P

JRS

  • Guest
Re: TinyScheme
« Reply #128 on: September 06, 2014, 12:52:58 PM »
Outstanding !!!

Can I rerun the msvcbuild.bat again without any warnings with what you uploaded?


Quote
Enjoy and never call me a fool or a spado again.

I'm sure you have me confused with Aurel. I don't mess with those sitting on the throne.  8)


JRS

  • Guest
Re: TinyScheme
« Reply #129 on: September 06, 2014, 01:02:26 PM »
Mike,

I just gave the TS-64 version a try on Wine and it just returns to the command prompt. The version of king.scm worked with the crippled version I posted. Will try on Windows 7 64 bit.

« Last Edit: September 06, 2014, 01:43:02 PM by John »

Mike Lobanovsky

  • Guest
Re: TinyScheme
« Reply #130 on: September 06, 2014, 01:28:22 PM »
I've just deleted the zip from my post. The exes are linked against MSVCR120.DLL instead of base MSVCRT.DLL. The exes won't run if it isn't installed on your system. I'm now trying to recompile and will be back shortly.

JRS

  • Guest
Re: TinyScheme
« Reply #131 on: September 06, 2014, 01:33:01 PM »
Thanks for the quick reply!

Mike Lobanovsky

  • Guest
Re: TinyScheme
« Reply #132 on: September 06, 2014, 01:53:35 PM »
Here's the new zip. There's no way to link to MSVCRT.DLL in VS2013, so the exes are linked statically. This increases their size to 201KB but makes them completely independent.

Please re-download and let me know if they are working for you now. They do for me under 32-bit Vista, native 32-bit Win7, and WoW64 Win 7. The native 64-bit exe also works perfectly under 64-bit Win 7. Surprisingly, the 32-bit exe doesn't work under XP, apparently because VS2013 writes into the exe's PE header that this is a version 6 executable. Version 6 is Vista+ while XP's headers were marked as version 5. This needs further investigation. But by any means, both executables are OK for modern Windows platforms.

Quote
Can I rerun the msvcbuild.bat again without any warnings with what you uploaded?

Probably you shouldn't. I'd suggest using the original solutions instead. This bat file looks too simplistic for VS2013. :)

.
« Last Edit: September 06, 2014, 02:36:28 PM by Mike Lobanovsky »

JRS

  • Guest
Re: TinyScheme
« Reply #133 on: September 06, 2014, 02:40:11 PM »
Nope. Wine run.


field 29  number of grains   268435456
field 30  number of grains   536870912
field 31  number of grains   1073741824
field 32  number of grains   -2147483648
field 33  number of grains   0
field 34  number of grains   0
field 35  number of grains   0
field 36  number of grains   0
field 37  number of grains   0
field 38  number of grains   0
field 39  number of grains   0
field 40  number of grains   0
field 41  number of grains   0
field 42  number of grains   0
field 43  number of grains   0
field 44  number of grains   0
field 45  number of grains   0
field 46  number of grains   0
field 47  number of grains   0
field 48  number of grains   0
field 49  number of grains   0
field 50  number of grains   0
field 51  number of grains   0
field 52  number of grains   0
field 53  number of grains   0
field 54  number of grains   0
field 55  number of grains   0
field 56  number of grains   0
field 57  number of grains   0
field 58  number of grains   0
field 59  number of grains   0
field 60  number of grains   0
field 61  number of grains   0
field 62  number of grains   0
field 63  number of grains   0
field 64  number of grains   0


:\TS-64\TS_VC_64\x64\Release>


Mike Lobanovsky

  • Guest
Re: TinyScheme
« Reply #134 on: September 06, 2014, 02:52:09 PM »
IIRC Wine's settings allow you to select compatibility modes. Can you switch to Vista+ if there's such an option? (I repeat again, the 32-bit exe works perfectly in anything higher than XP and the 64-bit exe runs OK under native 64-bit Win 7 for me)