Re: [racket-users] Intro and projects inquiry

2017-10-12 Thread Thomas Lynch
Apparently Whalesong is such an alterntiave. https://github.com/jashkenas/coffeescript/wiki/list-of-languages-that-compile-to-js A Lisp dialect, Clojure, has caused a lot of young folks to ask questions/to think about Lisp ( https://m.oursky.com/why-i-chose-clojure-over-javascript-24f045daab7e). O

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

2015-07-29 Thread Thomas Lynch
On Thu, Jul 30, 2015 at 11:09 AM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > Great! thanks Neil! > Ah spoke too soon! Those links just point back into this very same thread! The most obvious difference between racket's xexpr and yours is the '@' as

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

2015-07-29 Thread Thomas Lynch
Great! thanks Neil! On Thu, Jul 30, 2015 at 11:02 AM, Neil Van Dyke wrote: > 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? > > * His

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

2015-07-29 Thread Thomas Lynch
xexpr->tok-tree an-xexpr) > (match as-xexpr > ['() > '()] > [(not (cons _ _)) > (tok-make ...)] > [(list tag) > (list tag)] > [(list-rest tag (? is-at-list at-list) r2) > ] > )) > > On Jul 29, 201

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

2015-07-29 Thread Thomas Lynch
e") (body ((bgcolor "white")) (h1 () (tok:value ((value "My Heading" (p ((style "default")) (tok:value ((value "This is a paragraph." (p () (tok:value ((value "This is another paragraph.")

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

2015-07-29 Thread Thomas Lynch
I wrote primitive conversion routines to bring the xexpr or Neil's xexpr into ... oh gosh, my parser token format, which by coincidence is very close. Just playing with this now .. In my target format token children are always other tokens. All values given as attributes in value tokens. I use an

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

2015-07-28 Thread Thomas Lynch
Is Neil's xexp format different that the one being used in racket due to the attribute list beginning with an '@'? (write-html '((html (head (title "My Title")) (body (@ (bgcolor "white")) (h1 "My Heading") (p "This is a paragraph.") (p "This is an

Re: [racket] how to get line numbers on syntax errors on load?

2015-03-10 Thread Thomas Lynch
Greg, the code fails to load due to the error, so trace doesn't get a chance to participate. On Wed, Mar 11, 2015 at 5:19 AM, Greg Hendershott wrote: > >> Is there a way to coerce racket to be more specific in its messages? > > Although I don't know if it would do better with this particular err

Re: [racket] how to get line numbers on syntax errors on load?

2015-03-09 Thread Thomas Lynch
nothing to do with macros or unicode as first thought. On Tue, Mar 10, 2015 at 12:44 PM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > When loading modules I sometimes get syntax errors - rightfully so. > However, the errors sometimes don't have line numbers,

[racket] how to get line numbers on syntax errors on load?

2015-03-09 Thread Thomas Lynch
When loading modules I sometimes get syntax errors - rightfully so. However, the errors sometimes don't have line numbers, making them time consuming to find. Here is one today: Welcome to Racket v5.2.1. racket@> (enter! "ap.rkt") link: reference (phase 0) to a variable in module "basic-lib.rkt"

Re: [racket] CFP: Workshop on Generic Programming 2015 - Deadline May 15

2015-03-05 Thread Thomas Lynch
gulp, please ignore that last message, gmail webclient doesn't show the subject when hitting reply missed that .. sorry! On Thu, Mar 5, 2015 at 7:04 PM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > I have the following error for a variable name that is u

[racket] racket error message line number

2015-03-05 Thread Thomas Lynch
oh gosh, didn't edit the subject ... anyway, found the offender, bad id anyway ... still error message without line numbers are no fun. On Thu, Mar 5, 2015 at 7:04 PM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > I have the following error for a variable nam

Re: [racket] CFP: Workshop on Generic Programming 2015 - Deadline May 15

2015-03-05 Thread Thomas Lynch
I have the following error for a variable name that is used often in a large file, Is there a way to coerce racket into telling me a function name or line number? rac...@dataplex-lib.rkt> (enter! "dataplex-lib.rkt") [re-loading /home/deep/src/dataplex-lib.rkt] expand: unbound identifier in mod

Re: [racket] racket/db exception handling and unmanaged transactions with postgres

2015-01-20 Thread Thomas Lynch
ise v) ) ] ) body ... ) (db-commit) (semaphore-post (current-db-semaphore)) )) ] )) On Wed, Jan 21, 2015 at 1:29 PM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > Thankyou Ryan. I also

Re: [racket] racket/db exception handling and unmanaged transactions with postgres

2015-01-20 Thread Thomas Lynch
Jan 21, 2015 at 1:04 AM, Ryan Culpepper wrote: > On 01/20/2015 06:53 AM, Thomas Lynch wrote: > >> >> According to the manual, >> http://docs.racket-lang.org/db/query-api.html#%28part._transactions%29, >> section >> 3.5, postgres transactions can be issued

[racket] racket/db exception handling and unmanaged transactions with postgres

2015-01-20 Thread Thomas Lynch
According to the manual, http://docs.racket-lang.org/db/query-api.html#%28part._transactions%29, section 3.5, postgres transactions can be issued directly in SQL (so called 'unmanaged'). Here is a short code segment that fails doing unmanaged transactions (and nothing else). My question here i

Re: [racket] trace: set!: cannot mutate module-required identifier - alright .. how do you do this?

2015-01-20 Thread Thomas Lynch
p.s. add a separate regular old (provide ...) for module interface routines that are not traceable ... On Tue, Jan 20, 2015 at 5:59 PM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > Alright, here is one solution to the trace of libraries. > > The following is m

Re: [racket] trace: set!: cannot mutate module-required identifier - alright .. how do you do this?

2015-01-20 Thread Thomas Lynch
interface. We call (db-lib-untrace) to turn the tracing off. We plan to use this approach for all modules. Seems to be working. Hope someone finds this useful. -Thomas On Mon, Jan 19, 2015 at 11:31 PM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > please note, the

Re: [racket] trace: set!: cannot mutate module-required identifier - alright .. how do you do this?

2015-01-19 Thread Thomas Lynch
function so that > modules that export a mutating function can be traced without depending on > racket/trace. If a module contains a `set!` for an identifier, it disables > any inlining for that identifier. > e.g. > (trace #:setter set-function!) > > -Ian > > - Or

Re: [racket] trace: set!: cannot mutate module-required identifier - alright .. how do you do this?

2015-01-19 Thread Thomas Lynch
trace `f` from a different module. you can `(define (g . > args) (apply f args)) (trace g)`, use `g` wherever you use `f`. You won't > get any calls the library makes internally, but if you're just tracing for > your own code, you'll be golden. > > -Ian > >

[racket] trace: set!: cannot mutate module-required identifier - alright .. how do you do this?

2015-01-19 Thread Thomas Lynch
Saw this in another thread here, but the proposed solution didnt work, well at least the way I understood it. So .. In file db-lib.rkt I have a definition: (provide db-exec) (define (db-exec a) ...) Then in racket > (enter! "db-user.rkt") Where db-citation.rkt has (require "db-lib.rkt")

Re: [racket] ok what's wrong there 'syntax-rule' evaluating its operand (??)

2015-01-15 Thread Thomas Lynch
thank you! .. of course that makes sense. I guess that gensym and uninterned symbols have something to do with this? The identifiers in the macro are 'interned' (is that the terminology? rather than renamed?) so in fact table-auth was never defined. Then at run time there are complaints as such

Re: [racket] ok what's wrong there 'syntax-rule' evaluating its operand (??)

2015-01-14 Thread Thomas Lynch
oops sorry Daniel, I already put it over on the developers list. The question is about the context and place of evaluation for 'table-author' and when it caused an error. Tha question never got addressed here. However we did have a lot of "user" type answers.. seems it belongs on the developers

Re: [racket] ok what's wrong there 'syntax-rule' evaluating its operand (??)

2015-01-14 Thread Thomas Lynch
I reformulated/clarified the question and bumped it over to the developers, you can find it there. Thanks for helping with this. On Thu, Jan 15, 2015 at 12:46 PM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > Matthias, > > I appreciate your patience. I did s

Re: [racket] ok what's wrong there 'syntax-rule' evaluating its operand (??)

2015-01-14 Thread Thomas Lynch
On Thu, Jan 15, 2015 at 12:07 PM, Matthias Felleisen wrote: > > [cc user@ again] > > There is no bug in syntax-rule/s. > > Macros do not evaluate anything. They rewrite code. Code refers to > identifiers. This relation must remain apparent. > > That's it. -- Matthias &g

Re: [racket] ok what's wrong there 'syntax-rule' evaluating its operand (??)

2015-01-14 Thread Thomas Lynch
Matthias thank you for fielding my question, though two things are not clear. I hope you or someone might clarify. Firstly, is there a reason to prefer the macro you present over the first one given in the original post. I believe they both work. Neither uses the more elegant syntax-rule. Sec

[racket] ok what's wrong there 'syntax-rule' evaluating its operand (??)

2015-01-14 Thread Thomas Lynch
Here is a macro that is working, .. at least in the context it is being used: (define-syntax (with-tables stx) (let*( [datum (syntax->datum stx)] [stem (cadr datum)] [body (cddr datum)] ) (datum->syntax stx (append `(le

Re: [racket] postgres connect problem - unexpected 'password required' error

2015-01-01 Thread Thomas Lynch
Thank you, that is good information. The SSL performance issue is important and I didn't even know to ask about it. Thanks also to Ryan. On Fri, Jan 2, 2015 at 12:12 AM, Neil Van Dyke wrote: > Thomas Lynch wrote on 01/01/2015 10:32 AM: > >> >> I don't know if there

Re: [racket] postgres connect problem - unexpected 'password required' error

2015-01-01 Thread Thomas Lynch
to `postgresql-connect" had no affect in this case. Thank you ! On Thu, Jan 1, 2015 at 11:20 PM, Thomas Lynch < thomas.ly...@reasoningtechnology.com> wrote: > > > On Thu, Jan 1, 2015 at 6:25 PM, Neil Van Dyke > wrote: > >> Thomas Lynch wrote on 01/01/2015 03:30

Re: [racket] postgres connect problem - unexpected 'password required' error

2015-01-01 Thread Thomas Lynch
On Thu, Jan 1, 2015 at 6:25 PM, Neil Van Dyke wrote: > Thomas Lynch wrote on 01/01/2015 03:30 AM: > >> I am having difficulty connecting to the postgres server from Racket. It >> asks for a password, but role and authentication is set up so that the >> logged in loca

[racket] postgres connect problem - unexpected 'password required' error

2015-01-01 Thread Thomas Lynch
I am having difficulty connecting to the postgres server from Racket. It asks for a password, but role and authentication is set up so that the logged in local user does not need one. 1. these versions: (Debian 4.6.3-14) Racket 5.2.1 postgres (9.1.14) 2. running psql from a shell prompt doesn'