Gabriella439 / Gabriella439/Purescript-to-Python

Migration Strategy / What about python libraries?

オープン
#2 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
42
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm really excited about this project. I just started imagining what it would be like to incrementally migrate to Purescript, but I'm a little bit confused.

Suppose I have a big Python project and I want to migrate a single module from Python to Purescript. If this module depends on a handful of other Python libraries I guess there are two options:
1. Replace those library calls with calls to Purescript libs
2. Somehow call the Python libs from the new Purescript code

Both of these options seem a little weird.

Option 1 breaks down if your Python module depends on other Python modules in the same project; it forces you to implement your migration "bottom up". This option also requires us to be able to transpile arbitrary Purescript libs to Python, which might not wind up being supported.

Option 2 is also a bit weird because you're essentially doing FFI which will mark a lot of your values as "impure".

Were you picturing Option 2? I wouldn't be surprised if there are other approaches that I don't see.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。