Many thanks - that works fine! And it makes sense, to use regexp-replace* with
a hash table. (All these things I'm still finding out...) Is it possible to
do this - or something similar - in Typed Racket?
On Saturday, 8 July 2017 22:45:04 UTC+10, Neil Van Dyke wrote:
> This is one OK way
Suppose I have a string "ABCABC" and I want to replace all A's with "AC", all
B's with "BA" and all C's with "CCA", so that the result is
ACBACCAACBACCA
What is the canonical way of doing this in Racket?
--
You received this message because you are subscribed to the Google Groups
"Racket
Thanks everybody - you've given me a lot of good ideas. As to the Lindenmayer
package, I did know of it. And I am in fact exploring Lindenmayer systems from
a very fundamental perspective, which is why I don't want to use a pre-made
library or package, but write bits and pieces as I go.
:
> https://docs.racket-lang.org/guide/let.html
>
> As for the typed random value, the Flonum from (random) should be fine
> since a Flonum is also a Real. Can you provide a short example of
> runnable code that exposes the problem you're having?
>
> On Wed, Jul 5, 2017, at 08:3
This morning, when I attempted to start Drracket from a terminal (I'm using
Archlinux, 64 bit, with the most recently upgraded versions of Racket and
Drracket), I obtained this error:
SIGSEGV MAPERR si_code 1 fault on addr 0xe8042caa
[2]26140 abort (core dumped) drracket
A bit of
I'm doing a little programming which requires the use of some random numbers.
Basically I add a random value at one stage, and subtract it a bit later.
Something like this pseudo-code (where "x" is an existing variable):
set rand_value <- (random)
set new_value <- x + rand_value
...
I am mostly a newbie, and I am using Racket 6.9 on Linux. I have set up the
environment variable $PLTUSERHOME to point to a directory in which I do all my
work. This works well if I'm using Racket from the command line.
However, DrRacket doesn't seem to know about this, in consequence of
On Tuesday, 23 May 2017 21:06:17 UTC+10, Robby Findler wrote:
> If you start DrRacket from the shell, trigger the bad behavior and then type
> control-c in the shell, do you get any output?
>
>
> Robby
>
Thanks for the suggestion - which I had in fact tried, to no avail. DrRacket
froze, and
> After the `killall` from tty2, did the shell you started DrRacket from have
> any output?
>
> Thanks for helping us investigate!
>
> Vincent
Unfortunately not. After going to tty2, entering "killall drracket" and back
to tty1, the terminal was as I left it, with just the command "drracket"
On Thursday, 25 May 2017 23:44:58 UTC+10, David K. Storrs wrote:
> This isn't smooth, but it works:
>
> #lang at-exp racket
> (first (regexp-match @pregexp{\d+\.\d{0,4}} "15.123456789"))
> (first (regexp-match @pregexp{\d+\.\d{0,4}} "15.12"))
>
Thank you - that is certainly more complicated
I have had no problem running DrRacket on linux, under KDE Plasma, until now.
But now it seems to crash constantly. All I need to do is:
1. Open it up from the KDE menu
2. Open up the File menu
and then it freezes, and also causes a system freeze, as it appears to be using
100% of CPU
I have been experimenting with the bigfloat library, which I understand to be a
wrapper for the GNU MPFR library. And it works well. But I'm wondering if
anybody's given thought about porting other scientific libraries, such as GNU
GSL to Racket. Is this the sort of thing which would be very
On Friday, June 2, 2017 at 3:24:12 PM UTC+10, Konrad Hinsen wrote:
> On 02/06/17 02:50, Alasdair McAndrew wrote:
>
> > I have been experimenting with the bigfloat library, which I understand to
> > be a wrapper for the GNU MPFR library. And it works well. But I'm
> >
13 matches
Mail list logo