Skip to content

Add examples parallel_sum and sequential_sum - #601

Closed
anacrolix wants to merge 1891 commits into
bendlang:mainfrom
anacrolix:anacrolix
Closed

anacrolix wants to merge 1891 commits into
bendlang:mainfrom
anacrolix:anacrolix

Conversation

@anacrolix

Copy link
Copy Markdown

Add the examples from the README. This makes it much easier to get up and running.

Perhaps the README could refer to the examples directly in a later change.

nicolas-abril and others added 30 commits May 22, 2024 19:59
Update docs, update examples, fix scope of fork
Add guide examples to the tests, fix miscompilation of **
Changes some styles and enforces following of guidelines on issue openings
Co-authored-by: Nicolas Abril <y906846m@anonaddy.me>
Co-authored-by: Nicolas Abril <y906846m@anonaddy.me>
Fixed typo in examples/parallel_and.bend
…th-double-slash

Dont allow top level names start with '//'
nicolas-abril and others added 25 commits June 15, 2024 17:22
…write-raw-hvm-in-bend-programs

bendlang#586 Add raw hvm function syntax
…efore-linearize-matches

Call desugar_use before linearize matches
…-sleep-functions

bendlang#581 Add builtin sleep in float seconds
@anacrolix

Copy link
Copy Markdown
Author

Bump

@nicolas-abril nicolas-abril left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry we didn't get to your PR earlier, I just forgot about it.

We already have a parallel sum example (it just used to have a bad file name).

For the sequential sum, I'd rather it be part of the parallel sum example, with an explanation of the difference between the two and a suggestion for users to try sswapping between the two functions and seeing the difference.

That way it's more educational and also avoids polluting the examples with trivial things.

@VictorTaelin

Copy link
Copy Markdown
Contributor

Bend is being reorganized. This repository (bendlang/bend) now belongs to Bend 2, a new implementation written from scratch, coming soon. Bend 1 lives on with its full history at https://github.com/HigherOrderCO/Bend1. We are closing every Bend 1 issue and pull request here: if this one still applies to Bend 1, please re-open it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.