ورود به حساب

نام کاربری گذرواژه

گذرواژه را فراموش کردید؟ کلیک کنید

حساب کاربری ندارید؟ ساخت حساب

ساخت حساب کاربری

نام نام کاربری ایمیل شماره موبایل گذرواژه

برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید


09117307688
09117179751

در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید

دسترسی نامحدود

برای کاربرانی که ثبت نام کرده اند

ضمانت بازگشت وجه

درصورت عدم همخوانی توضیحات با کتاب

پشتیبانی

از ساعت 7 صبح تا 10 شب

دانلود کتاب Writing A Compiler In Go

دانلود کتاب نوشتن یک کامپایلر In Go

Writing A Compiler In Go

مشخصات کتاب

Writing A Compiler In Go

ویرایش:  
نویسندگان:   
سری:  
 
ناشر:  
سال نشر:  
تعداد صفحات: 284 
زبان: English 
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) 
حجم فایل: 2 مگابایت 

قیمت کتاب (تومان) : 41,000



ثبت امتیاز به این کتاب

میانگین امتیاز به این کتاب :
       تعداد امتیاز دهندگان : 12


در صورت تبدیل فایل کتاب Writing A Compiler In Go به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.

توجه داشته باشید کتاب نوشتن یک کامپایلر In Go نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.


توضیحاتی در مورد کتاب نوشتن یک کامپایلر In Go

این دنباله نوشتن یک مترجم در حرکت است. ما درست از جایی که کار را ترک کردیم ادامه می دهیم و یک کامپایلر و یک ماشین مجازی برای Monkey می نویسیم. کدهای قابل اجرا و آزمایش شده در جلو و مرکز، ساخته شده از پایه، گام به گام - درست مانند قبل. اما این بار، ما قصد داریم بایت کد را تعریف کنیم، Monkey را کامپایل کرده و آن را در ماشین مجازی خودمان اجرا کنیم. این مرحله بعدی در تکامل میمون است. این عاقبت ... یک زبان برنامه نویسی است Writing A Compiler In Go دنباله Writing An Interpreter In Go است. درست از جایی شروع می شود که اولین مورد متوقف شد، با یک مترجم کاملاً کارآمد و کاملاً آزمایش شده Monkey در دست، هر دو کتاب را به طور یکپارچه به هم متصل می کند، آماده ساخت یک کامپایلر و یک ماشین مجازی برای Monkey است. در این کتاب از کد بیس (که در کتاب موجود است!) از قسمت اول استفاده کرده و آن را گسترش می دهیم. ما lexer، تجزیه‌کننده، AST، REPL و سیستم شی را می‌گیریم و از آنها برای ساختن یک پیاده‌سازی جدید و سریع‌تر از Monkey، درست در کنار ارزیابی‌کننده درختی که در کتاب اول ساخته‌ایم استفاده می‌کنیم. رویکرد نیز بدون تغییر است. کد کار و آزمایش شده تمرکز است، ما همه چیز را از ابتدا می‌سازیم، مراحل اولیه را انجام می‌دهیم، ابتدا تست‌ها را می‌نویسیم، از کتابخانه‌های شخص ثالث استفاده نمی‌کنیم و می‌بینیم و درک می‌کنیم که چگونه همه قطعات با هم هماهنگ می‌شوند. این ادامه در نثر و رمز است. آیا لازم است قبل از این قسمت اول را بخوانید؟ اگر با کد کتاب اول به عنوان جعبه سیاه برخورد نمی کنید، خیر. اما موضوع این کتاب ها این نیست. آنها در مورد باز کردن جعبه های سیاه، نگاه کردن به داخل و تابش نور هستند. اگر بدانید در این کتاب از کجا شروع کرده ایم، بهترین درک را خواهید داشت. یاد بگیرید که چگونه یک کامپایلر و یک ماشین مجازی بنویسید هدف اصلی ما در این کتاب تکامل میمون است. معماری آن را تغییر می دهیم و آن را به یک کامپایلر بایت کد و ماشین مجازی تبدیل می کنیم. ما lexer، تجزیه‌کننده، AST و سیستم شی را که در کتاب اول نوشته‌ایم می‌گیریم و از آنها برای ساختن کامپایلر Monkey و ماشین مجازی خودمان استفاده می‌کنیم... از ابتدا! ما آنها را در کنار هم خواهیم ساخت تا همیشه یک سیستم در حال اجرا داشته باشیم که بتوانیم به طور پیوسته آن را تکامل دهیم. چیزی که در نهایت به آن می‌رسیم نه تنها به زبان‌های برنامه‌نویسی که هر روز استفاده می‌کنیم نزدیک‌تر است و به ما درک بهتری از نحوه کار آنها می‌دهد، بلکه 3 برابر سریع‌تر است. و این بدون هدف صریح برای عملکرد است. در اینجا کاری است که ما انجام خواهیم داد: - ما دستورالعمل های بایت کد خود را تعریف می کنیم و عملوندها و رمزگذاری آنها را مشخص می کنیم. در طول مسیر، یک مینی جداکننده هم برای آنها می سازیم. - ما یک کامپایلر می نویسیم که یک Monkey AST را می گیرد و با انتشار دستورالعمل ها آن را به بایت کد تبدیل می کند. - در همان زمان ما یک ماشین مجازی مبتنی بر پشته می سازیم که بایت کد را در حلقه اصلی خود اجرا می کند. ما چیزهای زیادی در مورد کامپیوترها، نحوه کار آنها، کدهای ماشین و کدهای عملیاتی، چیدمان پشته و نحوه کار با نشانگرهای پشته و نشانگرهای فریم، تعریف قرارداد فراخوانی و خیلی چیزهای دیگر خواهیم آموخت. ما همچنین - یک میز نماد و یک استخر ثابت بسازید - انجام محاسبات پشته ای - دستورالعمل های پرش را تولید کنید - فریم هایی را در ماشین مجازی خود بسازید تا توابع را با پیوندها و آرگومان های محلی اجرا کنید! - توابع داخلی را به VM اضافه کنید - بسته های واقعی را که در ماشین مجازی کار می کنند، دریافت کنید و یاد بگیرید که چرا کامپایل بستن بسیار مشکل است


توضیحاتی درمورد کتاب به خارجی

This is the sequel to Writing An Interpreter In Go. We're picking up right where we left off and write a compiler and a virtual machine for Monkey. Runnable and tested code front and center, built from the ground up, step by step — just like before. But this time, we're going to define bytecode, compile Monkey and execute it in our very own virtual machine. It's the next step in Monkey's evolution. It's the sequel to … a programming language Writing A Compiler In Go is the sequel to Writing An Interpreter In Go. It starts right where the first one stopped, with a fully-working, fully-tested Monkey interpreter in hand, connecting both books seamlessly, ready to build a compiler and a virtual machine for Monkey. In this book, we use the codebase (included in the book!) from the first part and extend it. We take the lexer, the parser, the AST, the REPL and the object system and use them to build a new, faster implementation of Monkey, right next to the tree-walking evaluator we built in the first book. The approach is unchanged, too. Working, tested code is the focus, we build everything from scratch, do baby steps, write tests firsts, use no 3rd-party-libraries and see and understand how all the pieces fit together. It's a continuation in prose and in code. Do you need to read the first part before this one? If you're okay with treating the code from the first book as black box, then no. But that's not what these books are about; they're about opening up black boxes, looking inside and shining a light. You'll have the best understanding of where we're going in this book, if you know where we started. Learn how to write a compiler and a virtual machine Our main goal in in this book is to evolve Monkey. We change its architecture and turn it into a bytecode compiler and virtual machine. We'll take the lexer, the parser, the AST and the object system we wrote in the first book and use them to build our own Monkey compiler and virtual machine … from scratch! We'll build them side-by-side so that we'll always have a running system we can steadily evolve. What we end up with is not only much closer to the programming languages we use every day, giving us a better understanding of how they work, but also 3x faster. And that's without explicitly aiming for performance. Here's what we'll do: - We define our own bytecode instructions, specifying their operands and their encoding. Along the way, we also build a mini-disassembler for them. - We write a compiler that takes in a Monkey AST and turns it into bytecode by emitting instructions - At the same time we build a stack-based virtual machine that executes the bytecode in its main loop We'll learn a lot about computers, how they work, what machine code and opcodes are, what the stack is and how to work with stack pointers and frame pointers, what it means to define a calling convention, and much more. We also - build a symbol table and a constant pool - do stack arithmetic - generate jump instructions - build frames into our VM to execute functions with local bindings and arguments! - add built-in functions to the VM - get real closures working in the virtual machine and learn why closure-compilation is so tricky



فهرست مطالب

Acknowledgments
Introduction
	Evolving Monkey
		The Past and Present
		The Future
	Use This Book
Compilers & Virtual Machines
	Compilers
	Virtual and Real Machines
		Real Machines
		What Is a Virtual Machine?
		Why Build One?
		Bytecode
	What We're Going to Do, or: the Duality of VM and Compiler
Hello Bytecode!
	First Instructions
		Starting With Bytes
		The Smallest Compiler
		Bytecode, Disassemble!
		Back to the Task at Hand
		Powering On the Machine
	Adding on the Stack
	Hooking up the REPL
Compiling Expressions
	Cleaning Up the Stack
	Infix Expressions
	Booleans
	Comparison Operators
	Prefix Expressions
Conditionals
	Jumps
	Compiling Conditionals
	Executing Jumps
	Welcome Back, Null!
Keeping Track of Names
	The Plan
	Compiling Bindings
		Introducing: the Symbol Table
		Using Symbols in the Compiler
	Adding Globals to the VM
String, Array and Hash
	String
	Array
	Hash
	Adding the index operator
Functions
	Dipping Our Toes: a Simple Function
		Representing Functions
		Opcodes to Execute Functions
		Compiling Function Literals
		Compiling Function Calls
		Functions in the VM
		A Little Bonus
	Local Bindings
		Opcodes for Local Bindings
		Compiling Locals
		Implementing Local Bindings in the VM
	Arguments
		Compiling Calls With Arguments
		Resolving References to Arguments
		Arguments in the VM
Built-in Functions
	Making the Change Easy
	Making the Change: the Plan
	A New Scope for Built-in Functions
	Executing built-in functions
Closures
	The Problem
	The Plan
	Everything's a closure
	Compiling and resolving free variables
	Creating real closures at run time
	Recursive Closures
Taking Time
Resources
Feedback
Changelog




نظرات کاربران