Primordial

From Esolang
Jump to navigation Jump to search

Primordial Is the temporary name for a hypothetical programming language inspired by real-world chemistry and particle interactions. It is currently being designed by highly intelligent people such as yourself.

Brain-icanes

Needs inspiration, ideas, and a name.

  • Language based around chemistry, perhaps with synthetic elements, using reactions of various sorts to perform operations. Could be made somewhat like Fractran. --
  • You could construct elements from some fundamental subatomic particles. 3 or 4 would be sufficient, but there's always room for more (or less) -Seven Inch Bread
    • It would be self-modifying in the sense that these reactions form new elements with their own unique properties, which may also be in new reactions. -Seven Inch Bread
    • The programmer could define elements and associate them with single characters. Those characters could then be placed in a textual 2D grid. With just the initial state set and the elements defined, the program would begin to react. Sounds like a functional/object-oriented cellular automaton. -Seven Inch Bread
  • A standard library of ions and anions could be provided as an include. Ions could be treated as variables and assigned values, which might then be altered, concatenated, or split in reaction. Perhaps a programmer should be able to indicate the medium in which a given reaction is taking place; if solubility rules are specified in the library, you could consider precipitates to be standard output. -Evincar of Autumn

You'll need a bit more than 3 or 4 subatomic particles. If we ignore the heavier ones (they aren't essential), we have a minimum of these:

  • Electrons and Positrons (four possible polarizations)
  • Photons (four possible polarizations)
  • Up and anti-up quarks (three possible colors)
  • Down and anti-down quarks (three possible colors)
  • Neutrinos and anti-neutrinos
  • Gluons (eight possible color pairs)
  • W-particles (positive, negative, and neutral)

You can also add heavier (later generation) subatomic particles:

  • Muons and anti-muons (like electrons and positrons)
  • Taus and anti-taus (like electrons and positrons)
  • Mu-neutrinos, tau-neutrinos, and their opposites
  • Charm and top quarks and their opposites (like up quarks)
  • Strange and bottom quarks and their opposites (like down quarks)

You may also want to add gravitons, but they have not yet been proven, so their value is dubious. —Maharba 19:08, 10 July 2011 (UTC)

Hypothetical examples

A scratchpad for trying out semantic layouts. The exact syntax can be picked later. None of this is definite.


Let's say : is the define-element operator. The subatomic particles are * % and `. Comments begin with a #.

@ : *`**%**%`*%%      #defines the "@" element with 
                      # *`**%**%`*%% as its subatomic layout

& : *%%`              #defines & with a *%%` subatomic layout


#<--Begin physical space->
 
 
    
           & @ &      #a simple molecule. subatomic relations
                      #would create bonds between the elements
                      #giving them a (breakable) cohesion.
             

             @
             ^ #<-- sets @ into motion at start???


#<--end physical space->

-Seven Inch Bread-