x27;t work.
Is garbage collection disabled or something during a FFI call? Is
there another solution?
Thanks,
Nick
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Just updated to 6.5 on Ubuntu, but I can't get a control to focus. My issue is
similar to http://lists.racket-lang.org/users/archive/2011-May/045317.html, I
have a dialog with a choice% in it, and no matter when or how I (send choice
focus), the choice will never focus without me having to type
Yea, workaround that works for me is to fake a Tab key-event:
(define/override (on-activate activated?)
(super on-activate activated?)
(send this on-subwindow-char this (new key-event% [key-code #\tab]))
)
On Saturday, June 11, 2016 at 8:15:18 AM UTC-7, Nick wrote:
> J
One thing to consider: "if" takes a boolean value as the first part. The
function "string?" evaluates to a boolean value, so you can just use this
result directly instead of seeing if it is equal to "true."
In other words, you could simplify the first part to (if (string? s) ...)
In general, you
You should look into the composing image functions available. The beside
function should make it so you don't need to calculate exactly where the
cursor should be displayed.
On Thu, Apr 5, 2012 at 11:39 AM, Roelof Wobben wrote:
> Op 5-4-2012 19:28, Danny Yoo schreef:
>
> http://www.ccs.neu.edu/
I guess I'm not the only one who was confused by this. To get to bugs page,
you need to go to the documentation section of the site and then on the
left there is a "report a bug" link. I personally would expect this link to
be in the community section.
Maybe it's purposefully hidden so people use
Maybe someone should make a tool that strips the newlines out of macro
definitions so they all meet the "10 lines or less" requirement. After all,
isn't law mainly about finding loopholes?
On Fri, Apr 6, 2012 at 1:22 PM, Brian Mastenbrook wrote:
> On 04/06/2012 03:06 AM, Eli Barzilay wrote:
>
>>
Punny, right? Anyway, I can't figure out how to get DrRacket to indent like
this:
(define<../reference/define.html#(form._((lib._racket/private/base..rkt)._define))>
msg
(new<../reference/objcreation.html#(form._((lib._racket/private/class-internal..rkt)._new))>
message% [parent frame]
w I should combine them to get the desired
behavior.
Any suggestions would be appreciated. Thanks.
-Nick
Racket Users list:
http://lists.racket-lang.org/users
Only beside. But how can I then take care that the text are
displayed into the empty-scene. I think you need overlay or something for
that.
Every image function returns an image, so you can use beside to create an
image of your text with the cursor in the right spot, and then place that
i
st flow-spacer)
> (list flow-spacer flow-spacer
> flow-spacer flow-spacer))]
> -[one-ok? (tagged+arg-width . < . 60)])
> +[one-ok? (and (not (eq? mode 'new)) (tagged+arg-width
> . < . 60))])
This sounds a lot like Paul Graham's "Blub Paradox" from
http://www.paulgraham.com/avg.html.
My experience with Racket is that I initially hated it because I didn't
understand it, but now that I'm past that pettiness I use Racket whenever I
have a choice. However, I'm certain I don't use the full
Sending these responses to the group.
On Wed, May 9, 2012 at 4:22 PM, Nick Shelley wrote:
> Thanks for the link, I should definitely go through that.
>
> However, after quickly looking through the problem set, it seems like
> these are problems made for features, not features
When I assign a frame as a dialog's parent, the title of the dialog isn't
shown, but when I leave the parent as #f, the dialog shows up in the middle
of the screen even though the window may be in a totally different place.
Is there a way to have a frame as the parent and still have the title
displ
On the topic of key bindings, is there a reason this can't be done in the
preferences menu? Xcode has a key bindings section in the preferences menu
that has all possible actions on the left and the current bindings on the
right, and you can just click on the current binding and change it to
whatev
more
convenient.
On Fri, May 11, 2012 at 1:39 PM, Nick Shelley wrote:
> Sorry to be imprecise. It lists all menu actions plus many standard text
> actions. Here's a screenshot of the last menu actions followed by some
> selection actions.
>
> On Fri, May 11, 2012 at 1:32 PM, Luke Vil
he 'no-sheet fix to be pushed since what I'm working on
isn't very urgent.
Thanks again for responding.
On Wed, May 16, 2012 at 7:38 AM, Matthew Flatt wrote:
> At Wed, 9 May 2012 20:06:15 -0600, Nick Shelley wrote:
> > When I assign a frame as a dialog's parent, the
I'm definitely not the expert on this, but I just quickly subtracted the gc
time from the cpu time and the times look pretty consistent:
> (- 7176 4537)
2639
> (- 5600 2949)
2651
> (- 4040 1388)
2652
Also, I would guess that cpu time adds the time of all cores or threads or
whatever, so I assume
lled the most
recent changes and, lo and behold, it was fixed and works great.
Thanks again.
On Wed, May 16, 2012 at 1:44 PM, Nick Shelley wrote:
> Thanks for pointing out the 'no-sheet option. I guess I missed that in the
> docs.
>
> I played with the work-around for a bit and could
in advance
if I missed something obvious.
Thanks,
Nick
Racket Users list:
http://lists.racket-lang.org/users
lly I discovered syntax/module-reader's #:language-info:
keyword and added a runtime configuration that replaces the
current-readtable. It *appears* to work, but if anyone knows of a
"more correct/idomatic" way to do it I'm all ears.
Cheers,
Nick
On Wed, May 30, 2012 at 9:18 AM,
I'm open to
anything.
-Nick
* If you're curious, I believe this is the last obstacle in my
implementation of Arc as a Racket language.
Racket Users list:
http://lists.racket-lang.org/users
Thanks for the leads! I'll look into your suggestions and follow up
with my results.
-Nick
On Fri, Jun 15, 2012 at 10:54 PM, Ryan Culpepper wrote:
> On 06/15/2012 10:41 PM, Nick Sivo wrote:
>>
>> Hi,
>>
>> I have the following code:
>>
>
d pleasant,
and the documentation is thorough and current. In particular,
syntax/parse is awesome, and has been invaluable so far.
Thanks again,
Nick
On Sat, Jun 16, 2012 at 1:47 PM, Nick Sivo wrote:
> Thanks for the leads! I'll look into your suggestions and follow up
> with my resu
but didn't find anything.
If it doesn't exist, which of a pull request or a planet package is
more appropriate?
-Nick
[1] Think Win32 CrytoAPI's CryptGenRandom, /dev/urandom, or OpenSSL's
secure PRNG.
Racket Users list:
http://lists.racket-lang.org/users
Thanks, I was sure that I couldn't have been the first to need this.
I'm sure either of those will be fine for session keys.
The project previously experienced real-world exploitation of its
initial use of random and a fairly predictable seed.
-Nick
Racket
I'm developing on Windows, though the server will definitely be
staying on BSD for this and many other good reasons :)
I'm working on making Arc play nice as a Racket language, and would
like my runtime to work on Windows without compromising security.
-Nick
On Thu, Jul 12, 2012 a
city
played right into my naive expectations - I was never surprised, and
never needed to consult documentation.
Anyway, I'm too new to Lisp, Racket and Arc to have any real opinion
here. I'm just trying to make Arc faster, and targeting Racket more
directly has been beneficial in getting
nd lacks the rigor of academic training or
insight from the history of Racket.
In providing an observation based on my personal (and limited)
experience, I feel I've accidentally happened upon a (contentious?)
topic with history unfamiliar to me, and about which I'm not currently
able to conv
oach, corrections to my
descriptions, and inquiries for more information. It's possible I'm
asking for details about the completely wrong approach, when really
something else would be more appropriate.
-Nick
Racket Users list:
http://lists.racket-lang.org/users
on never terminates.
If instead the assignment is in the body of a function, or in a
module, it all works fine:
(define (test)
(assign a 5)
a)
Do these examples make my intent more clear? I'm not sure how to
describe what I want correctly.
-Nick
On Mon, Jul 16, 2012 at 10:43 AM, Ryan
ws below if you'd
like more context.
Thanks,
Nick
#lang racket
(require (for-syntax syntax/parse)
racket/splicing)
;;;
;;; Procedure Application
;;;
(define arc-nil #f)
(define-syntax (arc-#%app stx)
(syntax-parse
stx
[(_ fn:expr arg:expr)
#'(let ([efn fn])
Hi Jon,
Thanks, that works perfectly!
Did I miss that somewhere in the documentation? I don't recall seeing
an example of it.
Best,
Nick
On Thu, Aug 2, 2012 at 11:55 PM, Jon Rafkind wrote:
> To match a literal ellipses in syntax-parse use #:literal [(ellipses ...)]
> and match
I can't seem to find a path function that deals with environment variables.
Is there some variant of cleanse-path that resolves environment variables
first?
Concretely, I have an environment variable $WORKSPACE that tells where I'm
operating from. The result of (getenv "WORKSPACE") is the correct
o'
> program?
>
> On Fri, Sep 28, 2012 at 3:36 PM, Laurent wrote:
> > Can't you write
> > (build-path (getenv "WORKSPACE") )
> > ?
> >
> > Laurent
> >
> > On Fri, Sep 28, 2012 at 11:30 PM, Nick Shelley
> > wrote:
>
It's usually the case that I'm just missing something obvious, but when I
have a file that just creates a place that prints something and I run it in
DrRacket, I see the thing printed after a slight pause, but when I run the
file with the racket executable from the command line, I don't see
anythin
'm missing?
On Wed, Oct 17, 2012 at 10:26 PM, Robby Findler wrote:
> Does your racket program exit before the place runs?
>
> Robby
>
> On Wed, Oct 17, 2012 at 11:12 PM, Nick Shelley
> wrote:
> > It's usually the case that I'm just missing something obviou
> > Add a print before the place start to see it. Seems to be broken since <
> > 5.2.1.
> >
> > On Thu, 18 Oct 2012 06:39:56 +0200, Nick Shelley >
> > wrote:
> >
> > > It looks like that was the problem. Thanks!
> > >
> > > Howeve
ether, and I don't know how to accomplish this. Is there a
preferred workaround for this (as in continued retransmission until the
datagram successfully reaches its destination)?
Thanks,
Nick
--
You received this message because you are subscribed to the Google Groups
"Racket Users&qu
On Monday, April 11, 2016 at 1:41:57 PM UTC-5, Tony Garnock-Jones wrote:
> On 04/11/2016 01:52 PM, Nick Gordon wrote:
> > I'm building reliable data transfer onto Racket's UDP suite for a
> > term project, and I need to know what Racket does with corrupt
> > datagra
As someone who learned correct programming principles from HtDP (out of
classroom but with help from a PL professor), I'm glad it exists and I
think it hit the right balance for me, and probably works well in classroom
settings as well.
However, since I understand the value of HtDP from experience
I've been trying to convince my Apple fanboy coworkers to learn a real
programming language like Racket for a while, but they always dismissed
everything I said because Apple can do no wrong. One of them posted his
notes from WWDC that included the following bullet point. Very vindicating.
(I don't
I'm not certain, but I'm pretty sure following the instructions at the top
of the emails you are receiving would be a faster way to get what you want,
rather than spamming the whole list for every email you receive. I'll quote
them for your convenience (copied from the email you are replying to):
I did so privately as well, but he said he doesn't have his password I
guess. I replied to that and pointed him to the users-request email option.
Hopefully that will help.
On Mon, Sep 29, 2014 at 3:34 PM, Neil Van Dyke wrote:
> I had privately pointed him to the URL to unsubscribe himself, but
The granularity is not high. We were only down for a few minutes ;)
-Nick
On Fri, Nov 7, 2014 at 11:49 AM, Robby Findler
wrote:
> Nice to see the time deltas there. :)
>
> Robby
>
> On Fri, Nov 7, 2014 at 12:51 PM, Geoffrey S. Knauth wrote:
>> I visited HackerNews [1].
For what it's worth, Xcode differentiates these cases by inserting a
temporary closing paren that is gray instead of black. You can make it
permanent by arrowing over it, typing it yourself, tabbing over it, or just
moving the cursor outside the matching parens. When it becomes permanent it
is blac
ns change that state
to permanent or deleted. I don't see a need to track history. But again, I
have very little knowledge about this subject.
On Sat, Nov 24, 2012 at 12:16 PM, Nadeem Abdul Hamid wrote:
> On Sat, Nov 24, 2012 at 12:07 PM, Nick Shelley wrote:
>
>> For what it
alone truncate.
Here's a gist if that's preferable: https://gist.github.com/7de39c77f98fc45cd03d
Also, I have no idea what the text says. If it's
inappropriate/offensive, I apologize.
Thanks,
Nick
unicode-truncate.rkt
Description: Binary data
Racke
Awesome, thanks!
-Nick
On Thu, Jan 24, 2013 at 4:13 AM, Matthew Flatt wrote:
> Yes, that's a bug. I've pushed a repair.
>
> The bug show up when the composed form is more than 16 characters
> shorter than the decomposed form, due to a mistake in an
> avoid
he same process ?
I also asked this question on Stackoverflow:
http://stackoverflow.com/questions/15561215/developing-drracket-extensions-within-the-same-process
--Nick Main
Racket Users list:
http://lists.racket-lang.org/users
:frame<%>)
(define/augment (on-tab-change from-tab to-tab)
(inner (void) on-tab-change from-tab to-tab)
(printf "TAB-CHANGE\n"))
(printf "AUGMENTED !\n") ;sanity check
(super-new)
--Nick
Racket Users list
I edited the source for the optimization coach and to comment out the
"define/augment on-tab-change" and my augment is now working !
I will file a bug for this.
On Mon, Apr 1, 2013 at 2:40 PM, Nick Main wrote:
> I am writing a DrRacket plugin and want to react to tab
the next Racket release,
> Optimization Coach will be distributed separately from Racket.
>
>
> At Mon, 1 Apr 2013 15:15:26 -0700,
> Nick Main wrote:
> >
> > [1 ]
> > [1.1 ]
> > I edited the source for the optimization coach and to comment out the
> &
(I assume).
Are there any cheaper ways to poke a hole through the macro sandbox ?
--Nick
Racket Users list:
http://lists.racket-lang.org/users
since they have already been expanded away.
--Nick
On Wed, Apr 3, 2013 at 5:53 PM, Robby Findler
wrote:
> You want to hook into the online expansion, right? You can register a
> handler that's called after online expansion completes in the place where
> it runs and then its resu
Many thanks for the advice !
I've start forging ahead with the syntax-property approach since that seems
the most robust and provides the least coupling between the stages.
On Thu, Apr 4, 2013 at 2:39 AM, Sam Tobin-Hochstadt wrote:
> On Wed, Apr 3, 2013 at 10:31 PM, Robby Findler
> wrote:
>
g as you create a new
>> frame after doing your new extensions, things should work, I think.
>>
>> Also, if you set the PLTDRRPEL environment variable then you'll get a
>> REPL. There are docs here in this commit:
>>
>>
>> http://git.racket-lang.org/plt/com
Is there a way to get formatted json output to a file? I couldn't figure
out how to get pretty-print hooked in with write-json. I'm probably just
missing something simple.
Racket Users list:
http://lists.racket-lang.org/users
cause he's a
Python guy. I guess he wins this round...
On Sat, Apr 13, 2013 at 11:37 AM, Nick Shelley wrote:
> Is there a way to get formatted json output to a file? I couldn't figure
> out how to get pretty-print hooked in with write-json. I'm probably just
ake
sure I wasn't missing it somewhere (which happens often with me).
On Tue, Apr 16, 2013 at 11:06 AM, Nick Shelley wrote:
> I ended up just doing a system call to Python as suggested here:
> http://stackoverflow.com/questions/352098/how-to-pretty-print-json-from-the-command-line
&
#x27;ve had good luck porting simple Python examples to Racket. Perhaps you
> could start with the Python code that works as you expect, port it to
> Racket, then refactor it to more Rackety ways:
> http://hg.python.org/cpython/file/cc0e72082e52/Lib/json
>
>
> On Tue, Apr 16, 2013 at 1:
First off, thanks Carl and Danny for the code. The thing is, the system
call to python works for our needs and is easier than rolling my own. The
reason I started this thread in the first place is because it seems like
outputting human-readable json is common and often desired (see the upvotes
in t
I have a script that runs some automated tests and logs the results to the
console. The tests can take 10+ minutes, so logging steps to the console is
informative. I'm using Racket to run the script with (system ...) and parse
the logs and report pass/failure, but to do that I have to capture the
l
copies the data to the real port you want it to go to
> and then stdout (or whatever) and when you do that, you have to be careful
> to make sure ports get closed properly, or else you'll lose data, but it
> doesn't take much code and works well.
>
> Robby
>
>
> On
I tried "file-stream-buffer-mode" on the stdout port and that didn't help.
That seems to be the only port that will work with that method.
I also realize I misled you when I put "" as a
placeholder in the code. Really it is a command of the form (format
"instruments -t ~a \"~a\" -e UIASCRIPT ~a" .
; > yourself. You'd do something like
> >
> > (system* "/usr/bin/instruments" "-t" (path->string instruments-path)
> > (path->string app-path) "-e" "UIASCRIPT" (path->string script-path))
> >
> > roughly.
> &
I went to do my "tee" workaround that I assumed would work, and I
discovered that it suffers from the same issue. I then just ran the command
without Racket but included the pipe to tee and none of the output is shown
until the process finishes. The same thing happened when I pipe to less.
There's
I'm sure you'll get more sophisticated responses soon, but this blog post
by John Carmack helped me understand the ideas and tradeoffs a bit. I'm not
sure everything in there is 100% correct or that I agree with everything,
but I think it provides a pretty good overview.
http://www.altdevblogaday.
The struct-copy docs say "The result of struct-expr can be an instance of a
sub-type of id, but the resulting copy is an immediate instance of id (not
the sub-type)." Why is this?
For instance, I would hope this would work:
(struct posn (x y))
(struct 3d-posn posn (z))
(3d-posn-z (struct-copy pos
rough some of the struct docs, but couldn't find a way to introspect a
struct type.
On Fri, May 24, 2013 at 1:16 PM, Jay McCarthy wrote:
> On Fri, May 24, 2013 at 11:18 AM, Nick Shelley
> wrote:
> > The struct-copy docs say "The result of struct-expr can be an instance
&g
I haven't heard of HtD Components or HtD Systems before. I can't seem to
find it after some quick googling (the closest I got was a draft of HtD
Classes).
Can you point me to these resources? I really enjoyed HtDP.
Ok, after a bit more searching I found a reference to components in the
intro of H
The simplicity and DSL thread mentioned Java DSLs, and I came across an
example of one at http://camel.apache.org/java-dsl.html.
To me, this isn't really a DSL, it's more of a programming pattern. One of
the usage patterns on the wiki page for DSL is embedded DSL that uses the
syntax of the host l
On 05/07/13 22:04, Matthias Felleisen wrote:
BSL ISL then ASL. From there, jump to Racket and Typed Racket.
Is deafness a prerequisite?
BSL == British sign language
ISL == Gestuno
ASL == American sign language
Racket Users list:
http://lists.racket-lang.org/users
I recently came across a site that made coming up with regular expressions
much, much easier for me: http://www.debuggex.com/
Hopefully that will help with your "regex hell" problem.
On Thursday, July 18, 2013, Greg Hendershott wrote:
> To add to what Carl and Robby said:
>
> On Thu, Jul 18, 201
hat editor-snip-class% uses a private top-level var
"extended-editor-snip%" to hold the actual class of the snip that it
creates. Is there any way to leverage this ?
I hope that I missed something obvious - there is a lot of machinery in
WXME but nothing that makes this ea
Thanks for the suggestion.
I did think about using a surrogate to wrap the existing "wxmedia" object -
but that would not help me instantiate the custom snip.
I have a cut-n-paste version working, although it seems that editor-snip-class%
has access to hidden methods of editor-stream-in% and edit
and the debugger?
The macro stepper? Is there any kind of guide to Racket Internals?
Thanks for any advice.
Best,
Nick
[1] https://news.ycombinator.com
[2] http://arclanguage.org
[3] Well, really mzscheme
[4] https://github.com/kogir/rark
Racket Users list:
http://lists.racket-lang.org/users
yln 1)
(displayln 2))
Where the above just works and displays 2.
I'll check out the latest research papers too.
Thanks,
Nick
On Mon, Aug 5, 2013 at 1:40 AM, Noel Welsh wrote:
> Does defmacro do what you want?
>
> http://docs.racket-lang.org/compatibility/defmacro.html?q=defmacro
Thanks for the thorough reply and examples!
I'll definitely look into this, but suspect this approach won't be
friendly to redefinition. I'll try and see.
Thanks,
Nick
On Mon, Aug 5, 2013 at 4:52 AM, Jens Axel Søgaard wrote:
> Hi Nick,
>
> 2013/8/4 Nick Sivo
>>
y.
Thanks,
Nick
On Mon, Aug 5, 2013 at 10:12 AM, Vincent St-Amour wrote:
> For that, you could have Arc's `define' expand into both a Racket
> `define' and a `define-for-syntax', which I believe is what Jens was
> suggesting. You may want to do something similar for `requi
None of the Arc code I'm currently concerned with currently requires
this property. Everything except phase 0 is idempotent.
-Nick
On Mon, Aug 5, 2013 at 10:26 AM, Eric Dobson wrote:
> I don't think expanding into a define and a define-for-syntax will
> work. If I understan
I am attempting to write a macro to clean up the use
of define-values/invoke-unit and finding some confusing behavior.
My macros module is:
#lang racket
(provide (all-defined-out))
(define-signature dog^
(woof
bark))
(define mutt@
(unit
(import)
(export dog^)
(define (woof) (
Many thanks !
The problem makes sense and the solution works.
Are there any explanations of "syntax marks" beyond those in the "Syntax
Model" section of the documentation ? The concept seems opaque.
On Tue, Aug 6, 2013 at 2:32 PM, Carl Eastlund wrote:
> Nick,
>
#x27;dog-unit 'dog^))
Again, many thanks.
On Tue, Aug 6, 2013 at 2:32 PM, Carl Eastlund wrote:
> Nick,
>
> The unit system has some non-hygienic behavior, by design. That is, it
> introduces names that aren't part of its input, which isn't the default
> beha
I have a signature that includes a macro to clean up the use of one of the
procs in the signature.
Two different units with the same signature are used
via define-values/invoke-unit - the second one uses a prefix in the export
sig-spec to differentiate it from the first.
The macro introduced by th
..) form was
not working. Anyway, I will make all the message structs extend a root
message struct and check for that in the ==> macro to catch this in future.
Thanks for the response !
On Wed, Aug 7, 2013 at 7:21 PM, Carl Eastlund wrote:
> Nick,
>
> You can't just go by the
I just ran into this very thing today because I didn't realize the packages
were put into a submodule and I'm in the habit of not reading error
messages. However, after trying some things and getting this error multiple
times, I finally read it carefully. The answer is in your skimmed
"something so
I'm interested in learning more about Racket, macros, programming
languages, and anything else that will make me a better programmer. The
problem is, there is so much material out there that I'd appreciate help in
prioritizing what to do first.
As a background, I understand that using Racket is on
Thanks for the suggestions. I will add those to my list.
Would it make sense to add any of these responses to the Learn page of the
Racket web site?
On Thu, Aug 29, 2013 at 12:17 PM, Asumu Takikawa wrote:
> On 2013-08-29 14:08:30 -0400, Greg Hendershott wrote:
> > 3. There are a few blogs that
Hi,
I've heard rumors of a net/http-client library that solves a variety
of common problems with the http functions in net/uri, including some
I'm having.
Where does net/http-client live? I searched the docs and the trunk in
github and couldn't find it. Or is it just planned
27;sp)
(define-syntax (mylet stx)
(syntax-parse stx
[(_ ([var-id rhs-expr] ...) body ...+)
#'((lambda (var-id ...) body ...) rhs-expr ...)]))
I've not done as much Racket programming as many of you, but I've yet
to want syntax/parse in only phase 0
Hello,
I noticed there are differences when I run HtDP programs in DrRacket IDE vs
the "racket" command line.
For example, the following program's test passes in DrRacket IDE:
;; file.rkt - Set to Beginning Student
(check-expect (exact? (string->number "1.0")) true)
But when I run "raco test f
Thank you very much Robby for the quick reply! I should have mentioned that
our students are using Beginning Student by setting the Language to that,
rather than adding #lang htdp/bsl. It appears this makes a difference. So
the whole file looks like:
;; The first three lines of this file were i
Thanks again Robby! I will create issues on the drracket github issues page.
On Tuesday, October 6, 2020 at 9:23:49 AM UTC-4 Robby Findler wrote:
> On Tue, Oct 6, 2020 at 1:50 AM Nick Lee wrote:
>
>> Thank you very much Robby for the quick reply! I should have mentioned
>>
94 matches
Mail list logo