Skip to content

Instantly share code, notes, and snippets.

View rahulmutt's full-sized avatar

Rahul Muttineni rahulmutt

View GitHub Profile
Mon Dec 12 17:15 2016 Time and Allocation Profiling Report (Final)
eta +RTS -p -RTS Main.hs
total time = 19.02 secs (19021 ticks @ 1000 us, 1 processor)
total alloc = 11,610,411,048 bytes (excludes profiling overheads)
COST CENTRE MODULE %time %alloc
sourceHandle.loop Data.Conduit.Binary 20.7 7.0
{-# LANGUAGE ConstraintKinds, DataKinds, TypeFamilies, UndecidableInstances, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, PolyKinds, TypeOperators, NoImplicitPrelude #-}
module Extends where
import Prelude hiding (Extends,Class,Object,Super)
data Object = Object
deriving Show
data Defined = Yes | No
type family Super (a :: *) :: *

Overview of GHCVM

GHCVM has successfully accomplished the goals of Summer of Haskell:

  • compile GHC 7.10.3's Haskell to Java bytecode
  • access the vast Java ecosystem within Haskell
  • port the base library

The initial proposal can be found here.

Motivation

@rahulmutt
rahulmutt / Interacting with Java in GHCVM.md
Last active November 22, 2017 22:27
Documents how the Java Foreign Function Interface will look in GHCVM, a Haskell to JVM compiler.