4 ms·
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 ado
by natrys 5y ago
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.
- lpil 5y agoThis 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 https://www.youtube.com/watch?v=UCIcJBM_YDw [2]: https://github.com/gleam-lang/plug/ https://github.com/gleam-lang/plug/
- nestorD 5y ago> 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_users/index.html https://docs.rs/ndarray/0.15.1/ndarray/doc/ndarray_for_numpy...
- yewenjie 5y agoIs 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++).
- lpil 5y agoThere's not really any tutorials yet I'm afraid. I'm working on it though!
- majjgepolja 5y agohttps://lucumr.pocoo.org/2015/5/27/rust-for-pythonistas/ https://lucumr.pocoo.org/2015/5/27/rust-for-pythonistas/ This is an intro blog post though, perhaps you expected some more depth.
- garyrob 5y agoI 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.
- lpil 5y agoA good point, thank you! We'll have to refine that.