And, I've answered my own question.
I really wouldn't want the ensuing thrashing, even if I could load the data
on a machine with insufficient RAM; I dropped $1 and picked up a VM for
long enough to load Racket, load the data, and do what needed to be done. I
needed around 20GB all told.
I'm
On Fri, Apr 10, 2015 at 4:48 PM, John Carmack jo...@oculus.com wrote:
[...]
Somewhat related, can a program tell when it is in DrRacket? I want my
servers to run in threads so I can use the REPL there, but I want to leave
one of them as the foreground thread when run from the command line.
When, some day I will be, maybe, capable of really understand all of what
you told me, I will dismiss my questions like this by myself and be proud
of it.
I see that micro optimization it is not a popular theme here, but my
question, which I think is more general (as badly expressed maybe) don't
If like me you're using several desktops/workspaces, you've probably
already been annoyed when pressing F1 to see the link being opened in a
window in a different workspace, instead of the window that stands just
next to your DrRacket window.
There's a very simple solution if you're using Chrome
Hi all,
I have a slight problem. While running some data analysis, I decided to
cache some hash tables to disk. I started by using FASL, but found that it
was fragile between versions of Racket. For example, I have v6 in one place
and v6.1.1 in another... and, I can't afford to have these cached
I’ve done this, too. Could there be some way for #langs to report a default
file extension to DrRacket?
On Apr 9, 2015, at 15:31, Prabhakar Ragde plra...@uwaterloo.ca wrote:
When I am editing a Scribble file in DrRacket and use Save Definitions
As... to start a new version, the system file
On 4/6/2015 1:49 PM, Lux wrote:
You almost never have to worry about the efficiency of (second x) (cadr x)
and (car (cdr x)). There are always bigger fish to fry than that.
Sure enough, but what if this simple operation is repeated one billion times?
Micro optimization is largely a waste of
On Apr 13, 2015, at 10:26 AM, Robby Findler ro...@eecs.northwestern.edu wrote:
You could just make delete-trailing-whitespace a keyboard shortcut instead.
Another approach would be to add a mode that colors trailing
whitespace in that ugly greeny/yellowy color that DrRacket uses for
the
Ok, I guess that makes sense.
I do have `(` mapped to something other than the default, but not in a too
crazy way.
I’m making a readtable-based version of part of sweet-exp where f(x) reads as
(f x), but also I changed `(` so that (f)(x) reads as ((f) x), but (f) still
reads as (f), and
That is helpful, but my basic objection still stands: you're computing
with *times* while the claim in the article was about *speeds*, I think.
He says 50% more work using the same amount of CPU cycles, which I
read as work/time. So you need to take the reciprocal of all your
values. Don't you?
1. Yes, you should consider the performance of your programs as you design
them. Indeed, there is an entire hierarchy of performance considerations to
observer, starting with the choice of data representation, the operations on
it, amortized vs worst-case scenarios, distribution of operations
DrRacket is freezing on me a lot, but I’m not sure if it’s because of a problem
in DrRacket, Typed Racket, Pict3d, or something else.
If I open DrRacket, open pict3d/private/gui/typed-pict3d-combinators.rkt, which
is a typed racket file, with background expansion turned on, if I wait a few
But if it does that, then why should it care whether the readtable entry for
`(` is exactly the same as the default?
On Apr 13, 2015, at 1:00 PM, Matthew Flatt mfl...@cs.utah.edu wrote:
The reader for `#hash` parses parentheses and dots itself, instead of
recurring and checking the result,
Ok, I oversimplified. The reader for `#hash` doesn't actually look for
`(`; it looks for any character that is mapped to the default meaning
of `(`.
For example, we could map `!` to the meaning of `(`, and the `#hash`
part of the reader would go along with that mapping:
(parameterize
On Mon, Apr 13, 2015 at 1:51 PM, 'John Clements' via users-redirect
us...@plt-scheme.org wrote:
On Apr 13, 2015, at 10:26 AM, Robby Findler ro...@eecs.northwestern.edu
wrote:
You could just make delete-trailing-whitespace a keyboard shortcut
instead.
Another approach would be to add a
So, just to be clear, because there have been a number of +1s for a
whitespace-highlighting feature: that's not what I'm doing. A bunch of
people want that, so someone should write it, but I'm not going in
that direction. (In fact, one of my emacs configurations does this in
ruby-mode, and I keep
Even if all statements are true, this sounds like a classic case of choosing
how to present your results so they appear in the best possible light for
publication.
Andrew Mauer-Oats
Mathematics Ph.D.
Chicago Public Schools: Whitney Young
On Apr 13, 2015, at 4:16 PM, Josh Grams
After editing a Racket source file in DrRacket, I usually end up going
into Emacs to clean up formatting of the code and comments. This is a
combination of `quack-tidy-buffer` (see docs below), semi-automated
re-filling of any messy comment/docs, adjusting of line breaks in ways
that are
I think this is the bit
http://www.cs.utah.edu/plt/snapshots/current/doc/tools/Editor_Modes.html
Link to this section with
@secref[General-purpose_Modes #:doc '(lib
scribblings/tools/tools.scrbl)]
I keep meaning to look at the source of DrRacket to see how this is
implemented for text and
Another approach would be to add a mode that colors trailing
whitespace in that ugly greeny/yellowy color that DrRacket uses for
the your code is more than 102 columns warning.
+1 to this. I think I’d definitely like this independent of a mechanism to
trim on save.
+1
Also +1. This is
On 4/13/2015 5:16 PM, Josh Grams wrote:
That is helpful, but my basic objection still stands: you're computing
with *times* while the claim in the article was about *speeds*, I think.
He says 50% more work using the same amount of CPU cycles, which I
read as work/time. So you need to take the
You could just make delete-trailing-whitespace a keyboard shortcut instead.
Another approach would be to add a mode that colors trailing
whitespace in that ugly greeny/yellowy color that DrRacket uses for
the your code is more than 102 columns warning.
Robby
On Mon, Apr 13, 2015 at 12:06 PM,
On Mon, Apr 13, 2015 at 1:06 PM, John Clements
cleme...@brinckerhoff.org wrote:
On Apr 13, 2015, at 2:29 AM, Jon Zeppieri zeppi...@gmail.com wrote:
It's supposed to have the same effect as emacs's
`delete-trailing-whitespace`.
I still need to add a preference setting to turn it on or off.
Preferences are here for the prefs library:
http://docs.racket-lang.org/framework/Preferences__Textual.html
and here for adding check boxes to the prefs dialog:
On Mon, Apr 13, 2015 at 1:27 PM, Robby Findler
ro...@eecs.northwestern.edu wrote:
Preferences are here for the prefs library:
http://docs.racket-lang.org/framework/Preferences__Textual.html
and here for adding check boxes to the prefs dialog:
Robby,
This is my first crack at a DrRacket tool (not to mention an uncommon
foray into Racket's class system), so what I'm doing may not be...
sane. But if you're willing to take a look:
[https://github.com/97jaz/drwhitespace]. At any rate, it isn't a lot
of code. I based the general structure
On 2015-04-13 12:29AM, George Neuner wrote:
Somebody doesn't understand fractions: the numbers show a 33%
improvement, not 50%. 3.7 is 50% slower, but 3.8 is only 33% faster.
Are you sure? I thought that at first, but those numbers are time
rather than speed, and when I checked my units
Hi Josh,
On 4/13/2015 5:37 AM, Josh Grams wrote:
On 2015-04-13 12:29AM, George Neuner wrote:
Somebody doesn't understand fractions: the numbers show a 33%
improvement, not 50%. 3.7 is 50% slower, but 3.8 is only 33% faster.
Are you sure? I thought that at first, but those numbers are time
On Apr 13, 2015, at 12:29 AM, George Neuner gneun...@comcast.net wrote:
There are some obvious cases, but most programmer guesses at where high
optimization is needed are simply wrong
... which is precisely why some people here are working on
compiler/optimization coaching and profiling.
On Monday, April 13, 2015 at 6:26:38 PM UTC+2, Alexis King wrote:
What exactly is the difference here between your define-opcode macro and
Racket’s define-struct form? For example, simply doing (define-struct A2
result left right relop) would generate make-A2, A2? A2-result, A2-left, etc.
Take a look at the PLAI language and define-type. I recommend you elaborate
your syntax into PLAI constructs.
On Apr 13, 2015, at 12:40 PM, Nils Van Geele nils.vge...@gmail.com wrote:
On Monday, April 13, 2015 at 6:26:38 PM UTC+2, Alexis King wrote:
What exactly is the difference here
The reader for `#hash` parses parentheses and dots itself, instead of
recurring and checking the result, so that it can provide better error
reporting.
For example, if I write
#hash((x . 1) y (z . 2))
then the reader can highlight y and complain about that part
specifically. If the `#hash`
On Apr 13, 2015, at 2:29 AM, Jon Zeppieri zeppi...@gmail.com wrote:
Robby,
This is my first crack at a DrRacket tool (not to mention an uncommon
foray into Racket's class system), so what I'm doing may not be...
sane. But if you're willing to take a look:
What exactly is the difference here between your define-opcode macro and
Racket’s define-struct form? For example, simply doing (define-struct A2 result
left right relop) would generate make-A2, A2? A2-result, A2-left, etc.
What you describe is certainly possible, but I don’t think it’s
Hey all,
Bit of context: I'm writing a compiler for a course and decided to use Racket.
I'm translating an AST to three address code-like instructions. Because I do
not want to manually write a great deal of boilerplate code for each opcode, I
figured I could use macros.
I have a struct
35 matches
Mail list logo