Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,18 @@ This means that you can carry on splitting as much as you like.
const var [[[getScore, setScore], setScore], setScore] = use(0)!
```

## Almost-In-Time

Gulf of Mexico cares about speed above all else, so we use Almost-In-Time code execution. You can annotate functions that need to finish within a certain time frame with a `function lifetime`. If the lifetime is reached before the function finished, a random value from the return type's possible values is returned.

```java
function slow<5s>(a: Int, b: Int): Int => {
return a + b! // Or anything else if the calculation is slower than 5 seconds
}
```

**Technical info:** As Type annotations are actually ignored, we just return two random bytes, which should be valid values for all types.

## AI

Gulf of Mexico features AEMI, which stands for Automatic-Exclamation-Mark-Insertion. If you forget to end a statement with an exclamation mark, Gulf of Mexico will helpfully insert one for you!
Expand Down
2 changes: 1 addition & 1 deletion test/test/test/test/test/test/test/test/test/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Too far! You failed the test.

Did you cheat by skipping to the end?

Number of people who cheated by skipping to the end: 119
Number of people who cheated by skipping to the end: 120

Please submit a PR to update the above count as appropriate.