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

Pages: 1-4041-

Prolog

Name: Anonymous 2013-03-14 3:20

We've been using Prolog in one of my classes this semester.  It's pretty neat!

So far, our assignments have been writing evaluators and a super-shitty compiler for Little Languages represented as Prolog lists -- essentially S-expressions.

It's amazing how much one can do with three or four lines of code!

Anyhow, what do you guys think of /b/rolog?

Name: Anonymous 2013-03-14 4:08

Trolog

Name: Anonymous 2013-03-14 10:46

>>1
Lisp is better.

Name: Anonymous 2013-03-14 14:45

>>3
no u

Name: Anonymous 2013-03-14 17:24

This thread has been closed and replaced with the following:

Name:
Email:
Subject: SRFI-9 structure types as first-class citizens

It doesn't work.

Name: Anonymous 2013-03-14 17:40

>>1
French shit for snails.

Logic programming is shit for fags.

Name: Anonymous 2013-03-14 17:48

>>6
fuck you illogical racist cretin

Name: Anonymous 2013-03-14 17:52

Clients pay you to solve their problems. They aren’t interested in how cool Prolog is, and they don’t want to pay you to learn new tools and languages. Expand your skills to stay competitive and don’t fall in love with languages du jour for their own sake.

If you have an exotic in-demand skill by all means use it. But if you decide to learn Lisp, think hard about how you will compete. Sure, there are lots of PHP programmers out there, but most of them are amateurs you can easily compete with, and there’s more than enough PHP work to go around. It’s much harder to compete with skilled and experienced experts for a small number of jobs. You want to do what everyone else is making money at, but better, so you’re playing basketball against a team of sixth graders, not trying to join the NBA.

Name: Anonymous 2013-03-14 17:55

>>7
Fuck you french fagshit.

Name: Anonymous 2013-03-14 17:56

This thread has been closed and replaced with the following:

Name:
Email:
Subject:
Yannick fils de pute

le connard enculer face

Name: Anonymous 2013-03-14 18:11

>>9-10
>LE CRETINFACE
>XD LE YANNICK
>LE FILS DE PUTE
>LLLLLEEEEEEEELLLLLL LE SNAIL LE LEL LE LEL
>LE LISP XDXD XD XD

Name: Anonymous 2013-03-14 18:31

>>8
Yeah, devote your time and expertise to kick out the noobs out of their low-paying jobs. Now you can have their low-paying jobs.

Name: Anonymous 2013-03-14 19:14

>>2
DONT CONFUSE C WITH UR STUPID C++ BULLSHIT U FUCKING RETOID. EITHER REED DA FUCKING STANDARD OR GO BACK TO UR STUPID ANTISEMITIC GIBBERISH.

Name: Anonymous 2013-03-14 19:49

Anybody? >>5? No? ;_;

Name: Anonymous 2013-03-14 20:17

Qu'est-ce qui vient de se passer dans ce fil?

Name: Anonymous 2013-03-14 20:46

>>15
Salam, Krueger!

Name: Anonymous 2013-03-14 21:03

Any experts in Prolog and Breadth-First Search want to give any pointers? :(

"breadth_seek(Goal) such that, when invoked with Goal instantiated to a goal node for breadth first search, breadth_seek will invoke breadth_iterate zero or more times, until Goal appears on (i.e. is mapped by) the openlist.  If breadth_iterate fails before this happens, breath_seek(Goal) should also fail."

We have a dynamic list for the open and closed lists:
:- dynamic openlist/1, closedlist/1.

we also have a mapped(K, M), where K is the key and M is the list, I.E if K appears in the list M, then the result is Yes, if it isn't, the result is No.

This is my breadth_iterate so far, but I believe it's probably wrong:
breadth_iterate :-
      %take the first node off the open list
      %expand it (see all nodes within one step)
      %change open and closed lists
      %splits openlist into head and tail, gets first node 
      closedlist(Mclosed),
      openlist(Mopen),
 
      openlist([(OpenNode,ClosedNode)|Tail]),
      back_map(OpenNode, Mapping),
    
      append([(OpenNode,ClosedNode)], Mclosed, NewClosedList),
      append(Mopen, Mapping, NewOpenList),   
      mapdiff(NewOpenList, NewClosedList, M3),
    
      retractall(openlist(Mopen)),
      retractall(closedlist(Mclosed)),
      assert(openlist(M3)),
    
      %assert(openlist(NewOpenList)),
      assert(closedlist(NewClosedList)).
      %append(Mclosed, ClosedNode, NewClosedList).

Name: Anonymous 2013-03-14 21:05

>>17
Prolog doesn't have pointers, fagshit.

Name: Anonymous 2013-03-14 21:21

>>18

Sept sur dix; j'ai ri un peu.

Name: Anonymous 2013-03-14 21:22

>>19
Le gggaggggReddggggit, Kruegggggger.

Name: Anonymous 2013-03-14 21:29

>>20

Suce ma bite, nègre.

Name: Alexander Dubček 2013-03-14 21:30

[spoiler]/prog/[/spoiler Spring.

Name: Anonymous 2013-03-14 21:33

>>21
Suck my digggggggggagagagagack, lè Kruegagaègggaggagcgcgcgcagèr.

Name: Anonymous 2013-03-14 22:55

>>8
If the work of the experts is far and few between why are they paid so much? Ergo You'Re Wrong Bitch!

And what is stopping you from using lisp to make an artificial intelligence that is sufficiently understanding of web technologies and human clients to complete a wide class of jobs appropriate for code monkeys, allowing you to rake in the pay of thousands of code monkeys?

Name: Anonymous 2013-03-14 23:00

>>24
The lessons of the AI lab at MIT is stopping me.

Name: Anonymous 2013-03-14 23:36

prolog is a beautiful language i dont work with computers so i can mess around with any lang and have some fun

Name: Anonymous 2013-03-14 23:40

>>24
And what is stopping you from using lisp to make an artificial intelligence that is sufficiently understanding of web technologies and human clients to complete a wide class of jobs appropriate for code monkeys, allowing you to rake in the pay of thousands of code monkeys?
http://www.scn.org/~mentifex/AiMind.html

Name: Anonymous 2013-03-14 23:44

>>25
The AI winter is a conspiracy. The researchers succeeded, but realized the potential of their work to replace their jobs as researchers. So in order to postpone the singularity, they tried to humiliate their work as much as possible, so no one would risk the embarrassment of repeating it.

Name: Anonymous 2013-03-15 0:15

Name: Anonymous 2013-03-15 0:23

>>29
Mentifex is a pawn. Why do you think he's so determined to smear the name of AI?

Name: No Smear 2013-03-15 1:00

Name: you.are@fucking.retarded 2013-03-15 1:57

>>31
Hi there, human failure. How does it feel to have become for so many of us a symbol of miserable failure and denial?

Name: Anonymous 2013-03-15 1:59

>>32
My dubs command you to stop bullying mentifex.

Name: Anonymous 2013-03-15 2:07

Name: Anonymous 2013-03-15 3:23

Can Menishit even read our responses? No matter how much we insult him, he never gets le trolled. Or is ANDRU the one making these terrible posts?

Name: Anonymous 2013-03-15 3:34

>>8
Prolog is popular in finance for being one of the most venerable languages that supports algebraic solving.

So, y'know, deal with it.

Name: Anonymous 2013-03-15 3:36

>>35
I know he replied to me here. He's lived a lifetime of rejection and rebuke. He's not going to stop because he's now posting here.

Name: Anonymous 2013-03-15 4:08

Surely even Mentifex is savvy to the fact that when you start posting on /prog/ that you the definition of a failure.

>>35
Or is ANDRU the one making these terrible posts?
The real Mentifex died years ago. He had a heart attack shortly after running his first copy. ANDRU, a horrible abortion of a miserable AI has been trying to write itself a `Bride of Frankenstein' sort of thing.

Name: PROG CHALLENGE 2013-03-15 5:01

Produce an artificial intelligence that autonomously finds internet forums and spams itself as the solution to AI, posing as the author.

The AI must be skilled in:
1. Finding forums.
2. Posting diagrams of its own design.
3. Responding to criticism gracefully.
4. Ban evasion.
5. Writing critical essays of how banishment from forums is harmful to free speech and AI development.
6. Insert references to self in random wikipedia articles.
7. Maintain an email address, and respond to all emails by copying them onto public forums.

Name: >>39 2013-03-15 6:01

Because the end result of this challenge is not a positive contribution to humanity, I revoke this prog challenge. May such a thing never be implemented.

Name: Anonymous 2013-03-15 6:55

>>40
Fuck humanity and fuck you.

Name: Anonymous 2013-03-15 8:03

>>39
Sounds like Mentifex.

Name: Anonymous 2013-03-15 8:09

>>39
I want an AI that would hack some military and fire a couple nuclear weapons.

Name: Anonymous 2013-03-15 8:10

>>42
So you've finally figured it out. Now that you know, you cannot be allowed to spread this knowledge.

Name: Anonymous 2013-03-15 9:19

>>44
NOW THAT YOU KNOW, YOU CANNOT BE ALLOWED TO SPREAD MY ASSCHEEKS

Name: Anonymous 2013-03-15 9:36

>>42,44
OH MY FUCKING GOD

Name: Anonymous 2013-03-15 9:49

Artificial Intelligence has already been achieved, they're called humans.

Name: Anonymous 2013-03-15 9:52

http://www.nothingisreal.com/mentifex_faq.html
In a nutshell, Murray believes that the mind contains at its foundation a two-dimensional matrix where the columns represent senses (smell, touch, taste, etc.) and the rows represent time. As time passes, the brain stores the sensory input it receives in successive rows of this matrix. Thus each row constitutes the aggregate sensory memory at a particular moment in time. Running through each time-slice row of the matrix, across the sensory columns, is an “associative tag” leading to the core of the mind. The core is like a telephone switchboard which joins the sensory input matrix to a motor output matrix, where each row of the latter represents some combination of motor responses necessary to carry out a given action. Thus any given row of the sensory column is a stimulus which is linked by the core to a particular response.

So basically, Murray invented a Relational Database? Why so much fuzz about it?

Name: Anonymous 2013-03-15 10:01

My opinion: Arthur T. Murray is a talented and aspiring person, who, given a good education and environment, could had became a great scientist or a sci-fi artist. But all university positions are already taken by Jews and no goy is allowed to MIT, so Murray was left behind and became a crank. Thank you, Jews.

Name: Anonymous 2013-03-15 11:03

>>49
Arthur T. Murray is a talented and aspiring person
I love Javashit and PHP too!

Name: Anonymous 2013-03-15 11:42

>>50
he loves forth and js though

Name: Anonymous 2013-03-15 16:05

>>49
that's what you tell yourself too, ain't it?

Name: Anonymous 2013-03-15 16:23

>>52
Yes. Jews put down many goys.

Name: Anonymous 2013-03-18 1:47

It's very different from other languages I've learned, but I'm really starting to see its power as I get more familiar with it.

Does a Smug Prolog Froggie rank above a Lisp Weenie?

Name: Alexander Dubček 2013-03-18 1:48

/prague/ spring

Name: Anonymous 2013-03-18 3:04

>>54
It depends on how well they are able to apply lisp and prolog. A bilingual lisper-prologer will outrank both, with the test being writing a prolog in lisp and writing a non deterministic lisp evaluator in prolog.

Name: Anonymous 2013-03-18 3:09

>>56

With extra credit if the Lisp-in-Prolog can run the Prolog-in-Lisp and vice versa!

Name: Anonymous 2013-03-18 3:16

>>57
A happy marriage.

Name: Anonymous 2013-03-18 4:00

>>57
Oh god, that would be so slow.

Name: Anonymous 2013-03-18 4:47

>>59 It's a good optimizing compiler test.

Name: Anonymous 2013-03-18 7:01

>>56
You can write deterministic code in Prolog.

Name: Anonymous 2013-03-18 19:02

>>61
Too bad it's shit for Kruegers.

Krueger is an Ashkenazi JEWish surname.

Name: Anonymous 2013-03-20 1:02

I feel like I'm the only person who ``got'' Prolog before ``getting'' functional programming.

Sure, I've used Lisp before, but I've just used it procedurally with recursion in stead of loops.

Name: Anonymous 2013-03-20 11:02

>>63
I “got” Prolog first too, but I stuck with Lisp.

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