I working on a small test program using Jay McCarthy's zmq FFI bindings.
I'm getting a segfault with this message:
SIGSEGV MAPERR si_code 1 fault on addr 0x285
Is there any guidance on how to spot the cause? Here's what I have done so far
run racket with gdb - as gdb racket
In the gdb console.
My normal workflow for this (preferring post-mortem analysis because no
special flags for gdb required)
enable core dumps
ulimit -c unlimited
cat segv.rkt
#lang racket
(require ffi/unsafe)
(define _strlen (get-ffi-obj "strlen" #f (_fun _pointer -> _int)))
(_strlen #f)
racket segv.rkt
SI
Hello,
I'm experimenting with the rsound package and ran into a problem. I can play
the sound but I can't write it into a wav file with rs-write.
Here a little code to reproduce the error on my machine Thinkpad, Windows 7,
64bit:
#lang racket
(require (planet clements/rsound:4:4))
; sett
Hi everyone,
Is someone using Typed Racket from Emacs? If so, how?
I am quite happy with Geiser for standard Racket work, but Geiser
doesn't handle Typed Racket in the REPL, which makes it a pain to work
with (see https://github.com/jaor/geiser/issues/18 for an example).
Konrad.
Strange results. I did some benchmarks.
The 'mcons solution use always the same mcon to return the results of
all the function calls. It’s different from the 'cons solution that
returns a different con in each function call. I made a new version:
loop4 (see code bellow).
I ran the program 10 times
Hi Ryan,
I presume that you ran that program in DrRacket.
DrRacket can't run all Racket programs, such as those that modify the
installation, due to the way it changes how compilation and evaluation
works. The GUI package manager in DrRacket will work, however, because
it runs on DrRacket's privi
This doesn't sound great. Can you explain more what you mean here about
programs not being able to run in DrRacket, please?
Robby
On Thu, Oct 24, 2013 at 9:19 AM, Jay McCarthy wrote:
> Hi Ryan,
>
> I presume that you ran that program in DrRacket.
>
> DrRacket can't run all Racket programs, such
On Thu, Oct 24, 2013 at 10:19 AM, Jay McCarthy wrote:
> Hi Ryan,
>
> I presume that you ran that program in DrRacket.
Yes, that's correct, and that's how I reproduced it on my machine as well.
> DrRacket can't run all Racket programs, such as those that modify the
> installation, due to the way
I've tried using racket math library to compute dot product of two
vectors, but haven't found the very function to compute it.
What i've found so far is to use matrix* function, but two drawbacks:
1. I have to transpose the right multiple (extra overhead)
2. It yields single-element matrix
matrix-dot is what you want.
Tobias
On Thu, 24 Oct 2013 16:59:15 +0200, Dmitry Cherkassov
wrote:
I've tried using racket math library to compute dot product of two
vectors, but haven't found the very function to compute it.
What i've found so far is to use matrix* function, but two drawb
Hi,
We have a package that pre-compiles some code from a #lang to racket
(which is needed for an unrelated reason). This is done via raco setup
"pre-install-collection" (in info.rkt).
The problem is that this compilation can fail, and if it does, the
actual setup (which includes this file many p
Hi.
On Thu, Oct 24, 2013 at 7:16 PM, Tobias Hammer wrote:
> matrix-dot is what you want.
>
> Tobias
>
OK, it indeed works.
Hence, there is an error in docs
http://docs.racket-lang.org/math/matrix_inner.html?q=matrix-dot&q=normalize#%28def._%28%28lib._math%2Fmatrix..rkt%29._matrix-dot%29%29
Spe
On 10/24/2013 09:30 AM, Dmitry Cherkassov wrote:
Hi.
On Thu, Oct 24, 2013 at 7:16 PM, Tobias Hammer wrote:
matrix-dot is what you want.
Tobias
OK, it indeed works.
Hence, there is an error in docs
http://docs.racket-lang.org/math/matrix_inner.html?q=matrix-dot&q=normalize#%28def._%28%28li
I have built a php parser with the racket yacc like tools and i am pretty happy
with it.
Racket Users list:
http://lists.racket-lang.org/users
1. micro-benchmarks tell you nothing about this problem.
2. running something 10 times tells you little more.
3. running it on one architecture in one ENV tells you little more.
We have an internal reading list on performance evaluation but I think
it is now appropriate to list this:
ht
On Oct 24, 2013, at 3:20 AM, Robert Matovinovic wrote:
> Hello,
> I’m experimenting with the rsound package and ran into a problem. I can play
> the sound but I can’t write it into a wav file with rs-write.
> Here a little code to reproduce the error on my machine Thinkpad, Windows 7,
> 64bit.
On Oct 24, 2013, at 1:12 AM, Aomar Maddi wrote:
> Hello,
> Thank you very much for your response.
> The error does not apply to require that I can remove using teachpads.
> My mistake for rather (define mycanvas that written for drscheme version:
>
> (define mycanvas% (class can
On Oct 24, 2013, at 7:28 AM, Robby Findler wrote:
> This doesn't sound great. Can you explain more what you mean here about
> programs not being able to run in DrRacket, please?
+1 ... I was hoping to be able to tell Windows users to run programs like this,
as opposed to using Command Prompt.e
Jay and I have talked offline and apparently this is something that came up
before and so I'm now back on track trying to understand and fix the
underlying problem.
Robby
On Thu, Oct 24, 2013 at 1:47 PM, John Clements wrote:
>
> On Oct 24, 2013, at 7:28 AM, Robby Findler wrote:
>
> > This does
Matthew reminded me of an old thread on this topic:
http://lists.racket-lang.org/dev/archive/2013-February/011741.html
Two points worth mentioning here.
Ryan & John: can you use the GUI package manager to install a package
instead of writing a program in the drracket window that does it, at le
Independently of how difficult it is to do this, another possibility is to
ask for permission as the program is run.
But then you may have the problem that some users (read: students) may
actually not know that they don't know what they are doing.
There could also be a checkbox somewhere to allow f
I think we're struggling at the moment with what the predicate we want to
check is, tho. (That is, I feel like we can deal with errors or alerts or
whatever, once we decide what should trigger them.)
Robby
On Thu, Oct 24, 2013 at 3:35 PM, Laurent wrote:
> Independently of how difficult it is t
Try using the "gracket" executable maybe? (I didn't try it, but it should
be more like using plain 'racket')
Robby
On Thu, Oct 24, 2013 at 3:42 PM, Sam Tobin-Hochstadt
wrote:
> On Thu, Oct 24, 2013 at 4:10 PM, Robby Findler
> wrote:
> > Ryan & John: can you use the GUI package manager to insta
On Thu, Oct 24, 2013 at 4:10 PM, Robby Findler
wrote:
> Ryan & John: can you use the GUI package manager to install a package
> instead of writing a program in the drracket window that does it, at least
> for now?
Just to speak for Ryan here, he's using 5.3.6 currently for his
students, and thus
At Thu, 24 Oct 2013 16:42:48 -0400, Sam Tobin-Hochstadt wrote:
> On Thu, Oct 24, 2013 at 4:10 PM, Robby Findler
> wrote:
> > Ryan & John: can you use the GUI package manager to install a package
> > instead of writing a program in the drracket window that does it, at least
> > for now?
>
> Just t
On Oct 24, 2013, at 1:10 PM, Robby Findler wrote:
> Matthew reminded me of an old thread on this topic:
>
> http://lists.racket-lang.org/dev/archive/2013-February/011741.html
>
> Two points worth mentioning here.
>
> Ryan & John: can you use the GUI package manager to install a package inste
For an example of using ragg along with Racket's lexer tools, you can
look at Pyret:
Tokenize from an input port:
https://github.com/brownplt/pyret-lang/blob/master/src/lang/tokenizer.rkt
The ragg grammar for Pyret (which uses tokens defined in tokenizer.rkt):
https://github.com/brownplt/pyret-
Is there a library or package that combines numbers and their operations with
dimensions that may be associated with them?
Alvin Schatte
Racket Users list:
http://lists.racket-lang.org/users
This discussion reappears occasionally, and there are some accomplishments. You
can start here to at least figure out how to search for more info:
http://lists.racket-lang.org/users/archive/2011-November/049198.html
rac
On Oct 24, 2013, at 4:51 PM, Alvin Schatte wrote:
> Is there a library or
29 matches
Mail list logo