Re: [racket-users] Racket application servers

2018-11-24 Thread Brian Adkins
ve to research that. Having the OS handle the scheduling may be worth considering. On Saturday, November 24, 2018 at 2:21:11 PM UTC-5, Jesse Alama wrote: > > Hi Brian, > > On 23 Nov 2018, at 21:46, Brian Adkins wrote: > > > I'm porting a web application from Ruby/Rails to

Re: [racket-users] Racket application servers

2018-11-24 Thread Brian Adkins
I'm glad to hear about the Racket web server's reliability! I'm still working through the high level architecture, but it seems like one Racket instance per core make sense to maximize cpu utilization, and then I may spin up a thread per request w/in each process to maximize memory utilization.

[racket-users] Racket application servers

2018-11-23 Thread Brian Adkins
I'm porting a web application from Ruby/Rails to Racket, and I'd like something to manage the Racket server processes. In the Ruby world, I'm currently using Unicorn ( https://en.wikipedia.org/wiki/Unicorn_(web_server) ) prior to that I used Nginx Passenger ( https://en.wikipedia.org/wiki/Phus

Re: [racket-users] Destructuring a list in (for ...)

2018-11-21 Thread Brian Adkins
I like that. I really need to level up on Racket macros! On Wednesday, November 21, 2018 at 3:19:55 PM UTC-5, Matthew Butterick wrote: > > > On Nov 21, 2018, at 9:30 AM, Brian Adkins > wrote: > > Thanks guys. I think I can live with: > > (for ([(i j) (in-di

Re: [racket-users] Destructuring a list in (for ...)

2018-11-21 Thread Brian Adkins
the > same result as the hash case. > > Vincent > > > On Wed, 21 Nov 2018 10:55:23 -0600, > Brian Adkins wrote: > > > > I thought it was possible to destructure a list in for, but I've been > searching/experimenting for a while without success. I notice

[racket-users] Destructuring a list in (for ...)

2018-11-21 Thread Brian Adkins
I thought it was possible to destructure a list in for, but I've been searching/experimenting for a while without success. I noticed this example in the docs: (for ([(i j) #hash(("a" . 1) ("b" . 20))]) (display (list i j))) So, I assumed I could do this: (for ([(i j) '(("a" 1) ("b" 20))])

Re: [racket-users] One macro -> N defined functions

2018-11-20 Thread Brian Adkins
to the current syntax > transformer) to obtain the right lexical context. > > On Tue, Nov 20, 2018 at 8:26 AM Brian Adkins > wrote: > > > > I'm just beginning to dig in to Racket macros, so forgive the newbie > question :) Is it possible to create a macro that wi

[racket-users] One macro -> N defined functions

2018-11-20 Thread Brian Adkins
I'm just beginning to dig in to Racket macros, so forgive the newbie question :) Is it possible to create a macro that will result in multiple functions being defined? I have a bunch of predicate functions, and I'm creating a parallel set of assert functions that look like the following: (defi

Re: [racket-users] Difficulty using subprocess

2018-11-15 Thread Brian Adkins
the port: > https://docs.racket-lang.org/reference/port-buffers.html#(def._((quote._~23~25kernel)._file-stream-buffer-mode)) > > -Philip > > > On Thu, Nov 15, 2018 at 2:07 PM Brian Adkins > wrote: > >> That was it - thanks! I guess I was spoiled by Ruby's auto-flushing of

Re: [racket-users] Difficulty using subprocess

2018-11-15 Thread Brian Adkins
ppe > > > Le jeu. 15 nov. 2018 à 19:51, Brian Adkins > a écrit : > >> I'm porting a Ruby application to Racket (will be deployed on Linux, but >> I'm developing on OSX). It uses the s3270 terminal emulator to access a >> mainframe. An exampl

[racket-users] Difficulty using subprocess

2018-11-15 Thread Brian Adkins
I'm porting a Ruby application to Racket (will be deployed on Linux, but I'm developing on OSX). It uses the s3270 terminal emulator to access a mainframe. An example in Ruby is: IO.popen('s3270 L:ssl3270.example.com:2023', 'r+') do |pipe| pipe.puts "ascii" puts (pipe.gets) puts (pipe.gets

[racket-users] Re: Efficient & "nice" communication mechanism between Racket and other languages

2017-09-08 Thread Brian Adkins
On Thursday, September 7, 2017 at 11:56:37 PM UTC-4, Jack Firth wrote: > On Thursday, September 7, 2017 at 9:11:47 AM UTC-7, Brian Adkins wrote: > > I'm considering having a group of programmers create micro-services in > > various programming languages to be glued to

[racket-users] Efficient & "nice" communication mechanism between Racket and other languages

2017-09-07 Thread Brian Adkins
I'm considering having a group of programmers create micro-services in various programming languages to be glued together into a single application. I would like a communication mechanism with the following characteristics: * Already supported by Racket, or relatively trivial to add * More effic

Re: [racket-users] Higher order function to append-map the application of a list of functions to a set of args?

2016-11-15 Thread Brian Adkins
On Tuesday, November 15, 2016 at 12:58:23 PM UTC-5, Brian Adkins wrote: > On Tuesday, November 15, 2016 at 12:50:49 PM UTC-5, Brian Adkins wrote: > > On Tuesday, November 15, 2016 at 11:53:37 AM UTC-5, johnbclements wrote: > > > > On Nov 15, 2016, at 8:30 AM

Re: [racket-users] Higher order function to append-map the application of a list of functions to a set of args?

2016-11-15 Thread Brian Adkins
On Tuesday, November 15, 2016 at 12:50:49 PM UTC-5, Brian Adkins wrote: > On Tuesday, November 15, 2016 at 11:53:37 AM UTC-5, johnbclements wrote: > > > On Nov 15, 2016, at 8:30 AM, Brian Adkins wrote: > > > > > > I'm working on a simple chess engine

Re: [racket-users] Higher order function to append-map the application of a list of functions to a set of args?

2016-11-15 Thread Brian Adkins
On Tuesday, November 15, 2016 at 11:53:37 AM UTC-5, johnbclements wrote: > > On Nov 15, 2016, at 8:30 AM, Brian Adkins wrote: > > > > I'm working on a simple chess engine in Racket as a learning exercise. I > > initially wrote this function: > > > >

[racket-users] Re: Higher order function to append-map the application of a list of functions to a set of args?

2016-11-15 Thread Brian Adkins
On Tuesday, November 15, 2016 at 11:30:54 AM UTC-5, Brian Adkins wrote: > I'm working on a simple chess engine in Racket as a learning exercise. I > initially wrote this function: > > (define (valid-queen-moves board idx is-opposite-color?) > (append (valid-bishop-moves b

[racket-users] Re: Higher order function to append-map the application of a list of functions to a set of args?

2016-11-15 Thread Brian Adkins
On Tuesday, November 15, 2016 at 11:30:54 AM UTC-5, Brian Adkins wrote: > I'm working on a simple chess engine in Racket as a learning exercise. I > initially wrote this function: > > (define (valid-queen-moves board idx is-opposite-color?) > (append (valid-bishop-moves b

[racket-users] Higher order function to append-map the application of a list of functions to a set of args?

2016-11-15 Thread Brian Adkins
I'm working on a simple chess engine in Racket as a learning exercise. I initially wrote this function: (define (valid-queen-moves board idx is-opposite-color?) (append (valid-bishop-moves board idx is-opposite-color?) (valid-rook-moves board idx is-opposite-color?))) I didn't like t

Re: [racket-users] Anyone attending RacketCon but *not* Strange Loop ?

2016-06-08 Thread Brian Adkins
On Jun 8, 2016, at 2:20 PM, John Clements wrote: > > >> On Jun 7, 2016, at 1:07 PM, Brian Adkins wrote: >> >> Just out of curiosity, is anyone attending RacketCon, but not attending >> Strange Loop? >> >> I'm probably in the minorit

[racket-users] RacketCon hotel discount?

2016-06-07 Thread Brian Adkins
I noticed that the 2015 RacketCon had a "RAC" group code for the hotel. I already booked my hotel, but it's a changeable/cancelable reservation, so is there going to be a group discount for the hotel for this year's conference also? If so, what is it, and when is it active? Brian -- You recei

[racket-users] Re: Anyone attending RacketCon but *not* Strange Loop ?

2016-06-07 Thread Brian Adkins
On Tuesday, June 7, 2016 at 4:07:36 PM UTC-4, Brian Adkins wrote: > Just out of curiosity, is anyone attending RacketCon, but not attending > Strange Loop? > > I'm probably in the minority, but there don't seem to be enough compelling > sessions this year for me (

[racket-users] Anyone attending RacketCon but *not* Strange Loop ?

2016-06-07 Thread Brian Adkins
g flying in for RacketCon only. Seems a bit odd, but saving $625 pays for most of the plane ticket, so that's a nice bonus :) Brian Adkins -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop recei

Re: [racket-users] Routing syntax

2016-04-05 Thread Brian Adkins
> On Apr 5, 2016, at 6:51 AM, antoine wrote: > > > I'm open to other ideas, but :variable is used in a number of routing > > string patterns in other languages/frameworks and seems fairly standard. > > My point was being standard with other racket work not other web framework. I'd like to sti

Re: [racket-users] Routing syntax

2016-04-04 Thread Brian Adkins
On Apr 4, 2016, at 8:15 PM, David Vanderson wrote: > > On 04/04/2016 02:08 PM, Brian Adkins wrote: >> (routes >> ("/" home-page) >> ("/:org_shortname/product_image/:style/:filename" product-image #:verbs >> (get) >>#:

Re: [racket-users] Routing syntax

2016-04-04 Thread Brian Adkins
; #:constraints ([filename ".*\\.xml$"]) > ;; a guard that break optimisations and expand > #:when (not (equal? "abc" org-shortname)) > #:controller my-controller) The list style might disallow something like: "/product/item-:id" e.g. /product/item-473 or

Re: [racket-users] Routing syntax

2016-04-04 Thread Brian Adkins
On Monday, April 4, 2016 at 3:39:13 PM UTC-4, Matt Jadud wrote: > Hi Brian, > > > This looks similar to what "dispatch" does? > > > https://docs.racket-lang.org/web-server/dispatch.html > > > > I've never extended the bi-directional patterns that are available, but there > is an extension m

[racket-users] Routing syntax

2016-04-04 Thread Brian Adkins
I've been looking into an appropriate syntax for routing web requests. For each route, I'll need the following information: * URL Pattern (required) e.g. "/" "/:org_shortname/product_image/:style/:filename" "/:org_shortname/products/(*id).json" * Function to handle request (required) * Ac

Re: [racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Brian Adkins
On Monday, March 21, 2016 at 11:19:18 AM UTC-4, Neil Van Dyke wrote: > I propose that it's time for `#lang racket/base` to have a `define/provide`. > > (Out of all the possible combinations of definition forms and other > things we might often want to do with the defined identifier(s) at the > s

Re: [racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Brian Adkins
vide and define definep as define? > > > That doesn't answer the question about black magic though. > > > On Mon, Mar 21, 2016 at 10:51 AM, Brian Adkins wrote: > I've been porting my friend's Elixir code to Racket with great success. When > I asked what th

[racket-users] Re: new #lang sicp

2016-03-21 Thread Brian Adkins
On Friday, March 18, 2016 at 8:03:29 AM UTC-4, Neil Van Dyke wrote: > Could anyone currently working through or teaching SICP please try out > the new `#lang sicp` support, in Jens Axel Sogaard's `sicp` package in > the new package system? > > http://docs.racket-lang.org/sicp-manual/ > > If you

[racket-users] Can a macro have an affect above/outside its scope?

2016-03-21 Thread Brian Adkins
I've been porting my friend's Elixir code to Racket with great success. When I asked what the equivalent of (provide my-func) was in Elixir, they mentioned that you can define a private function with defp instead of def. For example: defmodule MyModule do def foo(a) do ... end defp ba

[racket-users] Re: Eliminating boiler plate for parallel tasks

2016-03-19 Thread Brian Adkins
On Saturday, March 19, 2016 at 11:56:37 AM UTC-4, Brian Adkins wrote: > On Saturday, March 19, 2016 at 11:45:46 AM UTC-4, Brian Adkins wrote: > > I've put together a very simple (31 lines) example of parallel task > > execution here: > > > > https://gist.githu

[racket-users] Re: Eliminating boiler plate for parallel tasks

2016-03-19 Thread Brian Adkins
On Saturday, March 19, 2016 at 11:45:46 AM UTC-4, Brian Adkins wrote: > I've put together a very simple (31 lines) example of parallel task execution > here: > > https://gist.github.com/lojic/6cee4fcd4220e2788ece > > The example contains a lot of boilerplate (only a fe

[racket-users] Eliminating boiler plate for parallel tasks

2016-03-19 Thread Brian Adkins
I've put together a very simple (31 lines) example of parallel task execution here: https://gist.github.com/lojic/6cee4fcd4220e2788ece The example contains a lot of boilerplate (only a few lines are specific to the problem), so before I go about eliminating the boilerplate myself, I thought I'

Re: [racket-users] Sequential vs. Parallel 13-Queens program

2016-03-12 Thread Brian Adkins
lumn) records the position of a queen in the > column (or row). This reduces the computation of time O(f(N^2)) to O(f(N)), > because only rows (or cullums) are considered, not all N^2 squares of the > board. > Jos > > -Original Message- > From: Brian Adkins [mailto:lojicdo

Re: [racket-users] Sequential vs. Parallel 13-Queens program

2016-03-12 Thread Brian Adkins
0 gc time: 0 > (expt 10 4) : cpu time: 0 real time: 0 gc time: 0 > (expt 10 5) : cpu time: 0 real time: 0 gc time: 0 > (expt 10 6) : cpu time: 63 real time: 47 gc time: 32 > (expt 10 7) : cpu time: 203 real time: 140 gc time: 15 > (expt 10 8) : cpu time: 3183 real time: 2543 gc time: 1123 &

[racket-users] Re: Sequential vs. Parallel 13-Queens program

2016-03-12 Thread Brian Adkins
On Friday, March 11, 2016 at 9:01:38 PM UTC-5, Brian Adkins wrote: > On Friday, March 11, 2016 at 7:42:22 PM UTC-5, Brian Adkins wrote: > > I coded up a sequential and parallel version of N-Queens, then did a ton of > > benchmark runs of 13-Queens to compare the time. For eac

[racket-users] Re: Sequential vs. Parallel 13-Queens program

2016-03-11 Thread Brian Adkins
On Friday, March 11, 2016 at 7:42:22 PM UTC-5, Brian Adkins wrote: > I coded up a sequential and parallel version of N-Queens, then did a ton of > benchmark runs of 13-Queens to compare the time. For each configuration > (sequential or parallel w/ M workers), I ran the programs 6 tim

[racket-users] Sequential vs. Parallel 13-Queens program

2016-03-11 Thread Brian Adkins
I coded up a sequential and parallel version of N-Queens, then did a ton of benchmark runs of 13-Queens to compare the time. For each configuration (sequential or parallel w/ M workers), I ran the programs 6 times, threw out the high two & low two and averaged the middle two numbers. The spread

Re: [racket-users] Setup/teardown for unit testing

2016-03-09 Thread Brian Adkins
to keep expanding the `for` macro to do more and more >> towards the Lisp `do` macro is a bad move, IMHO, because it is so much more >> complicated and non-orthogonal. It's better to make a test system that >> integrates well with the rest of the language and to just

Re: [racket-users] Setup/teardown for unit testing

2016-03-09 Thread Brian Adkins
st system that > integrates well with the rest of the language and to just use the language's > features for extensibility. > > Jay > > > On Tue, Mar 8, 2016 at 1:35 PM, Brian Adkins wrote: > Not exactly. I'm looking for a way to run a function before *each*, of

[racket-users] Re: Implicit "self" place channel

2016-03-08 Thread Brian Adkins
On Tuesday, March 8, 2016 at 5:10:45 PM UTC-5, Brian Adkins wrote: > I'm toying around with porting a small Elixir program to Racket. The > following gist has both programs: > > https://gist.github.com/lojic/66c00514dab54b84c56e > > One thing that's quite awkward

[racket-users] Implicit "self" place channel

2016-03-08 Thread Brian Adkins
I'm toying around with porting a small Elixir program to Racket. The following gist has both programs: https://gist.github.com/lojic/66c00514dab54b84c56e One thing that's quite awkward in my Racket version is the need for the extra place channels (ch1, ch2). So, for example, the size function

Re: [racket-users] Setup/teardown for unit testing

2016-03-08 Thread Brian Adkins
suite > A nested test suite > Another test > Another test > FAILURE > name: check-equal? > location: unsaved-editor:17:26 > actual: 1 > expected: 2 > . Check failure > > (Before #f) > 1 success(es) 1 failure(s) 0 error(s) 2 test(s)

Re: [racket-users] Setup/teardown for unit testing

2016-03-08 Thread Brian Adkins
and I don't feel that you should, you could > look at current-check-around and do something like: > > > (let ([old (current-check-around)]) >  (parameterize ([current-check-around (lambda (c) (before!) (old c) > (after!))]) >   (check-equal? ) >   (check-eq

[racket-users] Setup/teardown for unit testing

2016-03-08 Thread Brian Adkins
Does RackUnit provide a facility similar to the setup & teardown functions of other unit testing frameworks? In other words, I'd like to execute some code before each test w/o coding each test to call a setup function or having to create my own macro given how common this is. As far as I can te

Re: [racket-users] Standard web server interface?

2016-03-03 Thread Brian Adkins
On Thursday, March 3, 2016 at 12:23:28 PM UTC-5, Brian Adkins wrote: > On Thursday, March 3, 2016 at 12:15:27 PM UTC-5, antoine wrote: > > There is the fastcgi protocol http://www.fastcgi.com/drupal/ (maybe it > > is underlying rack and wsgi). > > I have done basic tes

Re: [racket-users] Standard web server interface?

2016-03-03 Thread Brian Adkins
t; I haven't found any racket implementation so far. > > On 03/03/2016 04:16 PM, Brian Adkins wrote: > > Is there anything analogous to Rack (Ruby) or WSGI (Python), i.e. a > > standard protocol between web servers and web applications, in the Racket > > worl

[racket-users] Standard web server interface?

2016-03-03 Thread Brian Adkins
Is there anything analogous to Rack (Ruby) or WSGI (Python), i.e. a standard protocol between web servers and web applications, in the Racket world? http://rack.github.io/ https://www.python.org/dev/peps/pep-/#abstract Thanks, Brian -- You received this message because you are subscribed

Re: [racket-users] Racketcon talk proposal deadline

2016-03-02 Thread Brian Adkins
> > Vincent > > > > > On Wed, 02 Mar 2016 11:50:56 -0600, > Brian Adkins wrote: >> >> This is very premature, but out of curiosity, when is the deadline for >> submitting talk proposals for Racketcon? I'd like to use the date as a >>

[racket-users] Re: farewell, sweet PLaneT

2016-03-02 Thread Brian Adkins
On Saturday, February 27, 2016 at 8:15:41 PM UTC-5, Neil Van Dyke wrote: > OK, I've moved 23 of my Racket packages from PLaneT to the new package > system, and I plan to move several more. Exactly what's been moved, and > is planned to move, is tracked at "http://www.neilvandyke.org/racket/";. >

[racket-users] Racketcon talk proposal deadline

2016-03-02 Thread Brian Adkins
This is very premature, but out of curiosity, when is the deadline for submitting talk proposals for Racketcon? I'd like to use the date as a motivational tool to help me make enough progress on the web framework to be talk-worthy! Thanks, Brian -- You received this message because you are su

Re: [racket-users] Appropriate open source license for a Racket based framework

2016-03-02 Thread Brian Adkins
On Wednesday, March 2, 2016 at 12:17:55 AM UTC-5, Neil Van Dyke wrote: > Brian Adkins wrote on 03/01/2016 11:31 PM: > > Are there any particular license issues that I should be aware of in this > > regard? > > I don't know. Looks like core Racket is now LGPLv3, which i

[racket-users] Appropriate open source license for a Racket based framework

2016-03-01 Thread Brian Adkins
I've finally begun a project to create a web framework for Racket. Are there any particular license issues that I should be aware of in this regard? The MIT License is used by both Rails and Phoenix, and I've used it for other side projects, so I'm inclined to use it for this new framework unles

[racket-users] Research Triangle, NC - Lisp & Scheme meetup

2016-02-25 Thread Brian Adkins
If any of you happen to be in the Triangle area of NC, I created a Lisp & Scheme meetup today: http://www.meetup.com/Triangle-Lisp-Scheme/ I founded TriFunc in 2009 here, but the broad scope & niche interest has always been a problem (especially after the Clojure (headquartered in the Triangle)

[racket-users] Re: Programming language popularity (there's no accounting for taste!)

2016-02-25 Thread Brian Adkins
On Thursday, February 25, 2016 at 9:02:07 AM UTC-5, Robert Herman wrote: > On Thursday, February 25, 2016 at 8:49:41 PM UTC+7, Brian Adkins wrote: > > On Thursday, February 25, 2016 at 8:36:22 AM UTC-5, Robert Herman wrote: > > > Cool, Brian! > > > > > > I am n

[racket-users] Re: Programming language popularity (there's no accounting for taste!)

2016-02-25 Thread Brian Adkins
On Thursday, February 25, 2016 at 8:36:22 AM UTC-5, Robert Herman wrote: > Cool, Brian! > > I am not able to scroll past the page view. The scroll is bottomed out, but > clearly there is more text on your page. I am using Firefox to view. > > Just curious about your experience with pony lang? I

[racket-users] Process for providing new functions for the standard library

2016-02-24 Thread Brian Adkins
What is the process for providing additions to Racket's standard library? Do people just submit pull requests, or is there a particular vetting process, to determine whether a function is generally useful enough to warrant inclusion in the standard library, that should happen first to avoid clut

Re: [racket-users] Programming language popularity (there's no accounting for taste!)

2016-02-24 Thread Brian Adkins
On Wednesday, February 24, 2016 at 2:40:23 PM UTC-5, Robby Findler wrote: > Scheme is great. Racket isn't Scheme, although it draws a ton of > inspiration from the language and it's design. Viva Scheme! Viva > Racket! > > Robby I agree, but I have mixed emotions. The lisp community is better than

Re: [racket-users] Programming language popularity (there's no accounting for taste!)

2016-02-24 Thread Brian Adkins
On Wednesday, February 24, 2016 at 12:24:59 PM UTC-5, Vincent St-Amour wrote: > If we add up the "Racket" and "Scheme" numbers (the latter being, I > suspect, mostly Racket), the total is pretty close to Ruby. I find that > amusing. :) > > Actually, I'm curious what the numbers look like if you co

[racket-users] Programming language popularity (there's no accounting for taste!)

2016-02-24 Thread Brian Adkins
I began compiling very crude statistics on programming language popularity back in 2009, and just kept doing it periodically. Initially I did it manually, but I finally got smart and wrote the following Racket program to scrape the results automatically: https://gist.github.com/lojic/83fff86aee

Re: [racket-users] Which html-parsing package?

2016-02-24 Thread Brian Adkins
On Friday, February 19, 2016 at 11:46:17 AM UTC-5, Neil Van Dyke wrote: > BTW, I now intend to move my packages to the new package system shortly, > and I'll then stop supporting the PLaneT ones. > > (There's some urgency to moving now, so I'm going to punt on workarounds > for the version-relat

Re: [racket-users] raco pkg install -> connection refused

2016-02-17 Thread Brian Adkins
On Wednesday, February 17, 2016 at 1:53:56 PM UTC-5, Matthew Flatt wrote: > At Wed, 17 Feb 2016 10:45:26 -0800 (PST), Brian Adkins wrote: > > On Wednesday, February 17, 2016 at 10:28:48 AM UTC-5, Ben Greenman wrote: > > > You should be able to install html-parsing now. >

Re: [racket-users] raco pkg install -> connection refused

2016-02-17 Thread Brian Adkins
On Wednesday, February 17, 2016 at 10:28:48 AM UTC-5, Ben Greenman wrote: > You should be able to install html-parsing now. I'm no longer getting connection refused, but now I'm getting a 403. $ raco pkg install html-parsing Resolving "html-parsing" via https://download.racket-lang.org/releases/

Re: [racket-users] Which html-parsing package?

2016-02-17 Thread Brian Adkins
On Wednesday, February 17, 2016 at 10:35:44 AM UTC-5, Brian Adkins wrote: > On Wednesday, February 17, 2016 at 10:20:21 AM UTC-5, Neil Van Dyke wrote: > > Brian Adkins wrote on 02/17/2016 10:04 AM: > > > http://www.neilvandyke.org/racket-html-parsing/ > > > > >

Re: [racket-users] Which html-parsing package?

2016-02-17 Thread Brian Adkins
On Wednesday, February 17, 2016 at 10:20:21 AM UTC-5, Neil Van Dyke wrote: > Brian Adkins wrote on 02/17/2016 10:04 AM: > > http://www.neilvandyke.org/racket-html-parsing/ > > > > takes me to Neil's page with a more recent history: PLaneT 3:0 — 2015-04-24 >

[racket-users] Which html-parsing package?

2016-02-17 Thread Brian Adkins
I'm looking for an html parser that can handle real world web pages that are typically invalid (similar to Ruby's Nokogiri). I came across recommendations for the html-parsing package, so I went to: https://pkgs.racket-lang.org/ I couldn't find it via the parsing or parser tags, but using my b

[racket-users] raco pkg install -> connection refused

2016-02-17 Thread Brian Adkins
I'm trying to install the html-parsing package, and I'm getting a connection refused error. Is this just a transient issue? $ raco pkg install html-parsing Resolving "html-parsing" via https://download.racket-lang.org/releases/6.4/catalog/ tcp-connect: connection failed address: mirror.racket-

Re: [racket-users] Standardizing the threading macro and organizing packages

2016-02-12 Thread Brian Adkins
On Sunday, January 31, 2016 at 1:05:17 PM UTC-5, Alexis King wrote: > > On Jan 29, 2016, at 21:55, Brian Adkins wrote: > > > > Was any consensus reached on this? I've been working through some exercises > > in Racket that a friend is implementing in Elixir, and I ju

[racket-users] assoc api

2016-02-10 Thread Brian Adkins
Is there an advantage to having assoc return the associated list vs. the tail of the associated list? Wouldn't it be better for it to behave more like hash-ref ? Do folks typically just define their own function such as the following ? (define daynums (map list '(sunday mon

Re: [racket-users] Standardizing the threading macro and organizing packages

2016-01-29 Thread Brian Adkins
On Wednesday, October 7, 2015 at 11:18:41 PM UTC-4, Sam Tobin-Hochstadt wrote: > A few thoughts: > > 1. This is a great idea -- one of the reasons that I think Racket has > avoided lots of little dialects despite syntactic flexibility is > standardizing the community on one thing. I'm glad you're

[racket-users] Re: LaTeX inspired key bindings

2016-01-28 Thread Brian Adkins
On Thursday, January 28, 2016 at 5:30:57 PM UTC-5, Brian Adkins wrote: > I'm sure this is a really bad idea, but I couldn't resist after finding > section 3.3.8 in the Dr. Racket documentation - what fun :) > > (define (∃ member list) > (cond [ (∅? list) ∅ ] >

[racket-users] LaTeX inspired key bindings

2016-01-28 Thread Brian Adkins
I'm sure this is a really bad idea, but I couldn't resist after finding section 3.3.8 in the Dr. Racket documentation - what fun :) (define (∃ member list) (cond [ (∅? list) ∅ ] [ (≡ member (α list)) list ] [ else (∃ member (ω list)) ])) (∃ 8 '(3 9 8 5)) Using "alpha" for "car

Re: [racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
On Tuesday, January 26, 2016 at 6:55:26 PM UTC-5, Brian Adkins wrote: > On Tuesday, January 26, 2016 at 6:52:14 PM UTC-5, olopierpa wrote: > > On Wed, Jan 27, 2016 at 12:46 AM, Brian Adkins wrote: > > > > > Ok, this is odd, it works with both Chrome and Safari *if* they&#x

Re: [racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
On Tuesday, January 26, 2016 at 6:52:14 PM UTC-5, olopierpa wrote: > On Wed, Jan 27, 2016 at 12:46 AM, Brian Adkins wrote: > > > Ok, this is odd, it works with both Chrome and Safari *if* they're not > > already open when (help filter) is evaluated. If they are alread

Re: [racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
On Tuesday, January 26, 2016 at 6:42:43 PM UTC-5, Brian Adkins wrote: > On Tuesday, January 26, 2016 at 6:39:23 PM UTC-5, olopierpa wrote: > > On Wed, Jan 27, 2016 at 12:35 AM, Brian Adkins wrote: > > > > > Just out of curiosity, does this work for anyone else? In other

Re: [racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
On Tuesday, January 26, 2016 at 6:39:23 PM UTC-5, olopierpa wrote: > On Wed, Jan 27, 2016 at 12:35 AM, Brian Adkins wrote: > > > Just out of curiosity, does this work for anyone else? In other words, in > > the Dr. Racket repl: > > > > (require racket/help) >

Re: [racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
On Tuesday, January 26, 2016 at 6:30:59 PM UTC-5, Brian Adkins wrote: > On Tuesday, January 26, 2016 at 6:21:13 PM UTC-5, Brian Adkins wrote: > > On Tuesday, January 26, 2016 at 6:15:41 PM UTC-5, Brian Adkins wrote: > > > On Tuesday, January 26, 2016 at 6:03:41 PM UTC-5, R

Re: [racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
On Tuesday, January 26, 2016 at 6:21:13 PM UTC-5, Brian Adkins wrote: > On Tuesday, January 26, 2016 at 6:15:41 PM UTC-5, Brian Adkins wrote: > > On Tuesday, January 26, 2016 at 6:03:41 PM UTC-5, Robby Findler wrote: > > > In DrRacket you can type f1 when your insertion po

Re: [racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
On Tuesday, January 26, 2016 at 6:15:41 PM UTC-5, Brian Adkins wrote: > On Tuesday, January 26, 2016 at 6:03:41 PM UTC-5, Robby Findler wrote: > > In DrRacket you can type f1 when your insertion point is on the word "help". > > > > Robby > > Awesome - thanks.

Re: [racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
up a more relevant page - the search results for searching help with filter; where the command-line repl opens up the page with the help for filter - the command-line (help) form appears to expect a procedure symbol and shows the specific help for it. > On Tue, Jan 26, 2016 at 4:28 PM, Brian

[racket-users] (help ...) form in command-line REPL vs. Dr. Racket

2016-01-26 Thread Brian Adkins
I was doing some reading on Scheme, and I came across the following page: http://bastibe.de/2012-09-20-story-about-schemes.html The author mentions: "That said, I found plt-racket to be a joy to work with. (help filter) will open your browser with the appropriate help page for filter. Amazing.

Re: [racket-users] Re: Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Thursday, January 21, 2016 at 6:54:54 PM UTC-5, Neil Van Dyke wrote: > If I understand correctly, you're ultimately looking for a general way > that you can write this kind of record processing code simply in the > future. And that, right now, you're investing some one-time > experimental ef

[racket-users] Re: Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Thursday, January 21, 2016 at 2:53:48 PM UTC-5, Brian Adkins wrote: > > Ok, so the huge place channel for each worker isn't the main issue. I changed > the code so the output process sends a message to the main process every N > messages, and the main process waits on a

Re: [racket-users] Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Thursday, January 21, 2016 at 2:26:50 PM UTC-5, antoine wrote: > To make it clear here is what i have in mind: > > #lang racket > > ;; dummy function, just remplace by A > (define (do-stuff shared-data data-length) > (values >(make-bytes data-length 65) >data-length)) > > (define p

[racket-users] Re: Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Thursday, January 21, 2016 at 2:12:51 PM UTC-5, Brian Adkins wrote: > On Wednesday, January 20, 2016 at 11:47:57 PM UTC-5, Brian Adkins wrote: > > On Wednesday, January 20, 2016 at 11:28:59 PM UTC-5, Brian Adkins wrote: > > > My initial experiment with places is a

[racket-users] Re: Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Wednesday, January 20, 2016 at 11:47:57 PM UTC-5, Brian Adkins wrote: > On Wednesday, January 20, 2016 at 11:28:59 PM UTC-5, Brian Adkins wrote: > > My initial experiment with places is a bit disappointing: > > > > Sequential version: cpu time: 2084 real time: 2091 gc tim

Re: [racket-users] Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Thursday, January 21, 2016 at 12:50:26 PM UTC-5, antoine wrote: > Bonjour, > > Maybe for avoiding transforming mutable data to immutable data you could use > make-shared-bytes and transfer the data by this mean? Don't know the > underlying > implementation of make-shared-bytes it didn't seem t

Re: [racket-users] Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Thursday, January 21, 2016 at 10:58:51 AM UTC-5, Sam Tobin-Hochstadt wrote: > Hi Brian, > > A few suggestions: > > 1. You really want to use synchronization to determine when to end, > not sleeping. Have each place write a message back to its parent when > it is done, and have the parent wait

Re: [racket-users] Re: Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Thursday, January 21, 2016 at 7:48:44 AM UTC-5, Robby Findler wrote: > It may be the overhead of communicating the data is dominating the > time spent working. > > Would it work to the main place open the file, count the number of > lines, and then just tell the worker places which chunks of th

Re: [racket-users] Re: Places performance & channel capacity

2016-01-21 Thread Brian Adkins
On Thursday, January 21, 2016 at 7:48:44 AM UTC-5, Robby Findler wrote: > It may be the overhead of communicating the data is dominating the > time spent working. > > Would it work to the main place open the file, count the number of > lines, and then just tell the worker places which chunks of th

[racket-users] Re: Places performance & channel capacity

2016-01-20 Thread Brian Adkins
On Wednesday, January 20, 2016 at 11:28:59 PM UTC-5, Brian Adkins wrote: > My initial experiment with places is a bit disappointing: > > Sequential version: cpu time: 2084 real time: 2091 gc time: 91 > > Places version: cpu time: 16895 real time: 3988 gc time: 4244 > >

[racket-users] Places performance & channel capacity

2016-01-20 Thread Brian Adkins
My initial experiment with places is a bit disappointing: Sequential version: cpu time: 2084 real time: 2091 gc time: 91 Places version: cpu time: 16895 real time: 3988 gc time: 4244 Using 8x the CPU time seems quite high. And more importantly, the places version only wrote 128,541 lines to the

[racket-users] Re: High level design for an app using places?

2016-01-18 Thread Brian Adkins
On Tuesday, January 19, 2016 at 1:13:44 AM UTC-5, Brian Adkins wrote: > I've finalized the sequential version of my program to convert a large > fixed-length field file into two distinct output files (one per table) > suitable for bulk import into postgres. > > https://g

[racket-users] High level design for an app using places?

2016-01-18 Thread Brian Adkins
I've finalized the sequential version of my program to convert a large fixed-length field file into two distinct output files (one per table) suitable for bulk import into postgres. https://gist.github.com/lojic/413f972bcaf1a6b156e2 On a single core, the runtime is 5.35x longer than the C progr

Re: [racket-users] Racket performance tips

2016-01-18 Thread Brian Adkins
On Monday, January 18, 2016 at 11:23:37 AM UTC-5, Brian Adkins wrote: > [...] > Thanks. Yes, I have a lot of cleanup to do - I basically hacked this together > as fast as I could to experiment. > > I had wondered about caching the soundex values in the past, so I just coded >

Re: [racket-users] Racket performance tips

2016-01-18 Thread Brian Adkins
> > *** I tried a few more changes that avoid allocating intermediate > bytes, but they are more complex and with 200K rows I estimate that > the difference in run time would be only 0.02s. If I find something > bigger, I'll write again. > > Gustavo > > PS: How man

Re: [racket-users] Racket performance tips

2016-01-17 Thread Brian Adkins
On Sunday, January 17, 2016 at 2:54:39 PM UTC-5, Brian Adkins wrote: > On Sunday, January 17, 2016 at 2:50:19 PM UTC-5, Brian Adkins wrote: > > > > With built-in string-trim, the lowest of three runs was 10293. Using your > > string-trim the lowest of three runs was 76

Re: [racket-users] Racket performance tips

2016-01-17 Thread Brian Adkins
On Sunday, January 17, 2016 at 2:50:19 PM UTC-5, Brian Adkins wrote: > > With built-in string-trim, the lowest of three runs was 10293. Using your > string-trim the lowest of three runs was 7618, so it reduced the runtime by > 26%. Although, I probably should've menti

<    1   2   3   >