Re: [racket-users] low-friction app extensibility in racket
Neil Van Dyke wrote on 07/06/2017 05:53 AM: * Pretty similar alternative: user has a Racket file "my-foo", which is the immediate program the user runs. This file does a `(require foo)`, as well as a `(start-foo #:pref1 x #:pref2 y ...)`. I think this is probably the alternative I would/will try, for this kind of programmer-centric app. The Racket package for the stock app can add a very simple executable program, "foo", that looks for the "foo" program in the user's home directory (or equivalent), and execs that program. If the "foo" program does not exist in the user's home directory, the stock "foo" program can create it with default contents (the `require` and the `start-foo`), before execing it. (So, the user can run either program and get effectively the same behavior from. No headaches about getting environment variables right in all situations. Someone who wanted to speed up startup slightly could exec the user's "foo" program when it exists, and otherwise exec the stock one.OS menus and such, if they can't perform logic like test for file existence, can just call the stock program.) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Boot To Racket
I've made a boot-to-Racket-app appliance image for x86 before, based on Debian Live. The bootable filesystem image was under 400 MB, including Linux, X, Racket, various other native programs and libraries, and the app itself. It would boot to a full-screen display that would display a hostname or IP address at which you should point your smartphone/tablet/laptop Web browser, to get a remote control UI "HTML5 mobile app". But I could also have had it run "racket" REPL or DrRacket rather than the app. (This appliance was going to be an example for my abandoned book, but I did release a few independently reusable Racket packages from it, in keeping with the methodology the book was to promote.) One clean way to implement boot-to-Racket is with the "build-lildeb" script of an earlier GNU/Linux distro -- one script file shows and implements all the changes made to strip down and customize Debian Live. There's also an "update-lildeb" flashing script, which goes to a lot of trouble to tweak the partition table of the flashed device. http://www.neilvandyke.org/lildeb/ If you want something smaller than a stripped-down Debian, there's OpenWrt. There are signs that someone unknown once put considerable work into getting Racket to run on hardware architectures like some small OpenWrt devices have, because Racket REPL came up a little too easily once I got OpenWrt building working. The OpenWrt package for Racket turned out to be less than 6 MB, though the bigger concern is the runtime RAM footprint. I didn't test this much. http://www.neilvandyke.org/racket-openwrt/ There's also various other projects for embedded Linux. Some of them get into messier and more questionable toolchains, and can involve a lot more work and sometimes sketchy provenance. Personally, if your target hardware is even a modest, well-supported x86 or ARM device (not something very small or strange), I'd probably start with Debian Live (probably copying and modifying my "build-lildeb" script), and see how that works. Or you could just have instructions (or a script) for how to modify a stock Debian, Raspian, Arch, etc. install to boot-to-Racket, in a manner of speaking. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Boot To Racket
Well there is the racket-rash project[1]. So you're thinking of more a *NIX environment inside the REPL? [1] https://github.com/willghatch/racket-rash On Friday, July 7, 2017 at 5:38:51 PM UTC-7, Royall Spence wrote: > How about a full suite of all the usual shell commands? I believe this > is the approach scsh takes. Come to think of it, I'm going to give that > a try now... > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Boot To Racket
How about a full suite of all the usual shell commands? I believe this is the approach scsh takes. Come to think of it, I'm going to give that a try now... On Fri, Jul 7, 2017, at 08:16 PM, Lehi Toskin wrote: > I have this idea, this vision. I wish to create a small system that would > more or less only be to turn on the machine (probably an RPi) and then > you'd immediately be inside a Racket REPL. Probably wouldn't be very > interesting by itself, but that seems to be almost exactly what eLua and > MicroPython are. > > Say, for the sake of discussion, such a tiny system were created. What > functionality would you expect to be available? Filesystem access? > Networking? Or simply just the racket/base REPL and that's it? > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Boot To Racket
I have this idea, this vision. I wish to create a small system that would more or less only be to turn on the machine (probably an RPi) and then you'd immediately be inside a Racket REPL. Probably wouldn't be very interesting by itself, but that seems to be almost exactly what eLua and MicroPython are. Say, for the sake of discussion, such a tiny system were created. What functionality would you expect to be available? Filesystem access? Networking? Or simply just the racket/base REPL and that's it? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Scribble: tables and figures with captions and numbering?
Ben, Georges, Many thanks for your input. I checked out the example of a figure from the Scribble manual: #lang scribble/manual @(require scriblib/figure) @figure["straw" @elem{A straw}]{@image["straw.png"]} Reference to @(figure-ref "straw"). The figure itself successfully converts to LaTeX and HTML, but strangely not Markdown. The reference is no longer a reference-by-name in LaTeX or Markdown output, though those formats provide referencing by labels. It is good to know that a low-level referencing mechanism is provided in Scribble, though. Best regards, Dmitry -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Adding terms to Scribble table of contents
I am trying to use Scribble to document some things that are not Racket bindings. I can get the linking and typesetting behavior I want by building on top of elemtag and elemref, but I would also like the defining instances to be added to the table of contents in the same way as bindings defined using defproc and friends. Is there a mechanism to do this? Thanks, Philip -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Scribble: tables and figures with captions and numbering?
Scribble has a low-level mechanisms for handling “numberers”, which aim to solve the the same problem as LaTeX's counters. http://docs.racket-lang.org/scribble/core.html#%28tech._numberer%29 Alternatively, MathJax natively supports numbering equations: http://docs.mathjax.org/en/latest/tex.html#automatic-equation-numbering . I'll try to see if I can integrate one of these mechanisms in scribble-math at some point (don't hold your breath, I'm too busy right now so it will wait a bit). Follow this GitHub issue for updates: https://github.com/jsmaniac/scribble-math/issues/6 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Canvas Printing Services | Digital Printing | Dot2Dot
DTD is a specialist in transforming your astonishing photographs into beautiful canvases. We are very passionate about taking your special moments and turning them into gallery-quality artwork. Let us keep your memories in a way you can exhibit them at home, at work or outdoors. We offer the highest quality canvas printing service and revolutionary aluminum frames across our wide range of canvas products in a lot of different shapes, sizes and finishes. Our Canvas Print Offers: Gallery wrapped edges which allow you to hang with or without frame Stylish backgrounds and layouts for one or more photos Landscape or portrait orientation See photos in full color, black & white or sepia tones Show off your child’s artwork or turn a favorite photo into a special gift Available in sizes 12×12, 10×14, 16×20, 20×30, 24×36 Depth 1 3/8 inches http://www.dot2dot.com.my/canvas-printing-2/ -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.