Giter Site home page Giter Site logo

Comments (9)

thautwarm avatar thautwarm commented on May 24, 2024 1

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.

thautwarm avatar thautwarm commented on May 24, 2024

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.

akazukin5151 avatar akazukin5151 commented on May 24, 2024

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.

thautwarm avatar thautwarm commented on May 24, 2024

@akazukin5151 What is your Python version? Runtime segfaults seem to be caused by incorrect bytecode generation.

from purescript-python.

akazukin5151 avatar akazukin5151 commented on May 24, 2024

Oh, it's Python 3.9.1. I use conda so I can easily downgrade. What version is supported?

from purescript-python.

thautwarm avatar thautwarm commented on May 24, 2024

Python 3.8 is the maximum supported version. Besides, version 0.13.8 is the latest supported PureScript compiler:

- purescript-0.13.8@sha256:c2855514c6f7da4b5f5e3b1020597111d2982b69f460d1c33b7e9f6c9ea8159c,57030

from purescript-python.

akazukin5151 avatar akazukin5151 commented on May 24, 2024

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.

thautwarm avatar thautwarm commented on May 24, 2024

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.

akazukin5151 avatar akazukin5151 commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.