| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix small build error with clang | Sebastiano Tronto | 2025-05-28 | 1 | -1/+2 |
| | | |||||
| * | Removed VLA notation from function parameters. | Sebastiano Tronto | 2025-05-27 | 9 | -38/+38 |
| | | | | | | 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. | ||||
| * | Avoid pausing for logging only if poll_status() is null (h48 solver). | Sebastiano Tronto | 2025-05-26 | 1 | -10/+7 |
| | | | | | | | | | | | | | 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. | ||||
| * | Cleanup | Sebastiano Tronto | 2025-05-25 | 1 | -1/+2 |
| | | |||||
| * | Quick fix for bug | Sebastiano Tronto | 2025-05-25 | 1 | -9/+8 |
| | | |||||
| * | Do all loggin in main thread | Sebastiano Tronto | 2025-05-23 | 6 | -92/+122 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
| * | Refactored checkdata | Sebastiano Tronto | 2025-05-19 | 15 | -112/+392 |
| | | | | | | | | | Relevant changes include: - Changed the signature of nissy_checkdata(). - Removed expected_distribution.h from tools; this data is now included in each solver's src/ code. - Removed distribution check for cocsep; may add back later. | ||||
| * | Refactor solver dispatch and checkdata | Sebastiano Tronto | 2025-05-18 | 12 | -134/+287 |
| | | |||||
| * | Other minor fixes | Sebastiano Tronto | 2025-05-09 | 1 | -2/+2 |
| | | |||||
| * | Added build script | Sebastiano Tronto | 2025-05-07 | 1 | -1/+1 |
| | | |||||
| * | Added stop / pause / resume solve to API | Sebastiano Tronto | 2025-04-29 | 2 | -10/+73 |
| | | |||||
| * | NISS | Sebastiano Tronto | 2025-04-25 | 5 | -20/+19 |
| | | |||||
| * | Adjusted solvers, fixed bug | Sebastiano Tronto | 2025-04-23 | 4 | -16/+35 |
| | | |||||
| * | Update tests for oriented_cube_t | Sebastiano Tronto | 2025-04-22 | 1 | -2/+2 |
| | | |||||
| * | Always use unsigned char * for data buffers | Sebastiano Tronto | 2025-04-21 | 14 | -176/+188 |
| | | | | | | Before this commit I was inconsistently using one of void *, char * and uint8_t *. | ||||
| * | Improve order of moves in NISS solutions | Sebastiano Tronto | 2025-04-20 | 1 | -18/+62 |
| | | | | | | | | | Now the side that has more moves is written first. For example: write (U L F) B instead of B (U L F) This also fixes the test on appendsolutions, which used an older version of the function's signature. | ||||
| * | Improved logging, especially for solve | Sebastiano Tronto | 2025-04-19 | 7 | -59/+73 |
| | | |||||
| * | Sped up checkdata for H48 tables | Sebastiano Tronto | 2025-04-17 | 2 | -9/+57 |
| | | |||||
| * | Small rework of optimal vs maxsols | Sebastiano Tronto | 2025-04-17 | 4 | -29/+23 |
| | | | | | | | | | | | | | | | I wanted to make the "optimal" and "maxsolutions" options mutually exclusive, but in the end I decided there is value in keeping both (e.g. for specifying a limit to the number of solutions when asking for "all" optimal"). Now optimal cannot be negative anymore, for the same reason of maxsolutions. The interface user (shell, UI) will have to take care of handling this in a way that makes sense for the user. Usually this means setting the maximum number of solutions to UINT_MAX (or a similar very high number) when the user wants "all optimal". | ||||
| * | Log solutions as they are found | Sebastiano Tronto | 2025-04-15 | 3 | -7/+18 |
| | | |||||
| * | Some minor changes to the interface. | Sebastiano Tronto | 2025-04-08 | 3 | -4/+4 |
| | | | | | | | | | | - Simplified logger to accept only a string, not a variadic list of args like printf(). This can still use some improvement, but now it is easier to use from other languages. - Fixed some misuses of the logger (wrong types etc) - Renamed some constants - Fixed some typos in comments. | ||||
| * | Added dreo coordinate solver | Sebastiano Tronto | 2025-04-02 | 9 | -14/+168 |
| | | |||||
| * | Make single-use struct field anonymous | Sebastiano Tronto | 2025-04-01 | 1 | -12/+10 |
| | | |||||
| * | Make symcoord logic generic | Sebastiano Tronto | 2025-04-01 | 4 | -115/+191 |
| | | |||||
| * | Fix mismatched type in function prototype and implementation | Sebastiano Tronto | 2025-04-01 | 2 | -2/+2 |
| | | |||||
| * | simplified allowedmoves logic | Sebastiano Tronto | 2025-04-01 | 4 | -10/+31 |
| | | |||||
| * | Optimize genptable for coordinate solve (20x speedup) | Sebastiano Tronto | 2025-03-29 | 2 | -19/+99 |
| | | |||||
| * | DR coordinate solver | Sebastiano Tronto | 2025-03-28 | 6 | -14/+231 |
| | | |||||
| * | More safety with pointers using VLA function parameters | Sebastiano Tronto | 2025-03-25 | 12 | -127/+150 |
| | | |||||
| * | Tiny bugfix in solution writing | Sebastiano Tronto | 2025-03-25 | 1 | -4/+5 |
| | | |||||
| * | Added NISS to coord solver | Sebastiano Tronto | 2025-03-25 | 7 | -95/+272 |
| | | |||||
| * | Tiny fix | Sebastiano Tronto | 2025-03-25 | 1 | -4/+4 |
| | | |||||
| * | Big cleanup for appendsolution() | Sebastiano Tronto | 2025-03-24 | 6 | -267/+359 |
| | | | | | | | | | | | With this PR the appendsolution routine is extracted from the h48 solver and the new coordinate solver and made generic. This has many advantages: - less repetition (even if the two versions are different enough that *for now* it was not a big deal) - smaller h48/solve.h file, which is already a big beast - easier to test the appendsolution() routine separately | ||||
| * | Some safety with move arrays, small refactor appendchar | Sebastiano Tronto | 2025-03-22 | 9 | -83/+77 |
| | | |||||
| * | Filter solutions for coordinate solver and fix ordering | Sebastiano Tronto | 2025-03-19 | 3 | -3/+7 |
| | | |||||
| * | Bugfix | Sebastiano Tronto | 2025-03-14 | 1 | -4/+14 |
| | | |||||
| * | Added checkdata for coord EO | Sebastiano Tronto | 2025-03-14 | 2 | -0/+25 |
| | | |||||
| * | Replaced datasize with solverinfo | Sebastiano Tronto | 2025-03-14 | 2 | -1/+19 |
| | | |||||
| * | Revert API change | Sebastiano Tronto | 2025-03-12 | 3 | -10/+25 |
| | | |||||
| * | Working (?) version of coordinate solver | Sebastiano Tronto | 2025-03-09 | 6 | -38/+72 |
| | | |||||
| * | renamed some files | Sebastiano Tronto | 2025-03-08 | 5 | -7/+6 |
| | | |||||
| * | Fixes | Sebastiano Tronto | 2025-03-07 | 1 | -4/+4 |
| | | |||||
| * | More progress on coordinate solver | Sebastiano Tronto | 2025-03-07 | 6 | -7/+268 |
| | | |||||
| * | Begin work for coordinate solver | Sebastiano Tronto | 2025-03-04 | 6 | -0/+204 |
| | | |||||
| * | Revert small error | Sebastiano Tronto | 2024-12-18 | 2 | -5/+4 |
| | | |||||
| * | Fixed alignment bug | Sebastiano Tronto | 2024-12-16 | 2 | -0/+7 |
| | | |||||
| * | Fix rare bug, but one more bug to go | Sebastiano Tronto | 2024-12-15 | 1 | -4/+4 |
| | | |||||
| * | Actually fix the bug | Sebastiano Tronto | 2024-12-15 | 1 | -3/+5 |
| | | |||||
| * | Solve bug related to duplicate solutions | Sebastiano Tronto | 2024-12-15 | 4 | -45/+59 |
| | | |||||
| * | Implemented 'optimal' option | Sebastiano Tronto | 2024-12-15 | 1 | -7/+19 |
| | | |||||
