Search found 14 matches

by choibakk
22 Jul 2020 2:28
Forum: Visual Prolog
Topic: Incredibly cool VP features
Replies: 1
Views: 143

Incredibly cool VP features

I would like to mention just a few of the VP features that greatly aid/help me writing my chess program NADYA2.0 chess. I was thinking I wanted to give some complements to the PDC team for your efforts: 1. The VP compiler has absolutely no memory loss issues (at least in my application). I run regul...
by choibakk
15 Jul 2020 19:07
Forum: Visual Prolog
Topic: Build 906 - 64 bit operations
Replies: 3
Views: 695

Re: Build 906 - 64 bit operations

Thomas, If you need a Beta tester for the next release to test 64-bit operations, the move generator in my chess program NADYA2.0, accurately calculates moves on a start chess board to depth 7. About 3.2B nodes. The calculations are all made using 64-bit (bit-wise) math operations. https://www.chess...
by choibakk
22 Jun 2020 0:20
Forum: Visual Prolog
Topic: Memory Profiler
Replies: 1
Views: 534

Memory Profiler

Hi Thomas, Two Issues I think I've found. I've tested on both builds 904 and 906 with the same results: Issue #1. My chess program is designed using the philosophy "first make it work flawlessly, then make it fast". In chess there is a chess routine commonly called "PERFT" that tests resulting possi...
by choibakk
21 Jun 2020 23:59
Forum: Visual Prolog
Topic: Build 906 - 64 bit operations
Replies: 3
Views: 695

Build 906 - 64 bit operations

Hi Thomas, My chess program (NADYA2.0) now fails its startup diagnostics on build 906. Consider the following code: % this is a 64-bit only project predicates flip_pos:(unsigned) -> unsigned. clauses flip_pos(IndexIn) = IndexOut :- BB_Index = bit::toBigEndian64(1 << 0+IndexIn), % Build 904 - 1 << 32...
by choibakk
19 Jun 2020 23:14
Forum: Visual Prolog
Topic: Wishlist Item
Replies: 6
Views: 1450

Re: Wishlist Item

Wow, thank you!
by choibakk
22 May 2020 2:58
Forum: Visual Prolog
Topic: Wishlist Item
Replies: 6
Views: 1450

Wishlist Item

Hi Thomas, tried to email you but could not directly. Since you helped me with external functions [in an eallier support post for those that are looking] (to overcome a multiplication overflow when the overflow is desired) I have added a few more functions to my external "C" DLL, which makes me love...
by choibakk
23 Apr 2020 21:18
Forum: Visual Prolog
Topic: Multiplication Overflow
Replies: 4
Views: 2392

Re: Multiplication Overflow

That makes perfect sense! Thanks.
by choibakk
23 Apr 2020 1:32
Forum: Visual Prolog
Topic: Multiplication Overflow
Replies: 4
Views: 2392

Re: Multiplication Overflow

Thank you Thomas for the helpful response. I have implemented the external function in a DLL. I started with a lib as you suggested, and almost had it working but received a read IO error from the compiler on the static ".lib" file, so switched it to a DLL and it worked the very first time. There is...
by choibakk
21 Apr 2020 23:54
Forum: Visual Prolog
Topic: Multiplication Overflow
Replies: 4
Views: 2392

Multiplication Overflow

I'm trying to implement a version of "De Bruijn Multiplication" that counts on an arithmetic overflow. For instance: multiplying let say V=512, so (V * 0x03f79d71b4cb0a89). I have everything working except for the overflow. And I checked the correct functionality using a programming calculator to en...
by choibakk
21 Nov 2019 3:15
Forum: Visual Prolog Tips & Samples
Topic: xyChartDemo - GDIPLUS XY graphing demonstration
Replies: 4
Views: 6266

Re: xyChartDemo - GDIPLUS XY graphing demonstration

This is great! I have the demo working on V9. However, I needed to change the following: %fNameLABEL = "Lucida Sans". % used for axis labels %fNameVALUE = "Lucida Sans". % used for axis values at tics & grids fNameLABEL = "Arial". % used for axis labels fNameVALUE = "Arial". % used for axis values a...
by choibakk
18 Oct 2019 19:51
Forum: Visual Prolog
Topic: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
Replies: 2
Views: 3273

Re: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.

Thank you for the great response! I was so proud of my little "slide" routine in 8 lines of code. And then I see this (your version): slide4([X1, X2, X3 | Rest], V1, V2, V3) :- V1 = X1, V2 = X2, V3 = X3 or slide4([X2, X3 | Rest], V1, V2, V3). Brilliant. Thanks again.
by choibakk
18 Oct 2019 2:10
Forum: Visual Prolog
Topic: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
Replies: 2
Views: 3273

Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.

This is only my 2nd post and again I'll state again I haven't developed with prolog in about 30 years until just recently (my previous experience being "Turbo Prolog" in the late 80's). So I have this quick question. I created a predicate called "slide" that (slides) through a List performing some b...
by choibakk
6 Sep 2019 21:21
Forum: Visual Prolog
Topic: Saving/Consulting a List of objects
Replies: 3
Views: 3094

Re: Saving/Consulting a List of objects

Thanks for the replies. The responses make perfect sense.
by choibakk
5 Sep 2019 19:46
Forum: Visual Prolog
Topic: Saving/Consulting a List of objects
Replies: 3
Views: 3094

Saving/Consulting a List of objects

Its been 20+ years since I used Prolog so please forgive if this is a bad question or has already been answered. I've been going through the "VisualPrologBeginners.pdf" and ran into a problem trying to save my class facts. On page 131 (Section 8.6) there is the following snippet which is exactly whe...