[racket-users] Polished 3D package for some simulations

2021-04-07 Thread nate
Hello. I am exploring some physics ideas and I was thinking about making some 3D simulations to flesh out some of my ideas and to demonstrate them to others. Are there any polished packages for doing 3d stuff in racket? I looked just briefly a while back and didn’t have much luck. I think I foun

Re: [racket-users] snappier place startup time

2020-11-26 Thread nate
Awesome. Also I didn’t know you could include ‘#%place like that. Nate > On Nov 25, 2020, at 9:41 PM, Sam Tobin-Hochstadt wrote: > > Here's an in-progress PR: https://github.com/racket/racket/pull/3518 > > With this, your simple test takes about 150ms with `racket/pl

Re: [racket-users] Re: Dynamic-place PR

2020-12-30 Thread nate
>> Hello. >> >> Is the PR #3518 “Create `racket/place/dynamic` to reduce dependencies.” >> going to happen? >> >> I was trying to use ‘#%place and its `dynamic-place` but realized i have to >> do some management of streams, i think. >> >&g

[racket-users] Xcode, embedding Racket.framework

2020-06-24 Thread Nate Griswold
Versions/Current/Racket ln -s Versions/Current/Resources install_name_tool -id @rpath/Racket.framework/Versions/7.7_CS/Racket ./Racket otool -L Racket (to verify) Switch to Xcode, build and run Nate -- You received this message because you are subscribed to the Google Groups "Racket Users&q

Re: [racket-users] Xcode, embedding Racket.framework

2020-06-26 Thread Nate Griswold
ok, added https://github.com/racket/racket/wiki/Embedding-Racket Nate On Thu, Jun 25, 2020 at 4:30 AM Stephen De Gabrielle < spdegabrie...@gmail.com> wrote: > This world be great content for the wiki > > Hi Nate, > This would be great content for the racket wiki > http

[racket-users] racket_boot out of memory

2020-07-11 Thread Nate Griswold
Has anyone run into an out of memory exit when calling racket_boot on mac os x? Mine was working fine until i turned system integrity protection back on, now i can't seem to get it to work. Anyway, just wanted to check here before i dig further. Please lmk if you have run into this...

[racket-users] Re: racket_boot out of memory

2020-07-12 Thread Nate Griswold
igned Executable Memory" (com.apple.security.cs.allow-unsigned-executable-memory) in Target -> Signing and Capabilities Nate On Sat, Jul 11, 2020 at 3:59 PM Nate Griswold wrote: > Has anyone run into an out of memory exit when calling racket_boot on mac > os x? > > Mine

[racket-users] Recommended CS replacement for make-sized-byte-string

2020-07-12 Thread Nate Griswold
there already... Thanks Nate -- 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 w

Re: [racket-users] Recommended CS replacement for make-sized-byte-string

2020-07-12 Thread Nate Griswold
Yes, thank you I ended up using make-bytes with the size and then doing a memcpy. I forgot that i could use a byte string as the memcpy destination. Nate On Sun, Jul 12, 2020 at 11:56 AM Sam Tobin-Hochstadt wrote: > Copying is probably the best option -- this is discussed some in

[racket-users] Embedded racket (cs) question

2020-07-13 Thread Nate Griswold
what exactly is going on under the hood here? Nate -- 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 t

Re: [racket-users] Embedded racket (cs) question

2020-07-13 Thread Nate Griswold
hing i was using was causing a separate dependency on promise. Nate On Mon, Jul 13, 2020 at 9:32 AM Sam Tobin-Hochstadt wrote: > My guess, not having looked further than your email, is that when you > don't include racket/promise, something is supplying a promise to something >

[racket-users] How to extract

2020-07-13 Thread Nate Griswold
e one for a pointer ptr there. Is there a way to get at a returned _cpointer value from c code? Thanks Nate -- 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 e

[racket-users] Re: How to extract

2020-07-13 Thread Nate Griswold
lving this problem is to create an init foreign function in racket and pass in the _cpointer data and grab the c pointer when my c function is called. Is there any other way to solve this problem? Nate On Mon, Jul 13, 2020 at 11:43 AM Nate Griswold wrote: > I had a question. In embedded rack

Re: [racket-users] How to extract

2020-07-13 Thread Nate Griswold
Awesome, thanks! I actually just implemented it with the roundabout callback system, i think i might try out your suggestion though. Thanks for working on racket! Nate On Mon, Jul 13, 2020 at 12:20 PM Matthew Flatt wrote: > I see that there's not a good way right now, but

Re: [racket-users] Embedded racket (cs) question

2020-07-13 Thread Nate Griswold
l-in-empty-metacontinuation-frame call-with-module-prompt body of "/Applications/Racket v7.7/collects/planet/config.rkt" temp35_0 for-loop run-module-instance! for-loop [repeats 1 more time] run-module-instance! for-loop [repeats 1 more time] run-module-instance! Nate

Re: [racket-users] Embedded racket (cs) question

2020-07-14 Thread Nate Griswold
Great, thanks for all of that digging. Ya, i think i will go the non-declare_modules, non-ctool route for now as i think this fits my use-case pretty well. I want to allow access to the full racket library for racket code that changes often. Nate On Mon, Jul 13, 2020 at 8:32 PM Matthew Flatt

[racket-users] Combining generators and typed racket

2020-07-21 Thread Nate Griswold
Do generators and typed racket work together well? It seems (yield) doesn't have a type and i couldn't get my module to work. Is there a way to make some procedure untyped in the middle of a typed file? Is it just best to break these things into separate files? Thank you Nate -- Yo

[racket-users] Re: Combining generators and typed racket

2020-07-21 Thread Nate Griswold
Actually, is there any way at all to use lazy lists of things (streams or generators) in typed racket? Nate On Tue, Jul 21, 2020 at 8:45 PM Nate Griswold wrote: > Do generators and typed racket work together well? It seems (yield) > doesn't have a type and i couldn't get m

Re: [racket-users] Re: Combining generators and typed racket

2020-07-22 Thread Nate Griswold
t would be helpful in trying to address this implementation-wise? Nate On Wed, Jul 22, 2020 at 1:56 PM Sam Tobin-Hochstadt wrote: > Currently, neither `racket/stream` nor `racket/generator` are > supported by Typed Racket, unfortunately. > > Sam > > On Wed, Jul 22, 2020 at 12:

Re: [racket-users] Re: Combining generators and typed racket

2020-07-22 Thread Nate Griswold
Also can you think of a better way to do this than my implementation of iterate? The use case is putting it in a for loop along with a break or a finite list. Nate On Wed, Jul 22, 2020 at 2:22 PM Nate Griswold wrote: > Ok, thanks for the reply. > > I was trying to use this

[racket-users] catalog not working?

2020-07-23 Thread Nate Griswold
My raco pkg install is crashing and manual navigation to the package catalog looks broken https://download.racket-lang.org/releases/7.7/catalog/ [image: image.png] Nate -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe

Re: [racket-users] catalog not working?

2020-07-24 Thread Nate Griswold
Just FYI this was a local install/config issue Nate On Fri, Jul 24, 2020 at 12:14 AM Nathaniel Griswold wrote: > Oh, hm ok I was having a memory access crash in raco I assumed some > causation.. I’ll debug tomorrow > > On Jul 23, 2020, at 10:14 PM, Sorawee Porncharoenwase &l

Re: [racket-users] catalog not working?

2020-07-24 Thread Nate Griswold
ate/arrow-val-first.rkt:555:3 Nate On Fri, Jul 24, 2020 at 12:57 PM Nate Griswold wrote: > Just FYI this was a local install/config issue > > Nate > > > On Fri, Jul 24, 2020 at 12:14 AM Nathaniel Griswold < > nategrisw...@gmail.com> wrote: > >> Oh, hm ok I was ha

[racket-users] stuck on a type problem

2020-07-25 Thread Nate Griswold
a very abbreviated form for what i want (behavior of blah) is? Sorry if this is basic i am a little lost on it as you can probably tell. Thank you Nate -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop

Re: [racket-users] Re: stuck on a type problem

2020-07-25 Thread Nate Griswold
by putting the type system to work somehow... I was thinking if the original function "blah" function could bend apply to its will then i should be able to do something similar in a little different way. Nate > > Possibly helpful: > > > the discussion in typed racket

[racket-users] Recommended workaround still the same?

2020-08-02 Thread Nate Griswold
Hello. Ran into some problems with typed racket and define-cstruct when adding typed racket layer on top of my ffi bindings. Is this (https://github.com/racket/typed-racket/issues/766) still the recommended way of working around the issue? Nate -- You received this message because you are

Re: [racket-users] Recommended workaround still the same?

2020-08-02 Thread Nate Griswold
Thanks Nate On Sun, Aug 2, 2020 at 3:50 PM Sam Tobin-Hochstadt wrote: > Yes, I think that's still the best approach. > > Sam > > On Sun, Aug 2, 2020 at 4:47 PM Nate Griswold > wrote: > > > > Hello. Ran into some problems with typed racket and define-cstru

[racket-users] question about places and main thread gc

2020-09-13 Thread Nate Griswold
g of just using zeromq on the main thread. Thanks Nate -- 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 vi

Re: [racket-users] question about places and main thread gc

2020-09-13 Thread Nate Griswold
Sorry, i forgot to mention this would be interfacing on the main thread from c does this still hold true? Like if a c call returns does it kill the places? Nate On Sun, Sep 13, 2020 at 12:17 PM George Neuner wrote: > > > On 9/13/2020 3:55 AM, Nate Griswold wrote: > > >

Re: [racket-users] question about places and main thread gc

2020-09-13 Thread Nate Griswold
The reason i'm asking is i am dedicating a thread to racket after calling racket_boot on it. Nate On Sun, Sep 13, 2020 at 3:12 PM Nate Griswold wrote: > Sorry, i forgot to mention this would be interfacing on the main thread > from c > > does this still hold true? Like if

Re: [racket-users] question about places and main thread gc

2020-09-13 Thread Nate Griswold
know about the other threads that racket has spawned. Thanks Nate On Sun, Sep 13, 2020 at 5:40 PM George Neuner wrote: > > On 9/13/2020 4:12 PM, Nate Griswold wrote: > > Sorry, i forgot to mention this would be interfacing on the main thread > from c > > does this still ho

Re: [racket-users] question about places and main thread gc

2020-10-01 Thread Nate Griswold
ding the racket source at this point. Also maybe i'm missing a simpler solution. Any help would be appreciated. Thanks. Nate On Mon, Sep 14, 2020 at 6:47 AM Matthew Flatt wrote: > At Mon, 14 Sep 2020 00:34:08 -0500, Nate Griswold wrote: > > If i understand correctly, in racket cs

Re: [racket-users] question about places and main thread gc

2020-10-01 Thread Nate Griswold
I looked into it, it seems to be implemented in `src/cs/rumble/foreign.ss` using chez get-thread-id, comparing it to 0 and using a stored ref to the original async callback queue, so looks like this is not exposed to the user. Hm. Nate On Thu, Oct 1, 2020 at 6:58 AM Nate Griswold wrote

[racket-users] access a `#` from c code

2020-10-05 Thread Nate Griswold
integers but those aren't working for me (not an integer error). Nate -- 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...@g

[racket-users] Re: access a `#` from c code

2020-10-05 Thread Nate Griswold
Note this is from a return value of racket_apply; i called a racket function from c code and want to store the cptr it has returned. Nate On Mon, Oct 5, 2020 at 3:25 AM Nate Griswold wrote: > What is the best way to access a value that is a cpointer from c code? > Should i convert it

[racket-users] Re: access a `#` from c code

2020-10-05 Thread Nate Griswold
I have a temporary workaround where i have created an ffi function racket-side to call into c, so that i can automatically use the _cptr's racket-to-c function. I wonder if there is a way to manually extract the c value for the case where i want it in a return value of racket_apply. Nate O

[racket-users] Re: access a `#` from c code

2020-10-06 Thread Nate Griswold
Then you can use `Sunsigned_value()` to convert that field value to a pointer-sized integer, then case. I might have some part of that wrong, but it should be close... Of course, there should be better support for record-field access and cpointer extraction, so I'll add to the API. --- Nate

[racket-users] Questions

2020-11-22 Thread Nate Griswold
el ch) (red_client_run_from_racket ch (quote-module-path stash)) (error "Should not get here"))) (define p (dynamic-place (quote-module-path myplace) 'place-main)) and in c code: int red_client_run_from_racket(ptr ch, ptr path) { ... racket_namespace_require(path); ... } Thank you Na

Re: [racket-users] Questions

2020-11-24 Thread Nate Griswold
guess. Nate On Mon, Nov 23, 2020 at 7:01 AM Matthew Flatt wrote: > At Mon, 23 Nov 2020 00:14:56 -0600, Nate Griswold wrote: > > Hello. I have a few questions: > > > > 1) Why do the docs say that racket_eval and racket_apply eval and apply > in > > the “initial” or “origi

[racket-users] snappier place startup time

2020-11-24 Thread Nate Griswold
operate, so this impacts my startup time by quite a bit. I have one place that has a very simple module and one place with a more complicated module. Is there some sequence that i should do things in for the minimal startup time? It seems nothing i do really helps much. Nate -- You received this

[racket-users] Re: snappier place startup time

2020-11-24 Thread Nate Griswold
Oh, and i'm still on Racket 7.8. Don't know if 7.9 addresses anything. Nate On Tue, Nov 24, 2020 at 5:04 AM Nate Griswold wrote: > Is there any way to make places startup faster? Even if i do an explicit > round trip using place-channel-put and place-channel-get on both side

Re: [racket-users] Questions

2020-11-24 Thread Nate Griswold
Please ignore that last sentence. Nate On Tue, Nov 24, 2020 at 4:59 AM Nate Griswold wrote: > Very helpful. > > I have modified my code to use callbacks and everything is working as > expected. It is interesting that everything was working fine with my > racket_apply and racket

Re: [racket-users] snappier place startup time

2020-11-24 Thread Nate Griswold
. #lang racket/base (require syntax/location) (require racket/place) (module test racket/base (provide place-main) racket (define (place-main pch) (void))) (time (place-wait (dynamic-place (quote-module-path test) 'place-main))) Nate On Tue, Nov 24, 2020 at 8:35 AM Nathaniel W Griswold

Re: [racket-users] snappier place startup time

2020-11-24 Thread Nate Griswold
Awesome, thanks! Nate On Tue, Nov 24, 2020 at 8:44 AM Sam Tobin-Hochstadt wrote: > Almost certainly the problem is expansion time. If I run that program > on my machine, it takes about 200 ms. But if I compile the file to zo > first with `raco make`, then it takes about 40 ms,

Re: [racket-users] snappier place startup time

2020-11-24 Thread Nate Griswold
previous program to require racket/place and compile, it takes around 180ms. This is about what i can expect for a module that requires racket/place, then? Nate On Tue, Nov 24, 2020 at 8:48 AM Matthew Flatt wrote: > Just to elaborate a little more: > > The difference is because

[racket-users] Messages going to spam?

2020-11-24 Thread Nate Griswold
No rush but can an admin for the list check if my messages from my other email are being flagged suspicious? The other email is nate@manicmind.earth. I don't want to use my gmail account. Sorry if there is a better place to ask this. Nate -- You received this message because you are subsc

Re: [racket-users] Messages going to spam?

2020-11-24 Thread Nate Griswold
Thanks, Sam. That is what i wanted. Is there any way to allow all messages from that account from now on? Nate On Tue, Nov 24, 2020 at 9:08 AM Sam Tobin-Hochstadt wrote: > Yes, those messages have been going to spam. I didn't approve them > separately since I just saw the notif

Re: [racket-users] Messages going to spam?

2020-11-24 Thread Nate Griswold
Hm, ok. It looks like the messages still aren't going through It might be since i unadded and readded myself at one point. I just sent another so that might be approvable. Nate On Tue, Nov 24, 2020 at 9:48 AM Robby Findler wrote: > I might have approved one (and when I did I also ma

[racket-users] Download the tsuro implementation from the paper

2020-11-24 Thread Nate Griswold
Hello. I've looked through the paper a couple of times and I don't see a link to download the tsuro prototype. Is this code available somewhere? Nate -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from