Skip to content

Commit

Permalink
modify example/gmachine struture
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreess committed Dec 3, 2024
1 parent 0f24e35 commit 9da4706
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion next/tutorial/example/gmachine/gmachine-1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# G-Machine 1

Lazy evaluation stands as a foundational concept in the realm of programming languages. Haskell, renowned as a purely functional programming language, boasts a robust lazy evaluation mechanism. This mechanism not only empowers developers to craft code that's both more efficient and concise but also enhances program performance and responsiveness, especially when tackling sizable datasets or intricate data streams. In this article, we'll delve into the Lazy Evaluation mechanism, thoroughly examining its principles and implementation methods, and then explore how to implement Haskell's evaluation semantics in [MoonBit](https://www.moonbitlang.com/).
This article is the first in the series on implementing lazy evaluation in MoonBit. In this article, we will exploring the purposes of lazy evaluation and a typical abstract machine for lazy evaluation, the G-Machine.

## Higher-Order Functions and Performance Challenges

Expand Down
4 changes: 4 additions & 0 deletions next/tutorial/example/gmachine/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# G-Machine

Lazy evaluation stands as a foundational concept in the realm of programming languages. Haskell, renowned as a purely functional programming language, boasts a robust lazy evaluation mechanism. This mechanism not only empowers developers to craft code that's both more efficient and concise but also enhances program performance and responsiveness, especially when tackling sizable datasets or intricate data streams.

In this article, we'll delve into the Lazy Evaluation mechanism, thoroughly examining its principles and implementation methods, and then explore how to implement Haskell's evaluation semantics in [MoonBit](https://www.moonbitlang.com/).

```{toctree}
:maxdepth: 2
:caption: Contents:
Expand Down

0 comments on commit 9da4706

Please sign in to comment.