{"id":21707785,"url":"https://github.com/flightaware/tsp_examples","last_synced_at":"2026-03-19T21:07:11.146Z","repository":{"id":35602725,"uuid":"39875903","full_name":"flightaware/tsp_examples","owner":"flightaware","description":"Examples using the Tcl Static Prime compiler","archived":false,"fork":false,"pushed_at":"2015-08-10T18:10:43.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-13T14:45:09.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Tcl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flightaware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-29T05:51:55.000Z","updated_at":"2019-06-29T10:35:31.000Z","dependencies_parsed_at":"2022-08-31T20:11:31.348Z","dependency_job_id":null,"html_url":"https://github.com/flightaware/tsp_examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flightaware/tsp_examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Ftsp_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Ftsp_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Ftsp_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Ftsp_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flightaware","download_url":"https://codeload.github.com/flightaware/tsp_examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightaware%2Ftsp_examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271400259,"owners_count":24752830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T22:19:15.503Z","updated_at":"2026-02-26T01:16:07.639Z","avatar_url":"https://github.com/flightaware.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsp_examples, examples using the Tcl Static Prime Tcl-to-C/Java compiler\n\nThese are examples for the Tcl Static Prime compiler by Tom Poindexter at https://github.com/tpoindex/tsp\n\n## array.tcl\n\n[This example](https://github.com/flightaware/tsp_examples/blob/master/array.tcl) shows how to use upvar to pass the name of an array into a tsp::proc definition, a common usage pattern in Tcl.\n\n## array2.tcl\n\nThis example [adds](https://github.com/flightaware/tsp_examples/blob/master/array2.tcl) \"info exists\" to check on the presence of an array element and needs the variable name argument to be quoted, like [info exists \"foo(bar)\"] to work.\n\n## latlons.tcl\n\nThis [provides](https://github.com/flightaware/tsp_examples/blob/master/latlons.tcl) a proc to calculate the distance between a pair of latitudes and longitues and a tsp::proc equivalent and times runs of the two.\n\nThe tsp version seems to be about 5X faster.\n\n\n## lrandom.tcl\n\nThis provides an [lrandrom proc](https://github.com/flightaware/tsp_examples/blob/master/lrandom.tcl) cribbed from the Tcl wiki and a tsp::proc equivalent and times runs of the two.\n\nThe tsp version seems to be about 2.5X faster.\n\n## rand.tcl\n\nThis example creates a proc, [rand](https://github.com/flightaware/tsp_examples/blob/master/rand.tcl), that generates a random number between 0 and n-1, a la TclX's rand.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflightaware%2Ftsp_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflightaware%2Ftsp_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflightaware%2Ftsp_examples/lists"}