Live data from Hacker News

Sample programs in the Piet programming language

dangermouse.net

11–20 of 29 posts

Re: Sample programs in the Piet programming language

#11
post #7
post #2

For those using Piet in production, what async web framework do you favor? Warhol seems pretty popular, but Schiele has me impressed with its expressiveness. We're currently using Dali, though I'm a bit dissatisfied at how surreal its API is.

Do you have references for these? Google doesn't give me much.

Salvador Dali is the full name. I'll let you decide how serious it is.

Re: Sample programs in the Piet programming language

#12
post #2

For those using Piet in production, what async web framework do you favor? Warhol seems pretty popular, but Schiele has me impressed with its expressiveness. We're currently using Dali, though I'm a bit dissatisfied at how surreal its API is.

We are using Apache Van^Gogh. But it's trendy to use Hirst though.

I suspect this is being downvoted because VG has a reputation for being notoriously unstable.

Re: Sample programs in the Piet programming language

#13
post #2

For those using Piet in production, what async web framework do you favor? Warhol seems pretty popular, but Schiele has me impressed with its expressiveness. We're currently using Dali, though I'm a bit dissatisfied at how surreal its API is.

We just throw some Pollock on the box at random, but there's some more detailed Seurat dotted around the stack.

Re: Sample programs in the Piet programming language

#14
post #8

The Pi calculator gave me the rest.

http://www.dangermouse.net/esoteric/piet/piet_pi_big.png

> Richard Mitton supplies this amazing program which calculates an approximation of pi... literally by dividing a circular area by the radius twice. Richard says:

    The output is printed without the decimal
    point after the 3.

    Naturally, a more accurate value can be
    obtained by using a bigger program.

Re: Sample programs in the Piet programming language

#15
post #2

For those using Piet in production, what async web framework do you favor? Warhol seems pretty popular, but Schiele has me impressed with its expressiveness. We're currently using Dali, though I'm a bit dissatisfied at how surreal its API is.

I'm using Monet, because I want to make an impression on my clients.

[deleted]

Re: Sample programs in the Piet programming language

#17
post #2

For those using Piet in production, what async web framework do you favor? Warhol seems pretty popular, but Schiele has me impressed with its expressiveness. We're currently using Dali, though I'm a bit dissatisfied at how surreal its API is.

I'm surprised async web framework as old as Warhol, Schiele or even Dali can keep up with the modernities and constant advances of JS and html5. Aren't they too old-fashioned?

And how can Dali be more surreal than using a language designed to animate monkeys on webpages for writing full-blown applications?

Re: Sample programs in the Piet programming language

#18
I had an interesting time writing a JIT for Piet some time ago. Piet is a pretty weird language in a few non-obvious ways. From what I remember:

* Execution moves between blocks of colour. Flood fill algorithms are a valid compiler optimisation!

* Execution can move left/right/up/down. You can't necessarily tell what will be executed without doing it. The 'codel chooser' stuff means you can exit a colour block in two different ways depending on program state (plus left/right/up/down, so 8 ways total...).

* Instructions are encoded in the difference between colour blocks.

* Piet is otherwise a fairly straightforward stack machine.

Re: Sample programs in the Piet programming language

#19
post #2

For those using Piet in production, what async web framework do you favor? Warhol seems pretty popular, but Schiele has me impressed with its expressiveness. We're currently using Dali, though I'm a bit dissatisfied at how surreal its API is.

I'm not familiar with the others, but Dali is my choice for surreal-time operating system development.

Re: Sample programs in the Piet programming language

#20
I wouldn't trust these programs to work. The fibonacci one certainly doesn't.

When the explanatory line in the fibonacci example first hits the left hand side of the program, the Direction Pointer appears to be being rotated anti-clockwise.

Were it rotated clockwise, as-per the spec, it would go up, hit the black block above, and eventually end up in an infinite loop.

The command executed on entry to that block is PUSH (pale to normal yellow), so it shouldn't have any effect on DP.

Post reply on HN