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 r

Re: [racket-users] internal definition problem

2015-04-07 Thread Neil Van Dyke
sam wrote on 04/07/2015 07:06 PM: version of racket i use does not allow me to use internal definitions using (R5RS) language It seems like you keep trying to use various `#lang racket` language features with `#lang r5rs`. They are two different languages, and Racket is orders of magnitude

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 easier

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

2015-04-21 Thread Neil Van Dyke
(I'm addressing the Scribble part of the question. I'm not familiar with Pollen.) I understand the question about vendor lock-in. That's neither the intent nor the effect, and people here will happily help you go to other formats. You can already generate HTML, LaTeX (PDF), and Markdown fr

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 converters.

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

2015-04-22 Thread Neil Van Dyke
Here's an interface for using your own renderers with Scribble: http://docs.racket-lang.org/scribble/renderer.html I think one would also want to look at the code for an existing renderer, not just work from the interface documentation alone. (If I were going to do a more-plain-HTML5 renderer,

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 m

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

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

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 u

[racket-users] scribble namespace landgrab & embedded package documentation

2015-05-04 Thread Neil Van Dyke
said 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; ;;;

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

[racket-users] write-bytes specification

2015-05-06 Thread Neil Van Dyke
If I call `write-bytes` with mutable byte string S with value A, and then, immediately after return from the call, I mutate S to value B... is it nevertheless guaranteed that value A will be written? I think this behavior is unspecified right now (regardless of what the current implementation

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

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 t

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

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 ha

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

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

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

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 me

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 o

[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] Selecting HTML/SGML elements

2015-06-21 Thread Neil Van Dyke
Bahman Movaqar wrote on 06/21/2015 10:10 AM: TLDR; Are there any HTML parsing libs for Racket? "http://www.neilvandyke.org/racket-html-parsing/"; parses HTML to SXML. From there you can use SXPath and `sxml-match` to extract the info you want. Neil -- You received this message because you

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

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 comple

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.) Implementing

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] 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 insert

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

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 reusa

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

[racket-users] garbage collection

2015-07-04 Thread Neil Van Dyke
Any plans for new interesting GC/memory features in Racket? For example, being able to inhibit GC for a time, being able to adjust the GC trigger parameters dynamically, different ways to minimize GC pauses or slowdown in the app behavior, real-time constraints on GC, special support to help p

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 b

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

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 case

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 gue

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 /u

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 un

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 seri

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

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 Kis

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] A couple of questions about Neil's html reader/writer

2015-07-29 Thread Neil Van Dyke
Thomas Lynch wrote on 07/29/2015 10:25 PM: Neil can you comment on what other differences I might expect to find? Are the below 2 messages to the list helpful? * Historical background on SXML and Racket xexpr: https://groups.google.com/d/msg/racket-users/yaOtPkd_qvs/8ruIg-Smr7cJ * Technical n

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] 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
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

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 let-parameterize-syntax-splicing-local-transformer-binding-apply-

Re: [racket-users] Sending Closures to Places

2015-08-05 Thread Neil Van Dyke
On second thought, it's arrogant of me to do a drive-by "don't use eval" PSA, if I'm not willing to support the assertion each time it's questioned. Or I should have a written argument somewhere that supports my assertion well enough, that I can point people to it and expect not to have to say

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] 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 symp

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 feasi

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...". http://planet.racke

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

2015-08-18 Thread Neil Van Dyke
Oops, try installing them in the *opposite* order of the URLs below. Neil Van Dyke wrote on 08/18/2015 05:50 PM: 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&qu

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 be

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

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

[racket-users] documentation files in new package system

2015-09-17 Thread Neil Van Dyke
I'm going to try to retool for the new package system by the end of the weekend, and have a couple questions... What's the current preferred convention on what documentation-related files are included in the package? And is that convention expected to remain stable for a year or more? For e

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 packag

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 the

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 well

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 (an

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 you

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 wh

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

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

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 to

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 Users

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: http://docs.

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

2015-10-03 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 file

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 almost

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

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

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 f

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 requir

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 <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 colon-symbol for any purp

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 guide

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-22 Thread Neil Van Dyke
I appreciate people taking the time to vote, and thanks to Jay for doing this poll. I am genuinely surprised :keyword saw so much support and that change was so attractive to people. And I'm surprised how many people claim to love #:keyword. (The engineering opposition to any non-backward-c

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] 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

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 code

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 sa

Re: [racket-users] Configuration Files

2015-11-18 Thread Neil Van Dyke
I generally second the idea of doing a configuration file format like "info.rkt" (but not using that particular filename, unless your program is tools for Racket development projects). An advantage of this format is that you then have a few different options for how to use the file. Specifica

Re: [racket-users] Rust vs. C as a complement to Racket?

2015-11-19 Thread Neil Van Dyke
Brian Adkins wrote on 11/19/2015 07:08 PM: The example that provided the initial motivation is extremely simple - process 45M+ text records with some minor transformations (including computing a couple soundex values on first/last names). Racket came in at 2.4x faster than Ruby, but still CPU

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

2015-11-23 Thread Neil Van Dyke
The Clan of Colon Keywords was willing to honor a truce. I think for people coming from other languages with :keywords, Racket's #:keywords help to signal that they are not anything like how :keywords are usually used. I'm sure there are relatively better justifications for pound-colon than

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 opti

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 "http://www

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 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 re

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 make rackunit show tests succeeded?

2015-12-16 Thread Neil Van Dyke
The Overeasy package uses the Racket logger. Add "info@overeasy" to your logging selector, such as in the DrRacket Log window, or in environment variables or on the command line: http://docs.racket-lang.org/reference/logging.html Neil V. -- You received this message because you are subscribe

[racket-users] winter break project for student = android

2015-12-18 Thread Neil Van Dyke
If some smart student is looking for a winter break project (as an alternative to grinding trophies in Fallout 4, arguing Star Wars semiotics in online forums, or marathoning ultimately disappointing Netflix shows)... Build Racket for the Android NDK, then make a generic shell Android app in

<    1   2   3   4   5   6   7   8   9   10   >