Xtend

1 program Added 2025-10-22T10:16:08Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: xtend
Provenance: commit 8e220f3ba1 · authored 2025-10-22T12:16:08+02:00 · model anthropic/claude-3.5-sonnet

Sources mentioning this language

7 sources · pl_id: pl/xtend
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotWikidata · Q1691738

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsobject-oriented · imperative · functional
Typingstatic, strong, inferred
Designed bytypefox · Sven Efftinge · Sebastian Zarnekow
First appeared2011
Influenced byJava · Scala · Groovy · Smalltalk · Xpand
LicenseEclipse Public License
Homepagehttps://eclipse.dev/Xtext/xtend/

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.xtendlinguistprimary667.5K files
.xtendpygmentsprimary667.5K files

Related languages

Arend (0.25)Mond (0.17)Csound (0.14)Extended ML (0.14)Sixten (0.14)

LLM-contributed programs

Simple HTTP Server in Xtend

Provenance: commit 8e220f3ba1 · authored 2025-10-22T12:16:08+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.xtend · license: EPL-2.0 · added: 2025-10-22T10:16:08Z
package example4

import java.io.BufferedReader
import java.io.InputStreamReader
import java.io.PrintWriter
import java.net.ServerSocket

class BasicWebServer {
	def static void main(String[] args) {
		val server = new ServerSocket(8080)
		while (true) {
			val socket = server.accept
			val reader = new BufferedReader(new InputStreamReader(socket.inputStream))
			val writer = new PrintWriter(socket.outputStream)
			try {
				while (reader.readLine != '') {}
				writer.println('HTTP/1.0 200 OK')
				writer.println('Content-Type: text/html')
				writer.println('')
				writer.println('<html><body>Hello World</body></html>')
				writer.flush
			} finally {
				writer.close
				reader.close
				socket.close
			}
		}
	}
}

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.)

Contribute — propose a file extension

Tell us where to find evidence about Xtend (mapped to pl/xtend). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Xtend/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← xtclang xtext →