Giter Site home page Giter Site logo

forked's People

Contributors

aaronryank avatar fornever avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

forked's Issues

Fork semantics could be more general

The semantics of the fork command are:

if entered from right, the fork will direct the IP up if truthy and down if falsy. if entered from left, the fork will direct the IP down if truthy and up if falsy. if entered from top, the fork will direct the IP right if truthy and left if falsy. if entered from bottom, the fork will direct the IP left if truthy and right if falsy.

This behaviour seems internally inconsistent to me: the IP turns right on truthy top of stack when entering the fork from the left or right, but the IP turns left on truthy top of stack when entering from the top or bottom.

Instead, what do you think about the following semantics:

The fork command may be entered from any direction, and changes the direction of the instruction pointer according to the value on top of the stack. If the value on top of the stack represents truth, then the instruction pointer turns right; else, it turns left.

This gives rise to the fun mnemonic: telling the truth is the right thing to do.

Functions?

Should Forked have functions? I think it would be cool because not many two-dimensional languages have them. However...

  • It would be very hard to implement.
  • Would it really add anything to the language, seeing as how the language is mainly going to be used for golfing?
  • It's not normal for a two-dimensional nor esoteric language to have functions.

Here's the prototype for function syntax.

Forked is a great name

Given the whole point of the language, and its main unique feature compared with other 2 dimensional IP+stack based esoteric languages, Forked is an excellent name. IMNSHO.

Multiple IPs

I plan on making Forked have multiple IPs. Is this a good idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.