Re: Extracting comments from the source code

2023-01-30 Thread Facundo Domínguez
Thanks folks. I was concerned I might be missing some dedicated way to
achieve the same with the GHC API. I agree there's a fair chance this won't
be noticeable in benchmarks.

Cheers!
Facundo


On Fri, Jan 27, 2023 at 10:15 PM Ben Gamari  wrote:

> Facundo Domínguez  writes:
>
> > Dear GHC devs,
> >
> > I'm trying to port Liquid Haskell to ghc 9.2.5. And having much
> difficulty
> > using the GHC API for a specific task, so I come here to ask about it.
> >
> > As you may know already, Liquid Haskell needs to read special comments
> from
> > Haskell source code which have the form {-@ ... @-}.
> >
> I agree with Santiago here: Data doesn't produce fantiastic code but I
> would guess that the cost of the traversal to collect your signatures
> will be negligible relative to the cost of the work you will later do
> later in your pipeline. I would leave optimising this until you know
> that it is a significant problem.
>
> Cheers,
>
>  - Ben
>
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


[ANNOUNCE] GHC 9.6.1-alpha2 is now available

2023-01-30 Thread Ben Gamari

The GHC team is very pleased to announce the availability of GHC
9.6.1-alpha2. As usual, binaries and source distributions are available
at downloads.haskell.org:

  https://downloads.haskell.org/ghc/9.6.1-alpha2/

Beginning with GHC 9.6.1, GHC can be built as a cross-compiler to
WebAssembly and JavaScript. This is an important step towards robust
support for compiling Haskell to the Web, but there are a few caveats to
be aware of in the 9.6 series:

 - Both the Javascript and WebAssembly backends are still at an early
   stage of development and are present in this release as a technology
   preview

 - Using GHC as a cross-compiler is not as easy as we would like it to
   be; in particular, there are challenges related to Template Haskell.

 - GHC is not yet run-time retargetable; a given GHC binary targets
   exactly one platform, and both WebAssembly and JavaScript are
   considered platforms for this purpose. Cross-compilers must be built
   from source by their users

We hope to lift all of these limitations in future releases.

Additionally, 9.6.1 will include:

 - Significant latency improvements in the non-moving garbage collector

 - Efficient runtime support for delimited continuations

 - Improvements in compiler error messages

 - Numerous improvements in the compiler's memory usage

See the [release notes] for a comprehensive accounting of changes in
this release.

As always, one can find a [migration guide] to aid in transitioning from
older releases on the GHC Wiki. We have also recently started extending
our release process to cover a wider set of Linux distributions. In
particular, we now offer Rocky 8 and Ubuntu 20.04 binary distributions
which cover RedHat-derivative and distributions using older `glibc`
releases (namely 2.27), respectively.

Please do give this release a try and open a [ticket] if you see
anything amiss.

Cheers,

- Ben


[ticket]: https://gitlab.haskell.org/ghc/ghc/issues/
[migration-guide]: https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.6
[release notes]: 
https://downloads.haskell.org/ghc/9.6.1-alpha2/docs/users_guide/9.6.1-notes.html


signature.asc
Description: PGP signature
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: FFI changes?

2023-01-30 Thread Carter Schonwald
Hey domninick: what platform are you using?

Is this on an arm flavor mac?

On Thu, Jan 26, 2023 at 5:00 PM Ben Gamari  wrote:

> Dominick Samperi  writes:
>
> > Hello,
> >
> > I have been working with a program that uses FFI to communicate with R
> > for several years, but today there is a segmentation fault while
> > importing functions or data from R. Before giving up on this project,
> > I'm posting a few detail here, in case anybody has ideas...perhaps
> > something changed with FFI?
> >
> Hi Dominick,
>
> As far as I know nothing should have changed that would break
> previously-correct FFI programs.
>
> More information would be helpful: Which GHC version are you using?
> Which platform are you running on? Can you provide a reproducer?
> If so, please open a ticket [1].
>
> Cheers,
>
> - Ben
>
>
> [1] https://gitlab.haskell.org/ghc/ghc/-/issues/new
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs