Re: [racket-dev] Fwd: [ACM-BULLETIN] Today's Topic: ACM Names 2014 Distinguished Members

2014-12-04 Thread Pierpaolo Bernardi
Congrats Matthew! On Thu, Dec 4, 2014 at 5:50 PM, Matthias Felleisen wrote: > Even the ACM considers our very own Matthew Flatt as a distinguished > scientist. -- Matthias > > > > > Begin forwarded message: > > *From: *ACM Bulletin > *Subject: **[ACM-BULLETIN] Today's Topic: ACM Names 2014 Dis

Re: [racket-dev] Tweaked doc pages

2013-03-06 Thread Pierpaolo Bernardi
On Thu, Mar 7, 2013 at 3:36 AM, Eli Barzilay wrote: > They are already indexed, but it happens to be a very popular name so > there are tons of results before it. (Try searching for "stxparam" to > see that it works.) Ooops. You are right. I gave up too soon. _ Racke

Re: [racket-dev] Tweaked doc pages

2013-03-06 Thread Pierpaolo Bernardi
On Wed, Mar 6, 2013 at 6:15 PM, Eli Barzilay wrote: > There's no practical way to unify the two searches since they are > implemented in a completely different way all the way to how the end > user interacts with them. Neither Racket's search nor Google's one report the racket/format module, sea

Re: [racket-dev] Stumped!

2013-02-22 Thread Pierpaolo Bernardi
alue errors. It would be good to do > better, but I'm not sure how. The errortrace library contains what we > currently do so you'd want to experiment there if you have an idea. > > Robby > > > On Fri, Feb 22, 2013 at 1:13 PM, Pierpaolo Bernardi > wrote: >>

Re: [racket-dev] Stumped!

2013-02-22 Thread Pierpaolo Bernardi
On Fri, Feb 22, 2013 at 4:40 PM, Ryan Culpepper wrote: > The line > > (date-day quando)99 > > looks pretty suspicious; with the 99 there, the first branch of the > enclosing 'if' expression returns 8 values but the second branch returns 7 > values. Yes, that was the source of the error (a mista

[racket-dev] Stumped!

2013-02-22 Thread Pierpaolo Bernardi
This one got me stumped for a while. I don't remember a case like this ever occurring in the past, so I'm thinking that maybe this is a regression? In DrRacket, with debugging and stacktrace enabled in all the buffers involved, when I run the file strano.rkt, I get this error: Welcome to DrRacke

[racket-dev] Missing indentation rules for for{*}/set

2013-02-13 Thread Pierpaolo Bernardi
(I know how to add them, but maybe should be included out of the box?) Cheers _ Racket Developers list: http://lists.racket-lang.org/dev

Re: [racket-dev] Bug report form broken

2013-02-09 Thread Pierpaolo Bernardi
ote at the end of that message. > > Robby > > > > On Fri, Feb 8, 2013 at 1:12 PM, Pierpaolo Bernardi > wrote: > >> Hello, >> >> with "Welcome to DrRacket, version 5.3.2.3--2013-02-05(fb91582/a) [3m]." >> the bug report form is brok

Re: [racket-dev] Bug report form broken

2013-02-08 Thread Pierpaolo Bernardi
After many retries, one succeded. As ar as I can tell, I did nothing different this time. Cheers On Fri, Feb 8, 2013 at 8:12 PM, Pierpaolo Bernardi wrote: > Hello, > > with "Welcome to DrRacket, version 5.3.2.3--2013-02-05(fb91582/a) [3m]." > the bug report form is brok

[racket-dev] Bug report form broken

2013-02-08 Thread Pierpaolo Bernardi
Hello, with "Welcome to DrRacket, version 5.3.2.3--2013-02-05(fb91582/a) [3m]." the bug report form is broken again. Attached there is a screenshot of the error. The report I was trying to submit follows below. Cheers In DrRacket, with "Enable keybindings in menu" unchecked, the comma

Re: [racket-dev] Floating-Point Compliance Testing

2013-02-07 Thread Pierpaolo Bernardi
On Thu, Feb 7, 2013 at 5:50 PM, Neil Toronto wrote: > DrDr runs (test-floating-point 1000) every push, which has returned only '() > for weeks. In your output, I don't see anything that would indicate a > problem with Racket. We can almost certainly pin the blame on your processor > or the standar

Re: [racket-dev] Feature request:highlight variables

2013-02-03 Thread Pierpaolo Bernardi
I meant 'Tack/Untack arrows'. Cheers 2013/2/3, Harry Spier : > Thanks Pierpaolo, > I don't see a command to highlight the variable, though I do see jump to > next bound occurance and the very useful "change variable name" > Harry > > On Sat, Feb 2, 2

Re: [racket-dev] Feature request:highlight variables

2013-02-02 Thread Pierpaolo Bernardi
You can already do this by right-clicking an identifier and selecting the appropriate command (whose name at the moment I can't remember). Cheers 2013/2/3, Harry Spier : > I just downloaded the latest version of Komodo Edit (I needed to edit some > PHP code) and it has an interesting feature tha

[racket-dev] (current-date)

2013-01-30 Thread Pierpaolo Bernardi
Hello, current-date returns a time* struct wich has a granularity of 1 s. Using (seconds->date (* #i1/1000 (current-inexact-milliseconds))) appears to works better. Any reason not to define current-date in this way? there's a nanosecond field there wanting to get into action. Cheers P. ___

Re: [racket-dev] differences in error reporting

2013-01-29 Thread Pierpaolo Bernardi
AHA! You got it! It happens in the tabs which have 'No debugging...' checked, and doesn't happen otherwise. 2013/1/30, Robby Findler : > What is the "custom" part of the language settings you have on? > > Robby > > > On Tue, Jan 29, 2013 at 7:47 PM, Pi

Re: [racket-dev] differences in error reporting

2013-01-29 Thread Pierpaolo Bernardi
integer->roman 3.3) > . . integer->roman: contract violation > expected: integer? > given: 3.3 >> (integer->roman 3.3) > . . integer->roman: contract violation > expected: integer? > given: 3.3 >> > > > On Tue, Jan 29, 2013 at

Re: [racket-dev] differences in error reporting

2013-01-29 Thread Pierpaolo Bernardi
age: racket; memory limit: 128 MB. >> (integer->roman 3.3) > . . integer->roman: contract violation > expected: integer? > given: 3.3 >> (integer->roman 3.3) > . . integer->roman: contract violation > expected: integer? > given: 3.3 >> >

[racket-dev] differences in error reporting

2013-01-29 Thread Pierpaolo Bernardi
If I use raise-argument-error in my functions, like this: (define (integer->roman n) (cond ((not (integer? n)) (raise-argument-error 'integer->roman "integer?" n)) ((positive? n) (apply string-append (positive-integer->roman n))) ((negative? n) (apply s

Re: [racket-dev] Bug in creating executables from DrRacket

2013-01-26 Thread Pierpaolo Bernardi
ch means it acquired a contract, which means it wasn't eq? anymore. > So the test was failing incorrectly. > > I've pushed a fix. > > Thanks, > Robby > > > On Sat, Jan 26, 2013 at 10:18 AM, Pierpaolo Bernardi > wrote: > >> Omitted dev the f

[racket-dev] Fwd: Bug in creating executables from DrRacket

2013-01-26 Thread Pierpaolo Bernardi
Omitted dev the first time. Sorry for the duplicate. -- Forwarded message -- From: Pierpaolo Bernardi Date: Sat, Jan 26, 2013 at 5:16 PM Subject: Re: [racket-dev] Bug in creating executables from DrRacket To: Robby Findler On Sat, Jan 26, 2013 at 2:03 AM, Robby Findler wrote

[racket-dev] Bug in creating executables from DrRacket

2013-01-25 Thread Pierpaolo Bernardi
Hello, In a freshly started DrRacket 5.3.2.1, on Windows 8, executables creation fails with this message: Executable creation in DrRacket is supported only in the teaching languages and when the #lang line specifies the language (in “The Racket Language”) Consider using the raco exe command

[racket-dev] TR internal error

2013-01-21 Thread Pierpaolo Bernardi
Hello, the file attached causes the following internal error: C:\Program Files\Racket-Full-5.3.2.1\collects\typed-racket\utils\tc-utils.rkt:154:0: Internal Typechecker Error: bad expected: #(struct:tc-results (#(struct:tc-result Char - -) #(struct:tc-result (Vector Integer Integer Integer Integer

Re: [racket-dev] weirdest bug ever

2013-01-17 Thread Pierpaolo Bernardi
On Thu, Jan 17, 2013 at 4:46 PM, Ben Goetter wrote: > On Windows, Courier New (the default font for the drracket output pane) does > not support U+2144. When I set the output pane to use a font that does > support this character, such as Segoe UI Symbol, U+2144 displays in the > correct bounding

Re: [racket-dev] weirdest bug ever

2013-01-17 Thread Pierpaolo Bernardi
On Thu, Jan 17, 2013 at 3:46 PM, Ray Racine wrote: > Works fine on Linux, assuming it's an upside down Y -> ⅄ Yes. And here's how it looks on windows. <>_ Racket Developers list: http://lists.racket-lang.org/dev

[racket-dev] weirdest bug ever

2013-01-17 Thread Pierpaolo Bernardi
Hello, try the following in the interaction panel of DrRacket: (display (integer->char #x2144)) Or, just put this character in an editor buffer. The character is displayed 3 lines below its proper position. AFAIK, this character is a normal ‘Letterlike Symbol’. It shouldn't have any misterious

Re: [racket-dev] racket/date, SRFI-19, date construction

2013-01-13 Thread Pierpaolo Bernardi
iauCal2jd gives 240.5 +56305.0 (=2456305.5) which is the correct answer (of course!) 2013/1/13, Marco Maggi : > Pierpaolo Bernardi wrote: >> You may want to look instead at (the time related parts >> of) SOFA (www.iausofa.org). > > I have libtoolised SOFA:

Re: [racket-dev] racket/date, SRFI-19, date construction

2013-01-11 Thread Pierpaolo Bernardi
On Fri, Jan 11, 2013 at 7:04 PM, Asumu Takikawa wrote: > Note: in the long run, it's probably best to have a comprehensive > srfi/19 replacement in racket/date, Agreed. srfi/19 also has some serious flaws, which I have no time at the moment to delve into. The one merit it has, is that being an

Re: [racket-dev] bit-vectors and serialization

2012-12-18 Thread Pierpaolo Bernardi
On Mon, Dec 17, 2012 at 10:35 PM, Ryan Culpepper wrote: > True, popcount takes about three times as long as it used to. With a few > additional changes, popcount on a million-bit bit-vector takes 1.1 ms using > bytes, as opposed to 0.35 ms using fxvectors. (Tested on a 64-bit machine.) I seem to

Re: [racket-dev] Missing spel cheker

2012-11-29 Thread Pierpaolo Bernardi
On Thu, Nov 29, 2012 at 2:46 PM, Robby Findler wrote: > There should be an menu item about fourth from the end called "Spell > Check String Constants". Not in my case. > It won't work if you don't have aspell installed, however. That's my case! Cheers P. _ Racket Deve

[racket-dev] Missing spel cheker

2012-11-29 Thread Pierpaolo Bernardi
Hi, in the release notes of 5.3.1, there's: • DrRacket can spell-check string constants (enable this in the Edit menu). I can't find anything related in the Edit menu, and searching for "spell" in the help desk turns out empty. (On Windows, in case it matters). Cheers P. ___

Re: [racket-dev] Implementation of bit vectors

2012-11-27 Thread Pierpaolo Bernardi
Hi, On Tue, Nov 27, 2012 at 2:34 PM, Jens Axel Søgaard wrote: > Hi Pierpaolo, > > 2012/11/27 Pierpaolo Bernardi : >> Also, you store and retrieve booleans, not bits, so the name >> 'bit-vector' is misleading. > > Potato / Potato :-) > > http://wiki.ca

Re: [racket-dev] Implementation of bit vectors

2012-11-27 Thread Pierpaolo Bernardi
On Sat, Nov 24, 2012 at 8:33 PM, Jens Axel Søgaard wrote: > Hi All, > > I have written an implementation of bit vectors intended to be part of > the data collection. > > https://github.com/plt/racket/pull/176 > > Any comments on the implementation and documentation are welcome. > The bit vecto

Re: [racket-dev] Survey for DrRacket users related to automatic parentheses behavior

2012-11-23 Thread Pierpaolo Bernardi
On Fri, Nov 23, 2012 at 1:20 AM, Nadeem Abdul Hamid wrote: > 1. Do you use the automatic parentheses feature of DrRacket? No. > 3. If your answer to #1 is "No", why not? (Is it because you find its > current behavior awkward in some way?) Yes. Typing close parentheses is much less hassle than

Re: [racket-dev] Wow; racket master at least 2x faster than 5.3.1 on my rb tree benchmark?

2012-11-18 Thread Pierpaolo Bernardi
How does compare to builtin mutable hashes? 2012/11/18, Danny Yoo : > I'm doing some micro-optimizations on my rb-tree implementation. One thing > I'm testing is inserting the entire contents of /usr/share/dict/words. > It's heavily dominated by structure-mutation code. > > Under 5.3.1, I see t

Re: [racket-dev] Character classification

2012-09-04 Thread Pierpaolo Bernardi
On Tue, Sep 4, 2012 at 5:03 PM, Sam Tobin-Hochstadt wrote: > On Tue, Sep 4, 2012 at 10:57 AM, Pierpaolo Bernardi > wrote: >> >> What is annoying is that char-numeric? and string->number are not compatible. > > `char-numeric?` and `string->number` would not be &quo

Re: [racket-dev] Character classification

2012-09-04 Thread Pierpaolo Bernardi
On Tue, Sep 4, 2012 at 3:56 PM, Doug Williams wrote: > I would say your function would be better named is-digit? Good point. However, many of the characters which are char-numeric? are digits too, in other writing systems. > and that the > char-numeric? is exactly what it is intended to be with

Re: [racket-dev] Character classification

2012-09-04 Thread Pierpaolo Bernardi
On Tue, Sep 4, 2012 at 3:56 PM, Doug Williams wrote: > I would say your function would be better named is-digit? Good point. However, many of the characters which are char-numeric? are digits too, in other writing systems. > and that the > char-numeric? is exactly what it is intended to be with

Re: [racket-dev] Character classification

2012-09-04 Thread Pierpaolo Bernardi
On Tue, Sep 4, 2012 at 3:11 PM, Jens Axel Søgaard wrote: > Since the R5RS version of char-numeric? (according to the documentation) > tests for the ten digits, you can use: > > (require (only-in r5rs char-numeric?)) Thanks Jens Axel. However, the r5rs version appears to be the same as the Racket

[racket-dev] Character classification

2012-09-04 Thread Pierpaolo Bernardi
The non-cooperation between char-numeric? and string->number is very annoying. I had to resort to: (define (my-char-numeric? c) (char<=? #\0 c #\9)) Maybe I am missing a function similar to my-char-numeric? somewhere in the Racket docs? FWIW, my humble opinion is that char-numeric? should be

[racket-dev] Character classification

2012-09-04 Thread Pierpaolo Bernardi
The non-cooperation between char-numeric? and string->number is very annoying. I had to resort to: (define (my-char-numeric? c) (char<=? #\0 c #\9)) Maybe I am missing a function similar to my-char-numeric? somewhere in the Racket docs? FWIW, my humble opinion is that char-numeric? should be

Re: [racket-dev] Feature request: Vector-sort

2012-07-29 Thread Pierpaolo Bernardi
Also: (require data/heap) heap-sort! 2012/7/30, Eli Barzilay : > A few minutes ago, Harry Spier wrote: >> I would find a sort function for vectors very useful. > > Actually, the `sort' code uses a vector to do its work, which is > initialized from the input list. But it doesn't help much to m

[racket-dev] repl, void, multiple values.

2012-04-06 Thread Pierpaolo Bernardi
Hello, not an important point, just a simple observation that I don't remember having ever seen raised: the repl not printing the void object, sometimes creates ambiguities. Example, given: (define (ok) 'ok) (define (not-ok) (let ((answer 40)) (set! answer (+ answer 2 and at the re

Re: [racket-dev] reporting bugs from behind firewalls

2012-02-15 Thread Pierpaolo Bernardi
On Wed, Feb 15, 2012 at 14:39, Eli Barzilay wrote: > Just now, Pierpaolo Bernardi wrote: >> >> oops. I have not tried sending this report with this version of >> DrRacket.  I was remembering the behaviour of previous versions. >> >> Should I try to file this repor

Re: [racket-dev] reporting bugs from behind firewalls

2012-02-15 Thread Pierpaolo Bernardi
On Wed, Feb 15, 2012 at 14:29, Eli Barzilay wrote: > Just now, Matthias Felleisen wrote: >> >> On Feb 15, 2012, at 4:30 AM, Pierpaolo Bernardi wrote: >> >> > (for company firewall reasons I cannot use the bug report >> > facility.  Please bear with me). &g

[racket-dev] Check-syntax glitch?

2012-02-15 Thread Pierpaolo Bernardi
Hello, (for company firewall reasons I cannot use the bug report facility. Please bear with me). Racket version 5.2.1; Environment: windows "Windows NT 6.1 (Build 7601) Service Pack 1" (win32\i386\3m) (get-display-depth) = 32; If I put the following text in a buffer: #lang racket (struct

Re: [racket-dev] crash in DrRacket 5.1.1

2011-05-20 Thread Pierpaolo Bernardi
On Fri, May 20, 2011 at 00:22, Matthew Flatt wrote: > I've pushed a fix to the git repo. Thanks! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] crash in DrRacket 5.1.1

2011-05-19 Thread Pierpaolo Bernardi
On Thu, May 19, 2011 at 16:20, Sam Tobin-Hochstadt wrote: > This crashes DrRacket (but not command line Racket, or 'raco make') on > Linux as well, but *only* if Debugging is off. On windows, also with debugging on. _ For list-related administrati

Re: [racket-dev] crash in DrRacket 5.1.1

2011-05-19 Thread Pierpaolo Bernardi
On Thu, May 19, 2011 at 16:20, Sam Tobin-Hochstadt wrote: > This crashes DrRacket (but not command line Racket, or 'raco make') on > Linux as well, but *only* if Debugging is off. ah! _ For list-related administrative tasks: http://lists.racket-

[racket-dev] crash in DrRacket 5.1.1

2011-05-19 Thread Pierpaolo Bernardi
Hello, attempting to compile the attached file crashes DrRacket. Banner: Welcome to DrRacket, version 5.1.1 [3m]. Environment: windows XP 32 bit. P. wttree.rkt Description: Binary data _ For list-related administrative tasks: http://lists.rac

Re: [racket-dev] Typed Racket support for Ephemerons

2011-04-27 Thread Pierpaolo Bernardi
BTW, I think there are a couple of typos in: "15.2 Ephemerons An ephemeron [Hayes97] is a generalization of a weak box (see Weak Boxes). Instead of just containing one value, an e___m___phemeron holds two values: one that is considered the value of the ephemeron and another that is the ephemeron’s

Re: [racket-dev] DrRacket crash

2011-04-19 Thread Pierpaolo Bernardi
On Tue, Apr 19, 2011 at 00:47, Stephen Chang wrote: > I dont have any insight into the crashing, but fwiw, I ran your > program on two machines and both completed. The first machine has > windows7 and 12gb ram and the second is xp and has 2gb (and pretty > much took all day to complete). I ran bot

Re: [racket-dev] DrRacket crash

2011-04-19 Thread Pierpaolo Bernardi
On Tue, Apr 19, 2011 at 00:14, Matthew Flatt wrote: > Just to make sure, is there anything in the event log from DrRacket? > DrRacket attempts to log an event when it runs out of memory. That was it. In the event log there's: "Racket virtual machine has run out of memory; aborting." Thanks to al

Re: [racket-dev] DrRacket crash

2011-04-18 Thread Pierpaolo Bernardi
On Mon, Apr 18, 2011 at 16:49, Pierpaolo Bernardi wrote: >  And there's plenty of free ram when it happens. To be more precise, I ran the test once more: the machine has 2 GB of RAM, DrRacket at the moment of the crash uses about 900 MB, and there are more than 300 MB of physical RAM fr

Re: [racket-dev] DrRacket crash

2011-04-18 Thread Pierpaolo Bernardi
On Mon, Apr 18, 2011 at 16:45, Robby Findler wrote: > The limits in the DrRacket executable are not the same as the limits > that you might expect from just looking at the amount of memory you > have on that machine and, judging from a quick look at the program, it > seems to be using a lot of mem

[racket-dev] DrRacket crash

2011-04-18 Thread Pierpaolo Bernardi
Hello, the attached program, invoked with (fa 2000 -2) in DrRacket, both in 5.1 and in 5.1.0.5, on windows XP, causes DrRacket to crash (after 20 minutes, on my machine). This appears to be repeatable on my machine. I tested with "No debugging or profiling", don't "Preserve stacktrace", an

Re: [racket-dev] mzscheme executable relic

2011-04-15 Thread Pierpaolo Bernardi
On Fri, Apr 15, 2011 at 10:51, Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 04/13/11 14:15, Marijn wrote: >> Hi, >> >> racket currently still installs a mzscheme executable that (on my >> system) does this: >> >> $ mzscheme >> read failed to read all 31 bytes from file /u

Re: [racket-dev] bug in indenter

2011-04-08 Thread Pierpaolo Bernardi
On Fri, Apr 8, 2011 at 14:49, Robby Findler wrote: > Thanks, that's now fixed. "the tabber incorrectly counted tab chars as spaces when doing indentation;" and the tabs where there because I had edited the file with emacs. and I was on a computer without my personal .emacs, which instructs it to

[racket-dev] bug in indenter

2011-04-08 Thread Pierpaolo Bernardi
Please excuse me for not using the proper form for bug reports, but with the web form I cannot attach files, and I cannot use the "report bug" command in racket for firewall reasons. In the attached file, line 89 is not indented correctly neither pressing tab with the cursor on the line nor with t

Re: [racket-dev] change default binding of c:x; c:w to "save definitions as..." ?

2011-03-22 Thread Pierpaolo Bernardi
On Mon, Mar 21, 2011 at 21:29, Robby Findler wrote: > We can do whatever is standard on whatever platform nowadays thanks to gr2. I woud like a standard way to tell DrRacket that my platform is emacs, whatever OS may happen to be under emacs at the moment... __