ArticleslgStudy

computer science

BLISS

BLISS is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand BLISS rather than just read about it. In short: BLISS is a system programming language developed at Carnegie Mellon University (CMU) by W. A.

Key takeaways

  • BLISS belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect BLISS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of BLISS from memory before moving on to harder problems.

Reference excerpt

BLISS is a system programming language developed at Carnegie Mellon University (CMU) by W. A. Wulf, D. B. Russell, and A. N. Habermann around 1970. It was perhaps the best known system language until C debuted a few years later, after which C became common and BLISS faded into obscurity. BLISS is a typeless block-structured programming language based on expressions rather than statements, and includes constructs for exception handling, coroutines, and macros. It does not include a goto statement. The name is variously said to be short for Basic Language for Implementation of System Software or System Software Implementation Language, Backwards. However, in his 2015 oral history for the Babbage Institute's Computer Security History Project, Wulf claimed that the acronym was originally based on the name "Bill's Language for Implementing System Software." The original Carnegie Mellon compiler was notable for its extensive use of optimizations, and formed the basis of the classic book The Design of an Optimizing Compiler. Digital Equipment Corporation (DEC) developed and maintained BLISS compilers for the PDP-10, PDP-11, VAX, DEC PRISM, MIPS, DEC Alpha, and Intel IA-32, The language did not become popular among customers and few had the compiler, but DEC used it heavily in-house into the 1980s; most of the utility programs for the OpenVMS operating system were written in BLISS-32. The DEC BLISS compiler has been ported to the IA-64 and x86-64 architectures as part of the ports of OpenVMS to these platforms. The x86-64 BLISS compiler uses LLVM as its backend code generator, replacing the proprietary GEM backend used for Alpha and IA-64.

Language description

BLISS has many of the features of other modern high-level languages. It has block structure, an automatic stack, and mechanisms for defining and calling recursive routines ... provides a variety of predefined data structures and ... facilities for testing and iteration ... On the other hand, BLISS omits certain features of other high-level languages. It does not have built-in facilities for input/output, because a system-software project usually develops its own input/output or builds on basic monitor I/O or screen management services ... it permits access to machine-specific features, because system software often requires this. BLISS has characteristics that are unusual among high-level languages. A name ... is uniformly interpreted as the address of that segment rather than the value of the segment ... Also, BLISS is an "expression language" rather than a "statement language". The BLISS language has the following characteristics:

All constants are full word for the machine being used, e.g. on a 16-bit machine such as the PDP-11, a constant is 16 bits; on a VAX computer, constants are 32 bits, and on a PDP-10, a constant is 36 bits. A reference to a variable is always to the address of that variable. For example, the instruction Z+8 refers to adding 8 to the address of Z, not to its value. If one needs to add 8 to the value of Z, one must prefix the variable with a period; so one would type .Z+8 to perform this function, which adds 8 to the contents of Z. Assignment is done with the standard = symbol, e.g. Z=8 – which says to create a full-word constant containing 8, and store it in the location whose address corresponds to that of Z. So Z+12=14 (or, alternatively 12+Z=14 though this form is considered bad practice per the BLISS documentation in Digital) places the constant 14 into the location which is 12 words after the address of Z. Block statements are similar to those of ALGOL: a block is started with a BEGIN statement and terminated with END. As with ALGOL, statements are separated with the semicolon (";"). When a value is computed, it is saved until the next statement terminator – which means that a value can be computed, assigned to a variable, and carried forward to the next statement, if desired. Alternatively, an open parenthesis may be used to begin a block, with the close parenthesis used to close the block. When parentheses are included in an expression, the standard precedence rules are used, in which parenthesized expressions are computed first, Conditional execution uses the IF expression, which tests a true-false condition, performs alternative actions, and returns a result. Comparison uses keywords such as EQL for equality (as opposed to overloading the = symbol for the same purpose), GTR for Greater Than, and NEQ for not equal. For example, the following code will assign the absolute value of Z to the address indicated by Q: Q = (IF .Z GTR 0 THEN .Z ELSE -.Z); Identifiers (variables and constants) must be declared before use, typically using the OWN keyword. Declaring a variable normally causes the compiler to allocate space for it; when necessary, a variable may be assigned a fixed machine address via the BIND declaration. This feature is primarily used for accessing either machine registers or certain special addresses. Subroutines in the language are called routines, and are declared with the keyword ROUTINE. Macros, which allow for text substitution, are declared with the keyword MACRO. The language supports arrays, which are referred to as structures, and declared with the keyword VECTOR. The language supports some high-level programming language constructs such as: Alternative execution paths via the CASE expression Looping through use of the INCR expression, which is similar to ALGOL's FOR statement Built-in string functions Certain automatic data conversions (number to string, etc.)

Source example The following example is taken verbatim from the Bliss Language Manual:

Versions BLISS-10 dialect: BLISS-10 - CMU's native compiler for the PDP-10 BLISS-11 dialect: BLISS-11 - CMU's PDP-10-hosted cross compiler for the PDP-11 Common BLISS dialect (all DEC compilers): BLISS-16 - A VMS-hosted cross compiler for the PDP-11 BLISS-16C - A PDP-10-hosted translator from a subset of Common BLISS to BLISS-11 BLISS-32 - A native compiler for VAX/VMS BLISS-36C - A PDP-10-hosted translator from a subset of Common BLISS to BLISS-10. BLISS-36 - A native compiler for the PDP-10 BLISS-32EN - A native 32-bit compiler for Alpha/AXP BLISS-64EN - A native 64-bit compiler for Alpha/AXP BLISS-32IN - A native 32-bit compiler for IA64 BLISS-64IN - A native 64-bit compiler for IA64 BLISS-32XN - A native 32-bit compiler for x86-64 BLISS-64XN - A native 64-bit compiler for x86-64

Notes

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with BLISS

Start with the simplest possible case. Write down what BLISS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to BLISS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about BLISS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of BLISS

In research
BLISS appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses BLISS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
BLISS is common in secondary-school and first-year university syllabi. It links to neighbouring topics Carnegie Mellon University software, OpenVMS software, Programming languages, so understanding it makes those chapters shorter.
In everyday life
Look for BLISS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “BLISS” →

How to study BLISS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what BLISS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain BLISS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is BLISS in simple terms?

BLISS is a system programming language developed at Carnegie Mellon University (CMU) by W. A.

Why does BLISS matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study BLISS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on BLISS.

Tags

  • Carnegie Mellon University software
  • OpenVMS software
  • Programming languages
  • Programming languages created in 1970
  • Systems programming languages

Keep exploring