[racket-users] Re: [racket] Web Framework Benchmarks

2020-06-01 Thread hashim muqtadir
A new version of these benchmarks was just published ("Round 19"): 
https://www.techempower.com/benchmarks/#section=data-r19

Racket scores rather poorly (0 errors is nice, though). Anybody has any 
guesses as to why this is? Racket performs well enough as far as I'm 
concerned, and while I don't use the web server much, sounds unlikely that 
it should be so far below django, for example. Maybe they run it in a 
handicapped configuration or something.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/2a1062a4-e4f1-484c-a8a2-f63c161959e8%40googlegroups.com.


Re: [racket-users] Issue with define-type and typed classes

2020-04-02 Thread hashim muqtadir


> I am thinking its deeper because the code sometimes compiles. 
>

Yes, this happens with me too. I haven't tried it using raco but in 
DrRacket, while I
was fiddling around with these classes, it would sometimes fail to compile, 
but
I just used to erase what I wrote, and then re-write, and it would work.

Once compiled it seemed to work fine.

But I believe they're separate problems.

I'll try to be more diligent about reporting issues with typed classes next 
time. I used to run into
problems similar to what I reported in this thread previously, too, on 
whatever version of Racket
was out a year or two ago, but I was throwing away and rewriting code 
quickly and it
was hard to come up with minimal examples at the time.

This one reproduced very reliably and I wasn't really making big changes so 
I was able to
report easily.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/b3199035-27c9-4549-890d-0a4aac48d924%40googlegroups.com.


Re: [racket-users] "invalid memory reference" issue

2020-03-06 Thread hashim muqtadir
I decided to build Racket CS from github and it works. Thanks!

On Thursday, 5 March 2020 23:42:34 UTC+5, Matthew Flatt wrote:
>
> I've pushed a repair for the development version of Racket CS. The 
> problem was related to computing a hash code of an object (i.e., an 
> instance of a class). 
>
> If you need a workaround to keep using the released version of Racket 
> CS, it may involve supplying explicit equality and hash-code functions 
> for your `Equal%` class. 
>
> Thanks for the report! 
>
> At Thu, 5 Mar 2020 04:07:48 -0800 (PST), hashim muqtadir wrote: 
> > Hello, 
> > 
> > I have some code that uses my library, "remap". It previously used to 
> work, 
> > but in Racket CS 7.6, it fails saying "invalid memory reference.  Some 
> > debugging context lost". 
> > Clicking the crosses in DrRacket gives this backtrace: 
> > 
> > invalid memory reference.  Some debugging context lost 
> > 
> > /home/hashim/racket/collects/racket/private/for.rkt: 2020:10 
> > (hash-set table key val 
> > 
> > /home/hashim/racket/collects/racket/private/for.rkt: 1503:16 
> >   (let-values ([(fold-var ...) (let () expr1 expr ...)]) 
> >   (values fold-var ...)] 
> > 
> > /home/hashim/racket/collects/racket/private/for.rkt: 1543:38 
> >   #'(let-values ([(fold-var ...) 
> > (for/foldX/derived 
> > [orig-stx inner-recur nested? #f ()] 
> >   ([fold-var 
> fold-var] 
> > ...) 
> >   next-k break-k 
> > final?-id 
> >   rest expr1 . 
> body)]) 
> > (if (and post-guard ... (not 
> > final?-id)) 
> > (for-loop fold-var ... 
> loop-arg 
> > ... ...) 
> > next-k))) 
> > 
> > My tests, that use the library functions, seem to work, but for some 
> reason 
> > when I'm building a hash from my structures. 
> > The file found 
> > 
> https://gitlab.com/hashimmm/remap/-/blob/96f1db518c4d9bb8f2da44ae403ab50332212c
>  
> > 9c/issue.rkt 
> > is present in the "issue" branch in my repo and running this file in 
> > DrRacket will reproduce the problem. 
> > 
> > From the file, removing the measurement-units table definition and its 
> > references fixes the problem (the memory error then no longer occurs). 
> > 
> > Any ideas what's up with this? I'd be happy to provide more information 
> to 
> > narrow this down, but I'm not really sure how. 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/racket-users/afec7b07-7f96-4d7f-ac59-8eb54446
>  
> > 2709%40googlegroups.com. 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/839ec6d6-8c55-4a94-8090-09255d56a9c2%40googlegroups.com.


[racket-users] "invalid memory reference" issue

2020-03-05 Thread hashim muqtadir
Hello,

I have some code that uses my library, "remap". It previously used to work, 
but in Racket CS 7.6, it fails saying "invalid memory reference.  Some 
debugging context lost".
Clicking the crosses in DrRacket gives this backtrace:

invalid memory reference.  Some debugging context lost

/home/hashim/racket/collects/racket/private/for.rkt: 2020:10 
(hash-set table key val

/home/hashim/racket/collects/racket/private/for.rkt: 1503:16 
  (let-values ([(fold-var ...) (let () expr1 expr ...)])
  (values fold-var ...)]

/home/hashim/racket/collects/racket/private/for.rkt: 1543:38 
  #'(let-values ([(fold-var ...)
(for/foldX/derived 
[orig-stx inner-recur nested? #f ()]
  ([fold-var fold-var] 
...)
  next-k break-k 
final?-id
  rest expr1 . body)])
(if (and post-guard ... (not 
final?-id))
(for-loop fold-var ... loop-arg 
... ...)
next-k)))

My tests, that use the library functions, seem to work, but for some reason 
when I'm building a hash from my structures.
The file found 
https://gitlab.com/hashimmm/remap/-/blob/96f1db518c4d9bb8f2da44ae403ab50332212c9c/issue.rkt
 
is present in the "issue" branch in my repo and running this file in 
DrRacket will reproduce the problem.

>From the file, removing the measurement-units table definition and its 
references fixes the problem (the memory error then no longer occurs).

Any ideas what's up with this? I'd be happy to provide more information to 
narrow this down, but I'm not really sure how.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/afec7b07-7f96-4d7f-ac59-8eb544462709%40googlegroups.com.


[racket-users] Issue with define-type and typed classes

2020-03-05 Thread hashim muqtadir
So I have this file, found here: 
https://gitlab.com/hashimmm/remap/-/blob/3682db9fff3bc5007833e07bf9a9ed6e8e0170a9/private/tables.rkt

Lines 51 through 55 say:

(define-type (Func<%> A)  (BaseFunc<%> A FuncAnyParam))(define-type BoolFunc<%> 
(Func<%> BooleanColumn))(define-type AnyFunc<%> (Func<%> ColIdent))

And this used to work on older versions of racket, say Racket BC 7.4

But on Racket CS 7.6, I get an error on this line: 
(define-type AnyFunc<%> (Func<%> ColIdent))

Even though (a) it doesn't throw an error on the line before it, and
(b) replacing it with (define-type AnyFunc<%> (BaseFunc<%> ColIdent 
FuncAnyParam))
works.

I thought the way define-type works is that 
(Func<%> ColIdent)
would expand into (BaseFunc<%> ColIdent FuncAnyParam)

I've had similar problems with define-type previously where I'd think it would 
just expand
by substituting the parameter but it doesn't seem to really do that. I don't 
have any
trivial example to show, though. Fiddling around eventually gets it to work.

I'd really appreciate some help as to how to think about what define-type does 
in my head.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/8d04a193-58b2-4b49-8e23-642f115f401b%40googlegroups.com.


Re: [racket-users] Generics: delegate to a parent

2019-03-25 Thread hashim muqtadir
> I am trying to make good use of Generic Interfaces, but can't figure out 
if its at all possible to delegate calls up the struct inheritance chain. 
So, something like `call-next`

If I understand you correctly, "define/generic" let you do this. See 
https://docs.racket-lang.org/reference/struct-generics.html?q=generic#%28form._%28%28lib._racket%2Fgeneric..rkt%29._define%2Fgeneric%29%29

> or even better maybe there's a way to do explicit dispatch? So something 
like having two structs:

If your structs don't inherit from each other, and no configuration of 
"fallback" or "default" options does what you want, a slightly different 
approach compared to extracting fish's implementation and reusing it is to 
use "define/generic" to get the existing "generic" function in your new 
struct's definition, and have a function convert a marlin to a fish, and 
then pass that over to the generic function.

-- 
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 options, visit https://groups.google.com/d/optout.


[racket-users] Re: [racket] Typed racket and keywords

2019-02-03 Thread hashim muqtadir

> as what I was trying to do was produce a typed version of Greg 
Hendershott's "keyword structs" (
https://www.greghendershott.com/2015/07/keyword-structs-revisited.html )

Sorry, I pointed to the wrong thing. The procedure I was re-implementing 
was hash->struct/kw from 
https://github.com/dstorrs/racket-dstorrs-libs/blob/master/struct.rkt

-- 
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 options, visit https://groups.google.com/d/optout.


[racket-users] Re: [racket] Typed racket and keywords

2019-02-03 Thread hashim muqtadir
I found this topic when searching around for something about keyword-apply 
and typed racket, as what I was trying to do was produce a typed version of 
Greg Hendershott's "keyword structs" 
(https://www.greghendershott.com/2015/07/keyword-structs-revisited.html ) 
and I was getting an error saying there's no such thing as keyword-apply.

So I suppose there isn't. Let's add that info in the "Caveats and 
Limitations" part of the guide. Or maybe mention this in the part of the 
reference that says typed/racket reprovides everything that racket has.

Or, maybe it's now easier to add it in? I wish there were a guide to 
contributing to typed racket, though I fear I might be missing a lot of 
prerequisite knowledge even if there were one.

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [racket-users] Why would a value produced by eval-ing code not satisfy its type predicate? (Particularly, a SQL statement from the sql package)

2019-02-02 Thread hashim muqtadir
>  The issue you're encountering with namespaces is analogous, because each 
namespace gets its own instances of modules. This is a feature! Imagine, 
for example, that you are trying to run students' programs in a sandbox. If 
namespaces shared module instances, a malicious or buggy student program 
could alter mutable state and affect other students' programs or your 
outside-the-sandbox program. But this means that two different namespaces 
will have two distinct instances of the `sql` module that export two 
distinct `sql-statement?` predicates, each recognizing only its own version 
of the sql-statement struct type: this is effectively the same situation as 
calling `thing1?` on `a-thing2` in my example.

> For times when you really do want to share a module instance, Racket 
provides `namespace-attach-module`. Alternatively, you could just use 
`define-namespace-anchor` and `namespace-anchor->namespace`.

Thanks! That both explains and resolves the issue.

In my original example, if I replace the beginning part with:

#lang racket

(require db)
(require sql)

(define sql-namespace (make-base-empty-namespace))
(define src-namespace (current-namespace))
(parameterize ([current-namespace sql-namespace])
  (namespace-attach-module src-namespace 'sql)
  (namespace-require 'sql))

Then everything works as expected, and now I know why.

> But, as others have said, you really don't want to use `eval`. (If you 
aren't already familiar with the issues, see [...]

Point taken. At the time I just wanted the variable-columns thing working 
and I hadn't figured out how to make it work with a list. Additionally, 
escaping column names isn't going to be an issue, because most likely in 
the actual use case the user's required column list will pass through a 
whitelist. That part's solved, one way or another.

> As long as you at least know the schema you're working with, you could 
even generate select statements for all possible sets of columns at compile 
time, and then just choose the right statement dynamically with a runtime 
function.

That did occur to me, and was my other idea compared to eval, up until I'd 
figured out the INJECT thing, but I didn't do it as then there would be a 
huge amount of select statements. The idea was to basically take the column 
list, sort it, string-join, and then get the relevant select from a hash 
table. But there'd be way too many.

As to why I would like to do this, well, basically at my workplace we sort 
of make web applications, generally split into a separate server side 
application that's basically an HTTP API, that different browser and mobile 
applications talk to. I've previously always written the server side part 
in python. "Sort of" because have to work offline too.

One of the problems we face is of moving too much data around. Mobile 
applications that have to mainly work offline and periodically sync, they 
have to move around lots of data on horrible connections. (We do gzip and 
all. Choosing a data format that's not json is an option I'll evaluate in 
the future.)

So selecting a list of fields when getting data for different entites is 
something we provide in our APIs. In the beginning we did in fact return 
all of an entity's data. as writing different column sets for different 
clients, while do-able, is sort of bad in the sense that then when somebody 
asks for adding a column in a table in the mobile app, it required changes 
in two places, and needlessly adds code. The idea being that when we only 
write a different column set (and call it a different entity) on the same 
enttiy when it's a non trivial thing to do.

So anyway while most of this is solved for the current few projects we 
have, we're moving away from python. Racket's an experiment, partly chosen 
because we agree with the "many languages" approach. Things like python's 
django, sqlalchemy and javascript's vue aren't libraries, they're #langs. 
So now I have to write solutions/languages in Racket to make sure we're at 
least on par with what we have at the moment. Like in python we have our 
little filters language, which piggybacks on django ORM's column and 
relation lookup syntax, but we restrict some operations and add some 
others, nest them in and/or/not operators, and generically handle edge 
cases that django doesn't (like ensuring that joins don't increase row 
count). And no, writing SQL in the client application is not (yet) an 
option as we need to evaluate certain things first. Evaluated graphQL, a 
bit, tentatively, and alone, it doesn't to fit the use case. A hybrid 
approach seems do-able in the short term but a bad idea in the long term.

Anyway, thanks for the help. and I suppose I should mark this thread as 
solved (I don't know what that really does). I don't mind people asking 
things, but I suppose littering the list with specifics would be frowned 
upon.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To 

Re: [racket-users] Why would a value produced by eval-ing code not satisfy its type predicate? (Particularly, a SQL statement from the sql package)

2019-02-01 Thread hashim muqtadir
> Good news, limit and distinct are in scope for v0.2 - I'm working on it 
now :)

That's good to hear, thanks! I'll be sure to check it out, and let you know 
if I have any ideas/requirements for features or if I can contribute. 


-- 
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 options, visit https://groups.google.com/d/optout.


Re: [racket-users] Why would a value produced by eval-ing code not satisfy its type predicate? (Particularly, a SQL statement from the sql package)

2019-02-01 Thread hashim muqtadir
> No.  Look back at your code ... you defined the struct in your own 
> unnamed module just before the definition of  "select/f" 

But the thing is, the error was that it failed to recognize sql-statement 
in the test, which is provided by sql, not me. The function otherwise 
worked correctly. The thing returned by the function wasn't recognized as 
an sql-statement. It had the same printed representation as a call to 
"select" done manually.

> This is a late stage debugging version with a lot 
> of visible output - cleaned up a bit, the final version is part of a 
> scheduler I wrote.  You are free to do with it whatever you like

Thanks! Seems pretty neat.

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [racket-users] Why would a value produced by eval-ing code not satisfy its type predicate? (Particularly, a SQL statement from the sql package)

2019-01-31 Thread hashim muqtadir
> If order to use a struct across namespaces, the module that 
> defines the struct must be required into each namespace that uses the 
> struct. 

Yes, I suspect there's some weird interaction between namespaces too, hence 
the topic, but that's still pretty vague. After all, the thing defining the 
structs is the sql package, and my modules/namespaces are importing that.

> Eval almost always is the wrong answer.

I wanted to pass a list to select, but select is a macro, and I didn't get 
how to define a macro on top of that to do what I wanted, since the macro 
doesn't know that one of the things being passed into it evaluates to a 
list, so it can't splice that list into select, hence, eval.

> And thanks, Ryan, for racket-izing SQL! Maybe I can stop stapling 
together all of those long horrible strings now. 

Yes, I was quite pleasantly surprised at how comprehensive this library is! 
I was thinking "surely it wouldn't support arrays as they're not standard" 
but nope, they're covered too :)

> I recommend that you take a look at section 3.7 of the documentation, 
"Dynamic Statement Composition and SQL Injection”, which I believe does 
exactly what you want. Specifically, you want to dynamically construct a 
select statement. 

I did look at that. And up until yesterday I thought "this isn't helping, I 
need to inject multiple select-expr's!".

And today, I had a look again and thought, hey, what if I use a string that 
has a comma in it, and, hey, that works!

i.e. the following works:

#lang racket
(require sql)
(select (ScalarExpr:INJECT (unquote "mew, two")) #:from pokemon)

It gives me `(sql-statement "SELECT mew, two FROM pokemon")`

So now I know all I have to do is comma-join my list to form a string, and 
inject that.

What I do _not_ know if that's how INJECT was meant to be used, or whether 
I should build a separate inject macro that uses unquote-splice instead 
that comma-joins the list and does some form of escaping on the columns. My 
first guess is that properly verifying the items in the list to be single 
expressions is pretty difficult, so it sounds like a bad idea, and since 
one select-expr is allowed to yield multiple columns (because the "db" 
library that will actually get the results doesn't need any info from the 
query, I think), my approach should be fine.

As an aside, I really like python's sqlalchemy library. It makes composing 
sql really easy. But I think sqlalchemy would complain if a single 
expression yielded multiple results on the wire. Is that coupling between 
query and result a good thing or bad? It seems to have its pros and cons, 
but right now I'm depending on the lack of coupling, so that's cool on 
"sql"'s part. But anyway in sqlalchemy it's just all functions. In this 
one, it's all macros, and I'm a bit slow with Racket, trying to compose 
macros trips me up a bit.

So I guess my goal's reachable (I should now be able to insert a list of 
columns into a select using a function, without needing eval or 
namespaces). Thanks, all, for the input.

I do wish to find out how to get around the predicate thing and why it's 
throwing an error, in case anyone knows.

PS There's also a racket package called plisqin which seemed closer to what 
I was looking for. Maybe in a few months or so if it clicks I'll see if I 
can add to that package everything I need (things like limit and distinct) 
and it might work out.

-- 
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 options, visit https://groups.google.com/d/optout.


[racket-users] Why would a value produced by eval-ing code not satisfy its type predicate? (Particularly, a SQL statement from the sql package)

2019-01-31 Thread hashim muqtadir
Hello,

The test in my following code raises an error saying that when I call 
select/f, the result doesn't satisfy `sql-statement?`.

I've no idea why, the only vague idea I have is that it may have something 
to do with the fact that it was essentially eval'd in a separate namespace.

Any ideas?

#lang racket

(require db)

(define sql-namespace (make-base-empty-namespace))
(parameterize ([current-namespace sql-namespace])
  (namespace-require 'sql sql-namespace))

(struct Select-spec
  (tbl  ;; symbol
   col-exprs  ;; listof symbols
   limit  ;; number
   order-by)) ;; listof select symbols

(define (select/f sel-spec)
  (eval
   `(select ,@(Select-spec-col-exprs sel-spec)
#:from ,(Select-spec-tbl sel-spec)
,@(let ([lim (Select-spec-limit sel-spec)]
[order (Select-spec-order-by sel-spec)])
(if lim
`(#:limit ,lim #:order-by ,@order)
'(
   sql-namespace))

(module+ test
  (require sql)
  (require rackunit)
  (check-equal?
   (sql-statement->string
(select/f
  (Select-spec
   'd
   '(a b c)
   10
   '(a b
   (sql-statement->string
(select a b c
#:from d #:order-by a b #:limit 10

(provide select/f
 Select-spec)


My main reason for doing this was that the statement-producing macros 
provided by the sql package were, well, macros, so I couldn't pass in a 
list of columns and get a statement. What I want to do is have a struct 
like the one I made in this snippet, and use functions to include/exclude 
columns, before finally passing it off to a function that produces the 
statement.

-- 
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 options, visit https://groups.google.com/d/optout.


[racket-users] Possible Typed Racket bugs (regarding, separately, for/fold and occurrence typing)

2018-12-01 Thread hashim muqtadir
Hello,

The example in the documentation for using #:result with for/fold, here: 
https://docs.racket-lang.org/reference/for.html?q=for%2Ffold#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._for%2Ffold%29%29
works in normal racket, but not typed racket.

I suppose that isn't really a bug, but something simply left out, and a 
user can simply implement the macro themselves?

Additionally, regarding occurrence typing:

This works:

> (for ([x (in-list '("123" "432" "234"))])
(define num (string->number x))
(unless num
  (error "Not a number"))
(display (format "~s" (* num 2
246864468

But this doesn't typecheck:

> (for ([x (in-list '("123" "432" "234"))])
(define num (string->number x))
(unless num
  (error "Not a number"))
(define double (* num 2))
(display (format "~s" double)))
. Type Checker: type mismatch
  expected: Number
  given: (U Complex False) in: num

Am I missing something here?

I'm running the code in DrRacket, using v7.1.

Regards,
Hashim.

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [racket-users] Re: What is the best way to daemonize a Racket program on linux?

2018-11-30 Thread hashim muqtadir
I've found monit to work alongside systemd services pretty neatly. As in, I 
have monit monitoring my web server, which is running using systemd, and 
monit sends me emails if it's not working or something.

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [racket-users] DrRacket Font Selection

2018-01-17 Thread hashim muqtadir
I have the same problem on Fedora 27, Racket 6.11. I don't recall the last 
time I tried changing fonts so I'm not sure when it happened. I do 
distinctly remember font selection used to work once upon a time. And the 
same workaround works for me, too. As in, if I just use the scroll wheel on 
that menu and press Enter, and open it up again, more fonts show up. And I 
tried that code snippet; for me, too, only "a" appears, not "b" and "c".

-- 
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 options, visit https://groups.google.com/d/optout.


Re: FW: [racket-users] Can't seem to find the blue box(es) in DrRacket anymore

2017-08-28 Thread hashim muqtadir
Thank you!

On Aug 28, 2017 4:21 AM, "Robby Findler" <ro...@eecs.northwestern.edu>
wrote:

> I've pushed a fix. Sorry for the delay in looking into this.
>
>  https://github.com/racket/drracket/issues/118
>
> Robby
>
>
> On Sun, Aug 27, 2017 at 12:06 PM, Jos Koot <jos.k...@gmail.com> wrote:
> >  Sorry, ignore my post.
> > Jos Koot
> >
> > -Original Message-
> > From: Jos Koot [mailto:jos.k...@gmail.com]
> > Sent: domingo, 27 de agosto de 2017 19:00
> > To: 'hashim muqtadir'; 'Racket Users'
> > Subject: RE: [racket-users] Can't seem to find the blue box(es) in
> DrRacket anymore
> >
> > I think you can toggle a switch in tab 'background expansion' of the
> preferences menu.
> > Jos
> >
> > -Original Message-
> > From: racket-users@googlegroups.com [mailto:racket-users@
> googlegroups.com] On Behalf Of hashim muqtadir
> > Sent: domingo, 27 de agosto de 2017 8:12
> > To: Racket Users
> > Subject: [racket-users] Can't seem to find the blue box(es) in DrRacket
> anymore
> >
> > Hello,
> > I recently updated to Racket 6.10 and I cannot seem to find the blue
> boxes in the top right of the definitions and interactions
> > windows anymore. They don't show up by pressing the hotkey (f2) either.
> There's no error or anything, just nothing happens. External
> > help works, i.e. pressing f1 opens up the docs search in my browser.
> >
> > snip
> >
> > --
> > 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 options, visit https://groups.google.com/d/optout.
>

-- 
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 options, visit https://groups.google.com/d/optout.


[racket-users] Can't seem to find the blue box(es) in DrRacket anymore

2017-08-27 Thread hashim muqtadir
Hello,
I recently updated to Racket 6.10 and I cannot seem to find the blue boxes in 
the top right of the definitions and interactions windows anymore. They don't 
show up by pressing the hotkey (f2) either. There's no error or anything, just 
nothing happens. External help works, i.e. pressing f1 opens up the docs search 
in my browser.

Other things I did around the same time the blue boxes disappeared were 
tinkering with the preferences a bit and 'raco pkg migrate 6.9'. But I didn't 
find any relevant preference that turns them off (there was something about 
blue boxes and background expansion but turning that on/off doesn't help) and 
it did not seem to me that the migrate command would have messed anything up.

Anyone has any idea what might have happened? I'd like those back. Maybe I'm 
just missing some preference or something. I'm using a 64-bit Windows 10, in 
case that is relevant.

Regards,
Hashim.

-- 
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 options, visit https://groups.google.com/d/optout.


[racket-users] Re: (sixth RacketCon) videos up.

2016-11-12 Thread hashim muqtadir
Thanks!

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [racket-users] #lang video

2016-10-18 Thread hashim muqtadir
Thanks, everyone, good to know that not only will we be getting the videos soon 
but that we have a new #lang for them as well. Maybe next RacketCon Leif will 
be giving a talk on #lang video :)

-- 
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 options, visit https://groups.google.com/d/optout.


[racket-users] Any information on whether/when Sixth RacketCon videos will be available?

2016-10-17 Thread hashim muqtadir
The videos for the live streams are available on youtube but they aren't as 
clear audio/video-wise as the individual talks videos are for older RacketCons 
are. The website does say they will be made available; I just hope that plan 
did not get scrapped, did it?

-- 
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 options, visit https://groups.google.com/d/optout.


Re: [racket-users] mode-lambda example doesn't work?

2016-05-20 Thread hashim muqtadir
I seem to be facing a different issue though it fits into the same topic; i.e. 
the example mentioned in the docs does not work for me.

Anyway when I try to run the example, I get the following output:

$ racket -l mode-lambda/examples/one
You can press these keys:
r - show random sprites, notice that some of them are static
g - show sprits in a grid
b - show a pretty scene
t - show a single sprite tiled around
w - show a few sprites wrapped around a torus
x - show some text

s - turn on/off spinning for b mode

Look at my source code!

You are using OpenGL (4 1)
Log of shader(4):
0:123(10): error: sampler arrays indexed with non-constant expressions are 
forbidden in GLSL 1.30 and later

Exiting...


I'm using racket version 6.5. The mode-lambda package was installed using raco.

Maybe I'm missing something obvious, I don't know. I have no idea how to work 
with sprites and graphics and all. I was just curious to see what this package 
does.

-- 
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 options, visit https://groups.google.com/d/optout.