I need to quickly learn the basics of PROLOG/functional programming in just a few hours for an assignment, what material you fags recommend?
I need to quickly learn the basics of PROLOG/functional programming in just a few hours for an assignment...
Other urls found in this thread:
web-artanis.com
youtube.com
github.com
metalevel.at
learnprolognow.org
newthinktank.com
des.sourceforge.net
flora.sourceforge.net
abella-prover.org
teyjus.cs.umn.edu
dailyfreecode.com
youtube.com
twitter.com
9mm to the skull
give up and if it's a group assignment, beg for your groupmates' forgiveness
why are you learning how to use a totally unfamiliar paradigm and language a few hours before the due date?
Sadly, Its not a group assignment.
>why are you learning how to use a totally unfamiliar paradigm and language a few hours before the due date?
Because i'm lazy as fuck, I always do that, always regret it and never learn. I'm already good with imperative languages so maybe I can pick it up quickly.
>quickly learn the basics of PROLOG
Good luck, you'll need it.
Or this
Prolog is not functional programming, it's logic programming
Prolog is neither imperative nor functional.
Whatever, its not necessarily prolog that I need to learn, just some functional or logic language
logic and functional programming are not necessarily the same
>prolog
i forget the exact details, but the basics are just logical implication:
% z is a named constant (the name has no programmatic meaning)
% (i am using it for 0)
% X is a variable. the difference is the capitalisation
% in this case, it is written so that add(X,Y,Z) has the meaning X + Y = Z
add(z, X,X).
add(s(X),Y,s(Z)) :- add(X,Y,Z).
% :- is sort of like "where"
% i am using s for successor, aka 1+
% (1+X) + Y = 1+Z where X+Y=Z
Scheme.
Any material you recommend to quickly learn it?
sicp or an online tutorial. anything. you could fit the whole language on the back of a cereal box.
learning the think in an appropriate way to use it is the struggle.
I'll take a look, thanks.
+1, the basics can be learnt relatively fast
If you have chosen Scheme (which is not a so widely used language), start here : web-artanis.com
This
|All the works of Oleg. We worship him
>In just a few hours
You're fucked.
Learning PROLOG is like learning programming from scratch and you can't do this in just a few hours.
t. French student who learnt PROLOG at uni
But I learnt Prolog in half an hour? For the syntax and basic data munging at least is the easiest language on earth!
Write an imageboard engine in Prolog then.
>what is Learn X in Y minutes
what if Y is too great
Check source code for an expert system written in prolog
Logical programming is dead end
If you know anything about databases/sql, it isn't harder.
For hasklel, because if you learn functional programming you are learning through haskell,
www.learnyouahaskell.com
iirc that page taught you everything.
learnprolognow.org
Good luck friend
good luck, one of my teachers is the debian/ubuntu maintainer of that shit, going to have to learn it next year
>PROLOG
>functional
Logic paradigm != Functional paradigm
>for an assignment,
>for an assignment, what material you fags recommend?
>for an assignment,
I recommend your instructor's lectures and (by extension) the notes you took.
I am sort of jealous.
he's a cool teacher and great engineer
What's the point of prolog in 2018? It's a dead end for AI which was it's main supposed purpose . Logical programming is a mathematics meme, like automata programming
A few implementations of Prolog you have to know
Database: Datalog des.sourceforge.net
Expert System: Flora-2 flora.sourceforge.net
Theorem Prover: Abella abella-prover.org
Lambda Prolog Compiler: Teyjus teyjus.cs.umn.edu
And look at this simple medical expert system implementation dailyfreecode.com
The fact that you think Prolog is a functional language and not a logic language means there's probably no hope for you.
so if i learn prolog i can work in a hospital? i can be a doc?
Scheme is a waste of time. Learn a useful functional language like clojure, Scala, erlang, or js
>js
you nearly had me there but then you baited too hard user.
>most widely used language today
>not more useful than scheme
>js is a functional language
>what is es6
It's multi-paradigm but so are most of the "functional" languages.
>If you know anything about databases/sql, it isn't harder.
Explain.
I knew Haskell and SQL just fine, but it took me almost a week before I was able to write quicksort in Prolog.
do not leanr prolog
If you have decided to go with scheme (which I would recommend as well), watch the 6.001 video lectures. IIRC the first lecture is enough to learn the basics of scheme.
Scheme is too hard.
I hate that I'm too.dumb to learn to program
I've been trying common.lisp.and it's still not intuitive
the trick is in translation and deduciton user.
Tell me what this function i just wrote in my own made up language does:
j j{i}
Scheme definitely isn't too hard.
Learning programming languages doesn't require you to be a genius, they're just tools that you use. If you know how to drive a car, then you can learn how to program if you try. You've probably heard this a lot before, but you're just not trying hard enough.
Did you watch the video? It explains the basics, which are the same across all lisps, its the best possible introduction you can get if you are new to functional programming.
Also, common lisp is kind of shit. If you want a simple, sane functional programming, scheme is the default option.
All it takes to learn a new language is deduction, experimentation, and practice.
No idea
I can't make anything. I can't sit through another introductory programming thing . I've done it so many times for so many languages . I just want to get the the point were I can do stuff
Looks like an autistic loop over a list, with an index variable that never gets used.
Into the trash.
stop playing video games and watching porn
that would be correct
it loads an autism array (notation {[elements]}) into register j and pushes it onto stack.
It then loads a constant 1 into i, and then declares a for loop starting from 1 and ending at n, and states that i increments by 1 at the end of each iteration
it then declares as general output the value stored at index i in array j.
see the above.
>I just want to get the the point were I can do stuff
Stop trying to learn programming. You probably know enough for now. Start learning frameworks. Decide what you want to build and find a good framework for it. Import libraries for difficult algorithms. Look shit up on stack overflow if you're having trouble. It's all very easy and you'll keep learning as you go.
If you don't know what to build, the simplest thing is probably a to-do list. You can add new entries and delete old ones. Find a UI framework in your language of choice and hammer away. Personally I'd recommend javascript with react. It's very easy to pick up and react is heavily used in industry.
My autism compells me to expand on this made up language and make it more practical.
Tell me what you think of the following (comments btw are #):
[var] [value/var] #loop through from starting value/var to ending one
, [operations]: #do the following operations at the end of each iteration of the loop
#so
1 --> 10:
i++
i//2
i*3
['code.]
#can be simplified to
1 --> 10, i
I want to learn R real well for data science like my father before me
Can't help you with R but a lot of data scientists use python now. Learn numpy, scipy, matplotlib, sklearn, maybe tensorflow and theano
It's gotta be R. I'm sorry.
why are you misguiding him on purpose?
There is no reason for him to learn a framework, unless he wants to be a webdev or something. No reason to learn a memelang like Python either.