tritium demo dijkstra
You (or your agent) write Pseudocode (Tritium token @tritium).
Tritium CLI (or HTTPS) converts it to Python, C, or Rust.
Install: see help.
Code: python · c · rust
Dijkstra shortest path in Python / C / Rust # step 1 — leaf $ NAME='algo.dijkstra' $ tritium generate "$NAME" --lang python $ tritium generate "$NAME" --lang c $ tritium generate "$NAME" --lang rust # NAMED $ PSEUDO='fn shortest(graph, source): distances = dijkstra(graph, source) return distances' $ tritium -c "$PSEUDO" --lang python $ tritium -c "$PSEUDO" --lang c $ tritium -c "$PSEUDO" --lang rust # UNNAMED $ PSEUDO='fn shortest(graph, source): distances = shortest_paths(graph, source) return distances' $ tritium -c "$PSEUDO" --lang python $ tritium -c "$PSEUDO" --lang c $ tritium -c "$PSEUDO" --lang rust → python.html → c.html → rust.html usage: completion_tokens=0