Re: [racket-users] Racket (or Scheme) macros for C

2017-07-04 Thread Hendrik Boom
On Tue, Jul 04, 2017 at 01:52:41PM -0700, spearman wrote: > I have built up a good toolchain for C programming including static analysis > and runtime testing tools, but I find the C preprocessor is really lacking > for metaprogramming facilities. > > Here is an implementation of "Lisp" macros f

[racket-users] Racket (or Scheme) macros for C

2017-07-04 Thread spearman
I have built up a good toolchain for C programming including static analysis and runtime testing tools, but I find the C preprocessor is really lacking for metaprogramming facilities. Here is an implementation of "Lisp" macros for C: https://github.com/eudoxia0/cmacro It doesn't seem to be act

[racket-users] Forwarding syntax or srcloc

2017-07-04 Thread reilithion
I'd like to be able to get source location information from behind two or more layers of macros. I have a macro, call it mk-data, whose job it is to make an internal data structure. Among other things, it records a srcloc for later tracking. In another module, I have another macro whose job it

[racket-users] Re: beating java (speed)

2017-07-04 Thread George Neuner
On Tue, 4 Jul 2017 12:17:12 -0700 (PDT), "'Shakin Billy' via Racket Users" wrote: >i couldn't make the inlining via define-syntax-rule work in typed racket. in >normal racket define-inline did'nt speed things up much but changing the code >of "acht-teiler" to: >CODE-- >(define-syntax-rule (acht

[racket-users] Re: beating java (speed)

2017-07-04 Thread 'Shakin Billy' via Racket Users
i couldn't make the inlining via define-syntax-rule work in typed racket. in normal racket define-inline did'nt speed things up much but changing the code of "acht-teiler" to: CODE-- (define-syntax-rule (acht-teiler n) (let loop ((i 2) (count 0) (quadrat 4) (steigung 5)) (cond ((= quadrat n

Re: [racket-users] Hint on opening enclosing directory of current file from DrRacket

2017-07-04 Thread Jordan Johnson
IIRC on windows, at the cmd prompt (and hence maybe through DrR's "system" procedure) you can type "explorer ." to obtain the same behavior. Cheers, Jordan > On Jun 28, 2017, at 5:38 PM, James wrote: > > >> On Jun 28, 2017, at 5:42 PM, Glenn Hoetker wrote: >> >> Caveats: 1. Since CWD is set

Re: [racket-users] Error when codesigning Racket created executable - codesign_allocate: file not in an order that can be processed

2017-07-04 Thread Norman Gray
Seamus, hello. On 3 Jul 2017, at 23:17, Seamus Brady wrote: I got a bit further than Norman :) Well done! I've added to the Stackoverflow question, a pointer to this discussion. The trick from Matthew did the trick and that Racket based app gets signed and passes all the local GateKeepe

[racket-users] Question about text% undo and on-change

2017-07-04 Thread Erich Rast
I have to integrate the undo/redo functionality of text% into a custom undo/redo system, because in my application nearly everything is undoable. Basically I need a reliable way to intercept and track the text%'s undo additions, so I can add an undoer to my undo system whenever text% adds an inter

Re: [racket-users] Error when codesigning Racket created executable - codesign_allocate: file not in an order that can be processed

2017-07-04 Thread David Storrs
I'm in the process of building a commercial application for Racket, so this is really good to know. Thank you, Seamus -- this would have had me tearing my hair out. Dave PS: I read through this entire thread, understanding the information and the references and finding it useful, while simultan

Re: [racket-users] Raising multiple exceptions at once

2017-07-04 Thread Matthew Flatt
Stack traces are printed by the default error display handler, as opposed to being part of the exception string. So, you can convert an exception `e` to the form that prints by default by calling the error display handler directly: (with-output-to-string (lambda () (parameterize ([current