>>12
It's not new, people have been writing XML as code here for quite a while.
Name:
Anonymous2012-11-23 17:27
My language is called Jewlang. The fundamental process of Jewlang is called a "transaction", which either takes data from one place and puts it somewhere else, or "creates" data at runtime and stores it somewhere so it can be used later. The "mint" function constructs ("mints") data (referred to as "money"). Here is a hello-world example showing the mint function: mint "hello, world" $ store 000000:00000000
display 000000:00000000
In the first line, we mint the string "hello, world" and store it an account, which is accessed using two numbers: one six-digit "sort-code", which determines a memory "bank" to use, and one 8-digit "account number" which determines an account within that bank. Jewlang can therefore index up to 10^14 accounts, and there is no restriction on how much data each account can contain. The second line takes the data from the account and displays it on the screen.
Accounts can be used to refer to files on the hard disk, in which case an account is "opened" with the "open" function. For example, a program that displays an entire file on the screen could be written thus: open "/path/to/file" 000000:00000000
display 000000:00000000
The "steal" function is used to transfer data from one place to another. For example, a program which copies one file to another could be implemented like this: open "/path/to/input_file" 000000:00000000
open "/path/to/output_file" 000000:00000001
steal 000000:00000000 000000:00000001
which steals all the money from 000000:00000000 and puts it in 000000:00000001.
Since using sort-codes account numbers is tedious, accounts can be given names. Here is a re-implementation of the previous example using named accounts. goy 000000:00000000
jew 000000:00000001
open "/path/to/input_file" goy
open "/path/to/output_file" jew
steal goy jew
Remote money can be accessed via an "offshore account". This is benficial as offshore accounts can be opened in tax havens for tax evasive purposes. In this case, a URL is used instead of a filename. goy 000000:00000000
jew 000000:00000001
open "offshore://example.com/0" goy
open "offshore://example.com/1" jew
steal goy jew