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 d

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: https://hackage.haskell.org/package/sk

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 ge

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: https://github.com/martindemello/exolve-editor/blob/master/g

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

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

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

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

[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 [fnam

[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 g

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 th

[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 thi

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 in

[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, bu

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, Feb

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 look

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 secon

[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 unsubscr

[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: https://github.com/marti

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

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

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

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

[racket-users] Overriding sexp highlighting in drracket

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

Re: [racket] problem with pict->bitmap and mrlib/write-animated-gif

2014-10-20 Thread Martin DeMello
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

Re: [racket] problem with pict->bitmap and mrlib/write-animated-gif

2014-10-02 Thread Martin DeMello
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

Re: [racket] problem with pict->bitmap and mrlib/write-animated-gif

2014-09-27 Thread Martin DeMello
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

[racket] problem with pict->bitmap and mrlib/write-animated-gif

2014-09-27 Thread Martin DeMello
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

[racket] "do what i mean" for https://github links

2014-09-26 Thread Martin DeMello
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

Re: [racket] is anyone using racket to generate animated diagrams?

2014-09-22 Thread Martin DeMello
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

[racket] is anyone using racket to generate animated diagrams?

2014-09-22 Thread Martin DeMello
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:/

Re: [racket] Scribble and EPUB

2014-03-10 Thread Martin DeMello
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

Re: [racket] Racket 6.0 does not work

2014-03-10 Thread Martin DeMello
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

Re: [racket] Racket v5.92

2014-01-26 Thread Martin DeMello
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

Re: [racket] scribble support for dynamic content

2013-12-27 Thread Martin DeMello
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

[racket] scribble support for dynamic content

2013-12-27 Thread Martin DeMello
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

Re: [racket] [Chicken-users] [ANN] IUP Bindings

2010-09-30 Thread Martin DeMello
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

Re: [racket] News flash! Racket once again a legal choice for developing iPhone apps!

2010-09-18 Thread Martin DeMello
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

Re: [racket] News flash! Racket once again a legal choice for developing iPhone apps!

2010-09-18 Thread Martin DeMello
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

Re: [racket] Possible to install both plt-scheme from repo and racket from racket-lang.org?

2010-08-23 Thread Martin DeMello
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 _

Re: [racket] Interesting article

2010-08-11 Thread Martin DeMello
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

Re: [racket] Interesting article

2010-08-11 Thread Martin DeMello
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

Re: [racket] syntax, differently

2010-08-01 Thread Martin DeMello
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

Re: [racket] sicp exercise 2.20

2010-07-20 Thread Martin DeMello
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

[racket] sicp exercise 2.20

2010-07-20 Thread Martin DeMello
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

[racket] PLT Tools webpage

2010-07-08 Thread Martin DeMello
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