ECS 36A Lecture Notes - Lecture 12: Integer Overflow, Database Server, Type Inference

186 views4 pages
Verified Note

Document Summary

Ecs 36a - lecture 12 - types, variables, control flow in rust. Why our focus is shifting to rust and away from python: Python was a decent language in the 1990s. There is no integer overflow in python, integer can be of arbitrary length = a pro. Programmer can"t provide detailed information to compiler,compiler can"t aggressively optimize. Not good b/c don"t have to worry about memory or runtime -- garbage collection. Makes programs easier, but also more inefficient. When accessing index, python will check if index is out of bound avoids index errors. Iterator validation -- end up in infinite loops (python can"t do anything about it) Not easy to write concurrent programs to take advantage of multiple cores on computers. Python isn"t applicable to certain things like databases in the real world --never heard of efficient database server implemented in python -->nor web servers and never an operating system in python.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers