Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I've reduced inheritance to 99 characters

Name: Anonymous 2016-12-10 20:28

I've reduced inheritance to 99 characters, applicable to producing any function, not just datatype definitions, and am trying to find how publishable that is... (define (make p b) (letrec ((f (λ (x) ((p f b) x)))) f)) (define ((inherit p q) f s) (p f (q f s)))

Name: Anonymous 2016-12-10 21:31

Now with World Wide Web™ technology, anyone can be a publisher!

Name: Anonymous 2016-12-10 21:38

>>1
Looks like obfuscated code to me. Can you write it in JavaScript instead?

Name: Tour Guide 2016-12-11 3:20

Name: Anonymous 2016-12-11 10:36

JACSKON FIVE GET

Name: Anonymous 2016-12-11 11:25

You could save 6 more characters by correcting the "define" to "def".

Name: Anonymous 2016-12-11 13:56

>>6
but it would cost 50 to redefine that

Name: Anonymous 2016-12-11 14:06

>>7
That cost gets amortized over thousands of uses of "define".

Name: Anonymous 2016-12-11 14:23

>>8
but it doesn't get amortized in 99 characters you dumb fuck

Name: Anonymous 2016-12-11 14:26

>>9
That's why it should be included in the language, so people don't have to define it over and over. define, on the other hand, should be deprecated.

Name: Anonymous 2016-12-11 14:31

>>10
if they do it then in 10 years another /prog/ shitposter will complain that def should be deprecated and replaced with d for thrice the productivity

Name: Anonymous 2016-12-11 14:59

just use let for everything lol

Name: Anonymous 2016-12-11 15:46

>>11
And there won't be anything wrong with that.

Name: Anonymous 2016-12-11 18:11

>>13
But we'll complain about it anyway.

Name: Anonymous 2016-12-11 18:55

(d (make p b) (letrec ((f (λ (x) ((p f b) x)))) f)) (d ((inherit p q) f s) (p f (q f s)))

Name: Anonymous 2016-12-13 8:00

>>15
now rename make to m and inherit to i. congratulations, you have removed bloat

Name: Anonymous 2016-12-13 15:32

Y'all may be joking, but the interpreter needs more time and memory if the symbols are longer. You're removing bloat and making that code faster too.

Name: Anonymous 2016-12-13 16:39

>>17
those nanoseconds will make so much difference!

Name: Anonymous 2016-12-13 17:06

(d(m p b)(letrec((f(λ(x)((p f b)x))))f))(d((i p q)f s)(p f(q f s)))

Name: Anonymous 2016-12-13 17:52

>>19
OMG OPTIMIZED

Name: Anonymous 2016-12-14 2:41

Change letrec to rec

Name: Anonymous 2016-12-14 7:11

>>21
or to lr

Name: Anonymous 2016-12-14 11:29

Implement some kind of associativity behavior to reduce the need for parenths

Name: Anonymous 2016-12-14 11:30

make a programming language that executes whatever you want from 0-byte input

Name: Anonymous 2016-12-14 14:59

Name: Anonymous 2016-12-14 19:09

>>1
Time to write void.lisp with all these neat macros

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List