Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gleam #415

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Add Gleam #415

wants to merge 5 commits into from

Conversation

jinyus
Copy link
Owner

@jinyus jinyus commented Nov 9, 2023

This very is very slow (takes 7s to process 1 post).

It's very hard to optimize because there're no mutable data structures in the language.

There're also no normal loops or if statements.

@lpil
Copy link

lpil commented Nov 14, 2023

Hi there! I'd recommend copying the Erlang one as algorithm used is perfectly suited to Gleam. https://github.com/jinyus/related_post_gen/blob/main/erlang/src/related_erl.erl

The algorithm here is one that is intended for mutable imperative languages so it will be catastrophically slow in Gleam.

@jinyus
Copy link
Owner Author

jinyus commented Nov 15, 2023

@lpil man that erlang syntax is giving me an aneurysm, will try though

@cyrusmsk
Copy link
Contributor

Gleam is now 1.0

@grigio
Copy link

grigio commented May 27, 2024

+1 for Gleam

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.

4 participants