Ticket #1105 (closed feature request: wontfix)

Opened 6 years ago

Last modified 4 months ago

Custom Runtimes

Reported by: humasect Owned by:
Priority: normal Milestone: _|_
Component: Runtime System Version: 6.6
Keywords: runtime custom sdl cocoa init main ghci Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo) (diff)

The ability to build custom runtimes would be useful in many development situations. Like Objective Caml's -custom, one would be able to create a interactive-invokable (GHCi) with a custom main () initialization and finalizer. For things such as SDL applications, Cocoa applications, there is a need for custom run loops as well. This would be an immensely great integration feature for GHC. In these situations it is not possible to work in GHCi on most/all platforms without much work done in a specialized hs-plugins REPL environment.

Ideas of Requirements:

  • specifiable initializer (from main)
  • specifiable finalizer
  • specifiable run loop / event handler (light thread) as such:
    • REPL
    • thread 0 - read, eval (send to thread 1), print, loop
    • thread 1 - processing events run loop, check for eval + send result to print stage

[the author is developing a Cocoa+GL native application in 100% Haskell sans HOC sans HOpenGL]

Change History

Changed 6 years ago by humasect

Update of formatting.

* specifiable initializer (from main) * specifiable finalizer * specifiable run loop / event handler (light thread) as such:

  • REPL thread 0 - read, eval (send to thread 1), print, loop
  • thread 1 - processing events run loop, check for eval + send result to print stage

Changed 6 years ago by igloo

  • description modified (diff)
  • milestone set to _|_

I'm a bit unclear on what exactly is wanted here. Does GHC-as-a-library provide it?

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

Changed 4 months ago by morabbin

  • failure set to None/Unknown

I don't the GHC API goes what the o.p. wants. He seems to be calling for replacing the scheduler (and other bits) with a domain-specific one of his own devising.

Changed 4 months ago by simonmar

  • status changed from new to closed
  • resolution set to wontfix

Let's close - too vague, too old.

Note: See TracTickets for help on using tickets.