jerome.martin.dev
2018-7-25 08:24:49

@markx I recently wrote a lib that behaves a bit like GTK (with horizontal and vertical boxes as layout) based on charterm, but it’s not in its own library yet (https://github.com/euhmeuh/virtual-mpu/tree/master/private/emulator/gui). I think @jeapostrophe has something too (https://github.com/jeapostrophe/raart).


jerome.martin.dev
2018-7-25 08:29:55

I’m planning to get my lib out of its parent project and give it a name. Sample usage: https://github.com/euhmeuh/virtual-mpu/blob/master/private/emulator/terminal.rkt#L107


jerome.martin.dev
2018-7-25 08:31:08

(on the top of the file you can see mockups of what it looks like when rendered in a terminal)


jerome.martin.dev
2018-7-25 08:32:04

(except charterm does not support UTF–8 yet so I fall back to +=\|- characters for now)


greg
2018-7-25 14:11:21

@robby Do you have any insights into this: https://github.com/racket/datalog/issues/9#issuecomment-398369738 I have racket-mode finding/using 'drracket:submit-predicate as well as making sure to load configure-runtimes so that e.g. current-read-interaction is set for a lang. However my first test case is datalog/lang, and “it works” but not really. I don’t understand what’s going on with EOF. I suppose the TL;DR is if you jump to the last comment: https://github.com/racket/datalog/issues/9#issuecomment-407765972


robby
2018-7-25 14:14:17

I saw the GitHub mention but haven’t had time to investigate yet, sorry. :(


greg
2018-7-25 14:17:03

OK no worries. I’ve been working on this a couple days and have all the pieces in my head now — so wanted to ping in case you had time to look now. But totally understand if you can’t. It’s not urgent. If I know you can’t look at it soon, I can at least find another lang example to work with for awhile.


lexi.lambda
2018-7-25 15:30:22

@robby I have some questions about contracts defined using late-neg-projection when you get a moment (I know you just got back, so no rush). (1) Are projections defined with late-neg-projection guaranteed to be supplied a blame object with a missing party, or are they expected to always check blame-missing-party? to conditionally apply blame-add-missing-party? (2) Likewise, for projections that defer to other contracts’ projections, what should be passed to the sub-contracts’ projections if the sub-contracts aren’t known until the value (and thus the missing party) has already been supplied? Put another way, if I have a contract combinator with dependent-like behavior, where the sub-contracts aren’t known until the value is known, then it seems silly to pass a blame object with a missing party to the sub-contract given that I already have the missing party.


robby
2018-7-25 15:31:23

The are not guaranteed not expected to check. You pass the party you got to others (it may be #f)


lexi.lambda
2018-7-25 15:33:32

Ah, so does (blame-add-missing-party b #f) not signal an error if b is not missing a party?


robby
2018-7-25 15:34:48

Don’t call that


robby
2018-7-25 15:34:56

Just always pass on the missing part


robby
2018-7-25 15:34:58

Y


lexi.lambda
2018-7-25 15:35:45

Oh, I see… raise-blame-error takes a missing party argument. I thought I needed to add the missing party before calling raise-blame-error, but I guess not.


robby
2018-7-25 15:37:31

Right you don’t!


lexi.lambda
2018-7-25 15:39:20

Okay, thank you!


gknauth
2018-7-25 16:06:33

I thought the kidney meant pain as in a kidney stone.


gknauth
2018-7-25 16:06:42

But that was just a guess.


ben
2018-7-25 16:14:48

oh I like that too


leif
2018-7-25 19:21:22

@lexi.lambda Ah, good catch. It looks like its a problem with the test. I’ll push a fix.


ben
2018-7-25 19:59:42

why doesn’t TR match work with occurrence typing? I expected this to type check: #lang typed/racket (struct foo ()) (: f (-> (U foo String) Void)) (define (f x) (match x [(foo) (void)] [str (void (string-append str str))]))


ben
2018-7-25 20:01:49

but it says str has type (U foo String) in the second branch


samth
2018-7-25 20:03:45

@ben because match doesn’t compile to the code that you’re imagining


ben
2018-7-25 20:09:06

I think I should open an issue for this. Max tried to write a program a few minutes ago, thought he had a problem with equi-recursive types, but really it was just a problem with match & occurrence typing https://twitter.com/maxsnew/status/1022210296138661888


ben
2018-7-25 20:11:11

(but idk how I’d try to fix this)


samth
2018-7-25 20:11:16

I don’t think opening an issue would be helpful — that’s how match works because of how the compilation scheme for patterns works, and fixing it would involve rewriting match


samth
2018-7-25 20:12:59

maybe this is an indication that how match works is a bad design (although I think other options also have significant drawbacks) but I don’t think a issue is useful


greg
2018-7-25 20:14:12

@samth You know your compilation of Matthew top-level-is-hopeless links? I think the time is coming when someone needs to do that for you explaining match and Typed Racket. :slightly_smiling_face:


samth
2018-7-25 20:14:42

it isn’t as fundamental as the problems with the top-level


ben
2018-7-25 20:14:49

links would be helpful


ben
2018-7-25 20:15:06

before I came here, Max & I quickly tried looking for documentation about match + OT


samth
2018-7-25 20:15:10

but you’d probably have to give up =>


greg
2018-7-25 20:15:13

I know and I’m not saying match or TR are hopeless. I’ve just seen you answer this a lot, including at least once or twice from me. :slightly_smiling_face:


samth
2018-7-25 20:15:32

@ben a documentation entry in the limitations section for TR would be useful


samth
2018-7-25 20:16:22

@greg no, I mean that the hopelessness of the toplevel is a fact about the top level as an idea, whereas this is just a fact about particular decisions in match and TR


samth
2018-7-25 20:16:50

I know you didn’t mean to suggest anything about TR


maxsnew
2018-7-25 21:45:37

@maxsnew has joined the channel


andreiformiga
2018-7-26 01:50:51

where’s this top-level-is-hopeless compilation?



notjack
2018-7-26 02:43:02

heh. “compilation”


krystal.maughan
2018-7-26 06:26:11

anyone here going to ICFP?