Search found 47 matches

by kingchris
8 Aug 2017 5:54
Forum: Visual Prolog
Topic: Giant constant numbers.
Replies: 3
Views: 1104

Thanks gentlemen for your assistance.

Much appreciated
by kingchris
7 Aug 2017 15:26
Forum: Visual Prolog
Topic: Giant constant numbers.
Replies: 3
Views: 1104

Giant constant numbers.

If I am doing some odd maths how does one get large numbers into integer64 variables and constants. There is a unsigned64:value function I think that takes two parameters. One of my constants is 80 characters for I might have to call a 128 bit library. In C and C++ one always added a L to the end of...
by kingchris
10 Jan 2016 13:56
Forum: Visual Prolog
Topic: DYNAMIC unification is possible Sort Of
Replies: 0
Views: 3389

DYNAMIC unification is possible Sort Of

No question here just something I found useful. I asked a question a while back Is DYNAMIC unification possible! During some heavy prolog writing recently I have found the following works for me. predicates unification:(integer) procedure. unification_string:(string) procedure. clauses unification_s...
by kingchris
29 Dec 2015 18:44
Forum: Visual Prolog
Topic: Domains and Facts How to
Replies: 0
Views: 3146

Domains and Facts How to

I believe that I was asleep during the Domains and Facts lecture so here is a simple question. class bt_class : bt_class open core predicates classInfo : core::classInfo. % @short Class information predicate. % @detail This predicate represents information predicate of this class. % @end domains par...
by kingchris
27 Dec 2015 16:29
Forum: Visual Prolog
Topic: Domains, Facts, Properties, Classes sharing confusion ?
Replies: 2
Views: 2829

Thanks. I will look at making a facts only class.

I have used the chainDB and Btree library from as way back as the VIP 5.2 days so I am happy I know what I am doing.

Because of my projects high volume data, Btree's are a little faster. :lol:
by kingchris
27 Dec 2015 6:27
Forum: Visual Prolog
Topic: Domains, Facts, Properties, Classes sharing confusion ?
Replies: 2
Views: 2829

Domains, Facts, Properties, Classes sharing confusion ?

I currently have a working class called calcWindow that uses a few facts to hold info consulted from a physical fact file. To try and improved the speed of this program I now wish to consult the facts then move these facts into a chainDB with a btree index. The chainDB and btIndex stuff I know how t...
by kingchris
26 Dec 2015 14:05
Forum: Visual Prolog
Topic: stdio::write && console::write for GUI program
Replies: 1
Views: 2587

Cancel request.

Thanks
by kingchris
26 Dec 2015 7:41
Forum: Visual Prolog
Topic: stdio::write && console::write for GUI program
Replies: 1
Views: 2587

stdio::write && console::write for GUI program

Where in the PFC code should I look to find where the stdio and or console is re-directed to the Messages window. I am using an old 7.1 commercial version and can't seem to get write or writef to work to Message window in a GUI program. Do I have to do some init like the old console::init in a conso...
by kingchris
21 Dec 2015 17:45
Forum: Visual Prolog
Topic: Red Cuts and Green Cuts
Replies: 2
Views: 3096

Thanks for the code suggestions. I will try them out.

And yes the splitting will never be perfect but we must start somewhere and then refine it as we go along.
by kingchris
17 Dec 2015 5:21
Forum: Visual Prolog
Topic: Red Cuts and Green Cuts
Replies: 2
Views: 3096

Red Cuts and Green Cuts

implement main open core constants className = "main". classVersion = "". clauses classInfo(className, classVersion). class facts-countries %ISOen_name,continent,midlatitude,midlongitude,maxlatitude,minlatitude,maxlongitude,minlongitude country:(string,string, real, real, real, real, real, real). c...
by kingchris
15 Dec 2015 5:43
Forum: Visual Prolog
Topic: MPI (Message Passing Interface) with PDC Prolog
Replies: 0
Views: 3190

MPI (Message Passing Interface) with PDC Prolog

Greetings and hope you all enjoy the forth coming festive season and release of the the next Star Wars move. Lets hope Disney does not muck it up. :D To avoid re-inventing the wheel etc. Has anyone started or got something small to work where by two or more copies of the same PDC Prolog program have...
by kingchris
14 Dec 2015 19:56
Forum: Visual Prolog
Topic: OnPaint race condition
Replies: 4
Views: 3314

Thanks. I will run the program under different versions of windows to see if its related to the platform

Cheers
by kingchris
14 Dec 2015 4:12
Forum: Visual Prolog
Topic: OnPaint race condition
Replies: 4
Views: 3314

I only added that in later to see if it would help.

Anything else that might cause a problem

Thanks
by kingchris
13 Dec 2015 5:05
Forum: Visual Prolog
Topic: OnPaint race condition
Replies: 4
Views: 3314

OnPaint race condition

clauses assert_stuff1():- % 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 assert(mazeX( 1,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[7,3,1,1,7])), assert(mazeX( 2,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[1,1,2,2,1,1])), assert(mazeX( 3,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
by kingchris
1 Dec 2015 15:50
Forum: Visual Prolog
Topic: Simple list head rest split syntax
Replies: 6
Views: 3884

No. I disagree. build_filename_db():- dir(CurrentDir), console::write("Processing Dir ",CurrentDir),console::nl(), extension(CurrentSearchExtension), CurrentFilename = directory::getFilesInDirectoryAndSub_nd(CurrentDir,CurrentSearchExtension), %console::write("Found Filename ",CurrentFilename),conso...