mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

649
comptes actifs

#TCL

0 message0 participant0 message aujourd’hui

Bon j'ai du taf, je dois apprendre et maîtriser les nouvelles lignes TCL :
- TB11 (st Paul - Laurent bonnevay)
- TB12 (Part-Dieu - 7 chemins)
- T6 (debourg - la Doua)
- T9 (Charpennes - la Soie)
- T10 (Tony Garnier - Vénissieux)
- 128 (Meyzieu - St Priest)
- C200 (la Soie - Genas - St Exupéry)

J'ai procrastiné mais je m'y mets !

Je dois aussi réviser les lignes actuelles :
- C201 (Ex 1E)
- C202 (Ex 2E)
- C205 (Ex 145E)
- 204 (Ex 118)
- 215 (Ex 115)
- 247 (Ex 147)

Ya du boulot !

Anybody with stuff built on #Tcl: remember that in Tcl 9.0 the tilde (~) is no longer interpreted as home directory, but you need to use [file home] instead (which has not existed in older versions of Tcl). This is a subtle 'gotcha' that can break many things like configuration file paths (I just got caught by it).

Pour info, le tram T4 est coupé entre Archives départementales et Thiers-Lafayette ce matin (il ne dessert pas Part-Dieu). J'imagine que c'est lié aux fortes pluies du week-end... Il faut marcher pour rejoindre la 2e partie de la ligne.

Belle galère dans les transports lyonnais ce lundi matin, et aussi sur la route visiblement à cause de l'éboulement dans la montée de la Boucle.

🌀 Découvrez le futur de nos Rives : Le futur de notre Métropole se fait avec nos cours d'eau !

➕ Navette Fluviale #TCL 🛥
➕ Navettes touristiques ⛵
➕ Activités aquatiques 🛶
➕ Végétalisation 🌿
➕ Logistique urbaine 📦

🔎📊 Des études pour des zones de baignades à moyen-terme. 🏊

#SQLite was designed as an #TCL extension. There are ~trillion SQLite databases in active use. SQLite heavily relies on #TCL: C code generation via mksqlite3c.tcl, C code isn't edited directly by the SQLite developers, and for testing , and for doc generation). The devs use a custom editor written in Tcl/Tk called "e" to edit the source! There's a custom versioning system Fossil, a custom chat-room written in Tcl/Tk!

tcl-lang.org/community/tcl2017

www.tcl-lang.orgSQLite's Use Of Tcl
En réponse à mcc

@mcc I have personally used [subst] in exactly that way: as a templating language for stuff. It's very effective for some basic things. Also really easy to build around it and do even more powerful things due to how #Tcl allows you to build your own language constructs.

So like in addition to [foreach] I could do a [webForeach] (for wont of a better name) that returns whatever string is in it, concatenated for each iteration, but runs [subst] on it for each round.

Suite du fil

Une reconstitution de mon trajet via l'appli TCL. C'est aussi la plus économe en émission de GES d'après l'appli.

Peut-être que s'il y avait eu le métro B ce matin j'aurais faibli 😅

En réponse à mcc

@mcc there’s a very important reason for that. Remember, everything is a string. Code is too. Passing a code body to e.g. [proc] is just that. You are not passing a block, but a string wrapped in {} so as to avoid evaluating variables and everything else inside the body parameter. You could pass it in “ but you would have to escape lots of stuff.

#Tcl takes a while to fully understand, but it is very consistent which allows a lot of very nice things.

Suite du fil

Answers to the above questions per #tcl on libera:

- Type compatibility in tcl can be tested with [string is …]. "Actual" (interpreter level) type is apparently not exposed. tcl-lang.org/man/tcl8.6/TclCmd

- Strings can be concatenated with [string cat …].

- Arrays are "weird"; they live in a single scope and can't be exported or passed to a function except by breaking things with "upvar". Additionally, dicts are ordered. "arrays" feel like an old version of "dicts" and I think I intend to avoid them

www.tcl-lang.orgstring manual page - Tcl Built-In Commands