]> git.sesse.net Git - remoteglot/log
remoteglot
2 months agoHandle streaming PGNs, like from Lichess (although this might break non-streaming... master
Steinar H. Gunderson [Wed, 7 Feb 2024 16:47:21 +0000 (17:47 +0100)]
Handle streaming PGNs, like from Lichess (although this might break non-streaming ones).

2 months agoAllow polling more often.
Steinar H. Gunderson [Wed, 27 Dec 2023 10:29:41 +0000 (11:29 +0100)]
Allow polling more often.

2 months agoUpdate the list of manual move extensions even if the FEN did not change.
Steinar H. Gunderson [Wed, 27 Dec 2023 10:24:26 +0000 (11:24 +0100)]
Update the list of manual move extensions even if the FEN did not change.

This makes it easier to see how far behind the feed is.

2 months agoMerge remote-tracking branch 'magne/master'
Steinar H. Gunderson [Wed, 7 Feb 2024 16:47:31 +0000 (17:47 +0100)]
Merge remote-tracking branch 'magne/master'

3 months agoUpdate the Closure compiler (no big changes).
Steinar H. Gunderson [Sat, 30 Dec 2023 10:59:23 +0000 (11:59 +0100)]
Update the Closure compiler (no big changes).

3 months agoAdd an undo button to the admin interface.
Steinar H. Gunderson [Sat, 30 Dec 2023 09:56:33 +0000 (10:56 +0100)]
Add an undo button to the admin interface.

3 months agoMore fixes for relative move numbering after the recent refactoring.
Steinar H. Gunderson [Thu, 28 Dec 2023 14:06:54 +0000 (15:06 +0100)]
More fixes for relative move numbering after the recent refactoring.

3 months agoFactor out find_halfmove_num() into its own function.
Steinar H. Gunderson [Thu, 28 Dec 2023 09:10:41 +0000 (10:10 +0100)]
Factor out find_halfmove_num() into its own function.

3 months agoComment DisplayLine.scores better.
Steinar H. Gunderson [Thu, 28 Dec 2023 08:16:07 +0000 (09:16 +0100)]
Comment DisplayLine.scores better.

3 months agoMake the print_pv() logic hopefully slightly easier to understand.
Steinar H. Gunderson [Thu, 28 Dec 2023 08:05:14 +0000 (09:05 +0100)]
Make the print_pv() logic hopefully slightly easier to understand.

Using half-move logic instead of trying to keep track of white/black
manually seems to be a good idea. No guarantees I didn't add extra
bugs, though.

3 months agoClean up the refutation line choice logic a bit.
Steinar H. Gunderson [Wed, 27 Dec 2023 21:56:12 +0000 (22:56 +0100)]
Clean up the refutation line choice logic a bit.

3 months agoRemove unused entry point set_truncate_history().
Steinar H. Gunderson [Wed, 27 Dec 2023 19:51:41 +0000 (20:51 +0100)]
Remove unused entry point set_truncate_history().

3 months agoRemove a small redundancy in DisplayLine.
Steinar H. Gunderson [Wed, 27 Dec 2023 09:51:41 +0000 (10:51 +0100)]
Remove a small redundancy in DisplayLine.

3 months agoChess.js: Remove unused keep_headers.
Steinar H. Gunderson [Wed, 27 Dec 2023 09:11:04 +0000 (10:11 +0100)]
Chess.js: Remove unused keep_headers.

3 months agoFix some random type annotations.
Steinar H. Gunderson [Wed, 27 Dec 2023 09:09:49 +0000 (10:09 +0100)]
Fix some random type annotations.

3 months agoPotentially fix a move-number error in refutation lines.
Steinar H. Gunderson [Wed, 27 Dec 2023 08:50:25 +0000 (09:50 +0100)]
Potentially fix a move-number error in refutation lines.

Or possibly just mess up everything. This is mainly because
I have too many patches in trying to fix up admin mode,
and none of them work, and I need to clear out a bit :-)

3 months agoPreparatory refactoring.
Steinar H. Gunderson [Wed, 27 Dec 2023 08:35:56 +0000 (09:35 +0100)]
Preparatory refactoring.

3 months agoLowercase toplay internally, for consistency with FEN.
Steinar H. Gunderson [Wed, 27 Dec 2023 08:24:53 +0000 (09:24 +0100)]
Lowercase toplay internally, for consistency with FEN.

This is for the frontend only; the backend continues with whatever
it wants to do.

3 months agoRemove redundant parameters to add_pv().
Steinar H. Gunderson [Wed, 27 Dec 2023 07:47:47 +0000 (08:47 +0100)]
Remove redundant parameters to add_pv().

3 months agoRemove the global move_num and toplay variables.
Steinar H. Gunderson [Wed, 27 Dec 2023 07:42:59 +0000 (08:42 +0100)]
Remove the global move_num and toplay variables.

These are redundant from the FEN, and we would like to fix
so that we can use a different FEN in some cases, so remove
the (semi-)hidden dependency on the board state.

3 months agoRemove the ICS support, which has been unused for many years.
Steinar H. Gunderson [Tue, 26 Dec 2023 18:54:21 +0000 (19:54 +0100)]
Remove the ICS support, which has been unused for many years.

3 months agoRemove the ICS support, which has been unused for many years.
Steinar H. Gunderson [Tue, 26 Dec 2023 18:54:21 +0000 (19:54 +0100)]
Remove the ICS support, which has been unused for many years.

3 months agoTouch the right file on manual override.
Steinar H. Gunderson [Tue, 26 Dec 2023 15:37:35 +0000 (16:37 +0100)]
Touch the right file on manual override.

3 months agoWe need some extra permissions for touch.
Steinar H. Gunderson [Tue, 26 Dec 2023 14:17:30 +0000 (15:17 +0100)]
We need some extra permissions for touch.

3 months agoAdd a very crude function for manual overrides.
Steinar H. Gunderson [Tue, 26 Dec 2023 13:50:54 +0000 (14:50 +0100)]
Add a very crude function for manual overrides.

Needed when the feed is hung but we have some other way of getting
the moves. No real undo yet (you can go back in history and do other
moves, but not delete anything), and it's pretty slow and sluggish.

3 months agoRemove the now obsolete Lomonosov support.
Steinar H. Gunderson [Mon, 25 Dec 2023 18:00:50 +0000 (19:00 +0100)]
Remove the now obsolete Lomonosov support.

This was nice to have, but the service is long gone, so we can
just as well clean out the code.

3 months agoRemove some redundancy.
Steinar H. Gunderson [Mon, 25 Dec 2023 17:57:08 +0000 (18:57 +0100)]
Remove some redundancy.

7 months agoAnimate pieces using the Web Animation API.
Steinar H. Gunderson [Thu, 7 Sep 2023 16:36:25 +0000 (18:36 +0200)]
Animate pieces using the Web Animation API.

This seemingly fixes our Chromium power saving issues.
Since we don't use all the new fanciness (e.g. fill mode),
it ends up being a bit icky, but no more than what we already had.

9 months agoFix the clock targeting when using inline JSON.
Steinar H. Gunderson [Wed, 12 Jul 2023 16:13:26 +0000 (18:13 +0200)]
Fix the clock targeting when using inline JSON.

9 months agoDrop the fade-in on initial load.
Steinar H. Gunderson [Wed, 12 Jul 2023 15:03:44 +0000 (17:03 +0200)]
Drop the fade-in on initial load.

9 months agoMerge remote-tracking branch 'magne/master'
Steinar H. Gunderson [Wed, 12 Jul 2023 14:46:05 +0000 (16:46 +0200)]
Merge remote-tracking branch 'magne/master'

9 months agoFix serve-analysis.js crash with our custom chess.js.
Steinar H. Gunderson [Wed, 12 Jul 2023 14:21:55 +0000 (16:21 +0200)]
Fix serve-analysis.js crash with our custom chess.js.

9 months agoSend the first JSON inline.
Steinar H. Gunderson [Wed, 12 Jul 2023 10:18:22 +0000 (12:18 +0200)]
Send the first JSON inline.

This removes a round-trip, although it's probably slightly less bandwidth-efficient
and definitely more complex. You'll need to make Varnish rewrite / to /index-inline.html
and send it to the backend. It doesn't work on the .dev version, unfortunately.

9 months agoMake serve-analysis.js support inline serving of the HTML.
Steinar H. Gunderson [Wed, 12 Jul 2023 10:18:00 +0000 (12:18 +0200)]
Make serve-analysis.js support inline serving of the HTML.

9 months agoTiny simplification in serve-analysis.js.
Steinar H. Gunderson [Wed, 12 Jul 2023 10:16:41 +0000 (12:16 +0200)]
Tiny simplification in serve-analysis.js.

9 months agoSmall refactoring in serve-analysis.js.
Steinar H. Gunderson [Wed, 12 Jul 2023 09:58:02 +0000 (11:58 +0200)]
Small refactoring in serve-analysis.js.

9 months agoDo not hang when running with MPI Stockfish.
Steinar H. Gunderson [Sun, 5 Dec 2021 11:38:35 +0000 (12:38 +0100)]
Do not hang when running with MPI Stockfish.

9 months agoFix an SQL error.
Steinar H. Gunderson [Sun, 5 Dec 2021 11:38:12 +0000 (12:38 +0100)]
Fix an SQL error.

15 months agoUpdate copyright year.
Steinar H. Gunderson [Mon, 2 Jan 2023 23:10:49 +0000 (00:10 +0100)]
Update copyright year.

15 months agoUpdate the explanation for what a 1.00 score is.
Steinar H. Gunderson [Mon, 2 Jan 2023 23:10:32 +0000 (00:10 +0100)]
Update the explanation for what a 1.00 score is.

15 months agoFix an issue where two PVs would be printed.
Steinar H. Gunderson [Fri, 30 Dec 2022 09:46:03 +0000 (10:46 +0100)]
Fix an issue where two PVs would be printed.

15 months agoComment out some unused code from chess.js.
Steinar H. Gunderson [Thu, 29 Dec 2022 20:43:24 +0000 (21:43 +0100)]
Comment out some unused code from chess.js.

15 months agoUnbreak dragging again.
Steinar H. Gunderson [Thu, 29 Dec 2022 20:36:30 +0000 (21:36 +0100)]
Unbreak dragging again.

15 months agoRemove leftover, now buggy code.
Steinar H. Gunderson [Thu, 29 Dec 2022 20:30:22 +0000 (21:30 +0100)]
Remove leftover, now buggy code.

15 months agoFix a snafu.
Steinar H. Gunderson [Thu, 29 Dec 2022 19:31:52 +0000 (20:31 +0100)]
Fix a snafu.

15 months agoStop the barrage of clock timer events if one of the players went out on time.
Steinar H. Gunderson [Thu, 29 Dec 2022 19:28:11 +0000 (20:28 +0100)]
Stop the barrage of clock timer events if one of the players went out on time.

15 months agoLess style calculation in Chrome. (This is my fault, and I am sorry...)
Steinar H. Gunderson [Thu, 29 Dec 2022 18:36:27 +0000 (19:36 +0100)]
Less style calculation in Chrome. (This is my fault, and I am sorry...)

15 months agoYet more transition tweaks.
Steinar H. Gunderson [Thu, 29 Dec 2022 18:18:13 +0000 (19:18 +0100)]
Yet more transition tweaks.

First, put them all into one big rAF now (this requires some inlining,
but they are so small that it's really fine). Second, add a backup timeout
so that we should never really see ghost pieces remaining.

15 months agoSlightly fewer DOM calls in print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 13:49:23 +0000 (14:49 +0100)]
Slightly fewer DOM calls in print_pv().

15 months agoFinally fix the issue with truncated scoresparks on mobile.
Steinar H. Gunderson [Thu, 29 Dec 2022 13:39:36 +0000 (14:39 +0100)]
Finally fix the issue with truncated scoresparks on mobile.

15 months agoRemove a bunch of pointless comparisons with true.
Steinar H. Gunderson [Thu, 29 Dec 2022 13:11:12 +0000 (14:11 +0100)]
Remove a bunch of pointless comparisons with true.

15 months agoRewrite how the chessboard works.
Steinar H. Gunderson [Thu, 29 Dec 2022 12:49:07 +0000 (13:49 +0100)]
Rewrite how the chessboard works.

Lots of changes; the board is now completely responsive, with everything
being positioned in terms of 12.5% increments relative to the board
(and the grid being an actual CSS grid). Animated pieces are now simply
being moved, instead of making a separate piece for the animation and
deleting it later.

It's not much smaller and I'm not sure if it's actually faster,
but it should make the problems of phantom pieces somewhat smaller.
It should certainly fix the off-grid pieces showing up.

15 months agoSlightly less weird FEN generation.
Steinar H. Gunderson [Thu, 29 Dec 2022 11:10:38 +0000 (12:10 +0100)]
Slightly less weird FEN generation.

15 months agoFix regression in truncating PV.
Steinar H. Gunderson [Thu, 29 Dec 2022 10:15:45 +0000 (11:15 +0100)]
Fix regression in truncating PV.

15 months agoMore simplification in print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 09:07:10 +0000 (10:07 +0100)]
More simplification in print_pv().

15 months agoSimplify print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 09:03:32 +0000 (10:03 +0100)]
Simplify print_pv().

15 months agoUse a slightly more normal function syntax.
Steinar H. Gunderson [Thu, 29 Dec 2022 08:49:28 +0000 (09:49 +0100)]
Use a slightly more normal function syntax.

15 months agoDo not rely on innerHTML for print_pv().
Steinar H. Gunderson [Wed, 28 Dec 2022 23:45:38 +0000 (00:45 +0100)]
Do not rely on innerHTML for print_pv().

15 months agoBatch moving pieces together in one rAF.
Steinar H. Gunderson [Wed, 28 Dec 2022 23:24:51 +0000 (00:24 +0100)]
Batch moving pieces together in one rAF.

15 months agoRemove more offboard logic we do not need.
Steinar H. Gunderson [Wed, 28 Dec 2022 21:33:50 +0000 (22:33 +0100)]
Remove more offboard logic we do not need.

15 months agoImprove a comment in onSnapEnd.
Steinar H. Gunderson [Wed, 28 Dec 2022 21:17:46 +0000 (22:17 +0100)]
Improve a comment in onSnapEnd.

15 months agoRemove some now-obsolete vendor prefixing.
Steinar H. Gunderson [Wed, 28 Dec 2022 08:58:04 +0000 (09:58 +0100)]
Remove some now-obsolete vendor prefixing.

15 months agoRemove some trash code that we do not use.
Steinar H. Gunderson [Wed, 28 Dec 2022 00:00:06 +0000 (01:00 +0100)]
Remove some trash code that we do not use.

15 months agoRemove obsolete jQuery version checks.
Steinar H. Gunderson [Tue, 27 Dec 2022 23:58:28 +0000 (00:58 +0100)]
Remove obsolete jQuery version checks.

15 months agoRemove the spare piece functionality we do not use.
Steinar H. Gunderson [Tue, 27 Dec 2022 23:54:10 +0000 (00:54 +0100)]
Remove the spare piece functionality we do not use.

15 months agoFaster and smaller update_imbalance().
Steinar H. Gunderson [Tue, 27 Dec 2022 17:15:54 +0000 (18:15 +0100)]
Faster and smaller update_imbalance().

15 months agoCheaper createId().
Steinar H. Gunderson [Tue, 27 Dec 2022 17:08:42 +0000 (18:08 +0100)]
Cheaper createId().

15 months agoRemove depth_secondary_key, which was off for 5+ years without anyone noticing.
Steinar H. Gunderson [Tue, 27 Dec 2022 17:05:02 +0000 (18:05 +0100)]
Remove depth_secondary_key, which was off for 5+ years without anyone noticing.

15 months agoRemove unused variable.
Steinar H. Gunderson [Tue, 27 Dec 2022 16:13:23 +0000 (17:13 +0100)]
Remove unused variable.

15 months agoPosition arrows without forcing a style recalc.
Steinar H. Gunderson [Tue, 27 Dec 2022 11:59:56 +0000 (12:59 +0100)]
Position arrows without forcing a style recalc.

15 months agoCompress the sparkline range a bit.
Steinar H. Gunderson [Mon, 26 Dec 2022 14:14:55 +0000 (15:14 +0100)]
Compress the sparkline range a bit.

15 months agoRevert "Show retained/interpolated scores with 50% alpha."
Steinar H. Gunderson [Mon, 26 Dec 2022 14:07:51 +0000 (15:07 +0100)]
Revert "Show retained/interpolated scores with 50% alpha."

A bit too distracting.

This reverts commit b3aae4b92383a29a31b7c9557655efc45922c3ad.

15 months agoShow retained/interpolated scores with 50% alpha.
Steinar H. Gunderson [Mon, 26 Dec 2022 12:50:39 +0000 (13:50 +0100)]
Show retained/interpolated scores with 50% alpha.

15 months agoAlign the sparkline a bit better.
Steinar H. Gunderson [Mon, 26 Dec 2022 11:15:28 +0000 (12:15 +0100)]
Align the sparkline a bit better.

15 months agoMuch faster findClosestPiece() (also generates much less garbage).
Steinar H. Gunderson [Sun, 25 Dec 2022 23:10:37 +0000 (00:10 +0100)]
Much faster findClosestPiece() (also generates much less garbage).

15 months agoFix click-to-drag and click-to-suggest post-jQuery.
Steinar H. Gunderson [Sun, 25 Dec 2022 21:30:48 +0000 (22:30 +0100)]
Fix click-to-drag and click-to-suggest post-jQuery.

15 months agoFix double-forwarding when clicking along a hash-probe line.
Steinar H. Gunderson [Sun, 25 Dec 2022 21:30:26 +0000 (22:30 +0100)]
Fix double-forwarding when clicking along a hash-probe line.

15 months agoBatch fade-in/fade-out, for ~5 ms less FCP.
Steinar H. Gunderson [Sun, 25 Dec 2022 20:19:32 +0000 (21:19 +0100)]
Batch fade-in/fade-out, for ~5 ms less FCP.

15 months agoChess.js: In move_from_san(), only bother generating relevant candidate moves.
Steinar H. Gunderson [Sun, 25 Dec 2022 20:02:13 +0000 (21:02 +0100)]
Chess.js: In move_from_san(), only bother generating relevant candidate moves.

15 months agoChess.js bugfixes.
Steinar H. Gunderson [Sun, 25 Dec 2022 19:34:55 +0000 (20:34 +0100)]
Chess.js bugfixes.

15 months agoFix some issues with exploring the wrong lines, especially when the backend probes...
Steinar H. Gunderson [Sun, 25 Dec 2022 17:09:06 +0000 (18:09 +0100)]
Fix some issues with exploring the wrong lines, especially when the backend probes fail.

15 months agoFix touch events post-jQuery.
Steinar H. Gunderson [Sun, 25 Dec 2022 15:21:39 +0000 (16:21 +0100)]
Fix touch events post-jQuery.

15 months agoRemove innerHTML from imbalance piece display.
Steinar H. Gunderson [Sun, 25 Dec 2022 14:47:47 +0000 (15:47 +0100)]
Remove innerHTML from imbalance piece display.

15 months agochess.js: Skip legality checking during disambiguation if not needed.
Steinar H. Gunderson [Sun, 25 Dec 2022 12:43:36 +0000 (13:43 +0100)]
chess.js: Skip legality checking during disambiguation if not needed.

15 months agochess.js: Faster and smaller attacked(). (A test perft went from ~11.5 to ~7.5 secs.)
Steinar H. Gunderson [Sun, 25 Dec 2022 12:35:07 +0000 (13:35 +0100)]
chess.js: Faster and smaller attacked(). (A test perft went from ~11.5 to ~7.5 secs.)

16 months agoBuild pieces through the DOM, not innerHTML.
Steinar H. Gunderson [Sat, 24 Dec 2022 23:05:49 +0000 (00:05 +0100)]
Build pieces through the DOM, not innerHTML.

16 months agoEvidently clearTimeout() is expensive (~3 ms used on load), so do not call it unless...
Steinar H. Gunderson [Sat, 24 Dec 2022 23:02:42 +0000 (00:02 +0100)]
Evidently clearTimeout() is expensive (~3 ms used on load), so do not call it unless we must.

16 months agoUse innerHTML slightly less (it is costly).
Steinar H. Gunderson [Sat, 24 Dec 2022 22:58:24 +0000 (23:58 +0100)]
Use innerHTML slightly less (it is costly).

16 months agochess.js: Much faster disambiguation.
Steinar H. Gunderson [Sat, 24 Dec 2022 20:03:36 +0000 (21:03 +0100)]
chess.js: Much faster disambiguation.

16 months agoFix a super-long-standing bug, where making a move on the board could make us replay...
Steinar H. Gunderson [Sat, 24 Dec 2022 10:38:56 +0000 (11:38 +0100)]
Fix a super-long-standing bug, where making a move on the board could make us replay the game from the start.

16 months agoFix leftover hover when clicking on the graph.
Steinar H. Gunderson [Sat, 24 Dec 2022 10:12:16 +0000 (11:12 +0100)]
Fix leftover hover when clicking on the graph.

16 months agoPrune some unused CSS rules.
Steinar H. Gunderson [Sat, 24 Dec 2022 00:16:10 +0000 (01:16 +0100)]
Prune some unused CSS rules.

16 months agoMake sure the SVG pieces are in front of the letters.
Steinar H. Gunderson [Sat, 24 Dec 2022 00:04:53 +0000 (01:04 +0100)]
Make sure the SVG pieces are in front of the letters.

16 months agoFix min/max range for the most recent move.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:39:57 +0000 (00:39 +0100)]
Fix min/max range for the most recent move.

16 months agoUse proper variable scoping everywhere.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:27:50 +0000 (00:27 +0100)]
Use proper variable scoping everywhere.

16 months agoFix highlight removals.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:20:13 +0000 (00:20 +0100)]
Fix highlight removals.

16 months agoEat JSON parse errors in hash explores.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:05:24 +0000 (00:05 +0100)]
Eat JSON parse errors in hash explores.

16 months agoAdd a Firefox workaround for animations.
Steinar H. Gunderson [Fri, 23 Dec 2022 22:08:17 +0000 (23:08 +0100)]
Add a Firefox workaround for animations.

16 months agoFix transitionProperty syntax.
Steinar H. Gunderson [Fri, 23 Dec 2022 22:06:29 +0000 (23:06 +0100)]
Fix transitionProperty syntax.

16 months agoRemove the minimized chessboard.js and chess.js, which are no longer matching the...
Steinar H. Gunderson [Fri, 23 Dec 2022 20:38:39 +0000 (21:38 +0100)]
Remove the minimized chessboard.js and chess.js, which are no longer matching the full versions.