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!
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.
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),
>>21
Suck my digggggggggagagagagack, lè Kruegagaègggaggagcgcgcgcagèr.
Name:
Anonymous2013-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:
Anonymous2013-03-14 23:00
>>24
The lessons of the AI lab at MIT is stopping me.
Name:
Anonymous2013-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:
Anonymous2013-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
>>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.
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:
Anonymous2013-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:
Anonymous2013-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:
Anonymous2013-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 CHALLENGE2013-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.
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.
Artificial Intelligence has already been achieved, they're called humans.
Name:
Anonymous2013-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:
Anonymous2013-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.
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ček2013-03-18 1:48
/prague/ spring
Name:
Anonymous2013-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.