<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nissy-core/src/solvers/solutions.h, branch master</title>
<subtitle>The "engine" of nissy, including the H48 optimal solver.</subtitle>
<id>https://git.tronto.net/nissy-core/atom?h=master</id>
<link rel='self' href='https://git.tronto.net/nissy-core/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/'/>
<updated>2026-04-06T13:55:33Z</updated>
<entry>
<title>Make the project build with Microsoft's broken C compiler.</title>
<updated>2026-04-06T13:55:33Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2026-04-06T13:55:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=fc41f7917531693680b5baf71ffe38c47333fe84'/>
<id>urn:sha1:fc41f7917531693680b5baf71ffe38c47333fe84</id>
<content type='text'>
MSVC is not fully C11-compliant, even when compiling with /std:c11.
Some changes were needed to make the codebase compatible. Notably, the
notation a[static N] and a[n] for function parameters of array type is
not supported, so that had to be hidden behind a macro.  Atomic types
are also an experimental feature, apparently, but at least they work
with the correct compiler flag.

One thing that MSVC does well, however, is warning on integer conversions
on /W4 level. I am not sure if Clang and GCC have something similar,
so I took this chance to fix some of these.
</content>
</entry>
<entry>
<title>Improve performance of H48 solver with prefetching</title>
<updated>2026-01-12T17:09:43Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2026-01-12T17:09:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=9a013b7c68f94e6be0fe8748c9012a441fe0273f'/>
<id>urn:sha1:9a013b7c68f94e6be0fe8748c9012a441fe0273f</id>
<content type='text'>
With this commit we re-structure how the node expansion in the
H48 solution search works to allow prefetching of pruning values,
showing performance improvements in the range of 30-45% on x86,
depending on table size and solution length.

A small bug fix related to appending solutions is included in this commit.
</content>
</entry>
<entry>
<title>Fix duplicate solutions, overflow in maxsols and improve symmetry reduction for H48.</title>
<updated>2025-11-24T15:32:11Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-11-23T15:16:31Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=147b0c3c4615c32478a4923242909b8ae5a30d03'/>
<id>urn:sha1:147b0c3c4615c32478a4923242909b8ae5a30d03</id>
<content type='text'>
This commit fixes two bugs:
  - A bug that caused duplicates solutions for symmetric scrambles.
  - An overflow in the maxsols parameter for the H48 solver, which
    caused it to find much fewer solutions than existed.

Moreover, the H48 solvers has been improved by reducing by symmetry not
only from the starting position, but also up to the first 4 moves.
</content>
</entry>
<entry>
<title>Added API function for solution variations</title>
<updated>2025-08-07T13:28:01Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-08-07T13:09:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=5355de2921126e2b75e24abd57e17556e22a6ed0'/>
<id>urn:sha1:5355de2921126e2b75e24abd57e17556e22a6ed0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix bug</title>
<updated>2025-07-31T11:09:42Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-07-31T11:09:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=bf3497420c9a12397dc13a34faf3ce3e456f3aa7'/>
<id>urn:sha1:bf3497420c9a12397dc13a34faf3ce3e456f3aa7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed bug with counting solutions for coordinate solver</title>
<updated>2025-07-30T14:35:25Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-07-30T14:35:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=36c317ebd1cf1dba8a8cbec494f4d3971e6cefd3'/>
<id>urn:sha1:36c317ebd1cf1dba8a8cbec494f4d3971e6cefd3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cleanup some TODOs</title>
<updated>2025-07-29T08:55:29Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-07-29T08:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=52c21640508c3fc668107778ae027ff4428ebd89'/>
<id>urn:sha1:52c21640508c3fc668107778ae027ff4428ebd89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed VLA notation from function parameters.</title>
<updated>2025-05-27T07:03:51Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-05-27T07:03:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=7c934801f88c640970ad41b5ddd39f4e39609f28'/>
<id>urn:sha1:7c934801f88c640970ad41b5ddd39f4e39609f28</id>
<content type='text'>
I found out that this gives undefined behavior when then size is 0.
Better not to have it at all, it is confusing for other developers anyway.
</content>
</entry>
<entry>
<title>Do all loggin in main thread</title>
<updated>2025-05-23T14:54:59Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-05-23T14:48:58Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=c6a77f30f64be73a5e55e06336975f2ecfbb2324'/>
<id>urn:sha1:c6a77f30f64be73a5e55e06336975f2ecfbb2324</id>
<content type='text'>
Before this committ, the solver (via the generic solution-appender
routines in src/solve/solutions.h) and the H48 data generator did some
logging in the worker threads, without using any locks. This was not nice,
but in practice it did not cause any problem, because the log messages
were rare.

However, this turned out to be a problem when building to WASM, because
web workers do not have access to the main JS memory, and therefore
they cannot call functions from the main JS. This includes not only the
callback functions for logging, but also those for polling the status
of the solver (run / pause / stop).

This commit fixes this at the cost or being somewhat inelegant: the
solutions are not logged as they are found, but only every 500ms.
</content>
</entry>
<entry>
<title>Adjusted solvers, fixed bug</title>
<updated>2025-04-23T12:52:58Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-04-23T12:42:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=039267a278bb9e0580e8aebd85ef5f3ed774688f'/>
<id>urn:sha1:039267a278bb9e0580e8aebd85ef5f3ed774688f</id>
<content type='text'>
</content>
</entry>
</feed>
