GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    🏴‍☠️ MC Pablo ∴ #SyndiquezVous (p4bl0@mamot.fr)'s status on Wednesday, 15-Nov-2023 03:56:56 JST 🏴‍☠️ MC Pablo ∴ #SyndiquezVous 🏴‍☠️ MC Pablo ∴ #SyndiquezVous

    I saw this Hacker News post earlier today:
    https://news.ycombinator.com/item?id=38261232
    “Implementing TicTacToe with 170MB of HTML – No JavaScript or CSS”

    Wait, 170MB?!

    I have a working pure-HTML TicTacToe game in… 560KB.
    That's more than 300× smaller !

    Is it possible to go further?

    Here is my attempt:
    https://news.ycombinator.com/item?id=38266987

    In conversation Wednesday, 15-Nov-2023 03:56:56 JST from mamot.fr permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: news.ycombinator.com
      Implementing Tic Tac Toe with 170mb of HTML – No JavaScript or CSS | Hacker News
    2. Domain not in remote thumbnail source whitelist: news.ycombinator.com
      This Python scripts generates a playable HTML-only Tic Tac Toe game. The generat... | Hacker News
    • Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Wednesday, 15-Nov-2023 12:23:38 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      @p4bl0 I'd lean towards it not being possible other than with using shorter ids, which probably wouldn't shave off much.

      By the way, I gave a shot at cheating the requirements a bit via using XSLT 1.0 (included in major browsers) but it seems a bit too limited when it comes to string processing.
      In conversation Wednesday, 15-Nov-2023 12:23:38 JST permalink
    • Embed this notice
      🏴‍☠️ MC Pablo ∴ #SyndiquezVous (p4bl0@mamot.fr)'s status on Wednesday, 15-Nov-2023 18:40:53 JST 🏴‍☠️ MC Pablo ∴ #SyndiquezVous 🏴‍☠️ MC Pablo ∴ #SyndiquezVous
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @lanodan Using shorter IDs is a very interesting path to follow, they account for a lot of the code. I can get down to ~410KB using shorter IDs !

      In conversation Wednesday, 15-Nov-2023 18:40:53 JST permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      🏴‍☠️ MC Pablo ∴ #SyndiquezVous (p4bl0@mamot.fr)'s status on Wednesday, 15-Nov-2023 19:35:11 JST 🏴‍☠️ MC Pablo ∴ #SyndiquezVous 🏴‍☠️ MC Pablo ∴ #SyndiquezVous
      in reply to
      • Haelwenn /элвэн/ :triskell:

      It was possible! Thanks to @lanodan idea I got down to 412KB!

      https://gist.github.com/p4bl0-/abf4960f07045d7a443230a46e73b849

      In conversation Wednesday, 15-Nov-2023 19:35:11 JST permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Wednesday, 15-Nov-2023 19:36:33 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Kaa :linux:
      @kfort @p4bl0 Avec uniquement de l'HTML c'est un peu obligé.
      In conversation Wednesday, 15-Nov-2023 19:36:33 JST permalink
    • Embed this notice
      Kaa :linux: (kfort@social.sciences.re)'s status on Wednesday, 15-Nov-2023 19:36:34 JST Kaa :linux: Kaa :linux:
      in reply to
      • Haelwenn /элвэн/ :triskell:

      @p4bl0 @lanodan Bravo ! Mais c'est pas très joli... ça affiche toutes les possibilités...

      In conversation Wednesday, 15-Nov-2023 19:36:34 JST permalink
      Haelwenn /элвэн/ :triskell: repeated this.
    • Embed this notice
      🏴‍☠️ MC Pablo ∴ #SyndiquezVous (p4bl0@mamot.fr)'s status on Wednesday, 15-Nov-2023 19:40:09 JST 🏴‍☠️ MC Pablo ∴ #SyndiquezVous 🏴‍☠️ MC Pablo ∴ #SyndiquezVous
      in reply to
      • Haelwenn /элвэн/ :triskell:
      • Kaa :linux:

      @kfort With a little bit more HTML structure and less then 54 bytes of CSS you get this:
      https://pablo.rauzy.name/dev/prettty_smaller.html

      450KB

      @lanodan

      In conversation Wednesday, 15-Nov-2023 19:40:09 JST permalink

      Attachments


Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.