Search found 78 matches

by Gildas Menier
12 Apr 2009 22:24
Forum: Visual Prolog
Topic: Thread & Memory
Replies: 8
Views: 2607

Thinking of the 256 thread limitation/feature, I suggest to add a mainExe function/predicates that returns the number of available threads left (ie 256 - numberOfThreadsUsed).

Regards

Gildas
by Gildas Menier
12 Apr 2009 22:20
Forum: Visual Prolog
Topic: service_api example ?
Replies: 2
Views: 2022

Finally, I managed to build a service in VisualProlog (with start/stop/resume/suspend/install/delete). It works fine. Some (preliminary) remarks : The service_api is a good start but, in my opinion lacks some important features : first, the MSDN constants (for instance) : sERVICE_CONTROL_STOP =0x000...
by Gildas Menier
9 Apr 2009 16:58
Forum: Visual Prolog
Topic: service_api example ?
Replies: 2
Views: 2022

service_api example ?

Hi !

Has someone used the service_api (and would be kind to share an example ? ;) )

many thanks !

Regards

Gildas
by Gildas Menier
3 Mar 2009 22:13
Forum: Visual Prolog
Topic: string::last
Replies: 3
Views: 6458

string::last

Last (...) Returns the last Count characters of Source (according to help).

It seems that it rather returns the end of the string starting at the given position :

last("hello",1) returns "ello"

should return "o" ?

last("hello",string::length("hello")-1) ?

Regards

Gildas
by Gildas Menier
24 Feb 2009 7:12
Forum: Visual Prolog
Topic: VIP 7.2 CE .... IDE not picking up libs on added packages
Replies: 2
Views: 2379

Hi Billy, I've seen your email too late (sorry for my late answer). It may be possible to use something like 'require' to ensure the libs are added. It is more or less the same with my other libs, I usually use to add the .libs using the IDE after the packages have been added. I'll try to fix that (...
by Gildas Menier
19 Feb 2009 22:28
Forum: Visual Prolog
Topic: Thread & Memory
Replies: 8
Views: 2607

back :wink: with some more test. I used the enclosed project to have an idea of the maxstack effect on threads. This project creates 20 threads calling some dummy predicates and waits till they are over (I let the experts comment my messy code which is by no way a good example I guess :oops: ). I tr...
by Gildas Menier
19 Feb 2009 0:02
Forum: Visual Prolog
Topic: Thread & Memory
Replies: 8
Views: 2607

... after some investigations... For a simple test session of 20 actors, the taskmanager shows 28 Threads used (20 'actors' as threads and some threads for communications). The VM size remains a constant (16Mb). Changing the actors-thread stack to 4Mb (and only that) slows down the processing by a f...
by Gildas Menier
17 Feb 2009 17:41
Forum: Visual Prolog
Topic: Thread & Memory
Replies: 8
Views: 2607

Thomas & Apostol

(Very) Good advises & interesting hints/remarks (as always) !

Thank you both ! :D

Regards
Gildas
by Gildas Menier
16 Feb 2009 22:32
Forum: Visual Prolog
Topic: Thread & Memory
Replies: 8
Views: 2607

Yes, this makes sense - althought 400Mb shouldn't trigger any swapping - Or I may be very optimistic on this case (?). (4Mb stack for C threads causes no slowdown). Each thread runs a code interpreter written in VP (and sometimes, a bigger stack is needed, yes). Anyway, given the 256 limitation of t...
by Gildas Menier
12 Feb 2009 22:56
Forum: Visual Prolog
Topic: Thread & Memory
Replies: 8
Views: 2607

Thread & Memory

Hi ! First many thanks for the document on memory management & garbage collector management in VP. It is possible to expand the available 'stack' for a thread using something like thread::start(go,maxStack) for instance. As stated by the documentation, the default 'stacksize' is 1Mb. It seems that e...
by Gildas Menier
11 Jan 2009 20:59
Forum: Visual Prolog
Topic: Vip7.2 compilation
Replies: 3
Views: 2779

Hi Steve,

A right click on the package + a 'rebuild' can fix the missing includes.

Best Regards

Gildas
by Gildas Menier
6 Jan 2009 10:29
Forum: Visual Prolog
Topic: sqrt & abs
Replies: 2
Views: 3190

sqrt & abs

! :?
by Gildas Menier
1 Jan 2009 22:07
Forum: Visual Prolog Tips & Samples
Topic: MD5 extension
Replies: 0
Views: 3847

MD5 extension

http://www.arsaniit.com/prolog-tools/menu-extension/md5

... and, Happy new year to you, PDC & Visual Prolog comunity :-)

kind regards

Gildas
by Gildas Menier
3 Dec 2008 8:08
Forum: Visual Prolog
Topic: some minor suggestions
Replies: 1
Views: 2463

some minor suggestions

Some minor suggestions (72 works very well and the code produced seems faster ;) nice work ;) ) In the IDE, clicking on an icon/ressource displays a picture on the right panel : since it is possible to add a text file in a package (for instance desc.txt), my suggestion is to scan the package for thi...
by Gildas Menier
29 Nov 2008 22:19
Forum: Visual Prolog
Topic: unreachable code removed by the compiler
Replies: 4
Views: 3312

... found something in the compiler's help to make some warnings behave as errors /warnings{...}.
:D

Gildas