Re: [racket-users] Is there a widget like QSplitter in Qt in our GUI library?
Thank you Laurent, that's exactly what I want! Greetings. Killian Zhuo (KDr2, https://kdr2.com) On Wednesday, March 31, 2021, 05:05:39 PM GMT+8, Laurent wrote: You probably want panel:vertical-dragable% [1] and panel:horizontal-dragable%. See a usage example here: https://gist.github.com/Metaxal/946aa17033c10e76c48a74127ae0b11b [1] https://docs.racket-lang.org/framework/Panel.html?q=panel%3Avertical-dragable#%28def._%28%28lib._framework%2Fmain..rkt%29._panel~3avertical-dragable~25%29%29 On Wed, Mar 31, 2021 at 9:08 AM 'Killian Zhuo (KDr2)' via Racket Users wrote: I want to split a pane into two columns and make the columns resizable by dragging their joint border, in Qt, there's an established widget called QSplitter for this purpose. Is there one in Racket's GUI library? or how to implement it in the easiest way? Thanks. Greetings. Killian Zhuo (KDr2, https://kdr2.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/1465030713.1289147.1617178095348%40mail.yahoo.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/CABNTSaFnzCuaYXmAYQez%2BoMvXr34KQZsaP58kDBXLEmv5qLrRQ%40mail.gmail.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/571494630.1360477.1617203926593%40mail.yahoo.com.
[racket-users] Is there a widget like QSplitter in Qt in our GUI library?
I want to split a pane into two columns and make the columns resizable by dragging their joint border, in Qt, there's an established widget called QSplitter for this purpose. Is there one in Racket's GUI library? or how to implement it in the easiest way? Thanks. Greetings. Killian Zhuo (KDr2, https://kdr2.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/1465030713.1289147.1617178095348%40mail.yahoo.com.
Re: [racket-users] Error while compiling Racket BC
Thank you for the reply, it helped me a lot. I was following https://github.com/racket/racket/blob/master/racket/src/README.txt to build a minimal racket (both bc and cs), and now I found out a way to do that: in `racket/src` directory: ./configure --enable-cs --enable-bc --enable-csdefault make bc make install-bc this will build racket bc in `../bin`. notice here if we run `make && make install` (i.e. without the bc words), it will still build racket bc but not racket cs. then we run ./configure --enable-cs --enable-bc --enable-csdefault \ --enable-racket=../bin/racketbc make cs make install-cs this will build and install racket cs in `../bin`. So I think the document about this is not such accurate. Greetings. Killian Zhuo (KDr2, https://kdr2.com) On Saturday, February 6, 2021, 10:32:23 AM GMT+8, Matthew Flatt wrote: At Sat, 6 Feb 2021 01:03:54 + (UTC), "Killian Zhuo (KDr2)" wrote: > Hi, I use `--enable-racket=` because that I found that without it I can't > build > Racket CS: > I ran > ``` ./configure --enable-cs --enable-bc --enable-csdefault > make make install``` True --- that won't work. The Git repo is not set up to work with `configure`, etc., out of the box. But a plain `make` in the top-level directory of the Git repo will sort out the needed bootstrapping automatically. Just use `make` at the top of the repo --- I'm pretty sure that's what you'll want to do. For more information, see "build.md" at the top of the repo: https://github.com/racket/racket/blob/master/build.md#1-building-racket-from-source As it says there, another possibility is to get a source distribution, and that will work in the `configure`, etc., way that you expect. Hope that helps, Matthew -- 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/20210205193215.12e%40sirmail.smtps.cs.utah.edu. -- 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/1373043074.984005.1612594219367%40mail.yahoo.com.
Re: [racket-users] Error while compiling Racket BC
Hi, I use `--enable-racket=` because that I found that without it I can't build Racket CS: I ran ``` ./configure --enable-cs --enable-bc --enable-csdefault make make install``` After that only racketbc is built and installed, then I ran `make cs` to built CS explicitly, and error occurs: ...mkdir -p ChezSchemeif [ "./raw_racketcs" != "./raw_racketcs" ] ; \ then make scheme-via-rktboot BOOTFILE_RACKET="./raw_racketcs" ; \ else make scheme-via-pb ; fimake[4]: Entering directory '/data/zhuoql/Work/hall/racket/racket/src/cs/c'/bin/sh ./check_boot.sh ta6le "./../../ChezScheme" ChezSchemeif [ -f boot_pending ] ; then make pb-bootquick ; fimake[5]: Entering directory '/data/zhuoql/Work/hall/racket/racket/src/cs/c'make config-scheme MACH=pb CONFIG_SCHEME_MODE=--pbmake[6]: Entering directory '/data/zhuoql/Work/hall/racket/racket/src/cs/c'cd ChezScheme && ".././../../ChezScheme"/configure --pb --machine=ta6le --disable-x11 --disable-curses --disable-auto-flags --enable-warning-flags CC="gcc" CFLAGS="-g -O2 -Wall -DELF_FIND_BOOT_SECTION -pthread" LDFLAGS="-pthread" LIBS="-ldl -lm -lrt" AR="ar" ARFLAGS="rc" RANLIB="ranlib" WINDRES="windres"No suitable machine type found in "boot". Available machine types: Since no directory in "boot" exists for pb, you can tryusing Racket v7.1 or later with racket rktboot/main.rkt --machine pbto create the boot files, and then try .././../../ChezScheme/configure again.Makefile:164: recipe for target 'config-scheme' failedmake[6]: *** [config-scheme] Error 1make[6]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/cs/c'Makefile:147: recipe for target 'pb-bootquick' failedmake[5]: *** [pb-bootquick] Error 2make[5]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/cs/c'Makefile:142: recipe for target 'scheme-via-pb' failedmake[4]: *** [scheme-via-pb] Error 2make[4]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/cs/c'Makefile:126: recipe for target 'scheme' failedmake[3]: *** [scheme] Error 2make[3]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/cs/c'Makefile:81: recipe for target 'cs' failedmake[2]: *** [cs] Error 2make[2]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/cs/c'Makefile:76: recipe for target 'racketcs' failedmake[1]: *** [racketcs] Error 2make[1]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src'Makefile:83: recipe for target 'cs' failedmake: *** [cs] Error 2 Greetings. Killian Zhuo (KDr2, https://kdr2.com) On Saturday, February 6, 2021, 08:00:54 AM GMT+8, Matthew Flatt wrote: Maybe I missed some context, but why are you using `--enable-racket`? Normally, with a Git checkout, you'd just use `make cs` and/or `make bc` in the root directory. Using `--enable-racket` is mostly for cross compilation. At Fri, 5 Feb 2021 17:57:31 -0600, Shu-Hung You wrote: > The snapshot build here may help: https://snapshot.racket-lang.org/ > > The HEAD version could add new internal primitives from time to time. > > Shu-Hung > > On Fri, Feb 5, 2021 at 5:52 PM 'Killian Zhuo (KDr2)' via Racket Users > wrote: > > > > Thank you, does that mean I need a v8.0.0.5 to compile a v8.0.0.5? > > > > I thought v7.9 is new enough... > > > > Greetings. > > > > Killian Zhuo (KDr2, https://kdr2.com) > > > > > > > > On Saturday, February 6, 2021, 07:47:41 AM GMT+8, Sam Tobin-Hochstadt > wrote: > > > > > > This means that you're building with a previous version of Racket that is > > too > old (which might be quite recent but is nonetheless too old to use in place > of > bootstrapping). > > > > Sam > > > > On Fri, Feb 5, 2021, 6:44 PM 'Killian Zhuo (KDr2)' via Racket Users > wrote: > > > > Here is my configure command: > > > > ./configure --enable-cs --enable-bc --enable-csdefault > --enable-racket=$HOME/programs/racket/bin/racket > > > > $HOME/programs/racket/bin/racket is a prebuilt Racket whose version is 7.9. > > > > Then I ran `make cs` and `make install-cs`, all worked well. > > > > Then `make bc` it also worked well, but when I ran `make install-bc`, some > errors occured: > > > > make[4]: Entering directory '/data/zhuoql/Work/hall/racket/racket/src/bc' > > if [ "" = "" ]; then \ > > echo "/data/zhuoql/Work/hall/racket/racket/lib"; \ > > fi > > /data/zhuoql/Work/hall/racket/racket/lib > > make[4]
Re: [racket-users] Error while compiling Racket BC
Thank you, does that mean I need a v8.0.0.5 to compile a v8.0.0.5? I thought v7.9 is new enough... Greetings. Killian Zhuo (KDr2, https://kdr2.com) On Saturday, February 6, 2021, 07:47:41 AM GMT+8, Sam Tobin-Hochstadt wrote: This means that you're building with a previous version of Racket that is too old (which might be quite recent but is nonetheless too old to use in place of bootstrapping). Sam On Fri, Feb 5, 2021, 6:44 PM 'Killian Zhuo (KDr2)' via Racket Users wrote: Here is my configure command: ./configure --enable-cs --enable-bc --enable-csdefault --enable-racket=$HOME/programs/racket/bin/racket $HOME/programs/racket/bin/racket is a prebuilt Racket whose version is 7.9. Then I ran `make cs` and `make install-cs`, all worked well. Then `make bc` it also worked well, but when I ran `make install-bc`, some errors occured: make[4]: Entering directory '/data/zhuoql/Work/hall/racket/racket/src/bc'if [ "" = "" ]; then \ echo "/data/zhuoql/Work/hall/racket/racket/lib"; \fi/data/zhuoql/Work/hall/racket/racket/libmake[4]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/bc'make[3]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src'make[2]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src'cd bc && make install-setup-3m SELF_ROOT_CONFIG_FLAG="-Z" PLT_SETUP_OPTIONS="" SETUP_MACHINE_FLAGS=""make[2]: Entering directory '/data/zhuoql/Work/hall/racket/racket/src/bc'/data/zhuoql/programs/racket/bin/racket -X "/data/zhuoql/Work/hall/racket/racket/collects" -G "/data/zhuoql/Work/hall/racket/racket/etc" -Z ../../../../build/config --no-user-path -N "raco" -l- setup --no-userraco setup: bootstrapping from source... read-compiled-linklet: version mismatch expected: "7.9" found: "8.0.0.5" in: /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/compiled/cm-minimal_rkt.zo/data/zhuoql/Work/hall/racket/racket/collects/racket/fixnum.rkt:12:9: provide: provided identifier is not defined or required at: fx+/wraparound in: (#%provide (expand (provide-trampoline fx->fl fl->fx fxabs fx+ fx- fx* fx+/wraparound fx-/wraparound fx*/wraparound fxquotient fxremainder fxmodulo fxand fxior fxxor fxnot fxrshift fxlshift fxlshift/wraparound fx>= fx> fx= fx< fx<= fxmin fxmax fixnum-fo... location...: /data/zhuoql/Work/hall/racket/racket/collects/racket/fixnum.rkt:12:9 context...: /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:610:0: compile-zo* /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:409:15 /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:374:0: maybe-compile-zo /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:208:0: compile-root /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:144:4: compilation-manager-load-handler /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:610:0: compile-zo* /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:409:15 /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:374:0: maybe-compile-zo /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:208:0: compile-root /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:144:4: compilation-manager-load-handler /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:610:0: compile-zo* /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:409:15 /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:374:0: maybe-compile-zo /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:208:0: compile-root /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:144:4: compilation-manager-load-handler /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:610:0: compile-zo* ...Makefile:469: recipe for target 'install-setup-3m' failedmake[2]: *** [install-setup-3m] Error 1make[2]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/bc'Makefile:179: recipe for target 'install-3m' failedmake[1]: *** [install-3m] Error 2make[1]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src'Makefile:114: recipe for target 'install-bc' failedmake: *** [install-bc] Error 2 I worked on the head of the master branch, anyone knows how to fix this? Thanks. Greetings. Killian Zhuo (KDr2, https://kdr2.com) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group
[racket-users] Error while compiling Racket BC
Here is my configure command: ./configure --enable-cs --enable-bc --enable-csdefault --enable-racket=$HOME/programs/racket/bin/racket $HOME/programs/racket/bin/racket is a prebuilt Racket whose version is 7.9. Then I ran `make cs` and `make install-cs`, all worked well. Then `make bc` it also worked well, but when I ran `make install-bc`, some errors occured: make[4]: Entering directory '/data/zhuoql/Work/hall/racket/racket/src/bc'if [ "" = "" ]; then \ echo "/data/zhuoql/Work/hall/racket/racket/lib"; \fi/data/zhuoql/Work/hall/racket/racket/libmake[4]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/bc'make[3]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src'make[2]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src'cd bc && make install-setup-3m SELF_ROOT_CONFIG_FLAG="-Z" PLT_SETUP_OPTIONS="" SETUP_MACHINE_FLAGS=""make[2]: Entering directory '/data/zhuoql/Work/hall/racket/racket/src/bc'/data/zhuoql/programs/racket/bin/racket -X "/data/zhuoql/Work/hall/racket/racket/collects" -G "/data/zhuoql/Work/hall/racket/racket/etc" -Z ../../../../build/config --no-user-path -N "raco" -l- setup --no-userraco setup: bootstrapping from source... read-compiled-linklet: version mismatch expected: "7.9" found: "8.0.0.5" in: /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/compiled/cm-minimal_rkt.zo/data/zhuoql/Work/hall/racket/racket/collects/racket/fixnum.rkt:12:9: provide: provided identifier is not defined or required at: fx+/wraparound in: (#%provide (expand (provide-trampoline fx->fl fl->fx fxabs fx+ fx- fx* fx+/wraparound fx-/wraparound fx*/wraparound fxquotient fxremainder fxmodulo fxand fxior fxxor fxnot fxrshift fxlshift fxlshift/wraparound fx>= fx> fx= fx< fx<= fxmin fxmax fixnum-fo... location...: /data/zhuoql/Work/hall/racket/racket/collects/racket/fixnum.rkt:12:9 context...: /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:610:0: compile-zo* /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:409:15 /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:374:0: maybe-compile-zo /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:208:0: compile-root /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:144:4: compilation-manager-load-handler /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:610:0: compile-zo* /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:409:15 /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:374:0: maybe-compile-zo /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:208:0: compile-root /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:144:4: compilation-manager-load-handler /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:610:0: compile-zo* /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:409:15 /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:374:0: maybe-compile-zo /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:208:0: compile-root /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:144:4: compilation-manager-load-handler /data/zhuoql/Work/hall/racket/racket/collects/compiler/private/cm-minimal.rkt:610:0: compile-zo* ...Makefile:469: recipe for target 'install-setup-3m' failedmake[2]: *** [install-setup-3m] Error 1make[2]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src/bc'Makefile:179: recipe for target 'install-3m' failedmake[1]: *** [install-3m] Error 2make[1]: Leaving directory '/data/zhuoql/Work/hall/racket/racket/src'Makefile:114: recipe for target 'install-bc' failedmake: *** [install-bc] Error 2 I worked on the head of the master branch, anyone knows how to fix this? Thanks. Greetings. Killian Zhuo (KDr2, https://kdr2.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/252652007.2153435.1612568669639%40mail.yahoo.com.
Re: [racket-users] Re: How to draw an arc with module `graphics/turtles`?
Thank you, I just implemented a UCBLogo compatible `arc`: (define (arc angle radius) (let* ([alpha (* 2 (asin (/ 1 (* 2 radius] [rangle (* pi (/ angle 180))] [n (abs (/ rangle alpha))] [astep (if (> angle 0) (- alpha) alpha)]) (tprompt (move radius) (turn (if (> angle 0) -90 90)) (for ([i (in-range n)]) (draw 1) (turn/radians astep))) (turn (- angle Greetings. Killian Zhuo (KDr2, https://kdr2.com) On Tuesday, February 2, 2021, 11:32:59 AM GMT+8, making-a-racket wrote: Turtles can only turn or move forward with or without drawing. To draw an arc, you'll need to combine these methods to do that. I highly recommend the book Turtle Geometry by Abelson and diSessa. Below you can find an excerpt of the book that talks about drawing circles and arcs. Here's an implementation of a circle in Racket using the turtle library you referenced. #lang racket (require graphics/turtles) (turtles #t) (for ([i (in-range 360)]) (draw 1) (turn 1)) On Monday, February 1, 2021 at 5:54:05 PM UTC-6 zhuo...@gmail.com wrote: > I am imitating the Logo API to draw some shapes with `graphics/turtles`, but > in it I only find functions to draw lines, is there a way to draw an arc? > > > > Greetings. > > Killian Zhuo (KDr2, https://kdr2.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/aea4ad53-162e-4924-87ed-1e7311c2aef3n%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/625594723.1001568.1612254850718%40mail.yahoo.com.
[racket-users] How to draw an arc with module `graphics/turtles`?
I am imitating the Logo API to draw some shapes with `graphics/turtles`, but in it I only find functions to draw lines, is there a way to draw an arc? Greetings. Killian Zhuo (KDr2, https://kdr2.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/1537717969.925560.1612223641051%40mail.yahoo.com.