[GHC] #8711: StaticValues language extension

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: facundo.dominguez | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------------+------------------------------------- See [http://www.haskell.org/pipermail/glasgow-haskell- users/2014-January/024571.html this thread]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: new Type: feature request | Milestone: Priority: normal | Version: 7.6.3 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * owner: => facundo.dominguez * difficulty: Unknown => Project (more than a week) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: new Type: feature request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * version: 7.6.3 => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: new Type: feature request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: #8107 -------------------------------------+------------------------------------- Changes (by carter): * related: => #8107 Comment: This is somewhat related to my own static data work in-progress. I think that with GHC 7.8, it'd be possible (and valuable) to prototype this proposal as a userland library. Theres a LOT of corner cases that would need to be very very precisely / throughly handled for this to be worth supporting in ghc proper, and I very strongly suspect that with the right (seemingly unrelated) extensions, it'd actually be quite feasible to make this feature request a user land library. namely: making sure that GHC API tooling for supporting dynamic loading and unloading of code works for this use case! see the ObjLink api http://www.haskell.org/ghc/docs/latest/html/libraries/ghc-7.6.3/ObjLink.html and http://www.haskell.org/ghc/docs/latest/html/libraries/ghc-7.6.3/DynamicLoadi... works or not. Mind you, I'd recommend testing out the GHC HEAD / 7.8 variant of the api, because there were a few known issues in 7.6. Theres also some ideas for doing idris style EDSL support (which would kinda look like doing statically typed quasiquoters for haskell expressions) that would support this and a few other use cases quite nicely I think. I understand and appreciate the end goal. I think that the current GHC APIs are enough to support this or something very close to it as a user land library. I'd also say that it'd be instructive to have some very very concrete examples illustrating what (if anything) can't be done currently from a userland perspective. I know for a fact that a number of organizations are using the Obj Loading facilities, or abstractions on top thereof, such as the hint lib http://hackage.haskell.org/package/hint to provide such "computation serialization". These organizations include, but are not limited to Facebook and Soostone. If you have some examples that aren't viable with such an approach, and/or would be much much nicer in your proposed scheme, please share! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: closed Type: feature request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: duplicate | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: #8107 -------------------------------------+------------------------------------- Changes (by carter): * status: new => closed * resolution: => duplicate Comment: Since the only thing lacking in ghc for this proposal to work as a user land lib (as its envisioned) is the static data / value support, and I've some work on that that I hope to be ready and merged in before ghc 7.10 comes around, i'm closing it as a duplicate. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: closed Type: feature request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: duplicate | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: #8107 -------------------------------------+------------------------------------- Changes (by mboes): * cc: 0xbadcode@… (added) Comment: Carter, closing this ticket as "duplicate" of some as of yet completely unspecified, future (!) work of yours with no concrete ETA is really quite rude and territorial. This ticket is about implementing a concrete proposal, which has been made before by others (the distributed-process developers, and the "Towards Haskell in the Cloud" authors). You seem to forget that this ticket is about a feature, independent of any implementation, and moreover independent of who carries it out. If you would like to help implement a feature that covers all the Cloud Haskell use cases, then we'd be happy to collaborate, because this is something that we at Tweag I/O are committed to allocate some of our own resources to have fixed. If that feature moreover happens to cover other use cases related to numeric computations, all the better! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: closed Type: feature request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: duplicate | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: #8107 -------------------------------------+------------------------------------- Comment (by mboes): As it happens, there already exists a ticket for implementing the proposal made in the Cloud Haskell paper, numbered #7015 by Edsko. So let's continue the discussion there. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: closed Type: feature request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: duplicate | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: #8107 -------------------------------------+------------------------------------- Changes (by hyperthunk): * cc: watson.timothy@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: closed Type: feature request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: duplicate | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: #8107 -------------------------------------+------------------------------------- Comment (by carter): the needs of this ticket seem be satisfiable in user land with https://github.com/haskell-distributed/distributed- static/commit/d2bd2ebca5a96ea5df621770e98bfb7a3b745bc7 today. please keep discourse on trac positive and constructive. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8711: StaticValues language extension -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: closed Type: feature request | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: duplicate | Architecture: Unknown/Multiple Operating System: Unknown/Multiple | Difficulty: Project (more Type of failure: None/Unknown | than a week) Test Case: | Blocked By: Blocking: | Related Tickets: #8107 -------------------------------------+------------------------------------- Comment (by hyperthunk): Not all the use cases (or edge cases for that matter) are covered by that discussion. This ticket is still a duplicate though. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8711#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC