mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-11 15:51:16 +00:00
first
This commit is contained in:
24
course/1-intro/exercises/7b-lang_compare_compiled/readme.md
Normal file
24
course/1-intro/exercises/7b-lang_compare_compiled/readme.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Compiled vs Interpreted
|
||||
|
||||
Compiled programs can be run without access to the original source code, and without access to a compiler. For example, when your browser executes the code you write in this course, it doesn't use the original code, just the compiled result.
|
||||
|
||||
Note how this is different than interpreted languages like Python and JavaScript. With Python and JavaScript the code is interpreted at [runtime](https://en.wikipedia.org/wiki/Runtime_(program_lifecycle_phase)) by a separate program known as the "interpreter". Distributing code for users to run can be a pain because they need to have an interpreter installed, and they need access to the original source code.
|
||||
|
||||
## Examples of compiled languages
|
||||
|
||||
* Go
|
||||
* C
|
||||
* C++
|
||||
* Rust
|
||||
|
||||
## Examples of interpreted languages
|
||||
|
||||
* JavaScript
|
||||
* Python
|
||||
* Ruby
|
||||
|
||||

|
||||
|
||||
## Why build Textio in a compiled language?
|
||||
|
||||
One of the most convenient things about using a compiled language like Go for Textio is that when we deploy our server we don't need to include any runtime language dependencies like Node or a Python interpreter. We just add the pre-compiled binary to the server and start it up!
|
||||
Reference in New Issue
Block a user