Concatenative Programming

145 readers
1 users here now

Hello!

This space is for sharing news, experiences, announcements, questions, showcases, etc. regarding concatenative programming concepts and tools.

We'll also take any programming described as:


From Wikipedia:

A concatenative programming language is a point-free computer programming language in which all expressions denote functions, and the juxtaposition of expressions denotes function composition. Concatenative programming replaces function application, which is common in other programming styles, with function composition as the default way to build subroutines.

For example, a sequence of operations in an applicative language like the following:

y = foo(x)
z = bar(y)
w = baz(z)

...is written in a concatenative language as a sequence of functions:

x foo bar baz


Active Languages

Let me know if I've got any of these misplaced!

Primarily Concatenative

Concatenative-ish, Chain-y, Pipe-y, Uniform Function Call Syntax, etc.


Cheat Sheets & Tutorials

Discord

IRC

Wikis

Wikipedia Topics

Subreddits

GitHub Topics

Blogs

Practice

founded 1 year ago
MODERATORS
26
7
Man or Boy | Re: Factor (re.factorcode.org)
submitted 4 months ago by Andy to c/concatenative
27
 
 

I'm posting this mostly for the new hacker news discussion: https://news.ycombinator.com/item?id=40736174

28
4
F: Functional False (www.nsl.com)
submitted 4 months ago* (last edited 4 months ago) by Andy to c/concatenative
 
 

F is a pure functional concatenative language originally designed as an extension of False. F contains the list-operations of K3 and the dip combinator of Joy. Floating-point and symbolic datatypes are supported. One-time assignment is enforced in syntax. A theory of function-valence and -charge is outlined. F also contains a general continuation primitive $, and the pattern sublanguage of XY. G is a variant of F in which the K3 adverbs are implemented as primitives.

Discussion on lobsters: https://lobste.rs/s/m9xv5y/f_functional_false

29
9
Quit | Re: Factor (re.factorcode.org)
submitted 4 months ago by Andy to c/concatenative
 
 

Factor gains a quit function (and preserves history)!

30
 
 

This is already in the sidebar, but now there's a fresh post on Lobsters, so maybe some good discussion will come of it.

31
 
 
32
33
34
6
Bend | Re: Factor (re.factorcode.org)
submitted 5 months ago by Andy to c/concatenative
35
5
submitted 5 months ago by Andy to c/concatenative
36
4
Transducers | Re: Factor (re.factorcode.org)
submitted 5 months ago by Andy to c/concatenative
37
5
0.1 + 0.2 | Roc (rtfeldman.com)
submitted 5 months ago* (last edited 5 months ago) by Andy to c/concatenative
 
 

Discussion on lobsters: https://lobste.rs/s/oxjvv0/0_1_0_2

It's not that Roc only supports base-10 arithmetic. It also supports the typical base-2 floating-point numbers, because in many situations the performance benefits are absolutely worth the cost of precision loss. What sets Roc apart is its choice of default; when you write decimal literals like 0.1 or 0.2 in Roc, by default they're represented by a 128-bit fixed-point base-10 number that never loses precision, making it reasonable to use for calculations involving money.

In Roc, floats are opt-in rather than opt-out.

38
4
Deep Clone | Re: Factor (re.factorcode.org)
submitted 5 months ago by Andy to c/concatenative
39
7
submitted 5 months ago by Andy to c/concatenative
40
6
submitted 5 months ago by Andy to c/concatenative
41
5
Argument Parser | Re: Factor (re.factorcode.org)
submitted 5 months ago by Andy to c/concatenative
42
43
 
 

From the STOMP homepage:

What is it?

STOMP is the Simple (or Streaming) Text Orientated Messaging Protocol.

STOMP provides an interoperable wire format so that STOMP clients can communicate with any STOMP message broker to provide easy and widespread messaging interoperability among many languages, platforms and brokers.

Simple Design

STOMP is a very simple and easy to implement protocol, coming from the HTTP school of design; the server side may be hard to implement well, but it is very easy to write a client to get yourself connected. For example you can use Telnet to login to any STOMP broker and interact with it!

From John's blog post:

In the interest of learning Factor, I thought I would write a bit about parsing the STOMP protocol, and then about how to implement a client library using connection-oriented networking, interacting with it using mailboxes, and then building a command-line interface using the command-loop vocabulary.

There are many STOMP servers and clients available in different languages. I tried a few and decided that Apache ActiveMQ was one of the most convenient to setup and reliable to work with, but others are available as well.

44
 
 

Discussion on lobsters

45
 
 

Discussion on lobsters

46
5
Time My Meeting | Re: Factor (re.factorcode.org)
submitted 6 months ago by Andy to c/concatenative
47
 
 

John B's blog post calls it:

. . . a pretty neat hour long introduction going over a lot of features that users new to the language might be interested in.

The video creator's description:

This is an introductory tutorial for a stack-based (concatenative) programming language Factor. It covers some basic language constructs and a few features of the interactive development environment that is shipped with Factor.

I've re-shot my two prior recordings combining everything into a single video.

48
49
50
 
 

I don't yet have a feel for any key differences between pql and PRQL.

view more: ‹ prev next ›