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

Pages: 1-

Show me a working program you built in Lisp.

Name: Anonymous 2011-08-11 20:35

I see a lot of ``faggots'' here claiming to have achieved Satori and becoming [b][i][o][u]EXPERT PROGRAMMER[\u][\o][\i][\b]s after reading SICP, but I have yet to single /prog/rider demonstrate a working program they've built. Show us what you and Lisp can do. I'm legitimately curious.

Name: Anonymous 2011-08-11 20:38

There's a lot of Lisp code on here already. We're not going to do the work for you, lazy shit.

Name: Anonymous 2011-08-11 20:44

fibs.scm

Name: Anonymous 2011-08-11 20:47

My everyday scripts are (almost) all written in Lisp.
And I posted my BBCode suite in Racket some time ago, just to reply to the post that made you open this shitty thread.

Name: Anonymous 2011-08-11 20:48

>>2
I can't program.

Anybody else?

Name: Anonymous 2011-08-11 20:49

>>5
Still trying too hard. And you can't quote properly.

Name: Anonymous 2011-08-11 20:50

>>5
Cretin.

Name: Anonymous 2011-08-11 21:20

ooc.util.FibonacciGenerator

Name: any questions? 2011-08-12 0:06

Lisp:

// Usage: generate {sentence}

Grammar -> split {|} {sentence    -> (noun_phrase verb_phrase)
                     |noun_phrase -> (Article Noun)
                     |verb_phrase -> (Verb noun_phrase)
                     |Article     -> the a
                     |Noun        -> man ball woman table
                     |Verb        -> hit took saw liked}

generate P:xs?->mapc 'r P; P:rewrites->P,pick,r; P->P
rewrites Category -> Grammar,([@_ {$!Category -> $@RHS} @_]->RHS)


Python:

from random import choice

def Dict(**args): return args

grammar = Dict(
        S = [['NP','VP']],
        NP = [['Art', 'N']],
        VP = [['V', 'NP']],
        Art = ['the', 'a'],
        N = ['man', 'ball', 'woman', 'table'],
        V = ['hit', 'took', 'saw', 'liked']
        )

def generate(phrase):
    "Generate a random sentence or phrase"
    if isinstance(phrase, list):
        return mappend(generate, phrase)
    elif phrase in grammar:
        return generate(choice(grammar[phrase]))
    else: return [phrase]
   
def generate_tree(phrase):
    """Generate a random sentence or phrase,
     with a complete parse tree."""
    if isinstance(phrase, list):
        return map(generate_tree, phrase)
    elif phrase in grammar:
        return [phrase] + generate_tree(choice(grammar[phrase]))
    else: return [phrase]

def mappend(fn, list):
    "Append the results of calling fn on each element of list."
    return reduce(lambda x,y: x+y, map(fn, list))

>>> generate('S')
['the', 'man', 'saw', 'the', 'table']

>>> ' '.join(generate('S'))
'the man saw the table'

Name: Anonymous 2011-08-12 0:52

I'm not going to post any actual useful project here as that would require giving up my anonimity.

Name: Anonymous 2011-08-12 0:53

>>9
cool, I am actually working through PAIP right now :-)

Name: Anonymous 2011-08-12 0:54

And for those that I already posted, just use /prog/scrape or google search to find them.

Name: Anonymous 2011-08-12 2:32

http://en.wikipedia.org/wiki/Mirai_(software)

It was basically a superior 3dsmax for Lisp Machines.

Name: Anonymous 2011-08-12 2:33

>>9
I fucking knew I was going to need make this clarification: a ``working program [you've] build'' does not mean ``some completely useless 10-LOC function you lifted from a textbook''.

http://norvig.com/paip/simple.lisp

At least it wasn't lifted from the first chapter of SICP like I was expecting though.

Name: Anonymous 2011-08-12 2:45

>>14
It was lifted from Norvig's Python-evangelism article, where the old google-whore said that "Python is a better lisp", using that code as example.

Name: Anonymous 2011-08-12 2:56

>>14
I'm not a lisper, but it's turing complete. You'd have to be a fucking retard to think you can't write a working program in lisp.

Same goes for any other turing complete language. Also, I haven't seen this Satori EXPERT PROGRAMMER bullshit recently. I assume the actual Lisp programmers left during the Autist-Fartist shitfloods, if not beforehand. Now we're left with a bunch of faggots who played with lisp for 5 minutes and think it's the best thing ever, without considering it's drawbacks.

I'd say it's more a question of popularity than anything else. People prefer language X, because everyone else uses and is productive with language X. This mentality is obviously rife within the workplace.

Name: Anonymous 2011-08-12 3:19

Name: Anonymous 2011-08-12 3:30

lisptards only write toy programs? who would have guessed?

Name: Anonymous 2011-08-12 3:36

>>16
drawbacks.
What "drawbacks"?

Name: Anonymous 2011-08-12 3:37

>>19
parentheses

Name: Anonymous 2011-08-12 3:38

>>16
This mentality is obviously rife within the workplace.
"This mentality" has a name "conformism".

Name: Anonymous 2011-08-12 3:52

>>18
i bet u think your so cool kaptin fgt
ha ha u piss all over ur nutz liek FUCK
u try to stik ur own dick in ur ass
but u cant cuz ur being ANALLY PERUSED by ur dads cawk
"i sucked five dicks for a cheeseburger at mickie d's" -u
whats it liek getting fukin ownd al da time?
mayb u shud stop bein so BUTT FRUSTRATED
when u take a shit ur angry butt crys tears of sperm
looks liek some1 just got BUTTASSAULTED

Name: Anonymous 2011-08-12 4:13

>>22
tards are funny

Name: Anonymous 2011-08-12 10:56

>>16
I assume the actual Lisp programmers left during the Autist-Fartist shitfloods, if not beforehand.

Why would you think that?

Name: Anonymous 2011-08-12 20:49

Show me a working Lisp you built in a program

I see a lot of ``faggots'' here claiming to have achieved Satori and becoming [b][i][o][u]EXPERT PROGRAMMER[\u][\o][\i][\b]s after reading SICP, but I have yet to single /prog/rider demonstrate a working Lisp they've implemented. Show us what you and some language can do. I'm legitimately curious.

Name: Anonymous 2011-08-12 21:25

>>25
Check out Symta ``Lisp''.  Of course, the author's a total sociopath, but aren't we all.

Name: Anonymous 2011-08-12 21:58

>>24
I still visit /prog/, but I rarely bother posting much anymore.
>>25
You want to see a working lisp dialect we implemented or merely something we wrote in some lisp?

Name: Anonymous 2011-08-12 22:41

(defun main ()
  (format t "What is your name?~%")
  (format t "Hello, ~d!~%" (read-line)))

Name: Anonymous 2011-08-12 22:54

>>27
a working lisp dialect you implemented!

Name: Anonymous 2011-08-13 0:20

(lambda () 'hello-world)

Name: Anonymous 2011-08-13 4:09

>>29
(loop (print (eval (read))))

Name: Anonymous 2011-08-13 4:55

>>29
I make various DSLs specific to my problem domain, which usually are built on top of CL. I haven't actually invented any specific dialect, despite having implemented some toy lisps as part of learning the language (through PAIP, SICP, LiSP).

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