Re: [racket-dev] Potential search improvement
On Tue, May 29, 2012 at 11:20 AM, Eli Barzilay e...@barzilay.org wrote: Just now, Justin Zamora wrote: The search still doesn't find words in function descriptions. [It's not a full-text search, and as long as it's required to run on client machines (needed to run on your local copy), it's unlikely to become a full-text search.] It could be an SQLite-backed Full Text Search, couldn't it? (just it would require possibly unwanted changes to the whole architecture...) _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Potential search improvement
On Thu, Jun 14, 2012 at 10:56 PM, Rodolfo Carvalho rhcarva...@gmail.comwrote: On Tue, May 29, 2012 at 11:20 AM, Eli Barzilay e...@barzilay.org wrote: Just now, Justin Zamora wrote: The search still doesn't find words in function descriptions. [It's not a full-text search, and as long as it's required to run on client machines (needed to run on your local copy), it's unlikely to become a full-text search.] It could be an SQLite-backed Full Text Search, couldn't it? (just it would require possibly unwanted changes to the whole architecture...) I had in mind that it is possible to use WebSQL or IndexedDB (on browsers that support them), or even sql.js: https://github.com/kripken/sql.js Demo: http://syntensity.com/static/sql.html The demo consumes 23 MB on Chrome while the new search page consumes around 40 MB. Of course these numbers are not to be compared directly and I don't mean to make any comparison. I just looked at it and cite it as a clue that it may be viable performance-wise (i.e. sql.js itself apparently doesn't take hundreds of megabytes of RAM). []'s Rodolfo Carvalho _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] new logo
I saw a truck with this logo earlier this week and it made me think about Racket: http://img.photobucket.com/albums/v213/clubedotrecho/11-0013.jpg http://www.gruporaupp.com.br/logotipos_raupp/raupp_transportes.png -- Rodolfo Carvalho _ Racket Developers list: http://lists.racket-lang.org/dev
[racket-dev] Link to FLOSS Weekly on the Racket home page [Firefox problem]
Hello, I was browsing the website when I noticed that apparently the link to Matthew's interview became somehow less readable. It turns out that the problem is specific to Firefox. With Chrome or other Webkit-based browsers I see spaces between the words, but this is what I see on Firefox 8: http://imm.io/dwU5 Is it a known problem? Rodolfo Carvalho _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] [plt] Push #23903: master branch updated
Hello, On Wed, Nov 23, 2011 at 16:08, Robby Findler ro...@eecs.northwestern.eduwrote: Oh, right. Pattern matching on url structs. If we want to keep that working (which I think we do), then that ties our hands much more. I believe there are some other crufty things in net/url (having to do with encodings?). I've reported some time ago that I had problems with non-UTF8 encodings, such as uri-decode etc calling /utf8 functions instead of using byte-strings. If time would permit I'd implement supplementary versions of those functions to work on byte-string and make no assumptions on encoding. But in case a new library is in the way, then I think it can be made so that it doesn't assume any particular encoding. []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] SIGSEGV MAPERR si_code 1 fault on addr (nil) when inserting rows via db / SQLite
Eric, I can't help fixing the problem with your current code, but I can point you to the docs where Ryan says you should probably use functions like start-transaction, commit-transaction and call-with-transaction (in case you missed those). http://docs.racket-lang.org/db/query-api.html?q=db#(part._transactions) PostgreSQL, MySQL, and SQLite connections are discouraged from using transaction-changing SQL statements So, for example, (query-exec db BEGIN TRANSACTION) becomes (start-transaction db). []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Bison
Hello, There is an example lexer and parser from the parser-tools collect for Scheme r5rs that may serve you. You can check it at collects/parser-tools/examples/read.rkt, or online: https://github.com/plt/racket/blob/master/collects/parser-tools/examples/read.rkt As has been said, the grammar is pretty compact, and probably won't help you much with Jison. See Whalesong, that's a really cool project from Danny Yoo, and has already many cross-browser working examples. It's the first time I hear about Emscripten, and it seems ... wow! Let us know if you can make Racket compile and run using it! []'s Rodolfo Carvalho On Wed, Oct 12, 2011 at 00:23, Gatlin Johnson roken...@gmail.com wrote: Hello, I'm new to racket and even newer to developing with it. Is there a Bison grammar definition of racket? I'll be up front: my goal is to run it through Jison (http://zaach.github.com/jison/) and make a version which runs in the browser. If not, I can play around with emscripten and go the hard way. Fantastic project / language / community you've got here, though. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
[racket-dev] Access key for search box in Help Desk
Hello, I thought of adding an access key to the search box in Help Desk. Many times when I am using it I want a quick way to move to the search box and perform a (new) search. We could add an accesskey attribute to the HTML input, or use javascript. Accesskey is easy to implement, but different browsers/platforms will end up with different key combinations (ctrl + ..., alt + ...). I'd like to know if more people find it useful, and if there is opposition against accesskey (in favor of javascript or something else). []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Access key for search box in Help Desk
On Wed, Oct 12, 2011 at 22:40, Neil Van Dyke n...@neilvandyke.org wrote: An access key wouldn't hurt, though I don't recall ever hearing of someone using them in practice. Just be careful of your hands if you're pressing three-simultaneous-key combinations a lot With Chrome it would be alt+q for example (if input accesskey=q ...) BTW, I blogged an alternative a couple years ago, pasted below. Instead of plt, now, I use r for Racket documentation. Usually I do Ctrl-T to get a new tab, so I don't have to make a decision on whether to replace the contents of the current tab, and which also leaves the text cursor in the AwesomeBar, ready to type my r search. I like this alternative. But for me it would work better to use it against docs.racket-lang.org, so that synchronizing bookmarks across the systems that I use would work. Still, whenever I use a browser without my bookmark it will fail. So, across machines, accesskey would be always there, the only requirement being figuring out how to access the field -- alt, ctrl, ctrl+alt... For people unaware of the accesskey, nothing would change. They can still click on the search box, tab/shift+tab until it is focused, or use Neil's alternative. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Fwd: a language example: brainfudge. Documentation done!
Exciting! I hope this tutorial will find its place in the official doc :D []'s Rodolfo Carvalho On Sun, Jun 12, 2011 at 21:08, Danny Yoo d...@cs.wpi.edu wrote: I've finished up my first draft of the how to build brainf*ck tutorial: http://hashcollision.org/tmp/brainfudge/manual.html It covers building that language from scratch, using PLaneT to do the development, and finally how to deploy it back onto PLaneT. It tries to assume fairly minimal knowledge; I tried to imagine my target audience as someone fairly professional, although not a Racketeer. Source code for the tutorial is in my github repository: https://github.com/dyoo/brainfudge/blob/master/manual.scrbl I have to admit that I basically crashed through this in a day, so some of the prose may need some rewrite. I'd love to hear any comments and suggestions. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Please help me to fix the code
It seems to me that the Design Recipe should come into play. Try to think what's the relation between the solution for a list of length n and one of length n-1. []s On 2011-05-30, Matthias Felleisen matth...@ccs.neu.edu wrote: On May 30, 2011, at 7:17 PM, Yingjian Ma wrote: Hi All, I wrote a piece of code to count the occurrance of a letter in a list. But it gave me an error saying #procedure:...uments... The code is below: (define (count-matches s l) (cond [(empty? l) 0] [(equal? s (first l)) (lambda (i)(+ i 1))] What's this lambda doing here? [else (count-matches s (rest l))])) Where the s is a letter and l is a list. To use it as an example, I typed (count-matches 'f '(f )) and got the error. The right result should be 1. Do I need to initialize i? If so, how can I do it? Note that the keywords that I can use are pretty much used in the code. If the solution needs keywords outside this post, it may not be useful to me. Thank you very much. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev -- Sent from my mobile device Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] drracket on linux, no middle-mouse-paste, no Replace
On Tue, May 24, 2011 at 10:02, Marijn hk...@gentoo.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, with version 5.1.1 of drracket running on linux, mouse-select/middle-mouse-paste isn't working. I can confirm that. v5.1.1 compiled from source, Ubuntu 10.10. Unrelatedly I noticed that in the Edit menu all three options concerning Replace are greyed out. Indeed, but I wonder it's like this by design? If you click find and then show replace on the menu, then replace is available. []'s Rodolfo Carvalho _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev