Kali

1 program Added 2026-03-11T23:50:28Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: Kali Scheme
Provenance: commit 18ceb65a05 · authored 2026-03-12T00:51:04+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Kawa (0.47)s7 (0.39)SCM (0.39)JScheme (0.35)Elk (0.35)

LLM-contributed programs

Comrade Server

Provenance: commit 18ceb65a05 · authored 2026-03-12T00:51:04+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.scm · added: 2026-03-11T23:50:28Z
; A comrade is a Kali process with no REPL.
;
; The idea is to provide Kali as a service.
;   - add a line to /etc/inetd.conf to start comrades
;   - add a line to /etc/services to get the port number
;   - make a comrade image that talks to stdin and stdout, telling them
;     the port on which it is listening for connections.  Stdout should
;     be redirected to stderr.

(define (start-comrade port-number)
  (run-threads (make-comrade-event-handler
		 (lambda ()
		   (start-server (lambda (server-port)
				   (write-number-to-port-number server-port
								port-number)))))))
  
(define (write-number-to-port-number n port-number)
  (let ((channel (open-channel port-number (enum channel-status-option input)))
	(string (number->string n)))
    (channel-write string 0 (string-length string) channel)
    (close-channel channel)))

(define comrade-quantum 200)  ; thread quantum in msec

(define (make-comrade-event-handler initial-thunk)
  (let ((runnable (make-thread-queue))
	(thread-count (make-counter)))
    (increment-counter! thread-count)
    (exclusively-enqueue-thread!
       runnable
       (make-thread initial-thunk dynamic-env-link 'comrade-server)
       '())
    (save-base-fluid-env! (with-handler report-handler dynamic-env))
    (round-robin-event-handler runnable
			       comrade-quantum
			       dynamic-env-link
			       thread-count
			       (lambda args #f)		; we handle no events
			       propogate-upcall		;  or upcalls
			       wait)))

(define report-handler
   (lambda (c next-handler)
      (for-each display
		`(#\newline
		  "HCC: in report-handler."
		  #\newline
		  "	c: " ,c
		  #\newline
		  "	next-handler: " ,next-handler
		  #\newline
		  "	(error? c): " ,(error? c)
		  #\newline
		  "	(interrupt? c): " ,(interrupt? c)
		  #\newline
		  "	(current-thread): " ,(current-thread)
		  #\newline))
      (force-output (current-output-port))
      (next-handler)))
  

Contribute — propose a file extension

Tell us where to find evidence about Kali (mapped to pl/kali). 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/Kali/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Kalgarn Kalyn →