Commit Graph

438 Commits

Author SHA1 Message Date
Vitor Santos Costa
b159736edd fixes for 64 bits. 2009-04-14 01:25:21 +01:00
Vitor Santos Costa
d05dfc3283 allow different comparison functions in b_hash 2009-04-04 23:57:46 +01:00
Vitor Santos Costa
cc7ff82275 term_hash non non_ground terms: ignoring the variables. 2009-03-31 21:56:12 +01:00
Vitor Santos Costa
67b29f3c85 improve SWI compatibility. 2009-03-13 19:40:27 +00:00
Vitor Santos Costa
66931e6518 Prolog dialect support 2009-03-06 10:59:02 +00:00
Vitor Santos Costa
d98c3f0817 add support for sized queues. 2009-02-27 22:22:49 +00:00
Vitor Santos Costa
a000af113b OSX portability updates
start of support for commons prolog initiative
2009-02-16 12:25:03 +00:00
Vitor Santos Costa
3439cc8787 From Jose Santos: rb_map is a meta_predicate! 2009-02-10 22:53:40 +00:00
Vítor Santos Costa
43e70f2003 more changes to support SWI Input/Output. Now it compiles, which does
not mean it would work!
2008-12-22 12:03:14 +00:00
Vítor Santos Costa
e51a4c2f5b more changes to interface better with SWI-Prolog 2008-12-19 11:41:56 +00:00
Vítor Santos Costa
a2744ed186 further changes to better support SWI interface. 2008-12-17 14:47:05 +00:00
Vítor Santos Costa
f19db29647 support split on blank spaces (tab and spaces). 2008-12-17 14:46:39 +00:00
Vítor Santos Costa
2b0c27deb6 Remove attempt to emulate SWI I/O
add YAP_getcwd and PL_cwd to interface
2008-12-13 16:07:55 +00:00
Vitor Santos Costa
a64c1138df more CLP(BN) fixes
- support clpbn_table for an efficient implementation of deterministic tabling.
- corresponding changes to learning algorithm.
2008-11-18 11:29:59 +00:00
Vitor Santos Costa
abf9691282 fixes to hashing code. 2008-11-18 11:29:08 +00:00
Vitor Santos Costa
1be78e23ec had shortcut for var-to-var unification. 2008-11-14 14:54:52 +00:00
Vitor Santos Costa
8e9fde1c6c backtrack global hash table. 2008-11-14 14:50:04 +00:00
Vitor Santos Costa
13fb5d5156 fix underflows when computing marginals. 2008-11-04 03:55:49 +00:00
Vitor Santos Costa
8938666bf5 add sum_list/3 2008-11-03 16:00:22 +00:00
Vitor Santos Costa
4a2aa23c5b more CLP(BN) fixes, add softening option when computing MLE estimators. 2008-10-31 15:11:27 +00:00
Vitor Santos Costa
9c1ee7ba34 add matrix_row to get a row of a matrix
fix a bit of error handling.
2008-10-31 09:47:58 +00:00
Vitor Santos Costa
aca06e16fc fix bad call to map_tree (obs from Paulo Moura). 2008-10-31 09:42:32 +00:00
Vitor Santos Costa
0dcf34b7bc mainbranch fixes to:
- fix quoted characters output
- fix line position in read_term and friends
- make messages look a bit better
- CLP(BN) EM improvements.
2008-10-23 22:17:45 +01:00
Vítor Santos de Costa
b3cb7b1071 add log/2 and exp/2 2008-10-22 00:40:15 +01:00
Vítor Santos Costa
9c3ef66490 fix OSX breakage 2008-10-20 17:58:12 +01:00
Vitor Santos Costa
83c6d45cbc fixed: bad argument passing in expand_component. 2008-09-30 11:46:49 +01:00
Vítor Santos Costa
65ccd336b2 fix a stupid threads bug 2008-09-04 16:58:45 +01:00
Vitor Santos Costa
83ebf097df add support for dbusage 2008-09-01 04:45:55 +01:00
Vitor Santos Costa
236ffa0718 add useful debugging info on data base usage. 2008-09-01 04:45:16 +01:00
Vitor Santos Costa
2a53a46d12 document lineutils 2008-09-01 04:44:54 +01:00
Vitor Santos Costa
2a84e259a2 Upgrade to new CHR (with Jan's changes).
Found out I need to add an extra field to allocate so that the
exception handling code knows where the clause is.
Protect creep_allowed from NULL pointers.
2008-08-30 16:24:44 +01:00
Vitor Santos Costa
24c2650472 get rid of suprious definition of $message 2008-08-27 00:43:40 +01:00
Vitor Santos Costa
6f0b3cf2f5 fix flatten/2: it would not create variable elements. 2008-08-25 20:41:09 +01:00
Vitor Santos Costa
8169ef0343 fix stack_dump 2008-08-25 15:20:18 +01:00
Vitor Santos Costa
a72355f288 redefine arg/3 as genarg/3 unless first argument is bound on call.
term_variables/3 and /2 is now a builtin-in, and thus not in the interace.
2008-08-24 14:25:04 +01:00
Vítor Santos Costa
d96461f04c add missing files 2008-08-21 13:39:56 +01:00
vsc
82efc8fb2c small fixes to compile in Windows again.
Trust _isatty


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2311 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-22 01:59:48 +00:00
vsc
d170b34624 MaxOS fixes
Avoid a thread deadlock
improvements to SWI predicates.
make variables_in_term system builtin.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2304 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-12 01:27:23 +00:00
vsc
dbd6e1b139 fix fix
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2298 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 17:34:15 +00:00
vsc
85d7d39dbf more thread fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2297 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 17:32:22 +00:00
vsc
a3983fa820 swi compatibility support
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2294 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-01 21:44:25 +00:00
vsc
e1866e2917 improve C-interface and SWI comptaibility a bit.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2292 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-24 16:02:04 +00:00
vsc
75c72d7b7d SWI and module fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2290 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-22 23:34:50 +00:00
vsc
d832a81991 add extra versions to maplist and fix apply macros to handle predicates
with the same aargument.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2288 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-16 10:45:47 +00:00
vsc
dc45cde7ee flatten does not need to be defined as a system predicate.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2287 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-16 10:34:00 +00:00
vsc
d8e5f2c895 fixes by Bart and Tom: mostly libraries but nasty one in indexing
compilation.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2286 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-11 17:02:10 +00:00
vsc
0dd1ed933e improve graphs a bit.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2285 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-26 13:09:15 +00:00
vsc
ac6ddd5005 fix syntax error messages
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2275 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-12 10:55:52 +00:00
vsc
8a00ab9d70 fix insert_new in rbtrees
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2274 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-11 16:57:31 +00:00
vsc
02565ae625 some nice extra predicatesy
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2273 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-11 11:08:25 +00:00