I do like the second form better, especially since the actual code being
run is not obscured by simply being the last argument to a long log
function.
martin
On Thu, Sep 2, 2021 at 1:55 PM David Storrs wrote:
> I often find that for debugging I want to see a log message saying "I'm
> about to d
Nice, I'll be following this with interest! What are the pros and cons of
developing a new syntax highlighting format from scratch, versus e.g.
parsing and reusing the kate style files? For the latter route this haskell
package is a good source of inspiration:
https://hackage.haskell.org/package/sk
One helpful thing to do is expand the GUI section of awesome-racket
https://github.com/avelino/awesome-racket
I just sent them a PR for GUI-helpers.
martin
On Thu, Nov 21, 2019 at 9:21 AM James Platt wrote:
>
> On Nov 20, 2019, at 3:31 AM, Jack Firth wrote:
>
> > Would it have helped if the ge
I just figured this out for my current project; I'm not sure it's the best
way but it's a working way :) I have a subclass of text% that mixes in
html-text-mixin, and then I populate it via render-html-to-text. You can
see the code here:
https://github.com/martindemello/exolve-editor/blob/master/g
aster/build.rkt
>
> In my application I decided not to install required modules, but instead
> to check if the required modules are present and report a helpful error
> message if they are not installed.
>
> Hope this helps.
>
> On Thursday, November 7, 2019 at 5:37:31 PM UTC+8
I'd like to set up a project so that I can check out its git repo, call a
single raco command, and have it install all the packages it needs, compile
executables, and finally invoke raco distribute and generate a single
binary. I've gone through the docs for raco setup but it seems to be geared
tow
I have the following code, which in sequence calls the load-file dialog,
loads the file, processes it and populates a textbox:
(define (try v e)
(if v (success v) (failure e)))
(define (load-and-process-file textbox parse fmt)
(define f #f)
(let* [(text
(do [fnam
Is there a good way to call out to the indentation code drracket uses from
within vim? even just manually piping the whole file through an indenter
would be fine.
martin
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this g
the message takes only the space it needs and is thus flushed to
> the left.
>
>
> On Sun, Oct 13, 2019 at 8:11 AM Martin DeMello
> wrote:
>
>> I'm trying to create a message% with the text left-justified rather than
>> centred, and have been searching through th
I'm trying to create a message% with the text left-justified rather than
centred, and have been searching through the docs with no luck. Is there a
way to do it, or a widget I should be using instead? My use case is to
provide a status message at the bottom of a frame.
martin
--
You received thi
Not used it myself, but there's this IUP binding:
https://chust.org/repos/scheme-iup/index
martin
On Sat, Aug 3, 2019 at 4:42 AM Stephen De Gabrielle
wrote:
> Hi
>
> Has anyone done any work on using racket with other UI toolkits?
>
> I don’t think so but I thought it was worth asking - just in
I've googled around a lot but couldn't find anything. I would like racket
to be the main program, and consume a C++ library so I can play with it
interactively in a repl, and write small racket programs to automate C++
object creation and method calls. Writing a glue-code main.cpp would be
fine, bu
I don't know about scheme being racket; both chicken and gambit seem to
have reasonably active communities.
I was also surprised at the 16k hits for pony, which has essentially no
ecosystem yet. but actually doing the google search it seems like there's
tons of noise in there.
martin
On Wed, Feb
Chicken scheme has an option for that:
http://wiki.call-cc.org/man/4/Non-standard%20read%20syntax#keyword
I'm a fan; it makes the code pretty pleasant to read.
martin
On Wed, Oct 14, 2015 at 9:29 AM, Jukka Tuominen <
jukka.tuomi...@finndesign.fi> wrote:
> Yoda like that would, but to me it look
One problem with generalising find-max and find-min into a single hof is
that they are closer in spirit to a fold than a find. The name find- makes
you think that the passed in function should be a predicate on one element,
not two. How about something like first-by?
> (first-by stringstring secon
Hi,
I'm working on the drracket-vim-tool, so I'm using a copy installed from my
local directory. Is there a better way to reflect changes than quitting and
restarting drracket?
martin
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscr
I have a small GUI app that is taking up a lot of memory - 135MB even when
run from a compiled executable and 235MB when run via "racket gui.rkt". Is
this expected? If not, could someone please take a quick look and see if
I'm doing something obviously wrong?
Code is here: https://github.com/marti
es have the notion of insertion point wired pretty
> deeply into them, and that insertion point always sits between two
> characters. How does the vim mode change this behavior so that there
> is highlighting on a character instead of between them?
>
> Robby
>
>
>
> On Sun, Sep 6,
do. Can you give an example
> interaction?
>
> Robby
>
> On Sunday, September 6, 2015, Martin DeMello
> wrote:
>
>> I'm trying to override the automatic backward-sexp highlighting in
>> drracket to highlight the sexp based on the ) after the cursor rather than
>>
I'm trying to override the automatic backward-sexp highlighting in drracket
to highlight the sexp based on the ) after the cursor rather than before it
[https://github.com/takikawa/drracket-vim-tool/issues/13]. Is this
possible? I tried overriding flash-backward-sexp but it didn't seem to have
any
I've submitted a pull request to add the disposal arg; could you take a
quick look and see if there is anything else I should be doing there?
https://github.com/plt/racket/pull/800/files
martin
On Thu, Oct 2, 2014 at 1:46 AM, Martin DeMello
wrote:
> I will; I just want to play with
I will; I just want to play with it for a bit first and make sure I'm doing
the right thing.
martin
On Tue, Sep 30, 2014 at 10:02 AM, Jens Axel Søgaard
wrote:
> Hi Martin,
>
> 2014-09-28 0:46 GMT+02:00 Martin DeMello :
> > Solved, with help from Jens Soegaard; I had to mod
Solved, with help from Jens Soegaard; I had to modify mrlib/write-gifs to
take a disposal argument, and use it in all calls to gif-add-control.
martin
On Sat, Sep 27, 2014 at 12:27 AM, Martin DeMello
wrote:
> Can't figure it out, but something in the interaction between pict->b
Can't figure it out, but something in the interaction between pict->bitmap
and write-animated-gif is causing the frames to display one on top of the
other when viewing the gif.
#lang racket
(require pict
mrlib/gif)
(define (draw-frame i)
(pict->bitmap (circle (* 50 i
(write-anima
It took me a while of reading through the docs to figure out why trying to
install a package via "https://github.com/user/pkg"; failed for want of a
MANIFEST file. I think the "do what I mean" installer should have
autoconverted it to git:// , seeing as how github is already special-cased.
(Also m
0 to 4pi
> (graph (f m) 0 (* 4 pi))
> ; five red dots at the nodes (0,0), (pi,0), ...
> (for/draw ([n 5])
> (red-circle (pt (* n pi) 0)))
>
> ; animate them!
> (animate animation-frame)
>
>
>
> 2014-09-22 20:49 GMT+02:00 Martin DeMe
I was looking through http://en.wikipedia.org/wiki/User:LucasVB/Gallery
(generated, according to the author, with a combination of php and libgd),
and wondered if anyone was doing similar stuff in racket. I'd love to see
code samples if so.
martin
Racket Users list:
http:/
How about scribble -> pandoc? That would give you a whole lot of other
targets in one fell swoop.
martin
On Sun, Mar 9, 2014 at 4:55 AM, Vincent St-Amour wrote:
> I looked into EPUB generation from Racket (with the eventual goal of
> making a Scribble back-end) some time last year. I didn't get
On Mon, Mar 10, 2014 at 11:41 AM, Danny Yoo wrote:
> As an aside: I do not understand the comment that VIM must be
> installed from sources, either. A Google search for the term "vim
> windows" comes with the first hit to the official VIM web site's link
> to a pre-packaged, self-installing exec
On Sat, Jan 25, 2014 at 9:55 AM, Ryan Culpepper wrote:
> Racket 5.92 has a new package system, including a catalog of
> hundreds of already-available packages. Please visit
>
> http://pkgs.racket-lang.org/
>
> for an overview of the packages.
>
Exciting :) Quick question: a few of the entries
7; in the docs (e.g. raco doc style) and peruse
> the scribble notion of style.
>
> -- Matthias
>
>
>
>
>
> On Dec 27, 2013, at 3:36 PM, Martin DeMello wrote:
>
>> Hi,
>>
>> Does scribble support generating a combination of HTML/CSS/javascript
Hi,
Does scribble support generating a combination of HTML/CSS/javascript
for some simple dynamic content? I'm thinking of writing some
programming articles/tutorials, and was wondering if there was any
support for the following:
1. Interspersed questions and answers, but with the answers hidden
On Thu, Sep 30, 2010 at 3:02 AM, Thomas Chust wrote:
> in case anybody else finds this useful: I have created fairly full-featured
> bindings for the IUP graphical user interface library [1] that work
> identically
> (to the maximum possible extent) under the Racket [2] and CHICKEN [3]
> Scheme s
k, but I never used it to make apps.
> Ive not tried, but I suspect the real work is making a racket
> library/interface for the ui stuff.
>
> S
>
> On Saturday, September 18, 2010, Martin DeMello
> wrote:
>> How well did it work? I've been playing with Chicken to
How well did it work? I've been playing with Chicken to write Maemo
code, which seems to work pretty well, but I figured Racket would be
pretty heavy for a mobile device.
martin
On Thu, Sep 16, 2010 at 10:40 PM, Stephen De Gabrielle
wrote:
> FWIW
> I once used scratchbox to cross compile mzschem
On Tue, Aug 24, 2010 at 12:46 AM, Laurent wrote:
> Personally, just a .deb on Racket's website would be just fine.
A PPA for ubuntu [https://help.launchpad.net/Packaging/PPA] would give
you the flexibility of releasing on your schedule while letting people
upgrade it through apt-get
martin
_
On Thu, Aug 12, 2010 at 4:14 AM, Deren Dohoda wrote:
> 4) Well, *I* have no clue what you want, so I'll just create this view
> called a "sequence" and give you that (oh yeah it just acts like a
> list)
[...]
> they use a list in the first place?). I don't believe (4) is so much a
> "solution" a
On Thu, Aug 12, 2010 at 12:44 AM, Shriram Krishnamurthi
wrote:
> Your library is truly impressive, but I don't think it addresses some
> of the fundamental issues that the OP talks about (availability in the
> core and not as some third-party library, integration with syntax,
> good integration o
On Sun, Aug 1, 2010 at 1:34 AM, wrote:
>
> Don't go reindenting the entire file without explicit request. Whenever
> something happens to me like that, I am lost in the code. Usually the
> indentation is more correct than the parentheses, even when my editor
> provides no automatic support, and
same-parity x (cdr xs)
>
> Jos
>
>> -Original Message-
>> From: users-boun...@racket-lang.org
>> [mailto:users-boun...@racket-lang.org] On Behalf Of Martin DeMello
>> Sent: 20 July 2010 15:37
>> To: PLT-Scheme Mailing List
>> Subject: [racket] sicp
By way of a puzzle, I've been trying to solve SICP exercise 2.20
Using the (define (f x . args)) notation, write a procedure
"same-parity" that takes one or more integers and returns a list of
all the arguments that have the same even-odd parity as the first
argument. F
I went to look up the Slideshow webpage today, and noticed that the
tools are pushed into a small section in http://docs.racket-lang.org/.
>From a pure marketing and discoverability standpoint, it would be nice
to have back the top level page linked to from the homepage - at
least, speaking persona
42 matches
Mail list logo