Search found 17 matches

by choibakk
19 Sep 2020 1:55
Forum: Visual Prolog
Topic: Incredibly cool VP features
Replies: 3
Views: 771

Re: Incredibly cool VP features

Support Pattern IMO this is very important to learn with VPC -- especially if your understanding of object oriented development comes from another language like C++. This pattern is documented: https://wiki.visual-prolog.com/index.php?title=Support_pattern, and another example by Martin Meyer is at:...
by choibakk
8 Sep 2020 22:23
Forum: Visual Prolog Tips & Samples
Topic: Neural Network Program
Replies: 9
Views: 14130

Re:

Updated for Visual Prolog 7.4 Thomas, I tried importing this into VPC 9, but I guess I'm not familiar enough with earlier versions to upgrade the project. If it were trivial, could you post an upgraded project for VPC 9. It is fairly dated, but right now NN, and deep learning technology is very rel...
by choibakk
14 Aug 2020 0:24
Forum: Visual Prolog
Topic: Incredibly cool VP features
Replies: 3
Views: 771

Re: Incredibly cool VP features

Stepping into and over C\C++ in the VPC IDE! I never expected being able to do that. Impressed.
by choibakk
22 Jul 2020 2:28
Forum: Visual Prolog
Topic: Incredibly cool VP features
Replies: 3
Views: 771

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: 1335

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: 1051

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: 1335

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: 2147

Re: Wishlist Item

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

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: 2830

Re: Multiplication Overflow

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

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: 2830

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: 6571

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: 3403

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: 3403

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...