[ art / civ / cult / cyb / diy / drg / feels / layer / lit / λ / q / r / sci / sec / tech / w / zzz ] archive provided by lainchan.jp

lainchan archive - /λ/ - 17785



File: 1469917534276.png (872.67 KB, 169x300, 1467258491623-1-art.png)

No.17785

Coding poetry.

I was thinking about that: can one write a poem/short-story using the syntax of it's favorite programming language? Have you tried ?

  No.17786

>>17785
Disclaimer - this is copypasta

< > ! * ' ' #

^ " ` $ $ -

! * = @ $ _

% * < > ~ #4

& [ ] . . /

| | { , , SYSTEM HALTED

English Translation:

Waka waka bang splat tick tick hash,

Caret quote back-tick dollar dollar dash,

Bang splat equal at dollar underscore,

Percent splat waka waka tilde number four,

Ampersand bracket bracket dot dot slash,

Pipe pipe curly-bracket comma comma Crash.

  No.17787

>>17786
That's Funny. But i mean things like using fonctions instead of verbs, objects to describe something ...

  No.17788

I've seen some attempts at making poetry in code, but none of them that I've seen were particularly interesting. It seemed like pretty much just regular poetry but in le ebin pseudocode. If there's a professional poet who does this sorta thing I'd be very interested.

I've done something similar to this myself, except I did it in pseudo-logic.

  No.17789

(sometimes
(all you (want (in life)))
(is (a 'close-paren)))

that's the best you got.

  No.17790

(loop for niceties in life
with disregard
always mine
collecting possessions into hoards
never regretting
thereis pride
thereis happiness)

  No.17791


  No.17792

(if (not myself)
(find myself '(in books and self reflection))
'okay)


  No.19143

>>17792
Cute.

  No.19144

>>17789
ebin

i unironically love this

  No.19145

>>17791
not really sure what this

but i like it

  No.19146

Here's a popular song:
guillotine = let goes x = x (goes x)
in goes it

  No.19155

>>17785
#define DIE(format, ...) die("\n%s:%d in %s\n" format, __FILE__, __LINE__, __func__, __VA_ARGS__)

#ifdef __GNUC__
__attribute__ ((format(__printf__, 1, 2)))
#endif
_Noreturn void die(const char *format, ...)
{
va_list vargs;
va_start(vargs, format);

vfprintf(stderr, format, vargs);

va_end(vargs);
exit(1);
}

When I die, serialize my ashes into arbitrary bit-patterns and XOR me with my source code.

  No.19159

File: 1475933499794.png (1.28 MB, 200x144, vlcsnap-2016-10-08-08h29m17s146.png)


  No.20666

>>17791
that is so fuarrrking cool lainon

  No.22809

This is poetry about programming rather than using a syntax, but I believe it's still appropriate; I've put a version in the IRC before and I'll probably put it elsewhere; tell me what you think:

CONS me to the front of a list,
or any other element, if you wish.
If you're not careful, I'll be improper,
but for many tasks, that won't stop her.
If I'm circular, then I'm not to blame,
but do not worry, as I'll MAP the same.
When GC gets me, I won't be gone,
I'll just be reused, for another CONS.

I'll probably expand on it later. As of now, I've only removed some lines I didn't care for.

  No.22813

>>17786
Maybe I'm just a normal person, but I thought this was pretty funny. I'll be using this later in future projects I do.

  No.22814

>>17791
What is this, lain? I don't understand it really.

  No.22818

File: 1491418991903.png (17.35 KB, 200x200, rammstein_code.jpg)

>>22814
Another aproach to the topic

  No.22827

>>22814
Judging by the whole Being Nothing Becoming thing, its related to the Hegelian Dialectic.

  No.22828

Found this link worthy of sharing
http://sourcecodepoetry.com/