Hacker News new | past | comments | ask | show | jobs | submit login

The doc contains cheatsheets such as "Gleam for X users" where X is currently Erlang, Elixir, Rust and Python. I think this is a fantastic idea and could be adopted by other language communities!

Might I ask for some more guidelines on how to incrementally incorporate Gleam into existing projects in BEAM languages? A guide on interpolation with a phoenix codebase and toolchain would be wicked cool.




This is certainly something I want to have in future. Being able to add Gleam to an existing Elixir project is something a lot of people have asked for. It is possible today (Quinn did a great talk on this[1]) and there are libraries to help[2], but it's all a bit rough and ready currently.

The focus for now is on Gleam tooling, but once we have that down we can work more on Elixir tooling for Gleam.

[1]: https://www.youtube.com/watch?v=UCIcJBM_YDw [2]: https://github.com/gleam-lang/plug/


> The doc contains cheatsheets such as "Gleam for X users" where X is currently Erlang, Elixir, Rust and Python. I think this is a fantastic idea and could be adopted by other language communities!

The Rust ndarray library as a "ndarray for numpy users" [0] which I thought was a very nice idea to help people from the python world convert their numpy code to Rust.

[0]: https://docs.rs/ndarray/0.15.1/ndarray/doc/ndarray_for_numpy...


I agree, the cheatsheets are great. As a Python developer. the python sheet makes me file like I could dive write in and write a gleam program by having python in mind mind and looking up the gleam equivalent for each line of code.

But where it describes the map-dictionary duality, it says: "There is no map literal syntax in Gleam, and you cannot pattern match on a map. Maps are generally not used much in Gleam, custom types are more common."

But it doesn't say why or how this would be done. It seems that, if this point is going to be mentioned, there should be enough context to make it actionable.


A good point, thank you! We'll have to refine that.


Is there a good Rust for Python developers tutorial anywhere?

Edit: In my experience almost all Rust tutorials are either for complete beginners or for developers with systems programming experience (like C/C++).


https://lucumr.pocoo.org/2015/5/27/rust-for-pythonistas/

This is an intro blog post though, perhaps you expected some more depth.


There's not really any tutorials yet I'm afraid. I'm working on it though!


Wow, thank you so much. Can I sign up somewhere to get updates on that?


It will be announced on the gleam-lang twitter account, on the /r/gleamlang reddit, and on the Gleam Discord https://discord.gg/Fm8Pwmy




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: