Comments (9)
Diana is yet another goal and not related to purescript python. The new purescript python will be almost compatible to the old.
from purescript-python.
Thanks for this clarified bug report.
I'm sorry that PureScript Python is currently outdated and only works with older purescript compilers and package-sets.
from purescript-python.
I still get a segfault with an older version of the purescript compiler. Perhaps I need to downgrade spago too?
> purs --version
0.13.6
> spago --version
0.20.3
> pspy --version
0.8.9
Steps:
(I no longer get the first and second errors in the appendix above)
git clone https://github.com/purescript-python/example-hw
cd example-hw
spago install maybe
# Edit src/Main.purs as above
spago build && pspy --run
Edit: tried with spago version 0.13.1 and it still segfaults
What's the latest version purescript compiler version that's supported by purescript-python?
from purescript-python.
@akazukin5151 What is your Python version? Runtime segfaults seem to be caused by incorrect bytecode generation.
from purescript-python.
Oh, it's Python 3.9.1. I use conda so I can easily downgrade. What version is supported?
from purescript-python.
Python 3.8 is the maximum supported version. Besides, version 0.13.8 is the latest supported PureScript compiler:
Line 6 in de37323
from purescript-python.
It worked, thanks. We should at least mention the version requirements in the README?
There's still this warning though, but not essential:
/home/twenty/example-hw/example_hw/ffi/Data/Ord.py:22: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if o is not 0:
from purescript-python.
You are welcome.
We should at least mention the version requirements in the README?
Yes. Maybe you send a PR? I personally do not want to work further on the current implementation -- I'm trying to bump up the compiler and switch to a brand-new implementation that is more maintainable.
There's still this warning though ..
We optimize comparisons for small integers, but Python 3.8 emits "excessive" warnings. To avoid such warnings, you can import your purescript code into python after executing the following statements.
import warnings
warnings.filterwarnings('ignore', category=SyntaxWarning, message='"is" with a literal')
from purescript-python.
Looking at the new branch, are you going to replace everything related to Python into Diana? Will people be able to continue using the old purescript-python?
from purescript-python.
Related Issues (20)
- avoid generating pretty-printed SExpr
- use passing directory for CI build HOT 6
- CI build error
- register concerned ffi-repos and fix ci HOT 1
- Could have other/original licence HOT 4
- Implementing FFI for external packages HOT 7
- purescript-python up-to-date HOT 1
- Nix-based installer
- unicode string representation HOT 1
- A tracker for the membership of purescript-python organization
- Better debugging when lambdas are called HOT 4
- spago run does codegen HOT 2
- Optimizations to avoid python recursion limit HOT 3
- Troubleshoot: Execution Not Sync to Latest Code HOT 1
- spago passing arguments to 'pspy --run'
- Code is generated on "spago run" (expected that to happen on "spago build") HOT 2
- Documenting how to construct algebraic datatypes from python HOT 5
- How to make it support windows platform? HOT 2
- Trying to run a helloworld program, get "Backend "pspy" exited with error:2" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from purescript-python.