Re: [racket-users] New module log-bracketed; should probably be something else

2021-09-02 Thread Martin DeMello
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

Re: [racket-users] Starting syntax highlighter project

2020-02-19 Thread Martin DeMello
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:

Re: [racket-users] Re: GUI (get-directory)

2019-11-22 Thread Martin DeMello
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

Re: [racket-users] What is the best way to display styled text in a Racket GUI app?

2019-11-12 Thread Martin DeMello
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:

Re: [racket-users] Re: raco setup equivalent for building standalone executables?

2019-11-10 Thread Martin DeMello
d.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, Martin D

[racket-users] getting intermediate values out of a do chain in functional-lib:data/monad

2019-10-23 Thread Martin DeMello
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

[racket-users] drracket indentation in vim

2019-10-23 Thread Martin DeMello
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

Re: [racket-users] horizontal alignment in a message% or equivalent

2019-10-13 Thread Martin DeMello
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 the

[racket-users] horizontal alignment in a message% or equivalent

2019-10-13 Thread Martin DeMello
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

Re: [racket-users] Alternative UI toolkits

2019-08-04 Thread Martin DeMello
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

[racket-users] is anyone using the ffi with c++?

2016-06-19 Thread Martin DeMello
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,

Re: [racket-users] Programming language popularity (there's no accounting for taste!)

2016-02-24 Thread Martin DeMello
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,

Re: [racket-users] racket users fight for their right to colon keywords

2015-10-14 Thread Martin DeMello
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

Re: [racket-users] Naming for generalization of find-min and find-max?

2015-10-12 Thread Martin DeMello
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

[racket-users] reload package within drracket without restarting

2015-09-08 Thread Martin DeMello
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

[racket-users] high memory usage of gui app

2015-09-07 Thread Martin DeMello
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:

Re: [racket-users] Overriding sexp highlighting in drracket

2015-09-06 Thread Martin DeMello
you want to do. Can you give an example > interaction? > > Robby > > On Sunday, September 6, 2015, Martin DeMello <martindeme...@gmail.com> > wrote: > >> I'm trying to override the automatic backward-sexp highlighting in >> drracket to highlight the sexp based