The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Kont, a new language - quite interesting

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Kont, a new language - quite interesting Posted: Aug 2, 2005 6:50 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Kont, a new language - quite interesting
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

A brief introduction to Kont, a new language based on continuations

I've had a request to describe the concatenative programming language I have been working on, Kont. Kont came out of an attempt to design a programming language in which every program was expressed in continuation-passing style. A concatenative language is a language in which programs are formed by the concatenation of smaller primitives, ala Forth. This works well for continuation-passing style programming, because if the language primitives are continuation-passing then any concatenation of them will also be in continuation-passing style.

Kont is a language with two stacks, a data stack and a continuation stack. The data stack is affected by running continuations which have effects on the data stack much like in Forth or Factor. The continuation stack is the current continuation, expressed as a stack. Continuations can be a primitive continuation, which is atomic, a quoted value, or a composed continuation, which is like a cons cell of two continuations. Kont's execution semantics are simple: a continuation is popped off of the continuation stack. If it is a primitive continuation it is executed according to the semantics of that continuation. If it is a quoted value, then that value is pushed on the data stack. If it is a composed continuation, both parts of the composed continuation are pushed on the stack. The first part of that composed continuation will then be executed according to these rules.

Read: Kont, a new language - quite interesting

Topic: Effort Units in Agile Development: Time or Abstract? Previous Topic   Next Topic Topic: GhostDoc 1.3.0 Beta 1 Released

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use