[racket-users] ANN: profile-flame-graph package

2016-10-29 Thread Asumu Takikawa
Hi folks, I recently wrote a Racket package that lets you visualize profiler outputs using flame graphs[1]. The package handles the plumbing of hooking up the profiler to Brendan Gregg's perl script[2] which does the actual visualization work. Anyhow, you can find it here with some instructions

Re: [racket-users] cvs-reading ?

2016-10-29 Thread Meino . Cramer
Hi John, from my racket 6.6 installation ($HOME): :user/.racket>l total 20 drwxr-xr-x 5 user users 4096 2016-10-21 05:25 6.6 drwxr-xr-x 5 user users 4096 2016-10-30 06:21 6.7 drwxr-xr-x 2 user users 4096 2016-10-30 06:21 download-cache -rw-r--r-- 1 user users 5254 2016-10-30 06:25

Re: [racket-users] Re: cvs-reading ?

2016-10-29 Thread Jack Firth
I'm not quite sure, but one thing I see off that I forgot to mention in my previous post is that I think the package you want is "csv-reading", not "cvs-reading". On Sat, Oct 29, 2016 at 10:31 PM, wrote: > > Hi Jack, > > thanks fpr your reply ! :) > > I tried that with this

Re: [racket-users] Re: cvs-reading ?

2016-10-29 Thread Meino . Cramer
Hi Jack, thanks fpr your reply ! :) I tried that with this script (copied from the docs, "/bin/env racket replace by the actually path to racket): #!/usr/local/bin/racket; \ #lang scripty ; | script preamble #:dependencies

Re: [racket-users] cvs-reading ?

2016-10-29 Thread 'John Clements' via Racket Users
> On Oct 29, 2016, at 20:08, meino.cra...@gmx.de wrote: > > Hi, > > While using racket 6.6 I installed the package 'cvs-reading' in $HOME > with 'raco pkg install cvs-reading' as me (not as root). Did you mean to write ‘csv-reading’ ? I don’t see a package named cvs-reading. John Clements >

[racket-users] Re: cvs-reading ?

2016-10-29 Thread Jack Firth
I would recommend adding `info.rkt` files to your projects so that your projects are *themselves* packages. In these info files you can declare what packages you depend on, so rather than manually installing dependencies one at a time globally (and reinstalling when upgrading racket), you

[racket-users] Re: Convention for package build scripts (that don't really have to be part of the package)?

2016-10-29 Thread Jack Firth
I've thought about this as well, and I think a `-build` or a `-develop` package makes the most sense. As an aside, if you wanted to you could even add some Scribble docs to that package describing the implementation of your library and where important bits of it are. That kind of documentation

[racket-users] cvs-reading ?

2016-10-29 Thread Meino . Cramer
Hi, While using racket 6.6 I installed the package 'cvs-reading' in $HOME with 'raco pkg install cvs-reading' as me (not as root). Now, after updateing to racket 6.7, this package cannot longer be 'require'd : > (require cvs-reading) ; readline-input:1:9: collection not found ; for module

Re: [racket-users] Using the graph library

2016-10-29 Thread Daniel Prager
Starting at the very beginning, you could pick up some material on graph theory, and work through it, while making use of the graph library. E.g. Here's an introduction to the absolute basics of Graph Theory: https://www.youtube.com/watch?v=HmQR8Xy9DeM And here I've followed along in Racket,

Re: [racket-users] Request for comments: An embedded DSL for CSS in Racket

2016-10-29 Thread lfacchi2
> I'd be interested in trying a working prototype. It's hard to evaluate the > wisdom of the technical choices without enjoying the benefits of the new > interface. Thank you for your interest. The implementation needs some fixes that I expect to finish by the end of the week that starts

Re: [racket-users] Using the graph library

2016-10-29 Thread Lawrence Bottorff
On Saturday, October 29, 2016 at 3:06:18 PM UTC-4, jhemann wrote: > Stephen's talk at 4th Racketcon (https://www.youtube.com/watch?v=SvYJF5HC19w) > gave me a good tutorial-ish introduction.  > > > JBH > > > On Sat, Oct 29, 2016 at 8:59 PM, Lawrence Bottorff wrote: > I see

Re: [racket-users] Using the graph library

2016-10-29 Thread Jason Hemann
Stephen's talk at 4th Racketcon (https://www.youtube.com/watch?v=SvYJF5HC19w) gave me a good tutorial-ish introduction. JBH On Sat, Oct 29, 2016 at 8:59 PM, Lawrence Bottorff wrote: > I see the Racket Generic Graph Library, but I don't know how to use it. > Where would one

[racket-users] Using the graph library

2016-10-29 Thread Lawrence Bottorff
I see the Racket Generic Graph Library, but I don't know how to use it. Where would one go to learn, tutorial-style" the ins and outs of using this library? I take it this library allows you to "roll your own" graph database? I did notice the HTDP has a section on graph things. Would this help?

Re: [racket-users] Trying to build 'routing' macro for dispatch-rules

2016-10-29 Thread Jay McCarthy
Hi David, The syntax of `dispatch-rules` is that its arguments are dispatch clauses, not expressions, and it does not implement its own macro system (like `match` does.) You should either change `dispatch-rules` to do that by adding "dispatch-rules-expanders" or make your own macro to expand

Re: [racket-users] Putting Racket into the database or, more sanely, storing continuations

2016-10-29 Thread David Storrs
Actually, what I've ended up doing is this: 1) There's a globally accessible jumptable hash that any function is free to register with. The hash maps a string key to a procedure. 2) Tasks get stored to the 'tasks' table in the DB as a JSONB blob of the form (e.g.): { "function":

[racket-users] Good thing I caused an error today

2016-10-29 Thread 'John Clements' via Racket Users
Happy Birthday, Matthias! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit

Re: [racket-users] How to 'apply' a function with optional parameters?

2016-10-29 Thread Meino . Cramer
Hi all, ...think, I have to apologize I screwed it upit is a language (spoke one...not "programming" ) thing: I read "List of strings" which in german is "Liste von Zeichenketten". THIS expression means this: "A" "B" "C" (for example). This applied to string-join in a germenglish head

Re: [racket-users] How to 'apply' a function with optional parameters?

2016-10-29 Thread Shu-Hung You
Hi Meino, Could you give an example of lst or line? Unlike string-append, most of the time string-join doesn't really require an 'apply'. As we can see: > (string-append "a" "b" "c") "abc" > (string-join '("a" "b" "c") ":") "a:b:c" While string-append takes all its arguments and concatenates

Re: [racket-users] How to 'apply' a function with optional parameters?

2016-10-29 Thread Pierpaolo Bernardi
On Sat, Oct 29, 2016 at 5:31 PM, wrote: > At the certain point of the program I get > a list as parameter 'lst', which contains > the sublists of strings. I wrote this > function: > > > (define (to-txt lst) > (if (empty? lst) > lst > (let ((line (car lst))) >

Re: [racket-users] How to 'apply' a function with optional parameters?

2016-10-29 Thread Meino . Cramer
Hi Stephen, thanks for yoru reply ! ::) At the certain point of the program I get a list as parameter 'lst', which contains the sublists of strings. I wrote this function: (define (to-txt lst) (if (empty? lst) lst (let ((line (car lst))) (begin (displayln (apply

Re: [racket-users] How to 'apply' a function with optional parameters?

2016-10-29 Thread Ken MacKenzie
Yeah that is much more concise than mine. My newbie lack of knowledge on the stdlib is showing. Ken On Saturday, October 29, 2016 at 11:12:50 AM UTC-4, Stephen Chang wrote: > string-join already expects a list of strings, so are you sure you want apply? > Can you give a more specific example?

Re: [racket-users] Re: How to 'apply' a function with optional parameters?

2016-10-29 Thread Meino . Cramer
Hi Ken, thanks for your reply ! :) The problem is much "simpler"... :) You wrote the whole logic to dig into the strings in the sublists in the big list. That's already done and working I am in search for doing this (string-join '( "a" "b" "c") " " ) ;; ( "a" "b" "c") is the sublist but in

Re: [racket-users] How to 'apply' a function with optional parameters?

2016-10-29 Thread Stephen Chang
string-join already expects a list of strings, so are you sure you want apply? Can you give a more specific example? Perhaps map or some other iteration is what you want? (for ([strs '(("a" "b") ("c" "D" "E"))]) (displayln (string-join strs " "))) => a b c D E On Sat, Oct 29, 2016 at 10:27

Re: [racket-users] Putting Racket into the database or, more sanely, storing continuations

2016-10-29 Thread Philip McGrath
If you want to go this way (and I suspect that there may be a better way), rather than using eval, I would look at serial-lambda from web-server/lang/serial-lambda, which lets you create closures (like the values produced by lambda) that could be put into a TEXT field using serialize and write.

[racket-users] Re: How to 'apply' a function with optional parameters?

2016-10-29 Thread Ken MacKenzie
Not 100% sure of what you're asking so if I got this wrong pseudo code it for me. Remember I am kind of new to racket but I will give it a go: As I understand it you have a list of lists of strings perhaps like this... (('this' 'is' 'one')('this' 'is' 'another')('this' 'is' 'the' 'last'))

Re: [racket-users] Request for comments: An embedded DSL for CSS in Racket

2016-10-29 Thread Matthew Butterick
On Oct 28, 2016, at 8:58 AM, lfacc...@jhu.edu wrote: > Regarding the syntax of the DSL, I was intentionally vague about it in the > original post because I wanted to focus on the technical choices I made. I'd be interested in trying a working prototype. It's hard to evaluate the wisdom of the

[racket-users] How to 'apply' a function with optional parameters?

2016-10-29 Thread Meino . Cramer
Hi, ...still improving my shortwave-broadcaster-dumper... :) I have a list with sublists of strings, which I want to concatenate. Each sublist shall form one line of output. I tried 'string-append', but this gives me something like this (excerpt):

[racket-users] Re: Print...a newbies problem ;)

2016-10-29 Thread Ken MacKenzie
As a curiosity what happens when you run it as such racket shwrefmt.rkt > debug.log Ken -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[racket-users] Print...a newbies problem ;)

2016-10-29 Thread Meino . Cramer
Hi, currently I am still doing old-school "printf()-debugging", knowing that it's '(print arg)' rather than 'printf( fmt, val,...);". :) Since my program reads a bigger textfile of shortwave broadcasters, their frequencies, on-air times, etc, reformats the whole thing and (currently only to

Re: [racket-users] Putting Racket into the database or, more sanely, storing continuations

2016-10-29 Thread Tony Garnock-Jones
On 10/28/2016 08:21 PM, David Storrs wrote: > Is it possible to take (e.g.) a procedure object and decompose it back > into its original source code? I don't believe this is possible without murky unsafe programming, but... > One (bad) idea that came to mind was to simply shove some Racket code

[racket-users] 6.7.0.2: DYLD, [0x1] Library missing (macOS 10.12)

2016-10-29 Thread ylluminate
Anyone see this on the snapshot builds yet when you try to execute DrRacket? Process: DrRacket [47564] Path: /Volumes/VOLUME/*/DrRacket.app/Contents/MacOS/DrRacket Identifier:org.racket-lang.DrRacket Version: 6.7.0.2 (6.7.0.2) Code Type: