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

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

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

2020-03-06 Thread hashim muqtadir
stance 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 muq

[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

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

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-

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

[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

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 progra

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 Go

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

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 th

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

[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

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 User

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 tha

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

2017-08-28 Thread hashim muqtadir
gt; > 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-user

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

2017-08-26 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

[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

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

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,