diff --git a/config.toml b/config.toml index bd8265c..a6ffca9 100644 --- a/config.toml +++ b/config.toml @@ -8,8 +8,6 @@ default_language = "en" minify_html = false -generate_feed = true - [slugify] paths = "off" taxonomies = "off" @@ -20,15 +18,6 @@ highlight_code = true [extra] sitename = "tuxmain's homepage" -[languages.eo] -generate_feed = true -taxonomies = [ - {name = "tags"}, -] - -[languages.eo.translations] -langs_label = "Lingvo" - [languages.en] generate_feed = true taxonomies = [ @@ -38,6 +27,15 @@ taxonomies = [ [languages.en.translations] langs_label = "Language" +[languages.eo] +generate_feed = true +taxonomies = [ + {name = "tags"}, +] + +[languages.eo.translations] +langs_label = "Lingvo" + [languages.fr] generate_feed = true taxonomies = [ diff --git a/content/_index.eo.md b/content/_index.eo.md index 68d9478..86bc563 100644 --- a/content/_index.eo.md +++ b/content/_index.eo.md @@ -64,8 +64,8 @@ insert_anchor_links = "left" * [Perkomputile ciferece stirata (CNC) artikigita brako](https://framagit.org/ZettaScript/cnc-arm) * [Pervarma lasera printilo kun Arduino](https://framagit.org/ZettaScript/laserprinter) (por printi sur papero sen konsumi inkon) -* Multfunkcia sistemo por videkunveno aŭ datumfluo en Rust -* Transformilo de sono al MIDI +* [Retservilo en Rust por integreblaj komentoj](https://git.txmn.tk/tuxmain/webcomment/) +* [Cultivar](https://git.txmn.tk/tuxmain/cultivar): Ludo por programi AI-on uzanta WASM-on ## Servoj {#servoj} @@ -95,7 +95,12 @@ insert_anchor_links = "left" ## La kamaradoj {#kamaradoj} -* [Librezo](https://librezo.com) helpas la profesiulojn liberiĝi de la GAFAM per instali siajn proprajn komputikajn servojn. +
+{{ service_box(href="https://axiom-team.fr", title="Axiom-Team", img="/img/axiom-light.svg", img_alt="Logo Axiom-Team") }} +{{ service_box(href="https://librezo.fr", title="Librezo", img="/img/librezo-color-light.png", img_alt="Logo Librezo") }} +
+ +[Librezo](https://librezo.com) helpas la profesiulojn liberiĝi de la GAFAM per instali siajn proprajn komputikajn servojn. ## Kontaktoj {#kontaktoj} diff --git a/content/_index.fr.md b/content/_index.fr.md index e91f0a4..c389075 100644 --- a/content/_index.fr.md +++ b/content/_index.fr.md @@ -64,8 +64,8 @@ insert_anchor_links = "left" * [Bras articulé CNC modulaire imprimé en 3D, contrôlé par Arduino](https://framagit.org/ZettaScript/cnc-arm) * [Imprimante thermique LASER Arduino](https://framagit.org/ZettaScript/laserprinter) (pour imprimer sur papier sans consommer d'encre) -* Système super-modulaire de visioconférence/stream/live en Rust -* Convertisseur audio vers MIDI +* [Serveur web Rust de commentaires intégrables](https://git.txmn.tk/tuxmain/webcomment/) +* [Cultivar](https://git.txmn.tk/tuxmain/cultivar): Jeu de programmation d'IA utilisant un exécuteur WASM ## Services {#services} @@ -95,7 +95,12 @@ insert_anchor_links = "left" ## Les camarades {#camarades} -* [Librezo](https://librezo.com) aide les pros à se libérer des GAFAM en installant chez vous votre infrastructure informatique. +
+{{ service_box(href="https://axiom-team.fr", title="Axiom-Team", img="/img/axiom-light.svg", img_alt="Logo Axiom-Team") }} +{{ service_box(href="https://librezo.fr", title="Librezo", img="/img/librezo-color-light.png", img_alt="Logo Librezo") }} +
+ +[Librezo](https://librezo.com) aide les pros à se libérer des GAFAM en installant chez vous votre infrastructure informatique. ## Contacts {#contacts} diff --git a/content/_index.md b/content/_index.md index c7a2cdd..83f6c85 100644 --- a/content/_index.md +++ b/content/_index.md @@ -64,8 +64,8 @@ insert_anchor_links = "left" * [Modular articulated arm CNC, 3D-printed, controled by Arduino](https://framagit.org/ZettaScript/cnc-arm) * [LASER thermal printer with Arduino](https://framagit.org/ZettaScript/laserprinter) (for printing on paper without consuming ink) -* Super-modular visioconference/stream/live system in Rust -* Audio to MIDI converter +* [Rust webserver for embeddable comments](https://git.txmn.tk/tuxmain/webcomment/) +* [Cultivar](https://git.txmn.tk/tuxmain/cultivar): AI-programming game engine using a WASM executor ## Services {#services} @@ -95,7 +95,12 @@ insert_anchor_links = "left" ## The camarades {#camarades} -* [Librezo](https://librezo.com) helps the professionals to liberate themselves from the GAFAM by installing your own computing services. +
+{{ service_box(href="https://axiom-team.fr", title="Axiom-Team", img="/img/axiom-light.svg", img_alt="Logo Axiom-Team") }} +{{ service_box(href="https://librezo.fr", title="Librezo", img="/img/librezo-color-light.png", img_alt="Logo Librezo") }} +
+ +[Librezo](https://librezo.fr) helps the professionals to liberate themselves from the GAFAM by installing your own computing services. ## Contacts {#contacts} diff --git a/content/blog/js.md b/content/blog/js.md index 79030ac..3d4874c 100644 --- a/content/blog/js.md +++ b/content/blog/js.md @@ -14,13 +14,13 @@ This article is about JavaScript for web browsers, not NodeJS or TypeScript. ## TL; DR -JavaScript combines all the problems of both high and low level languages. +JavaScript combines most of the problems of both high and low level languages. ## Lack of features JavaScript is obviously not made for being used in webpages. -* need jQuery +* jQuery is needed for manipulating DOM or network in a convenient way. * no native HTML escaping function * no native basic templating system (need `String.replaceAll("{{foo}}", foo)`) * no easy-to-use bytes array (like `Bytes` in Python or `Vec` in Rust), but many different bytes arrays with weird interfaces @@ -28,6 +28,8 @@ JavaScript is obviously not made for being used in webpages. * no native date/time string formatting * When defining an anonymous function (such as a callback) you can't reliably move variables to it. +Having a decent standard library would reduce the use of weird hacks hence the number of bugs, and the use of libraries hence the traffic and webpage size and loading time. + ## What the fuck JavaScript doesn't respect anything. @@ -35,7 +37,6 @@ JavaScript doesn't respect anything. * You never know whether you're copying or borrowing (a table or an object), and how deeply. * Python suffers the same problem. * Time is expressed in milliseconds, while the convention is seconds everywhere else. -* `"1" == true && "2" != true && "2" != false` is true * ```js if("2" == true) console.log("I am not executed."); @@ -44,7 +45,8 @@ JavaScript doesn't respect anything. ``` * Hence `==`, `===` and `if` have three distinct strictness levels. * `&&` is not commutative: `(true && "2") === "2" && ("2" && true) === true` is true -* Operators are inconsistent: `"1"+1 === "11" && "1"*2 === 2` are true + * It is even inconsistent: `"0" == false && "1" == true` is true... but so is `"0" && "1"`. +* Operators are inconsistent: we have both `"1"+1 === "11"` and `"1"*2 === 2` * ```js var n = "1"; n += 1; @@ -63,3 +65,11 @@ JavaScript doesn't respect anything. console.log(foo.length); // 0 ``` * `document.getElementsByClassName` does not return an array: its return type supports indexing but not for/in loops. + + + +## Conclusion + +Let's deprecate JavaScript and replace it with better languages compiled into WASM. + +However, plain HTML/CSS should *always* be prefered, for performance, compatibility and accessibility. Form inputs crafted with tons of CSS and JS are often unresponsive, not accessible to screen readers, incompatible with native features, inefficient. It is even worse for pages rendered in a canvas. Please use the wonderful possibilities offered by HTML5 and CSS3, and follow the accessibility recommendations by the [W3C](https://www.w3.org/WAI/) and [Mozilla](https://developer.mozilla.org/en-US/docs/Web). diff --git a/static/humans.txt b/static/humans.txt index 6b5abfb..82bae00 100644 --- a/static/humans.txt +++ b/static/humans.txt @@ -10,4 +10,4 @@ h30x: https://git.42l.fr/HugoTrentesaux/toucan /* SITE */ Language: English, French, Esperanto, Spanish Components: katex -Software: Zola, VSCodium, Gitea, webhookd, Apache +Software: Zola, VSCodium, Forgejo, webhookd, Apache diff --git a/static/img/axiom-light.svg b/static/img/axiom-light.svg new file mode 100644 index 0000000..8465975 --- /dev/null +++ b/static/img/axiom-light.svg @@ -0,0 +1,1014 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/librezo-color-dark.png b/static/img/librezo-color-dark.png new file mode 100644 index 0000000..47afee9 Binary files /dev/null and b/static/img/librezo-color-dark.png differ diff --git a/static/img/librezo-color-light.png b/static/img/librezo-color-light.png new file mode 100644 index 0000000..89b5546 Binary files /dev/null and b/static/img/librezo-color-light.png differ