Re: [racket-users] question about places and main thread gc

2020-10-01 Thread Matthew Flatt
o, is there any > > way to get the place descriptor for the current place or the main place? I > > didn't see any in the docs. I guess i should just start reading the racket > > source at this point. > > > > Also maybe i'm missing a simpler solution. A

Re: [racket-users] [racket users] describe variant issue?

2020-09-17 Thread Matthew Flatt
A PR to improve `struct->vector` for CS would be welcome. There relevant code is here: https://github.com/racket/racket/blob/master/racket/src/cs/rumble/struct.ss#L1221 As you'll see, the synthesized name is currently whatever comes out of Chez Scheme's `inspect/object` interface. It could

Re: [racket-users] Writing make-sized-byte-string alternative on CS

2020-09-15 Thread Matthew Flatt
You use `make-bytes` and `memcpy`, instead of writing a new loop. (The non-copying part of `make-sized-byte-string` is what CS can't support.) Matthew At Tue, 15 Sep 2020 21:12:22 +, Sage Gerard wrote: > The docs for >

Re: [racket-users] question about places and main thread gc

2020-09-14 Thread Matthew Flatt
At Mon, 14 Sep 2020 00:34:08 -0500, Nate Griswold wrote: > If i understand correctly, in racket cs embedded if i am not currently > running anything in the main racket thread then gc cannot happen. But the > next time i make a call into racket on that reserved racket thread (which > has not been

Re: [racket-users] Create C functions for embedded Racket CS

2020-09-03 Thread Matthew Flatt
At Wed, 2 Sep 2020 14:05:11 -0700 (PDT), dotoscat wrote: > There are a function such scheme_make_prim_w_arity > _arity%29> > for the CS version? The idea is to use Racket > as a scripting language for a C program.

Re: [racket-users] ARM32 binaries for CS, or building on ARM 32

2020-08-24 Thread Matthew Flatt
l.com" wrote: > Alright, after compiling for approximately 16 hours, it looks like this > works. Thanks so much! > > On Tuesday, August 11, 2020 at 3:02:54 PM UTC-7 Matthew Flatt wrote: > > > Ah, that makes sense. > > > > Does configuring with `--enable-

Re: [racket-users] Can OpenSSL be upgraded for the next Racket release?

2020-08-20 Thread Matthew Flatt
> > But I couldn't find a repository or instructions on how to build them. > Could you point me in to some instructions? In the future, instead of > asking for upgrades, I'd like to maybe send a PR or something. > > Best > Andre > > > > On Wed, 19 Aug

Re: [racket-users] Unfortunate error message for wrong number of arguments to a format string in printf

2020-08-19 Thread Matthew Flatt
Thanks for the report! This has been fixed for the next release. Matthew At Wed, 19 Aug 2020 12:16:24 -0400, William Byrd wrote: > To wit: > > Chez Scheme Version 9.5.3 > Copyright 1984-2019 Cisco Systems, Inc. > > > (printf "~s") > > > Exception in printf: too few arguments for control

Re: [racket-users] Can OpenSSL be upgraded for the next Racket release?

2020-08-18 Thread Matthew Flatt
Yes --- done. Matthew At Mon, 17 Aug 2020 17:46:49 +0100, Andre Garzia wrote: > Hi Folks, > > The OpenSSL DLLs being shipped with Racket (in version 7.7 at least) is > v1.1.0.8 which has already been EOLd. Version 1.1.1 is the stable version. > Version 1.1.1 is LTS and supported until 2023. In

Re: [racket-users] emoji in source code

2020-08-18 Thread Matthew Flatt
It turns out that the commit below is not part of the main Cairo branch. (It builds on other commits that haven't been merged, and there appear to be issues.) So, it's not as simple as upgrading Cairo. At Mon, 20 Jul 2020 09:02:50 -0600, Matthew Flatt wrote: > The emoji problem on Mac OS

Re: [racket-users] Package Server Update Status

2020-08-18 Thread Matthew Flatt
Something was wrong. The pkg-builder service stopped working a week ago due to network trouble. I rebooted it. Meanwhile, I now realize that I haven't been getting the service-status email that would have alerted me, because my department's SMTP configuration changed a week ago. That's now fixed,

Re: [racket-users] Scribble and examples can't read racket-prefs.rktd

2020-08-16 Thread Matthew Flatt
Sandboxed filesystem and unsafety access is too strict for many purposes. For documentation, I recommend using a trusted sandbox by wrapping the sanebox creation with `call-with-trusted-sandbox-configuration`. Matthew At Sun, 16 Aug 2020 00:45:46 -0700 (PDT), Deren Dohoda wrote: > Hi Racketeers,

Re: [racket-users] Scribble and structs

2020-08-12 Thread Matthew Flatt
At Wed, 12 Aug 2020 08:32:25 -0400, Deren Dohoda wrote: > If I remove the @defproc of polynomial? then I do not get the error, though > then of course that definition never appears in the document. However, if I > instead remove the @defstruct* then the error also disappears. But > @defstruct*

Re: [racket-users] Scribble and structs

2020-08-12 Thread Matthew Flatt
At Wed, 12 Aug 2020 04:07:58 -0700 (PDT), Deren Dohoda wrote: > I have two questions. The first is: is there a way to have scribble / > sandbox use the gen:custom-write property of a structure? When I use > @examples the output is just the bare structure output, not using the > gen:custom-write

Re: [racket-users] Utah snapshots will switch to CS by default

2020-08-12 Thread Matthew Flatt
2020 10:17:15 +0300, Bogdan Popa wrote: > Thanks for the heads-up! Will CS continue to be built on Xenial and BC > on Precise? > > Matthew Flatt writes: > > > As you may know, the Racket Git repo recently switched to Racket CS as > > the default build. That is, if you

[racket-users] Utah snapshots will switch to CS by default

2020-08-11 Thread Matthew Flatt
As you may know, the Racket Git repo recently switched to Racket CS as the default build. That is, if you check out the repo and `make`, then you get an in-place Racket CS build instead of Racket BC. The next step in moving toward Racket CS is to try switching the snapshot builds. Out current

Re: [racket-users] ARM32 binaries for CS, or building on ARM 32

2020-08-11 Thread Matthew Flatt
ce2d > Model: Raspberry Pi Model B Rev 2 > > Running GDB gives the illegal instruction as > instruction: 0xf57ff05a > which looks to be a "Data Memory Barrier" instruction? Sounds like a > plausible culprit. > > Thanks! > > > > On Tuesd

Re: [racket-users] ARM32 binaries for CS, or building on ARM 32

2020-08-11 Thread Matthew Flatt
Which model Pi are you using? I'm able to build on a Pi 3, so I wonder if it's a difference in processors, where the Arm32 backend is using something that it shouldn't. Whether or not that guess is right, can you try running `gdb` in the "ChezScheme" directory like this? env

Re: [racket-users] Re: Strange performance behavior

2020-08-08 Thread Matthew Flatt
At Sat, 8 Aug 2020 03:32:57 -0400, George Neuner wrote: > > On 8/8/2020 1:55 AM, Sorawee Porncharoenwase wrote: > > I even saw people doing `collect-garbage` three times, just to be safe > > I guess. And yet theoretically it's not guaranteed that things will be > > claimed back properly. > > >

Re: [racket-users] Integrating Racket into existing single-threaded event-loop c++ app

2020-08-04 Thread Matthew Flatt
At Tue, 4 Aug 2020 14:01:20 -0600, Robert D Kocisko wrote: > My only concern with this is whether that single thread might get mildly > starved compared to other racket threads given that it technically > represents hundreds of 'green threads' inside itself all implemented in C > whereas every

Re: [racket-users] Integrating Racket into existing single-threaded event-loop c++ app

2020-08-04 Thread Matthew Flatt
elp but be intrigued by (unsafe-poller). I'm wondering what > benefits it might give (if any) in comparison with the approach you > suggested. > > Thanks, > Bob > > On Tue, Aug 4, 2020, 8:08 AM Matthew Flatt wrote: > > > Fusing event loops is always tricky, but i

Re: [racket-users] Integrating Racket into existing single-threaded event-loop c++ app

2020-08-04 Thread Matthew Flatt
Fusing event loops is always tricky, but if you have the option of exposing individual file descriptors to Racket, then `ffi/unsafe/port` is probably the way to go. You can turn a file descriptor into an event using `unsafe-file-descriptor->semaphore` or `unsafe-fd->evt`, and then you can block on

Re: [racket-users] in-directory sorted results

2020-08-03 Thread Matthew Flatt
At Sun, 2 Aug 2020 18:38:18 -0700 (PDT), evdubs wrote: > However, the docs also show: > > > (current-directory (collection-path "info")) > > (for/list ([f (in-directory)]) > f) > '(# > # > # > #) > > Isn't this not getting sorted correctly? I am seeing that calls to > (in-directory)

Re: [racket-users] Re: Racket CS release plan

2020-08-01 Thread Matthew Flatt
At Sat, 01 Aug 2020 03:56:36 -0400, George Neuner wrote: > On Fri, 31 Jul 2020 20:20:05 -0700 (PDT), > "wanp...@gmail.com" > wrote: > > >I noticed that the size of the CS version is 244% compare to BS > >version. Wondering why it became so large. Does that mean Chez Scheme > >runtime/vm 100 MB

Re: [racket-users] Advice wanted about new opengl binding

2020-08-01 Thread Matthew Flatt
At Fri, 31 Jul 2020 17:05:27 -0400, Hendrik Boom wrote: > For example, there's glGetCompressedTexImageARB. It receivees a > pointer to an image area and fills it in with a compressed image. > According the the Racket C interface, the way to write this > would be: > > (define-gl

[racket-users] Racket CS release plan

2020-07-30 Thread Matthew Flatt
With the improvements in the upcoming v7.8 release, Racket CS provides all of the functionality of Racket BC (the current default implementation). Also, end-to-end performance measurements increasingly favor Racket CS. For example, Racket CS now builds a distribution slightly faster and in

Re: [racket-users] Re: with-continuation-marks in errortrace

2020-07-27 Thread Matthew Flatt
At Sun, 26 Jul 2020 20:21:56 -0700, Sorawee Porncharoenwase wrote: > I have been toying with another way to instrument the code. It roughly > expands to: > > (define-syntax-rule (wrap f) > (call-with-immediate-continuation-mark >'errortrace-k >(λ (k) > (let ([ff (thunk f)]) >

Re: [racket-users] Creating links to Racket docs for functions in user-scope packages

2020-07-24 Thread Matthew Flatt
Hi Joel, At Tue, 21 Jul 2020 09:25:03 -0700 (PDT), "'Joel Dueck' via Racket Users" wrote: > It looks like the problem might be in this function > er.rkt#L440-L459> > where it always constructs a path that is

Re: [racket-users] emoji in source code

2020-07-20 Thread Matthew Flatt
The emoji problem on Mac OS has to do with the system-level drawing function, CGContextShowGlyphsAtPoint, that used at the Cairo layer, at least in the version of Cairo that we're using. That function doesn't support emoji glyphs. A newer version of Cairo handles emoji glyphs:

Re: [racket-users] file->bytes with large files

2020-07-15 Thread Matthew Flatt
The `file->bytes` function uses the file size with `read-bytes`, and it appears that the Mac OS `read` system call errors on requests of 2GB or more. The right fix is for the `read` call within Racket (at the rktio layer) to limit the size that it passes, and I'll make that change. Meanwhile, you

Re: [racket-users] Embedded racket (cs) question

2020-07-13 Thread Matthew Flatt
! >for-loop >[repeats 1 more time] >run-module-instance! > > Nate > > > On Mon, Jul 13, 2020 at 1:03 PM Ryan Culpepper > wrote: > > > I don't know if it helps, but config:installation-name is a promise > > defined by setup/private/dirs.

Re: [racket-users] Embedded racket (cs) question

2020-07-13 Thread Matthew Flatt
I'm not sure how it could be in `dynamic-require` itself, as opposed to a library that is loaded by `dynamic-require`, but it sounds like a bug at some level. Can you provide a small example? At Mon, 13 Jul 2020 11:03:41 -0500, Nate Griswold wrote: > Sam, thanks > > To be clear, this crash

Re: [racket-users] How to extract

2020-07-13 Thread Matthew Flatt
I see that there's not a good way right now, but here's a workaround that uses information about the current layout: A cpointer value is implemented as a Chez Scheme record with either 1 field or 2 fields. There are 2 fields only when the cpointer has an offset as a result of `ptr-add`, so you

Re: [racket-users] Creating links to Racket docs for functions in user-scope packages

2020-07-13 Thread Matthew Flatt
It's currently not intended to work for packages installed in user scope --- only for packages in the main installation --- although probably it shouldn't report a path error for a user-scope package. I'm not sure how difficult it would be to make redirection work on a user-scope package's

Re: [racket-users] nested-flow and inset

2020-07-11 Thread Matthew Flatt
At Sat, 11 Jul 2020 11:47:22 -0600, Matthew Flatt wrote: > To construct a style that has 'nested as a property, use `(style #f > '(nested))` with `style` from `scribble/core`. Wrong again: That should have been be 'inset as a name, not 'nested as a property, so `(style 'inset ())`. -

Re: [racket-users] nested-flow and inset

2020-07-11 Thread Matthew Flatt
At Sat, 11 Jul 2020 10:41:27 -0700 (PDT), Shriram Krishnamurthi wrote: > My reading of the documentation for `nested-flow` > > https://docs.racket-lang.org/scribble/core.html#%28def._%28%28lib._scribble%2Fc > ore..rkt%29._make-nested-flow%29%29 > > is that I can use 'inset as the first argument.

Re: [racket-users] Gtk initialization failed for display ":0"

2020-07-11 Thread Matthew Flatt
At Sat, 11 Jul 2020 10:36:33 -0600, Matthew Flatt wrote: > Following up on Sam's suggestion, I recommend `xfvb-run` as something > like > > xfvb-run racket -l handin-server Should be `xvfb-run`. I always have trouble getting those letters in the right order. -- You received

Re: [racket-users] Gtk initialization failed for display ":0"

2020-07-11 Thread Matthew Flatt
At Sat, 11 Jul 2020 09:26:47 -0700 (PDT), Shriram Krishnamurthi wrote: > I'm running headless Racket from a Docker container for auto-grading > assignments in Gradescope. > > The students are writing BSL programs with 2htdp/image. This does not cause > any problems for most of them. > > Two

Re: [racket-users] suppressing scribble-common.js in Scribble output

2020-07-02 Thread Matthew Flatt
I don't know if there's a way to suppress "scribble-common.js" except at the level of the rendering object --- that is, not something that can be done within the document, currently. Also, the initialization arguments that would replace "scribble-common.js" are probably not documented. There's a

Re: [racket-users] suppressing parts of Scribble (HTML) output

2020-07-02 Thread Matthew Flatt
Does the `'no-toc+aux` style property help at all? For example, #lang scribble/manual @title[#:style '(no-toc+aux)]{Example} Some content. should render with nothing on the left. At Thu, 2 Jul 2020 18:47:19 -0700 (PDT), Shriram Krishnamurthi wrote: > I am trying to use Scribble to

Re: [racket-users] Wills, plumbers, and checking if a port is closed

2020-06-30 Thread Matthew Flatt
At Tue, 30 Jun 2020 16:27:56 -0400, David Storrs wrote: > I have a port that (my current theory says) is being closed when it > shouldn't, but I'm having trouble isolating exactly where and when. I > thought maybe I could do something Rackety to say "as soon as this port > gets closed, run this

Re: [racket-users] about 《Revenge of the Son of the Li sp Machine》 Appendix

2020-06-20 Thread Matthew Flatt
At Fri, 19 Jun 2020 20:25:47 -0700 (PDT), Yuki Lee wrote: > https://www2.ccs.neu.edu/racket/pubs/icfp99-ffkf.pdf > > I have read this paper. > I encountered a problem when I tried to run the code at the end. Unfortunately, that code that pre-dates the current Racket module system, so it did not

Re: [racket-users] trying to use futures for some calculations

2020-06-17 Thread Matthew Flatt
At Wed, 17 Jun 2020 10:24:37 -0400, Sam Tobin-Hochstadt wrote: > - on Racket BC, operations like `+` do indeed block ... which mixing, say, fixnum and flonum arguments, but not when operating on all fixnums or all flonums. In this case, it may be the `in-range` with flonum bounds that results in

Re: [racket-users] Why does this counter behave differently in different runtimes?

2020-06-17 Thread Matthew Flatt
Yes, clearly a BC compiler bug --- and probably almost as old as Racket. The bug was specific to `set!` on a locally bound variable as the first subexpression of `begin0`. I've pushed a repair. Thanks! At Wed, 17 Jun 2020 03:35:51 -0500, Alexis King wrote: > This is quite curious. It appears to

Re: [racket-users] Re: How to make DrRacket interactions window use the same reader as the definitions window?

2020-06-03 Thread Matthew Flatt
At Fri, 29 May 2020 09:25:58 -0700 (PDT), Thomas Dickerson wrote: > On Friday, May 29, 2020 at 11:29:38 AM UTC-4, Matthew Flatt wrote: > > DrRacket uses `pretty-print`, which will print numbers using > > `number->string`, and so (I think) won't go through your parameter. >

Re: [racket-users] raco setup --only-docs Is there something like this?

2020-06-02 Thread Matthew Flatt
You could use `-n` to skip the ".zo"-building part, and there are similar arguments for other steps. You may also find it helpful to use `-j 1`. Although `raco setup` should be smarter about spinning up places to build multiple documents in parallel, it currently isn't. At Tue, 2 Jun 2020

Re: [racket-users] Re: How to make DrRacket interactions window use the same reader as the definitions window?

2020-05-29 Thread Matthew Flatt
DrRacket uses `pretty-print`, which will print numbers using `number->string`, and so (I think) won't go through your parameter. I think there may be problems with parametering the core printer, partly because printing is is sometimes used where `read` is supposed to work on the result, but I

Re: [racket-users] Hunting a possible fsemaphore-post/wait bug

2020-05-23 Thread Matthew Flatt
At Sat, 23 May 2020 18:51:23 +0200, Dominik Pantůček wrote: > But that is just where the issue is showing up. The real question is how > the counter gets decremented twice (given that fsemaphores should be > futures-safe). I found a configuration that triggered the bug often enough on my machine.

Re: [racket-users] Hunting a possible fsemaphore-post/wait bug

2020-05-23 Thread Matthew Flatt
I'm not sure this is the problem that you're seeing, but I see a problem with the example. It boils down to the fact that futures do not provide concurrency. That may sound like a surprising claim, because the whole point of futures is to run multiple things at a time. But futures merely offer

Re: [racket-users] Cross-building Racket applications for 64bit Windows on Linux

2020-05-23 Thread Matthew Flatt
(which is a different question than trying to run BC on wine), then we can start thinking about how to fill in the last NxM pieces for CS. At Sat, 23 May 2020 10:25:31 -0600, Matthew Flatt wrote: > Have you already tried using `raco exe` on Linux (i.e., using Racket > for Linux) but generating W

Re: [racket-users] Cross-building Racket applications for 64bit Windows on Linux

2020-05-23 Thread Matthew Flatt
Have you already tried using `raco exe` on Linux (i.e., using Racket for Linux) but generating Windows executables? https://docs.racket-lang.org/raco/cross-system.html Note that the "tarball" distributions at places like https://download.racket-lang.org/releases/7.7/ can be handy for

Re: [racket-users] Detecting whether failure-result is used by dict-ref using chaperones?

2020-05-21 Thread Matthew Flatt
Stepping back a little, a chaperone constructor for a datatype often needs some inside information and cooperation from the dataype implementation. For example, `chaperone-hash` has the property that you want --- the filter applied to a `hash-ref` result doesn't get used if a failure thunk

Re: [racket-users] How do I properly set current-module-name-resolver for a process?

2020-05-19 Thread Matthew Flatt
At Tue, 19 May 2020 20:10:01 +, Sage Gerard wrote: > I'm trying to figure out how to set current-module-name-resolver in > advance of all other code for a process. I'm guessing this would > require a custom launcher that does (for example) `racket -l > foo/replace-resolver bar.rkt`. That can

[racket-users] [CfP] DLS 2020 - Dynamic Languages Symposium, submission deadline July 9th

2020-05-18 Thread Matthew Flatt
to the first day of your conference. The official publication date affects the deadline for any patent filings related to published work. Program Committee - Alexandre Bergel, U Chile Shigeru Chiba, U Tokyo Stéphane Ducasse, Inria Tim Felgentreff, HPI Matthew Flatt, U Utah (chair

Re: [racket-users] JIT and futures on aarch64

2020-05-16 Thread Matthew Flatt
At Sat, 16 May 2020 17:21:28 +0200, Dominik Pantůček wrote: > after pushing futures on x86 and x86_64 to their limits (and helping > fixing two bugs), I turned my focus on ARM. Apparently everything should > work with 32bit arm without any hurdles (I am going to test that later > today), Futures

Re: [racket-users] Re: Strange behaviour of ptr-ref + ptr-add(?)

2020-05-10 Thread Matthew Flatt
Although `_double*` isn't currently meant to be handled there --- there's no `ptr-ref/_double` specialization --- you're right that the problem is in the `ptr-ref/double` and similar specializations in CS. I've pushed a repair. Thanks for the report, Laurent! At Sun, 10 May 2020 13:57:50 +0200,

Re: [racket-users] Another futures-related bug hunt

2020-05-09 Thread Matthew Flatt
At Sat, 9 May 2020 07:18:01 +0200, Dominik Pantůček wrote: > would this be enough to open an issue for that? > > (gdb) info threads >Id Target IdFrame > * 1Thread 0x77c1b300 (LWP 19075) "tut22.rkt" > mark_backpointers

Re: [racket-users] Another futures-related bug hunt

2020-05-08 Thread Matthew Flatt
At Fri, 8 May 2020 09:34:32 +0200, Dominik Pantůček wrote: > Apart from obvious strace (after freeze) and gdb (before/after freeze) > debugging to find possible sources of this bug, is there even a remote > possibility of getting any clue how can this happen based on the > information gathered

Re: [racket-users] How to run multiple Racket installations?

2020-05-08 Thread Matthew Flatt
At Fri, 8 May 2020 01:55:17 -0700 (PDT), zeRusski wrote: > First, does that even work? I noticed that both of them install packages > into ~/Library/Racket/development/ for me. Are both builds so compatible I > don't need to worry about packages stepping on each others toes i.e. > compiled with

Re: [racket-users] Futures + threads SIGSEGV

2020-05-02 Thread Matthew Flatt
I wasn't able to produce a crash on my first try, but the Nth try worked, so this is very helpful! I'm investigating, too... At Sat, 2 May 2020 08:26:10 -0400, Sam Tobin-Hochstadt wrote: > I successfully reproduced this on the first try, which is good. Here's > my debugging advice (I'm also

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-01 Thread Matthew Flatt
At Fri, 1 May 2020 16:59:22 +0200, Dexter Lagan wrote: > I'd like to download DrRacket's source and profile it, say to improve > scrolling performance or track this post-startup lock-up : Does the start-time delay happen if you just type a number and hit return, as opposed to typing an

Re: [racket-users] Rhombus project plan

2020-04-29 Thread Matthew Flatt
At Wed, 29 Apr 2020 12:46:50 -0400, David Storrs wrote: > In related news, a question for the list: Once I have a handle on this, I > would like to write a "How to Contribute to Racket Documentation" guide. > Where would be the right place for this? Should it be an expansion to an > existing

Re: [racket-users] Rhombus project plan

2020-04-29 Thread Matthew Flatt
At Wed, 29 Apr 2020 11:14:47 +0200, Dexter Lagan wrote: > To the point: what would make Racket2 the ultimate tool (for me): > Performance. Faster startup times, shorter execution times in general. > Optionally, a ‘lite’ version of Racket that compiles directly to no-deps > binaries, bypassing

Re: [racket-users] How can I write a macro that recognizes arbitrary other macros?

2020-04-16 Thread Matthew Flatt
The main trick in this case is to recognize `define-values` (which is what `define` expands to) instead of `define`. That's because `define-values` propagates syntax arming to its identifiers and right-hand side, which means that your macro is allowed to pull it apart. You'll also need to use an

Re: [racket-users] Re: Organizing tests in project

2020-04-15 Thread Matthew Flatt
The machine that formerly ran pkg-build died, so pkg-builds stopped for a week or two. I moved eventually moved it to a new machine. Since I had to start over with a v7.6 installer and the current catalog, all packages were re-built and re-tested. At Wed, 15 Apr 2020 12:14:31 -0700, Siddhartha

Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-09 Thread Matthew Flatt
At Thu, 9 Apr 2020 07:09:21 -0700 (PDT), Brian Adkins wrote: > I looked at the net/mime library, but, as the title of the doc page > suggests, it seemed to only be about decoding, not creating: > > https://docs.racket-lang.org/net/mime.html?q=net%2Fmime Ah, right. I think I've made this mistake

Re: [racket-users] Error loading libreadline dll when using readline package

2020-04-09 Thread Matthew Flatt
I think you probably have the "readline-gpl" package installed. That's where the "libreadline-5.dll" comes from in "private/readline-lib.rkt": (define readline-library (ffi-lib "libreadline" '("5" "6" "4" ""))) Even if "7" were added to that list, `ffi-lib` assumes a versioning convention that

Re: [racket-users] Examples of sending HTML email w/ Racket?

2020-04-09 Thread Matthew Flatt
At Wed, 8 Apr 2020 21:28:11 -0400, George Neuner wrote: > There's nothing in Racket for MIME that I'm aware of There's a `net/mime` library. I'm replying with an attachment so you can see what it generates, since my email client uses that library. Matthew -- You received this message because

Re: [racket-users] scribble include

2020-04-07 Thread Matthew Flatt
Use `for-syntax` to import into the transformer environment: #lang scribble/base @(require (for-syntax racket/base (only-in scribble/reader make-at-reader))) @(require racket/include) foo @(include/reader "si1.inc" (make-at-reader)) bar

Re: [racket-users] How to compile static racket binaries

2020-04-02 Thread Matthew Flatt
At Thu, 2 Apr 2020 06:28:00 -0700 (PDT), Tristram Oaten wrote: > I've compiled it on ubuntu 19:10, and am running into this problem on > ubuntu:latest (18.04), due to the different versions of libc. Ah, I didn't realize that the C library version had changed in recent Linux distributions. (It

Re: [racket-users] How to compile static racket binaries

2020-04-02 Thread Matthew Flatt
Those ".so"s are OS-supplied dynamic libraries, and I think there's no way to link to them statically. Of course, the resulting executable will only work on a sufficiently compatible variant of Linux. Are you seeing a specific problem when moving the executable among machines? If so, what are the

Re: [racket-users] Embedding Racket CS

2020-03-29 Thread Matthew Flatt
At Sun, 29 Mar 2020 13:13:08 -0700 (PDT), zeRusski wrote: > First, CS snapshots in Utah and NW mirrors offer no libracketcs.a so I went > ahead and attempted to build CS from the github master. Sadly its `raco` > tool is unaware of the `ctool` subcommand, so I'm guessing snapshots are > built

Re: [racket-users] Embedding Racket CS

2020-03-27 Thread Matthew Flatt
At Fri, 27 Mar 2020 15:48:13 -0700 (PDT), zeRusski wrote: > How I might go about embedding Racket CS The current development version (as reflected by snapshot builds) now has support and documentation for that: https://www.cs.utah.edu/plt/snapshots/current/doc/inside/cs-embedding.html Of

Re: [racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-23 Thread Matthew Flatt
At Mon, 23 Mar 2020 01:45:40 -0700 (PDT), Yongming Shen wrote: > I tried the example you gave for my first question and it resulted in an > error. Oops --- you're right. I lost track of what we try to make work at the top level. > I think this is because `(define-values (x) ...)` expands `...`

Re: [racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-21 Thread Matthew Flatt
At Sat, 21 Mar 2020 00:00:07 -0700 (PDT), Yongming Shen wrote: > First, in the source file expander/expand/bind-top.rkt, there is a comment > that says "When compiling `(define-values (x) ...)` at the top level, > we'd like to bind `x` so that a reference in the "..." will point back to > the

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Matthew Flatt
At Thu, 19 Mar 2020 12:38:39 -0400, Christopher Lemmer Webber wrote: > I will spend the rest of the day looking at what scriblib's bibliography > stuff does in further detail and think about how to accomplish what we > need. It could be that what I do is build a quicker proof of concept > that

Re: [racket-users] Scribble citations for art history dissertation (AJA style)

2020-03-19 Thread Matthew Flatt
At Thu, 19 Mar 2020 11:46:44 -0400, Christopher Lemmer Webber wrote: > What I thought was the more "Racket'y way" would be to store it as > abstract data that then could be rendered to the appropriate style > (that's what BibTeX and everything else does). Well, perhaps the Rackety way is to store

Re: [racket-users] "invalid memory reference" issue

2020-03-05 Thread Matthew Flatt
I've pushed a repair for the development version of Racket CS. The problem was related to computing a hash code of an object (i.e., an instance of a class). If you need a workaround to keep using the released version of Racket CS, it may involve supplying explicit equality and hash-code functions

Re: [racket-users] bad response from server

2020-03-02 Thread Matthew Flatt
A snapshot catalog only lasts for a limited time, and v7.4.0.1 was a very long time ago in snapshot terms. So, the short answer is to upgrade to a new snapshot --- or switch to a release, which doesn't time out. At Mon, 2 Mar 2020 14:46:25 -0500, Hendrik Boom wrote: > When trying to u[dat

Re: [racket-users] download catalog down?

2020-02-27 Thread Matthew Flatt
Gillespie wrote: > Hi Matthew, > Thanks, this would seem to suggest that something in the settings > for raco is misconfigured on my system. Does that make sense? Thanks! > Tom > > On Thu, Feb 27, 2020 at 3:00 PM Matthew Flatt wrote: > > > > That path is

Re: [racket-users] download catalog down?

2020-02-27 Thread Matthew Flatt
That path isn't served, but something like https://download.racket-lang.org/releases/7.6/catalog/pkg/racket-lib or https://download.racket-lang.org/releases/7.6/catalog/pkgs should work (and does work for me). At Thu, 27 Feb 2020 14:22:55 -0800, Tom Gillespie wrote: > Hi, > I (and

Re: [racket-users] how to adapt BC code for Racket CS?

2020-02-25 Thread Matthew Flatt
At Tue, 25 Feb 2020 06:48:53 -0800, Matthew Butterick wrote: > What can you say about places & parallelism under CS vs. BC? This is > one area that I find CS to reliably underperform BC (by about a > factor of 2). Place creation seems slower under CS. More > interestingly however, the utilization

Re: [racket-users] how to adapt BC code for Racket CS?

2020-02-23 Thread Matthew Flatt
[Replying to three messages] At Sat, 22 Feb 2020 08:05:28 -0800, Matthew Butterick wrote: > 1) As a package maintainer with zero exposure to Chez Scheme, how do I start > to optimize for Racket CS? Are there certain patterns and idioms from BC that > should be systematically eradicated? No.

Re: [racket-users] subprocess failure (Windows-specific ?)

2020-02-08 Thread Matthew Flatt
At Sat, 8 Feb 2020 17:46:06 +0100, Bertrand Augereau wrote: > You're right, but wouldn't using the posix_spawn family have better > semantics, better performance, and would allow to unify between POSIX and > Windows behaviours nicely ? :) It's the usual problem: posix_spawn() doesn't quite

Re: [racket-users] subprocess failure (Windows-specific ?)

2020-02-08 Thread Matthew Flatt
At Sat, 8 Feb 2020 17:08:18 +0100, Bertrand Augereau wrote: > > I'm not sure I completely understand the problem. You're correct that > > there's no way to tell whether the value is an exit code from the program > > or an error from the operating system ... but there also is no way to tell > >

Re: [racket-users] Porting Racket to IRIX

2020-01-26 Thread Matthew Flatt
And you have enough memory, and there's no system-imposed memory limit --- as reported by `ulimit -a` in bash, for example? (Maybe a dumb question, but the last IRIX machine I used, decades ago, would not have had enough memory to build modern Racket.) At Sun, 26 Jan 2020 05:48:15 -0800 (PST),

Re: [racket-users] Porting Racket to IRIX

2020-01-26 Thread Matthew Flatt
At Sat, 25 Jan 2020 12:36:57 -0800 (PST), Eric Dodd wrote: > getenv: contract violation > expected: string-environment-variable-name? > given: #f > context...: > > /usr/people/edodd/local/share/racket/collects/racket/private/misc.rkt:202:2: > getenv >

Re: [racket-users] Surprising behavior in The Printer

2020-01-14 Thread Matthew Flatt
The short answer is that you're right: creating new values at custom-print time creates trouble for graph detection and `print` quoting. Those operations perform a pass to make decisions about graphs and quoting based on `eq?` identity, and then they make another pass to actually print. I'll

Re: [racket-users] Re: Racket2 and syntax

2020-01-13 Thread Matthew Flatt
The project name is "Rhombus". The language name is TBD. https://groups.google.com/forum/#!msg/racket-users/-x_M5wIhtWk/V47eL30HCgAJ At Mon, 13 Jan 2020 07:38:55 -0800 (PST), John Cowan wrote: > > > On Sunday, July 14, 2019 at 10:30:04 PM UTC-4, Matthew Flatt wrote: >

Re: [racket-users] What's the point of make-continuation-mark-key?

2020-01-11 Thread Matthew Flatt
It would be reasonable to generalize `chaperone-continuation-mark-key` to apply in cases where `chaperone-struct` could work, with similar sorts of evidence that chaperoning is allowed provided by a caller of `chaperone-continuation-mark-key`. I guess we just didn't think about it that way when

Re: [racket-users] counterintuitive behavior of namespace-require

2020-01-06 Thread Matthew Flatt
The problem is that `namespace-require` has to first resolve the `racket` module path, and the module name resolver uses the current namespace as determined by `current-namespace` --- which means that the resolver loads the `racket` module into the wrong namespace. I doubt that we can change that

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2020-01-01 Thread Matthew Flatt
At Fri, 27 Dec 2019 14:01:33 +0300, Dmitry Pavlov wrote: > Because on my good ol' Windows XP machine, the Utah i386 nigtly build, while > installing successfully, resulted in a Racket executable that the system > refused to run, saying that it is not a correct executable. (The message was >

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-22 Thread Matthew Flatt
At Sun, 22 Dec 2019 20:28:41 +0300, Dmitry Pavlov wrote: > > > Thanks! It really is a bug in `scheme_get_long_long_val`, where the > > extraction can read past the end of a bignum on a 32-bit platform. > > > > Repair pushed. > Great, thank you! > Given that I do not normally build Racket, should

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-22 Thread Matthew Flatt
At Sat, 21 Dec 2019 11:06:33 +0300, Dmitry Pavlov wrote: > The error pops out not on the first or second positioning exceeding 1 GB. In > fact, it happens on different moments in different runs. Thanks! It really is a bug in `scheme_get_long_long_val`, where the extraction can read past the end

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-22 Thread Matthew Flatt
At Sat, 21 Dec 2019 00:22:19 -0500, George Neuner wrote: > Is Racket really writing billions of zeroes rather than creating a > sparse file?  It seems to me that this file should only create 2 actual > data blocks, and (modulo JIT) the program should finish almost > instantly.  What am I

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-20 Thread Matthew Flatt
At Fri, 20 Dec 2019 23:39:30 +0300, Dmitry Pavlov wrote: > > The Racket-imposed limit should be 64 bits (more than enough) on all > > platforms. I can try to replicate the problem later today, but more > > information on the error message would be helpful. > > I do not have access to that Windows

Re: [racket-users] file-position in Win32 not working beyond 1 GB

2019-12-20 Thread Matthew Flatt
The Racket-imposed limit should be 64 bits (more than enough) on all platforms. I can try to replicate the problem later today, but more information on the error message would be helpful. At Fri, 20 Dec 2019 17:39:37 +0300, Dmitry Pavlov wrote: > Hello, > > On a fresh 32-bit Racket 7.5 install

Re: [racket-users] Re: Racket 7.5 does not run on Cent OS cloud computers

2019-12-16 Thread Matthew Flatt
> On Monday, 9 December 2019 23:00:37 UTC+1, edu500ac wrote: > > > > A couple of years ago, I was unable to run Racket on my webpage. I > > complained on this forum, and the developers fixed the issue. Things worked > > fine until version 7.3, when the old problem reappeared. Here is what > >

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-11 Thread Matthew Flatt
e version on the downloads page seems to still be APFS. Will it rebuild > at some point? > > On Tue, Dec 10, 2019 at 8:46 PM Matthew Flatt wrote: > > > I’ve changed the distribution build to use HFS+ going forward. > > > > > On Dec 10, 2019, at 6:28 PM, James Platt

Re: [racket-users] Racket 7.5 DMG file does not open on OSX 10.11

2019-12-10 Thread Matthew Flatt
I’ve changed the distribution build to use HFS+ going forward. > On Dec 10, 2019, at 6:28 PM, James Platt wrote: > > >> On Dec 6, 2019, at 9:56 PM, Darth Vadør wrote: >> >> If it isn't too much trouble, I at least would really appreciate this. >> One reason I think this is important is

  1   2   3   4   5   6   7   8   9   >