GithubHelp home page GithubHelp logo

Comments (9)

owickstrom avatar owickstrom commented on July 4, 2024 2

Cool! Ping me if there's anything you need help/feedback on.

from purescript-spec.

owickstrom avatar owickstrom commented on July 4, 2024 1

Thanks! Would be very cool to have it running on purerl. I have almost zero experience with Erlang, but if you (and/or others) can do the heavy lifting, then sure!

So, purescript-js-timers could be removed as in #62, that seems all right. And you did the -ansi conversion as well. Are there other problematic ones? I see the purerl organization has a bunch of common libraries ported.

I'll try building and running your PRs!

from purescript-spec.

joneshf avatar joneshf commented on July 4, 2024

There is dateNow: https://github.com/owickstrom/purescript-spec/blob/557bec79c7d88bfd24764e5b6ab3ba2fc5c6e87b/src/Test/Spec/Runner.js#L6-L8. That could be replaced with https://pursuit.purescript.org/packages/purescript-now/3.0.0/docs/Control.Monad.Eff.Now#v:now

There are two spots that still use process:

The write one feels like it could be replaced with Console.log, but it might take changing how write is used.

The exit one is a bigger problem. If it was just node that was the thing, I'd suggest having a library for dealing with process stuff and letting that be FFI'd in each backend. But phantom doesn't require an entirely new backend to compile it, so it's harder to suggest that. Although, if it were a thing, this function (in a completely different library) could go away as well: https://pursuit.purescript.org/packages/purescript-test-unit/13.0.0/docs/Test.Unit.Main#v:exit

I don't know that splitting this library into the plain PS stuff and the JS FFI'd stuff is a good idea either. Seems like purerl should just maintain a fork at that point.

So I'm leaning toward:

  • Submitting a PR to use purescript-now
  • Maintaining a fork of this repo for the purerl process stuff.

from purescript-spec.

owickstrom avatar owickstrom commented on July 4, 2024

OK, not that much at least.

It seems these are so small and few, and they aren't changing much, so may the third alternative be that we add the .erl FFI modules directly in this repository? I could give you push access so that you could maintain the Erlang stuff here, if you'd like?

from purescript-spec.

joneshf avatar joneshf commented on July 4, 2024

That's definitely an option. I would only feel comfortable doing that if the travis stuff could be integrated as well. I guess that means we'd have to have binaries for purerl ready to go (we should have that anyway). I don't know how much an increase on build times that would make either. Are you okay with the build also doing Erlang stuff?

from purescript-spec.

owickstrom avatar owickstrom commented on July 4, 2024

@joneshf Agreed, a Travis build would be important. I think if we use a build matrix we could run them in parallel, and keep the time down. It would probably increase the complexity of the build configuration, but I'm all right with that.

from purescript-spec.

owickstrom avatar owickstrom commented on July 4, 2024

Do you have such a build set up for any other purerl projects?

from purescript-spec.

joneshf avatar joneshf commented on July 4, 2024

I don't, I should try to throw one together though.

from purescript-spec.

safareli avatar safareli commented on July 4, 2024

As an update in case someone want's to pick this up, this are all FFI files at the moment in v4.0.0-rc1:

https://github.com/purescript-spec/purescript-spec/blob/v4.0.0-rc1/src/Test/Spec/Assertions/String.js
https://github.com/purescript-spec/purescript-spec/blob/v4.0.0-rc1/src/Test/Spec/Runner.js
https://github.com/purescript-spec/purescript-spec/blob/v4.0.0-rc1/src/Test/Spec/Console.js

from purescript-spec.

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.