]>
git.sesse.net Git - remoteglot/log
Steinar H. Gunderson [Wed, 27 Dec 2023 07:47:47 +0000 (08:47 +0100)]
Remove redundant parameters to add_pv().
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.
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.
Steinar H. Gunderson [Tue, 26 Dec 2023 15:37:35 +0000 (16:37 +0100)]
Touch the right file on manual override.
Steinar H. Gunderson [Tue, 26 Dec 2023 14:17:30 +0000 (15:17 +0100)]
We need some extra permissions for touch.
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.
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.
Steinar H. Gunderson [Mon, 25 Dec 2023 17:57:08 +0000 (18:57 +0100)]
Remove some redundancy.
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.
Steinar H. Gunderson [Wed, 12 Jul 2023 16:13:26 +0000 (18:13 +0200)]
Fix the clock targeting when using inline JSON.
Steinar H. Gunderson [Wed, 12 Jul 2023 15:03:44 +0000 (17:03 +0200)]
Drop the fade-in on initial load.
Steinar H. Gunderson [Wed, 12 Jul 2023 14:46:05 +0000 (16:46 +0200)]
Merge remote-tracking branch 'magne/master'
Steinar H. Gunderson [Wed, 12 Jul 2023 14:21:55 +0000 (16:21 +0200)]
Fix serve-analysis.js crash with our custom chess.js.
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.
Steinar H. Gunderson [Wed, 12 Jul 2023 10:18:00 +0000 (12:18 +0200)]
Make serve-analysis.js support inline serving of the HTML.
Steinar H. Gunderson [Wed, 12 Jul 2023 10:16:41 +0000 (12:16 +0200)]
Tiny simplification in serve-analysis.js.
Steinar H. Gunderson [Wed, 12 Jul 2023 09:58:02 +0000 (11:58 +0200)]
Small refactoring in serve-analysis.js.
Steinar H. Gunderson [Sun, 5 Dec 2021 11:38:35 +0000 (12:38 +0100)]
Do not hang when running with MPI Stockfish.
Steinar H. Gunderson [Sun, 5 Dec 2021 11:38:12 +0000 (12:38 +0100)]
Fix an SQL error.
Steinar H. Gunderson [Mon, 2 Jan 2023 23:10:49 +0000 (00:10 +0100)]
Update copyright year.
Steinar H. Gunderson [Mon, 2 Jan 2023 23:10:32 +0000 (00:10 +0100)]
Update the explanation for what a 1.00 score is.
Steinar H. Gunderson [Fri, 30 Dec 2022 09:46:03 +0000 (10:46 +0100)]
Fix an issue where two PVs would be printed.
Steinar H. Gunderson [Thu, 29 Dec 2022 20:43:24 +0000 (21:43 +0100)]
Comment out some unused code from chess.js.
Steinar H. Gunderson [Thu, 29 Dec 2022 20:36:30 +0000 (21:36 +0100)]
Unbreak dragging again.
Steinar H. Gunderson [Thu, 29 Dec 2022 20:30:22 +0000 (21:30 +0100)]
Remove leftover, now buggy code.
Steinar H. Gunderson [Thu, 29 Dec 2022 19:31:52 +0000 (20:31 +0100)]
Fix a snafu.
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.
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...)
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.
Steinar H. Gunderson [Thu, 29 Dec 2022 13:49:23 +0000 (14:49 +0100)]
Slightly fewer DOM calls in print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 13:39:36 +0000 (14:39 +0100)]
Finally fix the issue with truncated scoresparks on mobile.
Steinar H. Gunderson [Thu, 29 Dec 2022 13:11:12 +0000 (14:11 +0100)]
Remove a bunch of pointless comparisons with true.
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.
Steinar H. Gunderson [Thu, 29 Dec 2022 11:10:38 +0000 (12:10 +0100)]
Slightly less weird FEN generation.
Steinar H. Gunderson [Thu, 29 Dec 2022 10:15:45 +0000 (11:15 +0100)]
Fix regression in truncating PV.
Steinar H. Gunderson [Thu, 29 Dec 2022 09:07:10 +0000 (10:07 +0100)]
More simplification in print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 09:03:32 +0000 (10:03 +0100)]
Simplify print_pv().
Steinar H. Gunderson [Thu, 29 Dec 2022 08:49:28 +0000 (09:49 +0100)]
Use a slightly more normal function syntax.
Steinar H. Gunderson [Wed, 28 Dec 2022 23:45:38 +0000 (00:45 +0100)]
Do not rely on innerHTML for print_pv().
Steinar H. Gunderson [Wed, 28 Dec 2022 23:24:51 +0000 (00:24 +0100)]
Batch moving pieces together in one rAF.
Steinar H. Gunderson [Wed, 28 Dec 2022 21:33:50 +0000 (22:33 +0100)]
Remove more offboard logic we do not need.
Steinar H. Gunderson [Wed, 28 Dec 2022 21:17:46 +0000 (22:17 +0100)]
Improve a comment in onSnapEnd.
Steinar H. Gunderson [Wed, 28 Dec 2022 08:58:04 +0000 (09:58 +0100)]
Remove some now-obsolete vendor prefixing.
Steinar H. Gunderson [Wed, 28 Dec 2022 00:00:06 +0000 (01:00 +0100)]
Remove some trash code that we do not use.
Steinar H. Gunderson [Tue, 27 Dec 2022 23:58:28 +0000 (00:58 +0100)]
Remove obsolete jQuery version checks.
Steinar H. Gunderson [Tue, 27 Dec 2022 23:54:10 +0000 (00:54 +0100)]
Remove the spare piece functionality we do not use.
Steinar H. Gunderson [Tue, 27 Dec 2022 17:15:54 +0000 (18:15 +0100)]
Faster and smaller update_imbalance().
Steinar H. Gunderson [Tue, 27 Dec 2022 17:08:42 +0000 (18:08 +0100)]
Cheaper createId().
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.
Steinar H. Gunderson [Tue, 27 Dec 2022 16:13:23 +0000 (17:13 +0100)]
Remove unused variable.
Steinar H. Gunderson [Tue, 27 Dec 2022 11:59:56 +0000 (12:59 +0100)]
Position arrows without forcing a style recalc.
Steinar H. Gunderson [Mon, 26 Dec 2022 14:14:55 +0000 (15:14 +0100)]
Compress the sparkline range a bit.
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 .
Steinar H. Gunderson [Mon, 26 Dec 2022 12:50:39 +0000 (13:50 +0100)]
Show retained/interpolated scores with 50% alpha.
Steinar H. Gunderson [Mon, 26 Dec 2022 11:15:28 +0000 (12:15 +0100)]
Align the sparkline a bit better.
Steinar H. Gunderson [Sun, 25 Dec 2022 23:10:37 +0000 (00:10 +0100)]
Much faster findClosestPiece() (also generates much less garbage).
Steinar H. Gunderson [Sun, 25 Dec 2022 21:30:48 +0000 (22:30 +0100)]
Fix click-to-drag and click-to-suggest post-jQuery.
Steinar H. Gunderson [Sun, 25 Dec 2022 21:30:26 +0000 (22:30 +0100)]
Fix double-forwarding when clicking along a hash-probe line.
Steinar H. Gunderson [Sun, 25 Dec 2022 20:19:32 +0000 (21:19 +0100)]
Batch fade-in/fade-out, for ~5 ms less FCP.
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.
Steinar H. Gunderson [Sun, 25 Dec 2022 19:34:55 +0000 (20:34 +0100)]
Chess.js bugfixes.
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.
Steinar H. Gunderson [Sun, 25 Dec 2022 15:21:39 +0000 (16:21 +0100)]
Fix touch events post-jQuery.
Steinar H. Gunderson [Sun, 25 Dec 2022 14:47:47 +0000 (15:47 +0100)]
Remove innerHTML from imbalance piece display.
Steinar H. Gunderson [Sun, 25 Dec 2022 12:43:36 +0000 (13:43 +0100)]
chess.js: Skip legality checking during disambiguation if not needed.
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.)
Steinar H. Gunderson [Sat, 24 Dec 2022 23:05:49 +0000 (00:05 +0100)]
Build pieces through the DOM, not innerHTML.
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.
Steinar H. Gunderson [Sat, 24 Dec 2022 22:58:24 +0000 (23:58 +0100)]
Use innerHTML slightly less (it is costly).
Steinar H. Gunderson [Sat, 24 Dec 2022 20:03:36 +0000 (21:03 +0100)]
chess.js: Much faster disambiguation.
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.
Steinar H. Gunderson [Sat, 24 Dec 2022 10:12:16 +0000 (11:12 +0100)]
Fix leftover hover when clicking on the graph.
Steinar H. Gunderson [Sat, 24 Dec 2022 00:16:10 +0000 (01:16 +0100)]
Prune some unused CSS rules.
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.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:39:57 +0000 (00:39 +0100)]
Fix min/max range for the most recent move.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:27:50 +0000 (00:27 +0100)]
Use proper variable scoping everywhere.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:20:13 +0000 (00:20 +0100)]
Fix highlight removals.
Steinar H. Gunderson [Fri, 23 Dec 2022 23:05:24 +0000 (00:05 +0100)]
Eat JSON parse errors in hash explores.
Steinar H. Gunderson [Fri, 23 Dec 2022 22:08:17 +0000 (23:08 +0100)]
Add a Firefox workaround for animations.
Steinar H. Gunderson [Fri, 23 Dec 2022 22:06:29 +0000 (23:06 +0100)]
Fix transitionProperty syntax.
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.
Steinar H. Gunderson [Fri, 23 Dec 2022 18:18:50 +0000 (19:18 +0100)]
Drop base64 encoding for SVGs.
This is perhaps a bit hacky... but it saves 1567 gzip bytes. :-)
Steinar H. Gunderson [Fri, 23 Dec 2022 17:42:53 +0000 (18:42 +0100)]
Remove a bunch of unneeded whitespace from the SVGs.
642 fewer gzipped bytes, for basically no cost.
Steinar H. Gunderson [Fri, 23 Dec 2022 17:42:20 +0000 (18:42 +0100)]
Various fixes for running with advanced JS optimizations, if we want to do that in the future.
Steinar H. Gunderson [Fri, 23 Dec 2022 16:27:10 +0000 (17:27 +0100)]
Don't show the copyright blurb in chessboard.css; we already have it from the JS.
Steinar H. Gunderson [Fri, 23 Dec 2022 16:25:53 +0000 (17:25 +0100)]
Make UNIX lineendings in chessboard.css.
Steinar H. Gunderson [Fri, 23 Dec 2022 16:13:11 +0000 (17:13 +0100)]
Remove jQuery!
Steinar H. Gunderson [Fri, 23 Dec 2022 16:12:50 +0000 (17:12 +0100)]
Make our own SVG sparkline, replacing jquery.sparkline.js.
Steinar H. Gunderson [Fri, 23 Dec 2022 13:36:21 +0000 (14:36 +0100)]
Fix SVG positioning when we are scrolled.
Steinar H. Gunderson [Fri, 23 Dec 2022 09:46:06 +0000 (10:46 +0100)]
Fix another jQuery-ism.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:43:13 +0000 (23:43 +0100)]
Update chessboard.js copyright and version to make it clear it is a modified version.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:41:54 +0000 (23:41 +0100)]
Remove some obsolete checks from chessboard.js.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:33:01 +0000 (23:33 +0100)]
Get rid of some more unneeded jQuery.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:32:40 +0000 (23:32 +0100)]
Remove an unused jQuery version.
Steinar H. Gunderson [Thu, 22 Dec 2022 22:24:52 +0000 (23:24 +0100)]
Remove the rest of jQuery from chessboard.js.
There are still two animations left, because we don't use them
(they both relate to spare pieces). Fixing them would be simple.
Steinar H. Gunderson [Tue, 20 Dec 2022 23:27:55 +0000 (00:27 +0100)]
Remove all jQuery from chessboard.js that does not involve animations.
Steinar H. Gunderson [Tue, 20 Dec 2022 23:53:19 +0000 (00:53 +0100)]
Develop using un-minified chessboard.js.
Steinar H. Gunderson [Tue, 20 Dec 2022 23:06:26 +0000 (00:06 +0100)]
Remove most of our jQuery usage.
This actually costs us 3 kB of (uncompressed) code in index.html,
since we still have the entire dependency on board. But the aim
is to get rid of jQuery entirely.
Steinar H. Gunderson [Tue, 20 Dec 2022 22:27:52 +0000 (23:27 +0100)]
Replace jQuery ajax() with the fetch API in all of our own code.
Steinar H. Gunderson [Wed, 2 Nov 2022 22:46:53 +0000 (23:46 +0100)]
Inline tons of stuff into the main HTML.