λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°

University of California, Berkeley

(126)
Indian rock + beeeer
Declarative Programming Programming Paradigms - Up until now, we’ve been focused (primarily) on imperative programming. - Imperative program contain explicit instructions to tell the computer how to accomplish something. The interpreter then executes those instructions - Now, we’ll learn about declarative programming, where we can just tell the computer what we want, instead of how we want it done. The interpreter then..
Interpersonal Attraction Interpersonal Attraction and Close Relationships Today - What is interpersonal attraction and how is it studied? - basic motives in social psychology - reciprocal liking - the matching hypothesis Interpersonal Attraction Q What makes us like someone, want to be friends with someone, or want to date someone? Basic motives from social psychology 1. to be liked and accepted by others 2. to feel goo..
Streams Streams Lazy Evaluation in Scheme Lazy evaluation - In Python, iterators and generators allowed for lazy evaluation - Scheme doesn't have iterators. How about a list? Streams : Instead of iterators, Scheme uses streams - Stream : (linked) list whose rest is lazily evaluated : A promise to compute - cdr returns the rest of a list : For normal lists, the rest is another list : The rest of a stream..
Week 7 Week 7 Resources https://docs.google.com/presentation/d/1t6tK4J5dmeRb9z619f2AaGawlkrMVCwhJMP2HF-2tUY/edit#slide=id.g1fd8f00051_0_0 Google ν”„λ ˆμ  ν…Œμ΄μ…˜ - ν”„λ ˆμ  ν…Œμ΄μ…˜μ„ μž‘μ„±ν•˜κ³  μˆ˜μ •ν•  수 있으며 λ¬΄λ£Œμž…λ‹ˆλ‹€. ν•˜λ‚˜μ˜ κ³„μ •μœΌλ‘œ λͺ¨λ“  Google μ„œλΉ„μŠ€λ₯Ό ν”„λ ˆμ  ν…Œμ΄μ…˜μœΌλ‘œ μ΄λ™ν•˜λ €λ©΄ λ‘œκ·ΈμΈν•˜μ„Έμš”. accounts.google.com https://docs.google.com/document/d/1_wpYjkzeuRZOIM6GssSDH8X2CoIRjqjtDIYMNaTQGtQ/edit Streams Scheme Streams Objectives: Understand the motivation behind s..
Macros Macros - Macros are a more convenient way to transform or create expressions - The define-macro special form will create a macro procedure - Macros take in and return expressions, which are then evaluated in place of the call to the macro Evaluating Macros Recall evaluation procedure used for regular call expressions: 1. Evaluate the operator sub-expression, which evaluates to a regular procedur..
Prejudice Today - the classical psychological approach to prejudice - definitions - issues in studying prejudice - prejudice and health : classical psychological research : big data research The classical Psychological approach to Prejudice : Definitions - prejudice : an evaluation or emotion toward someone based solely on their group membership - discrimination : behavior that advantages or disadvantages..
Interpreters lab Interpreters Def : a program that allows you to interact with the computer in a certain language - This is what project 4 is all about ! - Involves 2 languages 1. language being implemented ( Scheme in Project 4 ) 2. Underlying language implementing 1 ( Python in Project 4 ) REPL Process : Process that interpreters follow Read lexer : break up inputs into smaller 'tokens' parser : 'organize' tok..