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

Pages: 1-4041-

Genesis

Name: ⚡ ⚕ The academy ⚛ ♬ 2011-12-07 12:13

In the beginning Man created the computer. Now the computer was formless and empty, darkness was over the surface of the deep, and the Spirit of Man was hovering over the terminal.

And Man said, "Let there be lisp," and there was lisp. Man saw that the lisp was good.

http://whalliburton.github.com/academy/

Name: Anonymous 2011-12-07 12:20

>>1
ensure-list
Pay attention! A very useful utility function is being introduced here.

No. It's not.

(A) = A, or the other way to Lisp

Treating list of a single atom as the atom itself means that, when (atom A) => T, the following axioms hold

  (car A) => A
  (cdr A) => nil
  (cons B A) => (B A)
  (cons A nil) => A


This approach can conceptually simplify list processing, because everything becomes a list. Most list-functions would get ability to process stand alone atoms. A need for a few redundant helper entities, like unicode characters, would disappear, as they will be represented with the list itself. Lists could be entered and pretty-printed by just specifying their elements, without parentheses, required to discern single element from a list of one element. It also lowers memory consumption for lists made of cons-pairs.

Interesting feature is that Lisp's quote operator becomes replaceable by a more uniform multiargument version, meaning [A B C] could be written instead of '(A B C) and [A] instead of 'A, where [A B ... C] equals (quote A B C).

The obvious pitfall is that "(list)" results into just "list", meaning that some other way to discern symbols from funcalls has to be found. One variant is to use naming convention for function symbols - for example, starting them from lowercase letter.

Problems will arise from removal of (atom A) => T requirement. For example,

  (car (car (cons (cons A B) nil)))

would result in A, instead of (A B), because of loss of structure.

Still, (car (car A)) works as expected, when (atom A) => T.


----------------------


(defun /car (x) (if (consp x) (car x) x))
(defun /cdr (x) (if (consp x) (cdr x)))
(defun /cons (x y) (cond (y         (cons x y))
                         ((consp x) (cons x nil))
                         (t         x)))
(defun /list-rec (xs) (if xs (/cons (car xs) (/list-rec (cdr xs)))))
(defun /list (&rest xs) (/list-rec xs))
(defun /print (x)
  (while x
    (format t "~a " (/car x))
    (setf x (/cdr x)))
  (format t "~%"))

Name: Anonymous 2011-12-07 12:24

>>1
[m]4DC0 : ䷀   #\HEXAGRAM_FOR_THE_CREATIVE_HEAVEN
4DC1 : ䷁   #\HEXAGRAM_FOR_THE_RECEPTIVE_EARTH
4DC2 : ䷂   #\HEXAGRAM_FOR_DIFFICULTY_AT_THE_BEGINNING
4DC3 : ䷃   #\HEXAGRAM_FOR_YOUTHFUL_FOLLY
4DC4 : ䷄   #\HEXAGRAM_FOR_WAITING
4DC5 : ䷅   #\HEXAGRAM_FOR_CONFLICT
4DC6 : ䷆   #\HEXAGRAM_FOR_THE_ARMY
4DC7 : ䷇   #\HEXAGRAM_FOR_HOLDING_TOGETHER
4DC8 : ䷈   #\HEXAGRAM_FOR_SMALL_TAMING
4DC9 : ䷉   #\HEXAGRAM_FOR_TREADING
4DCA : ䷊   #\HEXAGRAM_FOR_PEACE
4DCB : ䷋   #\HEXAGRAM_FOR_STANDSTILL
4DCC : ䷌   #\HEXAGRAM_FOR_FELLOWSHIP
4DCD : ䷍   #\HEXAGRAM_FOR_GREAT_POSSESSION
4DCE : ䷎   #\HEXAGRAM_FOR_MODESTY
4DCF : ䷏   #\HEXAGRAM_FOR_ENTHUSIASM
4DD0 : ䷐   #\HEXAGRAM_FOR_FOLLOWING
4DD1 : ䷑   #\HEXAGRAM_FOR_WORK_ON_THE_DECAYED
4DD2 : ䷒   #\HEXAGRAM_FOR_APPROACH
4DD3 : ䷓   #\HEXAGRAM_FOR_CONTEMPLATION
4DD4 : ䷔   #\HEXAGRAM_FOR_BITING_THROUGH
4DD5 : ䷕   #\HEXAGRAM_FOR_GRACE
4DD6 : ䷖   #\HEXAGRAM_FOR_SPLITTING_APART
4DD7 : ䷗   #\HEXAGRAM_FOR_RETURN
4DD8 : ䷘   #\HEXAGRAM_FOR_INNOCENCE
4DD9 : ䷙   #\HEXAGRAM_FOR_GREAT_TAMING
4DDA : ䷚   #\HEXAGRAM_FOR_MOUTH_CORNERS
4DDB : ䷛   #\HEXAGRAM_FOR_GREAT_PREPONDERANCE
4DDC : ䷜   #\HEXAGRAM_FOR_THE_ABYSMAL_WATER
4DDD : ䷝   #\HEXAGRAM_FOR_THE_CLINGING_FIRE
4DDE : ䷞   #\HEXAGRAM_FOR_INFLUENCE
4DDF : ䷟   #\HEXAGRAM_FOR_DURATION
4DE0 : ䷠   #\HEXAGRAM_FOR_RETREAT
4DE1 : ䷡   #\HEXAGRAM_FOR_GREAT_POWER
4DE2 : ䷢   #\HEXAGRAM_FOR_PROGRESS
4DE3 : ䷣   #\HEXAGRAM_FOR_DARKENING_OF_THE_LIGHT
4DE4 : ䷤   #\HEXAGRAM_FOR_THE_FAMILY
4DE5 : ䷥   #\HEXAGRAM_FOR_OPPOSITION
4DE6 : ䷦   #\HEXAGRAM_FOR_OBSTRUCTION
4DE7 : ䷧   #\HEXAGRAM_FOR_DELIVERANCE
4DE8 : ䷨   #\HEXAGRAM_FOR_DECREASE
4DE9 : ䷩   #\HEXAGRAM_FOR_INCREASE
4DEA : ䷪   #\HEXAGRAM_FOR_BREAKTHROUGH
4DEB : ䷫   #\HEXAGRAM_FOR_COMING_TO_MEET
4DEC : ䷬   #\HEXAGRAM_FOR_GATHERING_TOGETHER
4DED : ䷭   #\HEXAGRAM_FOR_PUSHING_UPWARD
4DEE : ䷮   #\HEXAGRAM_FOR_OPPRESSION
4DEF : ䷯   #\HEXAGRAM_FOR_THE_WELL
4DF0 : ䷰   #\HEXAGRAM_FOR_REVOLUTION
4DF1 : ䷱   #\HEXAGRAM_FOR_THE_CAULDRON
4DF2 : ䷲   #\HEXAGRAM_FOR_THE_AROUSING_THUNDER
4DF3 : ䷳   #\HEXAGRAM_FOR_THE_KEEPING_STILL_MOUNTAIN
4DF4 : ䷴   #\HEXAGRAM_FOR_DEVELOPMENT
4DF5 : ䷵   #\HEXAGRAM_FOR_THE_MARRYING_MAIDEN
4DF6 : ䷶   #\HEXAGRAM_FOR_ABUNDANCE
4DF7 : ䷷   #\HEXAGRAM_FOR_THE_WANDERER
4DF8 : ䷸   #\HEXAGRAM_FOR_THE_GENTLE_WIND
4DF9 : ䷹   #\HEXAGRAM_FOR_THE_JOYOUS_LAKE
4DFA : ䷺   #\HEXAGRAM_FOR_DISPERSION
4DFB : ䷻   #\HEXAGRAM_FOR_LIMITATION
4DFC : ䷼   #\HEXAGRAM_FOR_INNER_TRUTH
4DFD : ䷽   #\HEXAGRAM_FOR_SMALL_PREPONDERANCE
4DFE : ䷾   #\HEXAGRAM_FOR_AFTER_COMPLETION
4DFF : ䷿   #\HEXAGRAM_FOR_BEFORE_COMPLETION
[/m]
Fuck you Eirin.

Name: Anonymous 2011-12-07 12:47

LITHP

Name: Anonymous 2011-12-07 12:53

Why use Lisp?

Name: Anonymous 2011-12-07 12:59

>>5
Lisp is best.

Name: Anonymous 2011-12-07 13:21

I meant, if I use C++, Java, or (in some cases PHP), why should I learn/use Lisp?

Name: Anonymous 2011-12-07 13:29

>>7
Because none of those languages has a decent compile-time preprocessing system. Common Lisp also has many other advantages over those, but macros are its killer feature.

Name: Anonymous 2011-12-07 13:38

>>8
Derp? Herp derp?

Name: Anonymous 2011-12-07 13:41

>>9
Are you an retard!

Name: Anonymous 2011-12-07 13:47

check 'em

Name: Anonymous 2011-12-07 13:49

>>7
How are they better than Lisp?

Name: Anonymous 2011-12-07 13:51

>>7
The most powerful programming language is Lisp. If you don't know Lisp (or its variant, Scheme), you don't appreciate what a powerful language is. Once you learn Lisp you will see what is missing in most other languages.

- Richard Stallman

Name: Anonymous 2011-12-07 14:12

>>11
That's so cool

Name: Anonymous 2011-12-07 16:56

Lisp is shit.

Name: Anonymous 2011-12-07 17:00

>>13
When you want to use a language that gets compiled and runs at high speed, the best language to use is C. Using another language is like using a non-standard feature: it will cause trouble for users.

- Richard Stallman

Name: Anonymous 2011-12-07 17:09

Lisp is shit.

Name: Anonymous 2011-12-07 17:19

>>17
No.

Name: Anonymous 2011-12-07 17:23

>>18
You're shit.

Name: Anonymous 2011-12-07 17:25

>>19
No.

Name: Anonymous 2011-12-07 17:26

>>16
“prostitution, adultery, necrophilia, bestiality, possession of child pornography, and even incest and pedophilia” All of these acts should be legal as long as no one is coerced. They are illegal only because of prejudice and narrow mindedness.

- Richard Stallman

Name: Anonymous 2011-12-07 17:27

>>21
"why you bully loli"

- Richard Stallman

Name: Anonymous 2011-12-07 17:31

>>21
"I am the goat fucker"

- Richard Stallman

Name: Anonymous 2011-12-07 17:47

>>21
"Proprietary software is a great way to educate people about the true values of Intellectual Property."

- Richard Stallman

Name: Anonymous 2011-12-07 17:56

>>24
Writing non-free software is not an ethically legitimate activity, so if people who do this run into trouble, that's good! All businesses based on non-free software ought to fail, and the sooner the better.

- Richard Stallman

Name: Anonymous 2011-12-07 23:59

Richard Stallman is one big pile of SELF-CONTRADICTION. No surprise there!

Name: Anonymous 2012-03-13 4:36

Richard Stallman has a lisp.

Name: Anonymous 2012-03-13 5:05

*farts on OP*

Name: Anonymous 2012-03-13 5:05

*farts on OP*

Name: Anonymous 2012-03-13 5:05

*farts on OP*

Name: Anonymous 2012-03-13 5:05

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:06

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:07

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:08

*farts on OP*

Name: Anonymous 2012-03-13 5:09

*farts on OP*

Name: Anonymous 2012-03-13 5:09

*farts on OP*

Name: Anonymous 2012-03-13 6:18

Xheck em

Name: Anonymous 2012-03-13 6:46

>>65
Canadian jokes, heh ?

Name: Anonymous 2012-03-13 6:47

>>67
what?

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