Browse Source

Single-collection package.

pr/4
Tony Garnock-Jones 8 years ago
parent
commit
2a2e557308
  1. 1
      .gitignore
  2. 4
      Makefile
  3. 20
      README.md
  4. 0
      action-add-endpoint.rkt
  5. 0
      action-delete-endpoint.rkt
  6. 0
      action-quit.rkt
  7. 0
      action-send-message.rkt
  8. 0
      action-spawn.rkt
  9. 0
      actions.rkt
  10. 0
      drivers/event-relay.rkt
  11. 0
      drivers/tcp-bare.rkt
  12. 0
      drivers/tcp.rkt
  13. 0
      drivers/timer-untyped.rkt
  14. 0
      drivers/timer.rkt
  15. 0
      drivers/udp-untyped.rkt
  16. 0
      drivers/udp.rkt
  17. 0
      examples/chat-client.rkt
  18. 0
      examples/chat-paper-raw.rkt
  19. 0
      examples/chat-paper.rkt
  20. 0
      examples/chat.erl
  21. 0
      examples/chat.hs
  22. 0
      examples/chat.py
  23. 0
      examples/debug-chat.rkt
  24. 0
      examples/echo-paper.rkt
  25. 0
      examples/echo-plain.rkt
  26. 0
      ground.rkt
  27. 0
      info.rkt
  28. 0
      lang/base.rkt
  29. 0
      lang/reader.rkt
  30. 0
      list-utils.rkt
  31. 0
      log-typed.rkt
  32. 0
      log-untyped.rkt
  33. 0
      main.rkt
  34. 1
      marketplace/.gitignore
  35. 0
      nested.rkt
  36. 0
      opaque-any.rkt
  37. 0
      process.rkt
  38. 0
      quasiqueue.rkt
  39. 0
      roles.rkt
  40. 0
      scribblings/.gitignore
  41. 0
      scribblings/Makefile
  42. 0
      scribblings/background.scrbl
  43. 0
      scribblings/concepts.scrbl
  44. 0
      scribblings/drivers.scrbl
  45. 0
      scribblings/examples.scrbl
  46. 0
      scribblings/from.rkt
  47. 0
      scribblings/highlevel.scrbl
  48. 0
      scribblings/lowlevel.scrbl
  49. 0
      scribblings/management-and-monitoring.scrbl
  50. 0
      scribblings/marketplace.scrbl
  51. 0
      scribblings/prelude.inc
  52. 0
      scribblings/vm-pictures.rkt
  53. 0
      scribblings/writing-drivers.scrbl
  54. 0
      struct-map.rkt
  55. 0
      sugar-endpoints-support.rkt
  56. 0
      sugar-endpoints-typed.rkt
  57. 0
      sugar-endpoints-untyped.rkt
  58. 0
      sugar-typed.rkt
  59. 0
      sugar-untyped.rkt
  60. 0
      sugar-values.rkt
  61. 0
      support/debug.rkt
  62. 0
      support/dsl-untyped.rkt
  63. 0
      support/dump-bytes.rkt
  64. 0
      support/event.rkt
  65. 0
      support/gui.rkt
  66. 0
      support/pseudo-substruct.rkt
  67. 0
      support/spy.rkt
  68. 0
      test-struct-map-typed.rkt
  69. 0
      test-struct-map.rkt
  70. 0
      tr-struct-copy.rkt
  71. 0
      types.rkt
  72. 0
      unify.rkt
  73. 0
      vm.rkt

1
.gitignore

@ -1,2 +1,3 @@
compiled/
doc/
scratch/

4
Makefile

@ -1,12 +1,10 @@
COLLECTIONS=marketplace
all: setup
clean:
find . -name compiled -type d | xargs rm -rf
setup:
raco setup $(COLLECTIONS)
raco setup $$(basename $$(pwd))
link:
raco pkg install --link $$(pwd)

20
README.md

@ -26,25 +26,23 @@ A (draft) manual for Marketplace is available
## The code
This repository contains a [Racket](http://racket-lang.org/) package
containing a single
[collection](http://docs.racket-lang.org/reference/collects.html),
This repository contains a [Racket](http://racket-lang.org/) package,
`marketplace`, which includes
- the implementation of the `#lang marketplace` language, in
[`marketplace/`](https://github.com/tonyg/marketplace/tree/master/marketplace/).
- the implementation of the `#lang marketplace` language, in the
[top directory](https://github.com/tonyg/marketplace/tree/master/).
- a TCP echo server example, in
[`marketplace/examples/echo-paper.rkt`](https://github.com/tonyg/marketplace/tree/master/marketplace/examples/echo-paper.rkt).
[`examples/echo-paper.rkt`](https://github.com/tonyg/marketplace/tree/master/examples/echo-paper.rkt).
- a TCP chat server example, in
[`marketplace/examples/chat-paper.rkt`](https://github.com/tonyg/marketplace/tree/master/marketplace/examples/chat-paper.rkt).
[`examples/chat-paper.rkt`](https://github.com/tonyg/marketplace/tree/master/examples/chat-paper.rkt).
- Haskell, Erlang and Python implementations of the chat server for comparison, in
[`marketplace/examples/chat.hs`](https://github.com/tonyg/marketplace/tree/master/marketplace/examples/chat.hs),
[`chat.erl`](https://github.com/tonyg/marketplace/tree/master/marketplace/examples/chat.erl),
[`examples/chat.hs`](https://github.com/tonyg/marketplace/tree/master/examples/chat.hs),
[`chat.erl`](https://github.com/tonyg/marketplace/tree/master/examples/chat.erl),
and
[`chat.py`](https://github.com/tonyg/marketplace/tree/master/marketplace/examples/chat.py)
[`chat.py`](https://github.com/tonyg/marketplace/tree/master/examples/chat.py)
respectively.
## Compiling and running the code
@ -65,7 +63,7 @@ it still takes around 2 minutes.
At this point, you may load and run any of the example `*.rkt` files
in the
[`marketplace/examples/`](https://github.com/tonyg/marketplace/tree/master/marketplace/examples/)
[`examples/`](https://github.com/tonyg/marketplace/tree/master/examples/)
directory.
Note that both the echo server and chat server examples do not print

0
marketplace/action-add-endpoint.rkt → action-add-endpoint.rkt

0
marketplace/action-delete-endpoint.rkt → action-delete-endpoint.rkt

0
marketplace/action-quit.rkt → action-quit.rkt

0
marketplace/action-send-message.rkt → action-send-message.rkt

0
marketplace/action-spawn.rkt → action-spawn.rkt

0
marketplace/actions.rkt → actions.rkt

0
marketplace/drivers/event-relay.rkt → drivers/event-relay.rkt

0
marketplace/drivers/tcp-bare.rkt → drivers/tcp-bare.rkt

0
marketplace/drivers/tcp.rkt → drivers/tcp.rkt

0
marketplace/drivers/timer-untyped.rkt → drivers/timer-untyped.rkt

0
marketplace/drivers/timer.rkt → drivers/timer.rkt

0
marketplace/drivers/udp-untyped.rkt → drivers/udp-untyped.rkt

0
marketplace/drivers/udp.rkt → drivers/udp.rkt

0
marketplace/examples/chat-client.rkt → examples/chat-client.rkt

0
marketplace/examples/chat-paper-raw.rkt → examples/chat-paper-raw.rkt

0
marketplace/examples/chat-paper.rkt → examples/chat-paper.rkt

0
marketplace/examples/chat.erl → examples/chat.erl

0
marketplace/examples/chat.hs → examples/chat.hs

0
marketplace/examples/chat.py → examples/chat.py

0
marketplace/examples/debug-chat.rkt → examples/debug-chat.rkt

0
marketplace/examples/echo-paper.rkt → examples/echo-paper.rkt

0
marketplace/examples/echo-plain.rkt → examples/echo-plain.rkt

0
marketplace/ground.rkt → ground.rkt

0
marketplace/info.rkt → info.rkt

0
marketplace/lang/base.rkt → lang/base.rkt

0
marketplace/lang/reader.rkt → lang/reader.rkt

0
marketplace/list-utils.rkt → list-utils.rkt

0
marketplace/log-typed.rkt → log-typed.rkt

0
marketplace/log-untyped.rkt → log-untyped.rkt

0
marketplace/main.rkt → main.rkt

1
marketplace/.gitignore

@ -1 +0,0 @@
doc/

0
marketplace/nested.rkt → nested.rkt

0
marketplace/opaque-any.rkt → opaque-any.rkt

0
marketplace/process.rkt → process.rkt

0
marketplace/quasiqueue.rkt → quasiqueue.rkt

0
marketplace/roles.rkt → roles.rkt

0
marketplace/scribblings/.gitignore → scribblings/.gitignore

0
marketplace/scribblings/Makefile → scribblings/Makefile

0
marketplace/scribblings/background.scrbl → scribblings/background.scrbl

0
marketplace/scribblings/concepts.scrbl → scribblings/concepts.scrbl

0
marketplace/scribblings/drivers.scrbl → scribblings/drivers.scrbl

0
marketplace/scribblings/examples.scrbl → scribblings/examples.scrbl

0
marketplace/scribblings/from.rkt → scribblings/from.rkt

0
marketplace/scribblings/highlevel.scrbl → scribblings/highlevel.scrbl

0
marketplace/scribblings/lowlevel.scrbl → scribblings/lowlevel.scrbl

0
marketplace/scribblings/management-and-monitoring.scrbl → scribblings/management-and-monitoring.scrbl

0
marketplace/scribblings/marketplace.scrbl → scribblings/marketplace.scrbl

0
marketplace/scribblings/prelude.inc → scribblings/prelude.inc

0
marketplace/scribblings/vm-pictures.rkt → scribblings/vm-pictures.rkt

0
marketplace/scribblings/writing-drivers.scrbl → scribblings/writing-drivers.scrbl

0
marketplace/struct-map.rkt → struct-map.rkt

0
marketplace/sugar-endpoints-support.rkt → sugar-endpoints-support.rkt

0
marketplace/sugar-endpoints-typed.rkt → sugar-endpoints-typed.rkt

0
marketplace/sugar-endpoints-untyped.rkt → sugar-endpoints-untyped.rkt

0
marketplace/sugar-typed.rkt → sugar-typed.rkt

0
marketplace/sugar-untyped.rkt → sugar-untyped.rkt

0
marketplace/sugar-values.rkt → sugar-values.rkt

0
marketplace/support/debug.rkt → support/debug.rkt

0
marketplace/support/dsl-untyped.rkt → support/dsl-untyped.rkt

0
marketplace/support/dump-bytes.rkt → support/dump-bytes.rkt

0
marketplace/support/event.rkt → support/event.rkt

0
marketplace/support/gui.rkt → support/gui.rkt

0
marketplace/support/pseudo-substruct.rkt → support/pseudo-substruct.rkt

0
marketplace/support/spy.rkt → support/spy.rkt

0
marketplace/test-struct-map-typed.rkt → test-struct-map-typed.rkt

0
marketplace/test-struct-map.rkt → test-struct-map.rkt

0
marketplace/tr-struct-copy.rkt → tr-struct-copy.rkt

0
marketplace/types.rkt → types.rkt

0
marketplace/unify.rkt → unify.rkt

0
marketplace/vm.rkt → vm.rkt

Loading…
Cancel
Save