pocmatos
2018-1-12 11:53:31

is there any library with a bitvector implemention?


pocmatos
2018-1-12 11:54:17

samth
2018-1-12 15:27:03

@mflatt @ryanc following up on the travis failure, it started failing on macOS on 12/2, with this build https://travis-ci.org/racket/racket/builds/310672782 of this commit https://github.com/racket/racket/commit/0de27b6ce96df044422ac41c29d9df1d149fbb5e which did change rktio on macOS


samth
2018-1-12 15:29:46

However, between that build and the previous successful build, Travis also rolled out a change from xcode 7.3 to 8.3 (https://blog.travis-ci.com/2017-11-21-xcode8-3-default-image-announce) so that could also have caused the problem


abmclin
2018-1-12 17:47:28

which package has the raco test command? I thought rackunit-lib was it but apparently not.


samth
2018-1-12 17:49:10

compiler-lib


abmclin
2018-1-12 17:49:54

thank you


samth
2018-1-12 21:20:52

@stamourv ping


stamourv
2018-1-12 21:21:27

@samth: pong


samth
2018-1-12 21:21:50

do you have any knowledge of the profiler infrastructure + threads?



stamourv
2018-1-12 21:23:31

Not particularly, but lemme have a quick look.


stamourv
2018-1-12 21:24:05

The contract-profiler and the regular profiler share sampling infrastructure, so seeing the same result makes sense.


samth
2018-1-12 21:24:05

basically, I want to profile a program that starts a gui, and I can’t seem to


stamourv
2018-1-12 21:27:34

:threads starts a new custodian, and profiles anything under that. IIUC, this won’t sample the GUI thread. Can you try creating the sampler yourself (create-sampler), and passing the current custodian as the to-track argument?


samth
2018-1-12 21:34:34

that errors because the custodian isn’t a subcustodian


samth
2018-1-12 21:34:45

but there’s now an unsafe function for the root custodian


samth
2018-1-12 21:45:16

actually, no, there isn’t, so I have to use the FFI


samth
2018-1-12 21:54:18

@stamourv having now failed a couple times, do you have a suggestion for getting the root custodian?


stamourv
2018-1-12 21:59:28

Unfortunately not.


stamourv
2018-1-12 21:59:44

It does sound like what you would need, though.


samth
2018-1-12 22:00:35

ok, I’ll write this annoying ffi code


leif
2018-1-12 22:22:49

@mflatt Is there any good way to suppress the "Warning: lexer at ~a can accept the empty string.\n" warning when using parser-tools/lex to make a lexer you very intentionally want to lex the empty string?


leif
2018-1-12 22:23:31

(Alternatively, would it be bad to add a keyword argument to the lexer form to suppress it?)


mflatt
2018-1-12 22:23:59

@leif No idea if a way already exists; a keyword to suppress sounds fine


samth
2018-1-12 22:25:36

@mflatt do you have Racket code lying around that gets the root custodian?


mflatt
2018-1-12 22:25:57

I think it’s intentionally impossible


samth
2018-1-12 22:26:09

I mean using the FFI


mflatt
2018-1-12 22:26:14

Even using the FFI


mflatt
2018-1-12 22:26:35

Using the root custodian as an argument to various functions might break; I’m not sure


samth
2018-1-12 22:27:01

I seem to recall doing this once, by following parent pointers


leif
2018-1-12 22:27:49

Okay cool, thanks.


mflatt
2018-1-12 22:28:01

Looking again, the root custodian is the initial custodian, so I guess it’s ok. (Maybe I was thinking of something else.)


samth
2018-1-12 22:29:45

hmm, just following the parent field seems to get NULL for the parent of the initial (current-custodian)


samth
2018-1-12 22:30:05

but I suppose that’s consistent with what you just said


samth
2018-1-12 22:49:20

@mflatt since this code doesn’t seem to work, do you have an alternate suggestion for getting a custodian to use in profiler sampling that will include the gui thread?


mflatt
2018-1-12 23:11:21

@samth Do you have control over the way the program is started, so that you can create a new custodian and use the original to inspect the new one?


samth
2018-1-13 00:07:55

@mflatt Thanks, I tried that. I now see the the loop in gtk/queue in the profile, but none of the actual plot code I’m trying to profile /cc @stamourv


dmitryhertz
2018-1-13 05:51:16

Hi friends!


dmitryhertz
2018-1-13 05:54:11

Is Racket using continuations to implement any functions in standard libraries? I’m just trying to clearly understand how continuations work and what benefits they provide, that’s why I’m looking for examples, especially quite complicated ones. Thank you very much in advance!