teaching machines

CS 330 Lecture 16 – Functions in Assembly

Agenda what ?s finish heads/tails summing user input a multiply function TODO I’ll be gone Wednesday and Friday. Please take advantage of this time to work on CSE and Regexercise. I will have limited time to communicate, though I’ll try to check Piazza once a day. Code boolean.s repeated_addition.s Haiku

CS 330 Lecture 15 – Assembly Cont’d

Agenda what ?s line at a time dealing with memory conditional statements calling functions TODO 1/4 sheet. Pick one of: Write an assembly program that gets a number from the user and prints out just its least significant byte. Read Stop Misquoting Donald Knuth! Line at a Time Code … Haiku  

CS 330 Lecture 14 – Assembly

Agenda what ?s the von Neumann computer leaky abstractions line at a time TODO Read chapters 1-3 of Programming from the Ground Up. 1/4 sheet. Recall This What’s the von Neumann architecture of a computer? What happens in a computer when you add two variables? What happens when you execute an executable? Line at a […]

CS 330 CSE Homework – due before March 12

See the PDF.

CS 330 Lecture 13 – Control Statements

Agenda what ?s what’s a program look like? adding moves and rotates adding loops and conditionals adding functions TODO Start the CSE homework. Sync and pull to get the grader as described in post @16. Extra credit participation: download the Logo Eclipse project and write a Logo program. Post it on Piazza (filed under folder logo) […]

CS 330 Lecture 12 – Storing a Program

Agenda what ?s think about this storing program structures in Basecalc TODO Watch two videos on optimization from Stanford professor Alex Aiken: https://www.youtube.com/watch?v=_8PEtL9AYmQ and https://www.youtube.com/watch?v=yRfh7hUx26k. Feel free to watch at double speed. Share 3-4 questions or observations on a 1/4 sheet. Think About This Suppose we add a ternary operator to our Basecalc language. What happens when we […]

CS 330 Lecture 11 – Basecalc Interpreter Cont’d

Agenda what ?s defining an interpreter add callbacks to interpreter internode communication variables TODO See post Git Syncing + Permissions Issues on Thingies on Piazza to fix some problems you are likely to encounter. Get your homework (at least the first two problems) pushed to Bitbucket before Friday. If you can’t see your code on Bitbucket’s site, neither […]

CS 330 Lecture 10 – Basecalc Interpreter

Agenda what ?s whitespace expr productions parse trees a REPL an interpreter TODO Read up on the origin of a programming language of your choosing, and share some interesting factoids on a 1/4 sheet. Review Process of Interpretation Write your grammar in a *.g file. Run antlr on *.g file to produce the Java source […]

CS 330 Lecture 9 – A Calculator

Agenda what ?s a grammar lexing to get a token stream TODO 1/4 sheet: read chapter 1 in your book. Code Basecalc.g Haiku

CS 330 Lecture 8 – Regex Closeout

Agenda what ?s regex bingo a few more examples links between images double-spaces between sentences finding repeats ith field TODO Right now: You and a partner make a 4×4 grid of randomly generated strings. Include upper- and lowercase letters, numbers, whitespace, and punctuation. Keep the strings short. There’s no free space. Before Friday: Familiarize yourself […]

1 17 18 19 20 21 35