Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A silly example program #1196

Merged
merged 2 commits into from
Oct 22, 2024
Merged

A silly example program #1196

merged 2 commits into from
Oct 22, 2024

Conversation

dhil
Copy link
Member

@dhil dhil commented Jul 19, 2024

This is a little fun and silly example program which computes and renders the Sierpinski triangle using bitwise-and.

links> sierpinski();
********************************
* * * * * * * * * * * * * * * *
**  **  **  **  **  **  **  **
*   *   *   *   *   *   *   *
****    ****    ****    ****
* *     * *     * *     * *
**      **      **      **
*       *       *       *
********        ********
* * * *         * * * *
**  **          **  **
*   *           *   *
****            ****
* *             * *
**              **
*               *
****************
* * * * * * * *
**  **  **  **
*   *   *   *
****    ****
* *     * *
**      **
*       *
********
* * * *
**  **
*   *
****
* *
**
*
() : ()

This is a little fun and silly example program which computes and
renders the Sierpinski triangle using bitwise-and.

```links
links> sierpinski();
********************************
* * * * * * * * * * * * * * * *
**  **  **  **  **  **  **  **
*   *   *   *   *   *   *   *
****    ****    ****    ****
* *     * *     * *     * *
**      **      **      **
*       *       *       *
********        ********
* * * *         * * * *
**  **          **  **
*   *           *   *
****            ****
* *             * *
**              **
*               *
****************
* * * * * * * *
**  **  **  **
*   *   *   *
****    ****
* *     * *
**      **
*       *
********
* * * *
**  **
*   *
****
* *
**
*
() : ()
```
@dhil
Copy link
Member Author

dhil commented Jul 25, 2024

Closing and reopening to activate CI.

@dhil dhil closed this Jul 25, 2024
@dhil dhil reopened this Jul 25, 2024
@ezrakilty
Copy link
Contributor

I approve! :-)

@dhil
Copy link
Member Author

dhil commented Jul 29, 2024

I approve! :-)

Excellent! :-) I fixed the failing CI test now (a simple typo _ vs -).

@dhil dhil merged commit e3d76d3 into links-lang:master Oct 22, 2024
6 checks passed
@dhil dhil deleted the sierpinski-bits branch October 22, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants