Programming languages, translators and IDEs
Diperkenalkan
8:28
Perangkat Keras & Perangkat Lunak
Berikut adalah komputer baru. Setiap bagian fisik berfungsi — prosesor, memori, layar, keyboard. Nyalakan, dan tidak terjadi apa-apa. Tidak ada desktop…
Narasi bahasa Inggris · takarir bahasa Inggris dan 中文 yang dapat dipilih
Dalam pelajaran ini
| English | Makna |
|---|---|
| translator/trænˈsleɪtə/ | program penerjemah |
| programs/ˈprəʊɡræmz/ | A set of instructions specifying operations for a computer to carry out. |
| programming language/ˈprəʊɡræmɪŋ ˈlæŋɡwɪdʒ/ | bahasa pemrograman |
| CPU/ˌsiː piː ˈjuː/ | |
| machine code/məˈʃiːn kəʊd/ | kode mesin |
| high-level language/haɪ ˈlevl ˈlæŋɡwɪdʒ/ | bahasa tingkat tinggi |
| portable/ˈpɔːtəbl/ | |
| low-level language/ləʊ ˈlevl ˈlæŋɡwɪdʒ/ | bahasa tingkat rendah |
| hardware/ˈhɑːdweə/ | |
| binary/ˈbaɪnəri/ | A number system using base two, with the digits zero and one. |
| assembly language/əˈsemblɪ ˈlæŋɡwɪdʒ/ | bahasa perakitan |
| mnemonics/nɪˈmɒnɪks/ | |
| compiler/kəmˈpaɪlə/ | kompiler |
| interpreter/ɪnˈtɜːprɪtə/ | penerjemah |
| Errors | |
| integrated development environment/ˈɪntɪɡreɪtɪd dɪˈveləpmənt enˈvaɪrənmənt/ | lingkungan pengembangan terintegrasi |
| code editor/kəʊd ˈedɪtə/ | A tool for writing and modifying source code, often with features that help identify its structure or mistakes. |
| run-time environment | |
| error diagnostics/ˈerə ˌdaɪəɡˈnɒstɪks/ | |
| auto-completion/correction | |
| prettyprinting/ˈpretɪprɪntɪŋ/ | |
| executable file | |
| source code/sɔːs kəʊd/ |
Bahasa dan penerjemah
- Orang menulis program dalam bahasa pemrograman; CPU menjalankan kode mesin.
- Bahasa bisa tinggi atau rendah.
- Penerjemah mengubah program menjadi kode mesin — dan IDE membantu Anda menuliskannya.
Laboratorium konsep komputasi
Classify concrete examples by the computing idea they demonstrate.
Tinggi vs Rendah
- Bahasa tingkat tinggi (mis. Python) mirip bahasa Inggris — mudah ditulis/diperbaiki dan portabel (berjalan di komputer berbeda).
- Bahasa tingkat rendah dekat dengan perangkat keras: kode mesin (biner, dijalankan langsung oleh CPU) dan bahasa assembly (mnemonics untuk kode mesin).
- Kode tingkat rendah bersifat spesifik CPU — digunakan ketika Anda butuh kontrol penuh perangkat keras atau kode yang sangat cepat dan kecil.

Bahasa tingkat tinggi dekat dengan bahasa manusia dan portabel; bahasa tingkat rendah (assembly dan kode mesin) dekat dengan perangkat keras dan terikat pada satu CPU

Komiler menerjemahkan seluruh program sekali menjadi kode mesin; interpreter menerjemahkan dan menjalankan satu baris sekaligus.
A high-level language (like Python):
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
High-level languages are easy to read/write and portable; low-level languages are CPU-specific.
Compiler vs interpreter
| Compiler | Interpreter | |
|---|---|---|
| Menerjemahkan | seluruh program sekaligus | satu baris pada satu waktu |
| Kesalahan | semua dilaporkan di akhir | berhenti pada kesalahan pertama |
| Program selesai | berjalan cepat, tidak perlu penerjemah | lebih lambat, memerlukan interpreter |
- Gunakan compiler untuk membagikan program selesai yang cepat; gunakan interpreter saat menulis dan menguji.

Sistem operasi adalah perangkat lunak — program yang memberi tahu perangkat keras apa yang harus dilakukan.

Match each term to what it is.
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
High-level → readable; machine code → binary; a compiler translates once, an interpreter goes line by line.
A compiler:
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
A compiler translates everything once into a fast stand-alone program; an interpreter goes line by line.
An interpreter translates the whole program once, so it runs fast without the interpreter; a compiler translates line by line.
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
False. They are swapped: a compiler translates the whole program once and the result runs without it, while an interpreter translates and runs line by line, stopping at the first error.
Lingkungan pengembangan terintegrasi (IDE)
- IDE menyatukan alat-alat untuk menulis program dalam satu tempat:
- editor kode, lingkungan waktu-eksekusi, penerjemah, diagnostik kesalahan, penyelesaian/koreksi otomatis, dan pemformatan rapi (warna + indentasi yang rapi).

Perangkat keras adalah bagian fisik; perangkat lunak adalah program-programnya

Which is a feature of an IDE?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
An IDE bundles an editor, translator, run-time, diagnostics, auto-complete and prettyprinting.
Kartu ini baru, jadi ditampilkan dalam bahasa Inggris sampai terjemahannya siap.
Worked example: choosing a translator
A team is writing a game. While they are developing it they test small changes often; at the end they will sell it to customers. Which translator suits each stage?
- During development: an interpreter. It runs the code line by line straight away and stops at the first error, showing where it is, so each small change can be tested quickly.
- For sale: a compiler. It translates the whole program once into an executable file 可执行文件. Customers run it without needing the translator, it runs fast, and the source code 源代码 stays hidden.
Which translator converts assembly language into machine code?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Each assembly mnemonic maps to one machine-code instruction, which an assembler translates.
A compiler reports all the errors it finds after translating the whole program.
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
An interpreter stops at the first error; a compiler gives an error report for the whole program.
Anda telah memahaminya
- tinggi = mirip bahasa Inggris, portabel; rendah = kode mesin (biner) / assembly, spesifik CPU
- penerjemah mengubah kode menjadi kode mesin; compiler (seluruh program sekaligus) vs interpreter (baris per baris)
- compiler → program selesai yang cepat; interpreter → pengujian yang mudah
- IDE menggabungkan editor, penerjemah, diagnostik, autocomplete, dan pemformatan rapi
Apa yang salah? Hanya tim situs yang dapat melihatnya.