Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8430887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:42:27+00:00 2026-06-10T05:42:27+00:00

The design of GHC is based on something called STG, which stands for spineless,

  • 0

The design of GHC is based on something called STG, which stands for “spineless, tagless G-machine”.

Now G-machine is apparently short for “graph reduction machine”, which defines how laziness is implemented. Unevaluated thunks are stored as an expression tree, and executing the program involves reducing these down to normal form. (A tree is an acyclic graph, but Haskell’s pervasive recursion means that Haskell expressions form general graphs, hence graph-reduction and not tree-reduction.)

What is less clear are the terms “spineless” and “tagless”.

  1. I think that “spineless” refers to the fact that function applications do not have a “spine” of function application nodes. Instead, you have an object that names the function called and points to all of its arguments. Is that correct?

  2. I thought that “tagless” referred to constructor nodes not being “tagged” with a constructor ID, and instead case-expressions are resolved using a jump instruction. But now I’m not sure that’s correct. Instead, it seems to refer to the fact that nodes aren’t tagged with their evaluation state. Can anyone clarify which (if any) of these interpretations is correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:42:28+00:00Added an answer on June 10, 2026 at 5:42 am

    GHC wiki contains an introductory article about STG written by Max Bolingbroke:

    The STG machine is an essential part of GHC, the world’s leading
    Haskell compiler. It defines how the Haskell evaluation model should
    be efficiently implemented on standard hardware. Despite this key
    role, it is generally poorly understood amongst GHC users. This
    document aims to provide an overview of the STG machine in its modern,
    eval/apply-based, pointer-tagged incarnation by a series of simple
    examples showing how Haskell source code is compiled.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Design wise and performance wise which approach is recommended for handling multiple Zeromq sockets
Using design-time data for my Windows Phone Apps which works fine for string ,
Which design pattern should I use for a very simple Object-oriented todo list? Initially
In the concurrency library GHC.Conc there is a function called numCapabilities . Its type
The design of the UITableView is something like this: I want to make my
Design an algorithm to find all pairs of integers within an array which sum
Design question: I have ViewController A which contains an NSMutableArray*. The ViewController A is
Quick design question. ClassA has a method called DoSomething(args) In DoSomething(), before it can
Design class which is generated by C# : // // usepurposeComboBox // this.usepurposeComboBox.DataSource =
related Design Strongly typed object from XML Currently we run stored procedures based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.