Re: [racket-users] carmack s-expression tweet

2015-03-27 Thread Neil Van Dyke
Brian Craft wrote on 03/27/2015 03:45 PM: Was this a reference to a particular racket lib? And if so, which one? https://twitter.com/ID_AA_Carmack/status/577878167542734848 The `read` and `write` procedures are one way to do this. (Though you want to disable some features when you do that.

Re: [racket-users] carmack s-expression tweet

2015-03-27 Thread Neil Van Dyke
Just comenting only on Alexis's suggestion here, since sounds like John is happy with sexps for now. I don't see how `racket/fasl` is suitable for heterogeneous interop, which is a very common case needing this, perhaps the most common. Spec-wise, `racket/fasl` is not defined, beyond that it

Re: [racket-users] ANN: Gregor, a date and time library

2015-03-26 Thread Neil Van Dyke
BTW, the ISO 8601 standard (I don't mean the trivial ISO 8601 date/time format everybody knows) has done a lot on concepts you might want to look at. Beware that ISO 8601 is big, and there is some baffling stuff included, but you can't always tell what is important. One thing I can tell you

Re: [racket-users] ANN: Gregor, a date and time library

2015-03-26 Thread Neil Van Dyke
BTW, the ISO 8601 standard (I don't mean the trivial ISO 8601 date/time format everybody knows) has done a lot on concepts you might want to look at. Beware that ISO 8601 is big, and there is some baffling stuff included, but you can't always tell what is important. One thing I can tell you

Re: [racket-users] Racket and FastCGI

2015-04-02 Thread Neil Van Dyke
If you want to use SCGI instead of FastCGI: http://www.neilvandyke.org/racket-scgi/ Neil V. -- 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

Re: [racket-users] DrRacket plugin to remove trailing whitespace on save?

2015-04-13 Thread Neil Van Dyke
After editing a Racket source file in DrRacket, I usually end up going into Emacs to clean up formatting of the code and comments. This is a combination of `quack-tidy-buffer` (see docs below), semi-automated re-filling of any messy comment/docs, adjusting of line breaks in ways that are

Re: [racket-users] convert to/from Sribble

2015-04-21 Thread Neil Van Dyke
Gour wrote on 04/21/2015 06:50 AM: Another way to get to lots of different formats from Scribble would be to make Scribble generate more-plain HTML5 (i.e., less tag-heavy than in its normal HTML output, throwing away a lot of the info), and then use that as a source format for other

Re: [racket-users] Handling concurrent requests in the web server

2015-04-28 Thread Neil Van Dyke
Tim Brown wrote on 04/28/2015 09:16 AM: Jay proved to me that the web-server was working with an experiment involving Apache Bench (ab); which is a nifty tool, I must say! I also like JMeter for this purpose, since JMeter can validate output, for performance stress-testing. Though JMeter is

[racket-users] racket on openwrt devices

2015-05-02 Thread Neil Van Dyke
What's the current viability of running Racket on a small OpenWRT device? (Anything new, such as due to the recent modularization of the core?) For example of specs of a popular beefy retail home WiFi router that runs OpenWRT well: Processor: Atheros AR7161 rev 2 680MHz (MIPS arch)

[racket-users] racket on openwrt

2015-05-10 Thread Neil Van Dyke
Has anyone already made an OpenWRT `.ipk` package of Racket? Neil V. -- 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.

Re: [racket-users] scribble namespace landgrab embedded package documentation

2015-05-10 Thread Neil Van Dyke
Matthew Flatt wrote on 05/07/2015 02:44 PM: I have no problem with these names --- the `scribble` exports are unlikely to ever collide, since we rarely resort to capital letters --- but I can't help thinking that the language of the metadata should specified explicitly. Regarding `#lang

[racket-users] Re: scribble namespace landgrab embedded package documentation

2015-05-04 Thread Neil Van Dyke
Clarification: This is not a proposed official documentation format; this is an optional thing, for package authors who choose to use my forthcoming unofficial tool. I'm just making sure that these Scribble names will be OK. Neil Van Dyke wrote on 05/04/2015 07:39 PM: For purposes

[racket-users] scribble namespace landgrab embedded package documentation

2015-05-04 Thread Neil Van Dyke
metadata: BEGIN #lang racket/base ;;; @Package{duckling} ;;; @Version{0.1} ;;; @Subtitle{Small-Footprint Web Server in Racket} ;;; @Author{Neil Van Dyke} ;;; @Author{Alyssa P. Hacker} ;;; @License{LGPLv3} ;;; @Legal{Copyright 2015 Neil Van Dyke. This program is Free Software; ;;; you

Re: [racket-users] racket on openwrt devices

2015-05-03 Thread Neil Van Dyke
Tony Garnock-Jones wrote on 05/03/2015 12:55 PM: On 2015-05-02 2:29 PM, Neil Van Dyke wrote: What's the current viability of running Racket on a small OpenWRT device? (Anything new, such as due to the recent modularization of the core?) Nothing that I know of since 2011ish. The smaller core

Re: [racket-users] racket on openwrt devices

2015-05-03 Thread Neil Van Dyke
Tony Garnock-Jones wrote on 05/03/2015 03:10 PM: On 2015-05-03 2:50 PM, Neil Van Dyke wrote: 128 RAM and 128 NAND flash, albeit with a different SoC with lower CPU clock rate. I don't want to rely on USB Storage for this project. I should mention also that I couldn't do anything useful

Re: [racket-users] racket on openwrt

2015-05-11 Thread Neil Van Dyke
This needs a lot of testing and probably some more work, but looks like we can probably have an official OpenWRT package of Racket. I now have Racket at least partly running (pending testing) on Netgear WNDR3700v4 home WiFi router hardware, under the current official stable OpenWRT image, at

[racket-users] racket testing on openwrt

2015-05-17 Thread Neil Van Dyke
Can someone recommend an easy way to test Racket 9.2 pre-release on OpenWrt (embedded GNU/Linux, running on a normal home WiFi router)? For example, is there a big tree of files that I could just copy onto a USB flash drive, and run with one command, and it would dump its log to a file or

Re: [racket-users] i am getting an undefined identifier error

2015-04-07 Thread Neil Van Dyke
R5RS doesn't have a `read-line`. I think most people use `#lang racket` or `#lang racket/base` now. If you need to use R5RS for some reason, you'll want to work from the R5RS document, not from the Racket documentation. http://www.schemers.org/Documents/Standards/R5RS/HTML/ Neil V. -- You

[racket-users] a desperate plea for new package system etiquette

2015-04-04 Thread Neil Van Dyke
I don't know how other people feel about someone else putting packages they wrote into the new package system, but I think it's a problem. Today marks at least the third time that I was about to move forward with the new package system, but it just came to a screeching halt, when I found

Re: [racket-users] Racket and FastCGI

2015-04-04 Thread Neil Van Dyke
Lux wrote on 04/03/2015 05:47 AM: cgi.assign = ( .rkt = /usr/bin/racket ) scgi.server = ( .rkt = (( bin-path = /usr/bin/racket, socket = /tmp/racket.socket ))) scgi.debug = 1 -- Trying to

Re: [racket-users] racket virtual machine

2015-06-04 Thread Neil Van Dyke
Thanks, Jens Axel, Raoul, and Robby. Different question... For support for writing polished Web browser (and PhoneGap) apps in Racket, any comments on which of the following two options is better (viable, easier to implement and maintain, better performance, etc.)? 1. Implement Racket VM in

[racket-users] racket virtual machine

2015-06-03 Thread Neil Van Dyke
How hard is it to implement the Racket virtual machine (no JIT) for a single target architecture one knows? Say, is this a one-weekend task, or a one-month task? Neil V. -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this

Re: [racket-users] racket virtual machine

2015-06-05 Thread Neil Van Dyke
I recall Whalesong, and was hoping something simpler would work. Robby Findler wrote on 06/05/2015 08:21 AM: You might have a look at Whalesong. It is a racket-js compiler that, IMO, was headed in a good direction. It's not a small thing, however. -- You received this message because you are

Re: [racket-users] Selecting HTML/SGML elements

2015-06-21 Thread Neil Van Dyke
Bahman Movaqar wrote on 06/21/2015 01:35 PM: (define html-doc (html-xexp html-as-string)) ((txpath //li[@id='SOME-ID']) html-doc) I'm glad that worked. BTW, the above is a perfectly fine script, but I just remembered something to point out for people finding this email thread in

[racket-users] rackunit

2015-06-19 Thread Neil Van Dyke
Is `rackunit` to be used for all core Racket testing, long-term? Is there any other Racket testing stuff on the horizon? (Reason for asking: I'm about to standardize unit/regression testing for a large Racket-based system. I need to decide whether to build it upon `rackunit` at some level.)

Re: [racket-users] Break-before-run

2015-06-12 Thread Neil Van Dyke
Robby Findler wrote on 06/12/2015 09:01 PM: I think DrRacket will kill the old execution when you hit run. Are you not seeing that? I just tested with 6.1.1 on Linux, and (with a `sleep` running) neither the button click nor Ctrl-R responds until you manually break the execution with button

Re: [racket-users] racket on android (Was: Racket modules in R6RS?)

2015-06-11 Thread Neil Van Dyke
Matthew Flatt wrote on 06/11/2015 10:00 PM: Android via NDK is a supported platform. Matthew, that's great. Thank you. Anyone implemented `racket/gui` for Android with this, or otherwise hooked up things so that the Racket program can drive a UI on Android? Neil V. -- You received this

[racket-users] racket on android (Was: Racket modules in R6RS?)

2015-06-11 Thread Neil Van Dyke
Has anyone tried to build Racket 6.x for the Android NDK (or whatever is the current way to do native code)? That might be the fastest path, rather than targeting Dalvik, Java, or JS. Encouraging: I did find that Racket 6.x builds pretty easily as a possibly-viably-sized OpenWrt package,

Re: [racket-users] generalised set! in Racket

2015-06-30 Thread Neil Van Dyke
I have implemented generalized `set!` in Racket before, as a cute exploratory exercise, but I haven't found a sufficiently compelling benefit of generalized `set!`. The closest I've imagined to benefit of generalized `set!`: let's say you had really terse but nice referencing syntax for

Re: [racket-users] Room for descriptions

2015-07-03 Thread Neil Van Dyke
BTW, Emacs users can get this feature through Quack. http://www.neilvandyke.org/quack/ See checkbox menu item Quack - Options - Smart-Open-Paren, or Customize-able variable `quack-smart-open-paren-p`. The feature turns causes a typed [ to insert (. Separately, typed ] always inserts the

Re: [racket-users] API function naming

2015-07-03 Thread Neil Van Dyke
General comment on the naming conventions we come up with... These punctuation characters that typically require a shift modifier might be pleasing to the eye, but unpleasing to the typist. Incidentally, while @ might have lower typing cost than cmd-, I think it's more than 1/4 the typing

Re: [racket-users] API function naming

2015-07-03 Thread Neil Van Dyke
Alexis King wrote on 07/03/2015 06:33 PM: Perhaps this isn’t applicable in this case, but may I suggest a less-common alternative: no prefixing at all? If you put all the commands into a separate module, users of the module can use ‘prefix-in’ to choose whatever prefix they prefer. For

Re: [racket-users] Emacs Lisp as a Racket Language?

2015-07-03 Thread Neil Van Dyke
Tony Garnock-Jones wrote on 07/03/2015 03:15 PM: I want to explore it as a way of getting a Racket REPL on steroids. I imagine firing up Racket, getting a deceptively normal-looking terminal-style REPL, working for a bit (with rich, full-emacs-style functionality available at the REPL), and then

[racket-users] SteamOS / Steam Machine

2015-07-04 Thread Neil Van Dyke
Just out of curiosity, anyone planning to use Racket somehow work on SteamOS, that you can say? (I'm idly toying with a moonlighting indie game idea that initially would target Steam Machines, because it needs monetization and console-type controllers, Valve seems like a good company to work

Re: [racket-users] garbage collection

2015-07-04 Thread Neil Van Dyke
Neil Toronto wrote on 07/04/2015 05:29 PM: I don't know, but I want most of these things. I assume this is related to your earlier question about games? :) Partly. :) I've also been dealing with GC for years in non-game HTTP servers in which some requests are time-sensitive, and even just

Re: [racket-users] garbage collection

2015-07-04 Thread Neil Van Dyke
Matthew Flatt wrote on 07/04/2015 06:40 PM: That is, unlike so many other things in our infrastructure, the GC is not so tangled with everything else that it would be difficult to change by itself. Granted, Good about GC not so tangled. I don't know the current state of GC research, nor what

Re: [racket-users] SteamOS / Steam Machine

2015-07-05 Thread Neil Van Dyke
Oops, I had a typo in my lede, which confused my question. I have little doubt that Racket can be installed on SteamOS; I'm more curious about experiences (e.g., GC in games, any difficulty with Valve's ABI or their encryption or anti-tampering stuff, difficulty FFI-ing with the C++ SDK,

Re: [racket-users] Directory not accessible

2015-07-06 Thread Neil Van Dyke
David T. Pierson wrote on 07/06/2015 11:27 PM: As a side note, I tried using file-or-directory-permissions [3] to avoid recursing into directories with no read or execute permission, but it BTW, before anyone does a lot more work on filesystem access control semantics... I think the usual

Re: [racket-users] Emacs Lisp as a Racket Language?

2015-07-02 Thread Neil Van Dyke
Reimplementing GNU Emacs, with backward compatibility, was one of the original intents of Guile, but that never happened. (I won't get into the reasons I know of, but a big indirect one was not due to any fault of Guile or its people, IMHO, nor were they likely even aware of it.)

Re: [racket-users] test submodules vs tests in separate file

2015-05-21 Thread Neil Van Dyke
Three advantages of `test` submodules interspersed with the implementation code: * You're usually working on implementation and tests at the same time, and putting them adjacent in the same file is helpful (without fancy IDE support). * These tests constitute documentation for someone who

Re: [racket-users] Using the draw and plot packages with other languages

2015-08-15 Thread Neil Van Dyke
Marduk Bolaños wrote on 08/14/2015 10:06 PM: Since Racket is a compiled language, I thought that perhaps it would be possible to compile these packages as shared libraries and then (ideally automatically) generate bindings for the desired language. I think I understand your message, and am

Re: [racket-users] Using DrRacket behind a proxy

2015-08-18 Thread Neil Van Dyke
Vimal, as a temporary workaround for your HTTP proxy issue... You can try downloading the following two URLs via your normal Web browser, saving them to files named 1.plt and 2.plt, and installing them in that order via DrRacket menu item File - Install .plt file

Re: [racket-users] Garbage Collection of Places

2015-08-17 Thread Neil Van Dyke
Jack Firth wrote on 08/17/2015 03:21 PM: From my limited experience with C, I've learned it's pretty much impossible to expect any sane human to keep track of memory perfectly. That's a helpful impression. C must be feared and respected, before it can be tamed. That said, I think it's

Re: [racket-users] A couple of questions about Neil's html reader/writer

2015-07-29 Thread Neil Van Dyke
Thomas Lynch wrote on 07/29/2015 11:22 PM: The most obvious difference between racket's xexpr and yours is the '@' as the head of the attributes list. Any idea where else I will see divergences? You might not be able to implement a tool that works correctly with all conforming SXML, until

Re: [racket-users] Optimizing closures

2015-07-31 Thread Neil Van Dyke
Laurent wrote on 07/31/2015 09:05 AM: That's a simplified version of some cases of mine where several complex procedures that look very much alike, so I'd really like to avoid copy/paste/maintain, but these procedures are also inside intensive loops, so I'd really like to not sacrifice speed.

Re: [racket-users] eval PSA (was Sending Closures to Places)

2015-08-04 Thread Neil Van Dyke
Josh, right you are, that a bare statement of don't use eval can come off as unhelpful or patronizing. I'll go meta... My day job is practitioner, not professor. Among many-many nits, I'm tired of seeing bad uses of eval in real-world code. Even more than that, I'm frustrated that eval is

[racket-users] Re: A couple of questions about Neil's html reader/writer

2015-07-28 Thread Neil Van Dyke
In short, it's a historical accident, but the confusion seems less costly than a compromise would, IMHO. Details... 15 years ago, the famous Oleg Kiselyov defined SXML: http://okmij.org/ftp/Scheme/xml.html Scheme people in general saw that SXML was good. Perhaps more a motivation, we saw

Re: [racket-users] Re: A couple of questions about Neil's html reader/writer

2015-07-28 Thread Neil Van Dyke
Oops, I meant to mention Kirill Lisovsky as an early developer of neat SXML tools, too. Neil Van Dyke wrote on 07/28/2015 10:51 AM: In short, it's a historical accident, but the confusion seems less costly than a compromise would, IMHO. Details... 15 years ago, the famous Oleg Kiselyov

Re: [racket-users] Re: A couple of questions about Neil's html reader/writer

2015-07-28 Thread Neil Van Dyke
Greg Hendershott wrote on 07/28/2015 04:30 PM: Imagine conversion functions `xexpr-sxml` and `sxml-xexpr`. Would implementing them be any easier than unifying xexprs and sxml (or is it really just the same problem)? Yes, I think those procedures would be easy to implement in such a way that

Re: [racket-users] Sending Closures to Places

2015-08-02 Thread Neil Van Dyke
Michael Titke wrote on 08/03/2015 12:50 AM: Perhaps /quote/ and /eval/ would do the job? That is the usual way to treat Scheme code as data and data as Scheme code. Eval might indeed be the perfect solution this time, iff every other conceivable alternative has been rejected. :) Shameless

Re: [racket-users] eval PSA (was Sending Closures to Places)

2015-08-04 Thread Neil Van Dyke
Sean Kanaley wrote on 08/04/2015 12:04 PM: I cannot think of any good uses for eval in Racket. Any time the mental time spent using eval (or defmacro) is less than that of figuring out how to not use eval or defmacro by using

Re: [racket-users] Re: is this a bug?

2015-08-08 Thread Neil Van Dyke
Michael Titke wrote on 08/08/2015 02:40 AM: Top-down A and Right-to-Left E, right? I'm not able to find the code points for these symbols right now ... https://en.wikipedia.org/wiki/List_of_logic_symbols BTW, if someone's looking for a fun little summer vacation #lang learning exercise, you

Re: [racket-users] What limits would you put on racket?

2015-07-23 Thread Neil Van Dyke
On Racket, CL, limits, programmers... I've found that most stuff can be done in Racket, and, though I have used CL when required by two consulting clients' prior implementation choices, I'm not aware that CL has any key advantages over Racket. (Not bashing CL; it's a nice platform, with an

Re: [racket-users] What limits would you put on racket?

2015-07-23 Thread Neil Van Dyke
Hendrik Boom wrote on 07/23/2015 08:15 PM: I've heard that half-life waswritten in a versino of Lisp. But the battles in half-life tend to be short, so they explicitly called the garbage collector between battles. And now HL3 is merely delayed by a *really* long deferred GC cycle? :) But

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

2015-10-24 Thread Neil Van Dyke
Greg Hendershott wrote on 10/24/2015 10:43 AM: p.s. If people read that (even just section 7.7), and there's still a debate? Then probably the only resolution would be a compromise that leaves everyone equally unhappy. Like say :#:keyword:#: ;) I linked the paper on Oct 15, though it got lost

Re: [racket-users] Anybody done some "Internet of Things" stuff with Racket?

2015-11-10 Thread Neil Van Dyke
Going briefly off-topic for Racket... Definitely be encouraged to experiment in the "IoT" network-connected device space, as hobbyists, DIYers, or researchers. But be very careful with big IoT investments. Also be skeptical of current off-the-shelf IoT products and specs, for security- or

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

2015-11-08 Thread Neil Van Dyke
Nota Poin wrote on 11/08/2015 08:41 PM: What I want is implicit keyword names for arguments with defaults. So instead of: (define (foo #:bar? (bar? #f) #:foo (foo 42) #:some-variable-name (some-variable-name 3)) ...) I'd like a variation on this. Since I (and lots of existing Racket

Re: [racket-users] let/define

2015-11-03 Thread Neil Van Dyke
Holdouts who never adopted the new-fangled internal `define` still find `begin`'s semantics to be quite simple and intuitive. :) I suspect that people like internal `define` because it looks simpler than `let`. However, if simplicity is one's motivation for teaching internal `define` rather

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

2015-10-14 Thread Neil Van Dyke
We are conducting a highly scientific poll. The question we want to answer is whether people would like for the Racket standard languages to have symbols that begin with the colon character (except for the symbol `:`) to read the same has keywords that begin with pound-colon. That is, when

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

2015-10-14 Thread Neil Van Dyke
I find `keyword:` kinda pretty, too (I first used them in Smalltalk, though Smalltalk syntax takes it a huge step further). But, IIRC, it was Joe Marshall who pointed out (one of the past times keywords were discussed) that `:keyword`s are visually less ambiguous in Lisp syntax when use of a

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

2015-10-14 Thread Neil Van Dyke
Alex Knauth wrote on 10/14/2015 04:37 PM: You can use #lang colon-kw racket for :kw syntax, and #lang kw-colon racket for kw: syntax. If the standard `#lang racket` and `#lang racket/base` don't support `:keyword` out of the box -- but instead some alternative reader or forked #lang is

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

2015-10-14 Thread Neil Van Dyke
Alex Knauth wrote on 10/14/2015 05:57 PM: On Oct 14, 2015, at 5:34 PM, Neil Van Dyke <n...@neilvandyke.org <mailto:n...@neilvandyke.org>> wrote: I very much appreciate diligence about backward-compatibility, but I'm not actually aware of any Racket code that actually uses

Fortran (Was: [racket-users] racket users fight for their right to colon keywords)

2015-10-15 Thread Neil Van Dyke
Regarding Fortran, about 3 weeks ago, I looked into implementing a `#lang fortran77` or `#lang fortran90`. Functionality-wise, it looks doable; speed-wise, not so great. I have no further need for this, but it's an interesting practical/hobby project someone might want to pursue. (For easy

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

2015-10-15 Thread Neil Van Dyke
Hendrik Boom wrote on 10/15/2015 01:25 PM: I'd like to ask: What do the Scheme standards say about this? What do Lisp standards say about this? I don't know the answers to these questons, though maybe I should, and Racket is not a standard Scheme, but I think these answers should at least

Re: [racket-users] Long-term Runtime session state

2015-10-13 Thread Neil Van Dyke
I usually prefer to do something like for the `roomba` object in "http://www.neilvandyke.org/racket-roomba/;. See how there's a `current-roomba` Racket parameter, which provides a default value for the `#:roomba` optional argument for each procedure. So, users of the code can pass around the

Re: [racket-users] Diagnosing a segfault in production

2015-07-08 Thread Neil Van Dyke
Scott Bell wrote on 07/08/2015 09:23 PM: [...] ... #6 0x00080153e004 in strlen () from /lib/libc.so.7 #7 0x000800a72bf3 in scheme_make_byte_string_without_copying () from /usr/local/lib/libracket3m-6.1.1.so #8 0x000800ade3f2 in c_to_scheme () from

Re: [racket-users] Diagnosing a segfault in production

2015-07-08 Thread Neil Van Dyke
Does adding the executable pathname to the `gdb` command line (i.e., format `gdb EXECUTABLE-FILE CORE-FILE`) give you the symbols? If that doesn't give you symbols, you can check the symbol info of your Racket debug build by running (without the core file) briefly under `gdb`. If I had to

Re: [racket-users] help on coding finite state automata

2015-09-03 Thread Neil Van Dyke
If your FSM are defined at compile-time, you can write a macro (in `syntax-rules` or `syntax-case`) that transforms FSMs defined in your FSM macro language to efficient Racket code. Even with a macro, there are a few popular ways to do it, but I suggest trying to make your state transitions

[racket-users] DrRacket runs on SteamOS beta

2015-09-06 Thread Neil Van Dyke
The official DrRacket build for Debian installs and runs easily on SteamOS beta: http://www.neilvandyke.org/temporary/steamos-drracket-gears.png There is an appeal to being able to develop OpenGL or GTK programs directly on your living room media/gaming appliance, in DrRacket. Valve is

Re: [racket-users] Procedure to save racket file as text file

2015-09-13 Thread Neil Van Dyke
Is this what you need? (I'm not sure.) http://docs.racket-lang.org/gui/WXME_Decoding.html André Mayers wrote on 09/13/2015 03:44 PM: I need a procedure to save the content of many racket files (*.rkt) in text files (*.txt). I know, I can use the "save as" button in drRacket but it will take

Re: [racket-users] Re: typed/racket + rackunit = trouble

2015-09-17 Thread Neil Van Dyke
Robby Findler wrote on 09/17/2015 09:18 PM: I think that we need to work harder to deemphasize eq?, and warn people that, when eq? returns #f, really you learned nothing (like you need to pretend you just didn't even call eq?). If it returns #t, then you learn something, of course. What about

Re: [racket-users] Re: typed/racket + rackunit = trouble

2015-09-17 Thread Neil Van Dyke
Whew. :) I only rarely have a non-symbol use for `eq?`, but I use `eq?` heavily for symbols in everyday application code. Robby Findler wrote on 09/17/2015 09:27 PM: eq? on symbols is a special part of the specification and that seems benign to me, all things considered. The "giant hash in

Re: [racket-users] Re: typed/racket + rackunit = trouble

2015-09-17 Thread Neil Van Dyke
Good to know. In that case, "just use `equal?`" is probably good advice for new Racket people. Personally, I'm super-comfortable with `eq?` for symbols (since, as you know, it's a basic thing that's been used very heavily in Lisps for old-school AI and compilers and such). So I might as

Re: [racket-users] documentation files in new package system

2015-09-17 Thread Neil Van Dyke
OK, instead of "doc.scrbl", I'll have ".scrbl". Is it OK if I *exclude* the HTML rendering of the docs from the files included in the packaging altogether (which would give me the below files)? * info.rkt (the usual) * somepackage.rkt (the full implementation with embedded docs, for my

[racket-users] module providing both safe and unsafe procedures

2015-09-29 Thread Neil Van Dyke
Does it make sense for a non-Racket #lang module to `provide` both *safe* and *unsafe* (in the sense of `racket/unsafe/ops`) variants of procedures? If so, any tricks to doing that? For example: * A function `foo` defined in this #lang module might result in the module providing two Racket

[racket-users] syntax write using @-syntax

2015-09-30 Thread Neil Van Dyke
Is there already a way to programmatically write syntax objects using @-syntax, such that the output could be read with the @-reader? I want to write a `.scrbl` file in @-syntax, from syntax objects that mostly came from `scribble/reader` `read-syntax-inside`. Neil V. -- You received this

Re: [racket-users] syntax write using @-syntax

2015-09-30 Thread Neil Van Dyke
Clarification: The goal is to write a Scribble file, in @-syntax, so that it looks much like a human would write, with the at-signs and (ideally) curly braces. The input to this writing would be a tree of syntax objects. Neil Van Dyke wrote on 09/30/2015 06:25 AM: Is there already a way

Re: [racket-users] syntax write using @-syntax

2015-09-30 Thread Neil Van Dyke
Thanks, Greg. Greg Hendershott wrote on 09/30/2015 01:54 PM: I'm not aware of an existing procedure to do this. It has some interesting wrinkles. Following is my "Greenspun's Tenth Rule" version. [...] -- You received this message because you are subscribed to the Google Groups "Racket

Re: [racket-users] Base Library Reference

2015-10-03 Thread Neil Van Dyke
To add to what Jay said... If you're referring to the "language vs. standard library" distinction: Racket documents the language(s) and (most of the) library together. The two most important manuals for this are: * Guide: http://docs.racket-lang.org/guide/index.html * Reference:

Re: [racket-users] syntax write using @-syntax

2015-10-04 Thread Neil Van Dyke
Thanks, Eli. That's one of the things I was afraid of. The other thing is: does a Scribble formatter ever look at the line/column position information in the syntax objects? (I thought I recalled it seeming to do this years ago, maybe for the start of a multi-line verbatim-like markup.) I

Re: [racket-users] syntax write using @-syntax

2015-10-04 Thread Neil Van Dyke
Eli Barzilay wrote on 10/04/2015 03:06 AM: The *reader* ignores uniform indentation, so when you write something like: That's what I was remembering. Thanks. Right -- that was the reason for my comment: maybe there's some way to keep the source code where it is, and refer to it from the

Re: [racket-users] Help on Threads

2015-09-27 Thread Neil Van Dyke
Sergey Yudin wrote on 09/27/2015 04:50 PM: Can you please explain whats wrong with the code ? The program exits because the main thread exits, even though the "background" threads are still running. Add a `(sleep 30)` to the end of the file. Neil V. -- You received this message because

Re: [racket-users] Help on Threads

2015-09-28 Thread Neil Van Dyke
Sergey Yudin wrote on 09/28/2015 09:08 AM: By the way threads works but still output exists # # How to suppess it ? (void (thread ...)) You're seeing those messages because DrRacket likes to report the values of top-level expressions as it evaluates them. But it doesn't report anything

Re: [racket-users] fail on http server response not actually a failure?

2015-10-05 Thread Neil Van Dyke
'John Clements' via Racket Users wrote on 10/05/2015 03:26 PM: is this what I would expect to see if a client just gave up and closed the TCP connection before the response was written, I've seen similar errors logged by people using my SCGI package. I believe you're correct that it

Re: [racket-users] Racket poster

2015-09-20 Thread Neil Van Dyke
Matthias Felleisen wrote on 09/20/2015 05:46 PM: Can we please stay away from politics and leaning on politics? I am sure everyone has different connotations with these kinds of symbols. I have a similar aversion to the Grateful Dead iconography: connotations of substance abuse, intellectual

Re: [racket-users] Racket poster

2015-09-20 Thread Neil Van Dyke
Robby Findler wrote on 09/20/2015 07:21 PM: I have a similar aversion to the Grateful Dead iconography: connotations of substance abuse, intellectual impairment, countercultural friction, societal detachment... :) Good thing we look like Pepsi now, eh? Much improved. Logo is looking good

Re: [racket-users] reducing pauses with incremental GC

2015-12-02 Thread Neil Van Dyke
This is awesome, Matthew. Best Christmas ever! Neil V. -- 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

Re: [racket-users] Re: racket execution

2015-12-04 Thread Neil Van Dyke
Everything George said. Alternatively, if you are in a prototyping mode right now, you can just run your program from the command line in a detached `tmux` or `screen` session, which you can reattach when you want to mess with the server. You can also combine the tmux/screen with

Re: [racket-users] Crash when installing 'boris' package from GitHub URL on OSX 10.6.8

2015-12-10 Thread Neil Van Dyke
'John Clements' via Racket Users wrote on 12/10/2015 01:04 PM: However, it could easily be the case that a package (presumably from Neil Van Dyke) could contain code that would be installed into the html subdirectory of the sxml collection, and I’m guessing that’s what you’re referring

Re: [racket-users] Crash when installing 'boris' package from GitHub URL on OSX 10.6.8

2015-12-09 Thread Neil Van Dyke
David K. Storrs wrote on 12/09/2015 08:50 PM: 1) Is there a web-spidering package that people recommend? I could use wget and then parse things from disk, but I'd like to have something that's easily composable into CLI scripts. I've done a lot of Web crawling and scraping successfully

Re: [racket-users] How to make rackunit show tests succeeded?

2015-12-16 Thread Neil Van Dyke
David K. Storrs wrote on 12/16/2015 06:50 PM: I'm just getting started with rackunit, and I was very surprised when I found that it simply emits nothing if a test succeeds. The Overeasy package does this, using the Racket logger. Add "info@overeasy" to your logging selector, such as in the

Re: [racket-users] How to generate unique link for one-time use in web server?

2016-01-04 Thread Neil Van Dyke
Jay's example is a clever use of `web-server` continuations. If I understand this example correctly, some comments... Note that this approach requires that the continuation for a survey participant still be available when the participant clicks the link in their email. If you use this

Re: [racket-users] html parsing library does not handle 'article' tags -- any solutions?

2016-01-07 Thread Neil Van Dyke
Jay McCarthy wrote on 01/07/2016 06:53 PM: If you use the `html-parsing` package on the package server, you will not have these problems. The only problem I saw was an error accessing "docindex.sqlite" when "raco pkg install sxml". If there's some way that my official `html-parsing`

Re: [racket-users] html parsing library does not handle 'article' tags -- any solutions?

2016-01-07 Thread Neil Van Dyke
David Storrs wrote on 01/07/2016 05:57 PM: (require (planet neil/html-parsing:3:0) (planet neil/xexp:2:0)) Those loaded just fine right off, although I needed to figure out raco pkg install sxml was necessary, but I got that. You shouldn't need to require `(planet neil/xexp:2:0)` explicitly

Re: [racket-users] html parsing library does not handle 'article' tags -- any solutions?

2016-01-07 Thread Neil Van Dyke
I just checked that there wasn't a new bug in my old `html-parsing` package, in case that's which package you meant. `html-parsing` correctly handles your example for me under Racket 6.3, so that package might be a backup option for you (but beware that it uses SXML representation, rather

Re: [racket-users] html parsing library does not handle 'article' tags -- any solutions?

2016-01-07 Thread Neil Van Dyke
This is a wild guess, without looking at the code, but I wouldn't be surprised if this Racket `html` package had some obsolete support for a special `article` HTML element, and that code could be removed today. (A long, long time ago, Racket had its own Web browser, for viewing its

Re: [racket-users] html parsing library does not handle 'article' tags -- any solutions?

2016-01-07 Thread Neil Van Dyke
Matthew Butterick wrote on 01/07/2016 04:18 PM: When we speak of "parsing HTML" we should distinguish between strict parsing (= explicit adherence to a given HTML spec) and permissive parsing (= converting an HTML-ish string into Racket data.) Both have their place. Alas, I think the W3C

Re: [racket-users] html parsing library does not handle 'article' tags -- any solutions?

2016-01-07 Thread Neil Van Dyke
BTW, people should *not* get `html-parsing` from the new package system. It has an old version that someone else put there unofficially, and it's missing a significant change. I'm still maintaining the official version of `html-parsing` in PLaneT (until I get time to change my doc tools):

Re: [racket-users] Simple regex question. How to match this: "[X] foo"

2016-01-08 Thread Neil Van Dyke
David Storrs wrote on 01/09/2016 02:34 AM: What method would you suggest for that? Probably regular expression. :) Neil V. -- 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,

Re: [racket-users] HTTPS for Racket web sites and packages

2016-01-08 Thread Neil Van Dyke
Matthew Flatt wrote on 01/08/2016 10:54 PM: Except for "https://mirror.racket-lang.org;, HTTPS content is provided via CloudFlare from an HTTP (not HTTPS) access of S3. So, you can only trust the content of "https://pkgs.racket-lang.org; to the degree that you trust Amazon, CloudFlare, and the

  1   2   3   4   5   6   >