Caché ObjectScript
1 program
Added 2025-11-02T09:48:02Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: ObjectScript, COS
Provenance: commit 1b1083ea89 · authored 2025-11-02T10:48:02+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
5 sources · pl_id:
pl/cache-objectscriptWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| First appeared | 1997 |
|---|---|
| Influenced by | MUMPS |
Related languages
Cache ObjectScript (0.89)ObjectScript (0.54)Pascal Script (0.25)CoffeeScript (0.24)ChatScript (0.23)
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Sample REST API Class
Provenance: commit 1b1083ea89 · authored 2025-11-02T10:48:02+01:00 · model google/gemini-2.5-pro · Temp 0.4
Class Package.Sample.API Extends %CSP.REST
{
Parameter HandleCorsRequest = 1;
XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
{
<Routes>
<Route Url="/hello" Method="GET" Call="GetHello" />
<Route Url="/hello/:name" Method="GET" Call="GetHelloName" />
<Route Url="/hello" Method="POST" Call="PostHello" />
</Routes>
}
ClassMethod GetHello() As %Status
{
Return ..%SetStatusCode(..#HTTP200OK, "Hello world")
}
ClassMethod GetHelloName(pName As %String) As %Status
{
Return ..%SetStatusCode(..#HTTP200OK, "Hello "_pName)
}
ClassMethod PostHello() As %Status
{
Set tSC = $$$OK
Try {
Set tRequest = ..%Request
Set tJSON = {}.%FromJSON(tRequest.Content)
Set tName = tJSON.name
Set tSC = ..%SetStatusCode(..#HTTP200OK, "Hello "_tName)
} Catch(e) {
Set tSC = e.AsStatus()
}
Return tSC
}
}