<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nissy-core/src/solvers/h48/solve.h, branch v0.2</title>
<subtitle>The "engine" of nissy, including the H48 optimal solver.</subtitle>
<id>https://git.tronto.net/nissy-core/atom?h=v0.2</id>
<link rel='self' href='https://git.tronto.net/nissy-core/atom?h=v0.2'/>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/'/>
<updated>2025-07-29T10:12:43Z</updated>
<entry>
<title>All coordinates unsigned</title>
<updated>2025-07-29T10:12:43Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-07-29T10:12:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=ea0387796a349c91032fbcb10f50c6ad8607b0f6'/>
<id>urn:sha1:ea0387796a349c91032fbcb10f50c6ad8607b0f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Trick fix</title>
<updated>2025-06-18T11:40:00Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-06-18T11:40:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=0e334e8659deaf61c3eef57e8ccd171a5becedb3'/>
<id>urn:sha1:0e334e8659deaf61c3eef57e8ccd171a5becedb3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change min depth for H48 tasks heuristic sort</title>
<updated>2025-06-18T08:14:37Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-06-18T08:14:37Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=b3d1ca3d503f3d525f653067b3555e86048bfdac'/>
<id>urn:sha1:b3d1ca3d503f3d525f653067b3555e86048bfdac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Big speedup for H48 solver (heuristic sort of tasks)</title>
<updated>2025-06-18T07:22:29Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-06-18T07:22:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=5a8ca71aa8255fb76335bf41c8168cfe45eb9574'/>
<id>urn:sha1:5a8ca71aa8255fb76335bf41c8168cfe45eb9574</id>
<content type='text'>
</content>
</entry>
<entry>
<title>More improvements to web solver</title>
<updated>2025-05-30T12:06:34Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-05-30T12:06:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=37a2ebd4bffa99d465396fde0acfc52284ee3b7c'/>
<id>urn:sha1:37a2ebd4bffa99d465396fde0acfc52284ee3b7c</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>Avoid pausing for logging only if poll_status() is null (h48 solver).</title>
<updated>2025-05-26T16:45:39Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-05-26T16:45:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=243a852d31483d10983c50978d1d4471efd0e553'/>
<id>urn:sha1:243a852d31483d10983c50978d1d4471efd0e553</id>
<content type='text'>
This is a small amendment to c6a77f30f64be73a5e55e06336975f2ecfbb2324,
which changed the way we log solutions while the h48 solver is running.
With the method recently introduced, the main thread checks for solutions
to log every 0.5 seconds, resulting in a possible slowdown of at most
0.5s per solve. The solutions are also logged when all worker threads are
completed. With this new method, when the poll_status() callback function
is NULL, which likely means nissy is not run interactively, we rely
only on the final log on completion of the worker threads. This means
less frequent logging, but at no performance cost.
</content>
</entry>
<entry>
<title>Cleanup</title>
<updated>2025-05-25T10:38:39Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-05-25T10:38:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=87852933851674cacbc8b2295d046831db27ab81'/>
<id>urn:sha1:87852933851674cacbc8b2295d046831db27ab81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Quick fix for bug</title>
<updated>2025-05-25T10:31:40Z</updated>
<author>
<name>Sebastiano Tronto</name>
<email>sebastiano@tronto.net</email>
</author>
<published>2025-05-25T10:31:40Z</published>
<link rel='alternate' type='text/html' href='https://git.tronto.net/nissy-core/commit/?id=2852d47c0e7b0da72259ddcec693270d52110578'/>
<id>urn:sha1:2852d47c0e7b0da72259ddcec693270d52110578</id>
<content type='text'>
</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>
</feed>
