{"action":"created","issue":{"url":"https://api.github.com/repos/TerrorJack/puellascript/issues/3","repository_url":"https://api.github.com/repos/TerrorJack/puellascript","labels_url":"https://api.github.com/repos/TerrorJack/puellascript/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/TerrorJack/puellascript/issues/3/comments","events_url":"https://api.github.com/repos/TerrorJack/puellascript/issues/3/events","html_url":"https://github.com/TerrorJack/puellascript/issues/3","id":222722363,"number":3,"title":"Implement puellascript-boot","user":{"login":"TerrorJack","id":3889585,"avatar_url":"https://avatars0.githubusercontent.com/u/3889585?v=3","gravatar_id":"","url":"https://api.github.com/users/TerrorJack","html_url":"https://github.com/TerrorJack","followers_url":"https://api.github.com/users/TerrorJack/followers","following_url":"https://api.github.com/users/TerrorJack/following{/other_user}","gists_url":"https://api.github.com/users/TerrorJack/gists{/gist_id}","starred_url":"https://api.github.com/users/TerrorJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TerrorJack/subscriptions","organizations_url":"https://api.github.com/users/TerrorJack/orgs","repos_url":"https://api.github.com/users/TerrorJack/repos","events_url":"https://api.github.com/users/TerrorJack/events{/privacy}","received_events_url":"https://api.github.com/users/TerrorJack/received_events","type":"User","site_admin":false},"labels":[{"id":580580999,"url":"https://api.github.com/repos/TerrorJack/puellascript/labels/new%20feature","name":"new feature","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"TerrorJack","id":3889585,"avatar_url":"https://avatars0.githubusercontent.com/u/3889585?v=3","gravatar_id":"","url":"https://api.github.com/users/TerrorJack","html_url":"https://github.com/TerrorJack","followers_url":"https://api.github.com/users/TerrorJack/followers","following_url":"https://api.github.com/users/TerrorJack/following{/other_user}","gists_url":"https://api.github.com/users/TerrorJack/gists{/gist_id}","starred_url":"https://api.github.com/users/TerrorJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TerrorJack/subscriptions","organizations_url":"https://api.github.com/users/TerrorJack/orgs","repos_url":"https://api.github.com/users/TerrorJack/repos","events_url":"https://api.github.com/users/TerrorJack/events{/privacy}","received_events_url":"https://api.github.com/users/TerrorJack/received_events","type":"User","site_admin":false},"assignees":[{"login":"TerrorJack","id":3889585,"avatar_url":"https://avatars0.githubusercontent.com/u/3889585?v=3","gravatar_id":"","url":"https://api.github.com/users/TerrorJack","html_url":"https://github.com/TerrorJack","followers_url":"https://api.github.com/users/TerrorJack/followers","following_url":"https://api.github.com/users/TerrorJack/following{/other_user}","gists_url":"https://api.github.com/users/TerrorJack/gists{/gist_id}","starred_url":"https://api.github.com/users/TerrorJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TerrorJack/subscriptions","organizations_url":"https://api.github.com/users/TerrorJack/orgs","repos_url":"https://api.github.com/users/TerrorJack/repos","events_url":"https://api.github.com/users/TerrorJack/events{/privacy}","received_events_url":"https://api.github.com/users/TerrorJack/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-04-19T12:32:10Z","updated_at":"2017-04-23T22:28:23Z","closed_at":null,"body":"The generated cmm assumes the word size is 8, but currently wasm only has wasm32, and the linear memory is indexed with 32-bit addresses.\r\n\r\nSimply modifying word size in session `DynFlags` will produce an error like:\r\n\r\n~~~\r\n.playground/Fact.hs:1:8: error:\r\n    Bad interface file: /home/shaocheng/.stack/programs/x86_64-linux/ghc-8.3.20170419/lib/ghc-8.3.20170419/base-4.10.0.0/Prelude.hi\r\n        magic number mismatch: old/corrupt interface file? (wanted 129742, got 33214052)\r\n~~~\r\n\r\nSo, it's time to implement `puellascript-boot` which compiles essential packages (`ghc-prim`, `base`, etc) using the required special platform settings.\r\n\r\n`puellascript-boot` will also need a patch mechanism to remove certain features from `ghc-prim` and `base`."},"comment":{"url":"https://api.github.com/repos/TerrorJack/puellascript/issues/comments/296493456","html_url":"https://github.com/TerrorJack/puellascript/issues/3#issuecomment-296493456","issue_url":"https://api.github.com/repos/TerrorJack/puellascript/issues/3","id":296493456,"user":{"login":"TerrorJack","id":3889585,"avatar_url":"https://avatars0.githubusercontent.com/u/3889585?v=3","gravatar_id":"","url":"https://api.github.com/users/TerrorJack","html_url":"https://github.com/TerrorJack","followers_url":"https://api.github.com/users/TerrorJack/followers","following_url":"https://api.github.com/users/TerrorJack/following{/other_user}","gists_url":"https://api.github.com/users/TerrorJack/gists{/gist_id}","starred_url":"https://api.github.com/users/TerrorJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TerrorJack/subscriptions","organizations_url":"https://api.github.com/users/TerrorJack/orgs","repos_url":"https://api.github.com/users/TerrorJack/repos","events_url":"https://api.github.com/users/TerrorJack/events{/privacy}","received_events_url":"https://api.github.com/users/TerrorJack/received_events","type":"User","site_admin":false},"created_at":"2017-04-23T22:28:23Z","updated_at":"2017-04-23T22:28:23Z","body":"~~~\r\nUsing binary package database: /home/shaocheng/.stack/programs/x86_64-linux/ghc-8.3.20170422/lib/ghc-8.3.20170422/package.conf.d/package.cache\r\nUsing binary package database: /home/shaocheng/.stack/snapshots/x86_64-linux/ghc-8.3.20170422/8.3.20170422/pkgdb/package.cache\r\nUsing binary package database: /mnt/c/Users/astro/haskell/puellascript/.stack-work/install/x86_64-linux/ghc-8.3.20170422/8.3.20170422/pkgdb/package.cache\r\npackage flags []\r\nloading package database /home/shaocheng/.stack/programs/x86_64-linux/ghc-8.3.20170422/lib/ghc-8.3.20170422/package.conf.d\r\nloading package database /home/shaocheng/.stack/snapshots/x86_64-linux/ghc-8.3.20170422/8.3.20170422/pkgdb\r\nloading package database /mnt/c/Users/astro/haskell/puellascript/.stack-work/install/x86_64-linux/ghc-8.3.20170422/8.3.20170422/pkgdb\r\nwired-in package ghc-prim mapped to ghc-prim-0.5.0.0\r\nwired-in package integer-gmp mapped to integer-gmp-1.0.0.1\r\nwired-in package base mapped to base-4.10.0.0\r\nwired-in package rts mapped to rts\r\nwired-in package template-haskell mapped to template-haskell-2.12.0.0\r\nwired-in package ghc mapped to ghc-8.3\r\nwired-in package dph-seq not found.\r\nwired-in package dph-par not found.\r\n~~~\r\n\r\nThe above debugging messages are located at `compiler/main/Packages.hs`. Two observations:\r\n\r\n* Wired-in packages need not be all present\r\n* Wired-in packages can be re-mapped\r\n\r\nIs it possible to rewrite them from scratch and build with `Cabal` simple builders?"}}
{"actor":{"display_login":"TerrorJack"}}