# Questions & Answers

**URL:** https://racket.discourse.group/c/questions/6.md?page=12

[Latest](https://racket.discourse.group/latest.md) · [Categories](https://racket.discourse.group/categories.md) · [Tags](https://racket.discourse.group/tags.md)

**Page:** 13

---

## [Displaying Animated Snips in an IRacket Notebook](https://racket.discourse.group/t/displaying-animated-snips-in-an-iracket-notebook/2985)

<div class="topic-metadata">

**Author:** [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Replies:** 0\
**Last updated:** [June 28, 2024, 11:30am UTC](https://racket.discourse.group/t/displaying-animated-snips-in-an-iracket-notebook/2985 "2024-06-28T11:30:54Z")

</div>

Hi, Racket Discourse. I am currently playing around with iracket and jupyter notebooks. Such fun! I would like to structure the notebook I am busy with in the vein of the Advent of Code puzzles, where you are taken thr…

---

## [Building Racket-8.1 on Solaris 11.3 Sparc](https://racket.discourse.group/t/building-racket-8-1-on-solaris-11-3-sparc/2981)

<div class="topic-metadata">

**Author:** [@Nemo](https://racket.discourse.group/u/Nemo)\
**Replies:** 0\
**Last updated:** [June 25, 2024, 9:55pm UTC](https://racket.discourse.group/t/building-racket-8-1-on-solaris-11-3-sparc/2981 "2024-06-25T21:55:59Z")

</div>

Greetings. I am trying to build Racket-8.1 (BC) on Solaris 11.3 Sparc. All goes well until the build reaches cify-startup.rkt. It finishes compiling this and then stops with the announcement "out of memory". The mach…

---

## [Is there any way to bind clicking the window close box in order to tell the program running background killed?](https://racket.discourse.group/t/is-there-any-way-to-bind-clicking-the-window-close-box-in-order-to-tell-the-program-running-background-killed/2970)

<div class="topic-metadata">

**Author:** [@cametan](https://racket.discourse.group/u/cametan)\
**Replies:** 10\
**Last updated:** [June 24, 2024, 12:37pm UTC](https://racket.discourse.group/t/is-there-any-way-to-bind-clicking-the-window-close-box-in-order-to-tell-the-program-running-background-killed/2970 "2024-06-24T12:37:32Z")

</div>

Hello. I was planning to program Conway's Game of Life, life.rkt, in the functional way. #!/usr/bin/env racket #lang racket (require (only-in srfi/41 stream-for-each stream-from) (only-in srfi/43 vector-fold …

---

## [Converting slideshow to text?](https://racket.discourse.group/t/converting-slideshow-to-text/2978)

<div class="topic-metadata">

**Author:** [@JoeyEremondi](https://racket.discourse.group/u/JoeyEremondi)\
**Replies:** 1\
**Last updated:** [June 24, 2024, 12:31pm UTC](https://racket.discourse.group/t/converting-slideshow-to-text/2978 "2024-06-24T12:31:15Z")

</div>

Does anybody know if there's a way to get a text version of a #lang slideshow file? I'm eventually hoping to get the contents into org-mode so I can have a single file with my class's lecture notes, but just getting some…

---

## [Ffi libs and raco setup info.rkt](https://racket.discourse.group/t/ffi-libs-and-raco-setup-info-rkt/2974)

<div class="topic-metadata">

**Author:** [@matteo-daddio](https://racket.discourse.group/u/matteo-daddio)\
**Replies:** 2\
**Last updated:** [June 22, 2024, 10:30am UTC](https://racket.discourse.group/t/ffi-libs-and-raco-setup-info-rkt/2974 "2024-06-22T10:30:10Z")

</div>

Hello, I need to develop a ffi and I read The Racket Foreign Interface. Now I’m trying to understand how to install the correct libraries for each supported operating systems and I’m reading the Raco setup documentation…

---

## [What is the recommended workflow when developing packages?](https://racket.discourse.group/t/what-is-the-recommended-workflow-when-developing-packages/2975)

<div class="topic-metadata">

**Author:** [@rscho](https://racket.discourse.group/u/rscho)\
**Replies:** 2\
**Last updated:** [June 21, 2024, 11:41pm UTC](https://racket.discourse.group/t/what-is-the-recommended-workflow-when-developing-packages/2975 "2024-06-21T23:41:05Z")

</div>

Hi, What is your workflow when developing packages ? I'm working on the plot library, and right now I'm doing raco setup plot to install the changes I made to my local copy every time I modify the code. The annoying th…

---

## [How to add a public method to 3d-plot-area%?](https://racket.discourse.group/t/how-to-add-a-public-method-to-3d-plot-area/2971)

<div class="topic-metadata">

**Author:** [@rscho](https://racket.discourse.group/u/rscho)\
**Replies:** 3\
**Last updated:** [June 20, 2024, 1:38pm UTC](https://racket.discourse.group/t/how-to-add-a-public-method-to-3d-plot-area/2971 "2024-06-20T13:38:47Z")

</div>

Hi, I am trying to build a new 3d renderer for the plot package. The renderer is a 3d matrix viewer, where each index in the matrix matches a voxel in the plot. The current implementation is inspired by the existing rect…

---

## [Scope and purpose of racket/gui](https://racket.discourse.group/t/scope-and-purpose-of-racket-gui/2965)

<div class="topic-metadata">

**Author:** [@ken](https://racket.discourse.group/u/ken)\
**Replies:** 17\
**Last updated:** [June 16, 2024, 10:18pm UTC](https://racket.discourse.group/t/scope-and-purpose-of-racket-gui/2965 "2024-06-16T22:18:18Z")

</div>

Hello, I'm working on putting a GUI on some Racket software I wrote. I've been playing around with racket/gui (and racket/gui/easy, which seems like a much more Racket-esque approach). What I'm finding is that racket/…

---

## [Is there any equivalent way to emulate symbol-macrolet of ANSI Common Lisp with the Racket's Syntax?](https://racket.discourse.group/t/is-there-any-equivalent-way-to-emulate-symbol-macrolet-of-ansi-common-lisp-with-the-rackets-syntax/2966)

<div class="topic-metadata">

**Author:** [@cametan](https://racket.discourse.group/u/cametan)\
**Replies:** 13\
**Last updated:** [June 16, 2024, 9:41pm UTC](https://racket.discourse.group/t/is-there-any-equivalent-way-to-emulate-symbol-macrolet-of-ansi-common-lisp-with-the-rackets-syntax/2966 "2024-06-16T21:41:34Z")

</div>

Hello. As the title says, is there any equivalent way to emulate symbol-macrolet of ANSI Common Lisp with the Racket's Syntax? Thanks.

---

## [Scribble for interaction](https://racket.discourse.group/t/scribble-for-interaction/2964)

<div class="topic-metadata">

**Author:** [@hendrikboom3](https://racket.discourse.group/u/hendrikboom3)\
**Replies:** 2\
**Last updated:** [June 14, 2024, 6:26pm UTC](https://racket.discourse.group/t/scribble-for-interaction/2964 "2024-06-14T18:26:57Z")

</div>

Suppose I want to use scribble in a non-book context. For example, for writing messages to be written out during an interactive session with a user. Its tools for generating and formatting text and for embedding the ou…

---

## [Using the scribble-math package with relative path for katex folder](https://racket.discourse.group/t/using-the-scribble-math-package-with-relative-path-for-katex-folder/2649)

<div class="topic-metadata">

**Author:** [@encomer](https://racket.discourse.group/u/encomer)\
**Replies:** 6\
**Last updated:** [June 11, 2024, 5:17am UTC](https://racket.discourse.group/t/using-the-scribble-math-package-with-relative-path-for-katex-folder/2649 "2024-06-11T05:17:43Z")

</div>

The scribble-math package is great for rendering LaTeX style formatted expressions. When used in multiple documents (e.g. quizzes, exams, class notes, et c.) it is very convenient to save time and space requiring only on…

---

## [How do I use the profiler libraries with GUI applications?](https://racket.discourse.group/t/how-do-i-use-the-profiler-libraries-with-gui-applications/2956)

<div class="topic-metadata">

**Author:** [@benknoble](https://racket.discourse.group/u/benknoble)\
**Replies:** 1\
**Last updated:** [June 9, 2024, 10:45pm UTC](https://racket.discourse.group/t/how-do-i-use-the-profiler-libraries-with-gui-applications/2956 "2024-06-09T22:45:32Z")

</div>

Has anyone had luck using profile-lib's profile-thunk (or profile-flame-graph's profile-thunk) on GUI applications? I tried a couple variants in Frosthaven Manager and consistently got no output data from profile-flame-g…

---

## [Is there any Redex implementation of a very minimal dependently typed Lambda Calculus core? Something like Elaboration-Zoo-02](https://racket.discourse.group/t/is-there-any-redex-implementation-of-a-very-minimal-dependently-typed-lambda-calculus-core-something-like-elaboration-zoo-02/2957)

<div class="topic-metadata">

**Author:** [@B0B](https://racket.discourse.group/u/B0B)\
**Replies:** 1\
**Last updated:** [June 8, 2024, 10:04pm UTC](https://racket.discourse.group/t/is-there-any-redex-implementation-of-a-very-minimal-dependently-typed-lambda-calculus-core-something-like-elaboration-zoo-02/2957 "2024-06-08T22:04:48Z")

</div>

I'd like to prototype/play-around-with a dependently typed language. I'm very new to Racket, but would like to use Redex (or any similar tool) to define some decent typing and evaluation rules. I've gone through the tw…

---

## [Suggestions on refactoring codes using Typed Racket](https://racket.discourse.group/t/suggestions-on-refactoring-codes-using-typed-racket/2941)

<div class="topic-metadata">

**Author:** [@Antigen-11](https://racket.discourse.group/u/Antigen-11)\
**Replies:** 11\
**Last updated:** [June 8, 2024, 4:30pm UTC](https://racket.discourse.group/t/suggestions-on-refactoring-codes-using-typed-racket/2941 "2024-06-08T16:30:50Z")

</div>

Hello everyone! Recently, there has been widespread discussion in the community about the performance of the Racket language. It applies to a benchmarks game and I find it interesting to solve those problems about DNA b…

---

## [Identifiers with dashes and the infix package](https://racket.discourse.group/t/identifiers-with-dashes-and-the-infix-package/2950)

<div class="topic-metadata">

**Author:** [@scolobb](https://racket.discourse.group/u/scolobb)\
**Replies:** 6\
**Last updated:** [June 7, 2024, 10:42pm UTC](https://racket.discourse.group/t/identifiers-with-dashes-and-the-infix-package/2950 "2024-06-07T22:42:25Z")

</div>

Hello, Almost out of sheer curiosity, is there a way to use identifiers with dashes with the infix package, with or without at-exp? I would like to be able to do something like this: #lang at-exp racket (require infix…

---

## [Difference between Racket and Typed Racket with macro literals](https://racket.discourse.group/t/difference-between-racket-and-typed-racket-with-macro-literals/2946)

<div class="topic-metadata">

**Author:** [@shawnw](https://racket.discourse.group/u/shawnw)\
**Replies:** 5\
**Last updated:** [June 4, 2024, 2:35pm UTC](https://racket.discourse.group/t/difference-between-racket-and-typed-racket-with-macro-literals/2946 "2024-06-04T14:35:33Z")

</div>

With this untyped module: #lang racket/base (require (for-syntax racket/base syntax/parse)) (provide choose one two) (define-syntax (one stx) (raise-syntax-error stx "use of one outside of choose")) (define-syntax …

---

## [Typeless typed Racket](https://racket.discourse.group/t/typeless-typed-racket/2944)

<div class="topic-metadata">

**Author:** [@hendrikboom3](https://racket.discourse.group/u/hendrikboom3)\
**Replies:** 1\
**Last updated:** [June 2, 2024, 4:37pm UTC](https://racket.discourse.group/t/typeless-typed-racket/2944 "2024-06-02T16:37:51Z")

</div>

The languages typed/racket/no-check and typed/racket/base/no-check -- Do they supress all type checking? Or do they just suppress static type checking?

---

## [Naming convention for structs](https://racket.discourse.group/t/naming-convention-for-structs/2939)

<div class="topic-metadata">

**Author:** [@rvdalen](https://racket.discourse.group/u/rvdalen)\
**Replies:** 14\
**Last updated:** [May 31, 2024, 10:18pm UTC](https://racket.discourse.group/t/naming-convention-for-structs/2939 "2024-05-31T22:18:53Z")

</div>

Hi everyone, I am wondering if anyone else has run into this issue and if there is some commonly-used work-around? The issue is the name of my struct and the name of a binding for an instance of the struct usually ends…

---

## [Collect safe foreign procedure in another OS thread](https://racket.discourse.group/t/collect-safe-foreign-procedure-in-another-os-thread/2889)

<div class="topic-metadata">

**Author:** [@amirouche](https://racket.discourse.group/u/amirouche)\
**Replies:** 3\
**Last updated:** [May 30, 2024, 6:39am UTC](https://racket.discourse.group/t/collect-safe-foreign-procedure-in-another-os-thread/2889 "2024-05-30T06:39:14Z")

</div>

I struggle to create a Racket wrapper for FoundationDB C client. The Chez code rely on foreign-procedure's \_\_collect\_safe is there an equivalent available in Racket?

---

## [Typed Racket + Org-mode + Org tables and lists](https://racket.discourse.group/t/typed-racket-org-mode-org-tables-and-lists/2254)

<div class="topic-metadata">

**Author:** [@scolobb](https://racket.discourse.group/u/scolobb)\
**Replies:** 4\
**Last updated:** [May 29, 2024, 10:34am UTC](https://racket.discourse.group/t/typed-racket-org-mode-org-tables-and-lists/2254 "2024-05-29T10:34:23Z")

</div>

Hi, I would like to use Typed Racket in Org-mode code blocks with ob-racket-mode and produce Org lists and tables. (Untyped) Racket code works out of the box: #+BEGIN\_SRC racket :results table drawer '((a 1) (b 2)) #+…

---

## [Writing functions and reading them again](https://racket.discourse.group/t/writing-functions-and-reading-them-again/2938)

<div class="topic-metadata">

**Author:** [@hendrikboom3](https://racket.discourse.group/u/hendrikboom3)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 8:07pm UTC](https://racket.discourse.group/t/writing-functions-and-reading-them-again/2938 "2024-05-28T20:07:13Z")

</div>

I have a data structure that contains Racket functions. I would like to be able to write it out to a file, and, later, read it in again -- a save-and-restore operation. But as far as I know, it is impossible to write o…

---

## [How to remove a menu bar from a frame?](https://racket.discourse.group/t/how-to-remove-a-menu-bar-from-a-frame/2934)

<div class="topic-metadata">

**Author:** [@cadence](https://racket.discourse.group/u/cadence)\
**Replies:** 9\
**Last updated:** [May 25, 2024, 12:42pm UTC](https://racket.discourse.group/t/how-to-remove-a-menu-bar-from-a-frame/2934 "2024-05-25T12:42:02Z")

</div>

For creating a menu bar, the documentation says: new menu-bar% - A menu-bar% object is created for a particular frame% object. A frame can have at most one menu bar; an exn:fail:contract exception is raised when a new …

---

## [Support on design of a simulator: multiple contexts with same variables](https://racket.discourse.group/t/support-on-design-of-a-simulator-multiple-contexts-with-same-variables/2932)

<div class="topic-metadata">

**Author:** [@db7](https://racket.discourse.group/u/db7)\
**Replies:** 6\
**Last updated:** [May 25, 2024, 10:47am UTC](https://racket.discourse.group/t/support-on-design-of-a-simulator-multiple-contexts-with-same-variables/2932 "2024-05-25T10:47:26Z")

</div>

Hi, in the process of learning Racket I‘ve started designing a small system simulator. Now I am stuck searching for an elegant way to solve the following issue. The simulator has an environment and multiple actors. The…

---

## [Virtual hash table](https://racket.discourse.group/t/virtual-hash-table/2907)

<div class="topic-metadata">

**Author:** [@joskoot](https://racket.discourse.group/u/joskoot)\
**Replies:** 19\
**Last updated:** [May 21, 2024, 8:37pm UTC](https://racket.discourse.group/t/virtual-hash-table/2907 "2024-05-21T20:37:34Z")

</div>

Imagine a hash that can grow to too much data to be kept in ram. Should I rely on virtual memory? I have ideas how to make a mutable hash-table that is stored in a file and allows the garbage collector to remove value…

---

## [My package socks5 wasn't built and I don't know why](https://racket.discourse.group/t/my-package-socks5-wasnt-built-and-i-dont-know-why/2905)

<div class="topic-metadata">

**Author:** [@cadence](https://racket.discourse.group/u/cadence)\
**Replies:** 3\
**Last updated:** [May 19, 2024, 1:33am UTC](https://racket.discourse.group/t/my-package-socks5-wasnt-built-and-i-dont-know-why/2905 "2024-05-19T01:33:45Z")

</div>

Documentation for my package socks5 isn't displayed any more. I think it's supposed to be put on the docs website by the package build server, but when I check the build logs, it just says "Killed". I tried installing so…

---

## [How to get last inserted row id in SQLite3?](https://racket.discourse.group/t/how-to-get-last-inserted-row-id-in-sqlite3/2924)

<div class="topic-metadata">

**Author:** [@Tomek](https://racket.discourse.group/u/Tomek)\
**Replies:** 4\
**Last updated:** [May 17, 2024, 10:09am UTC](https://racket.discourse.group/t/how-to-get-last-inserted-row-id-in-sqlite3/2924 "2024-05-17T10:09:54Z")

</div>

Simple question: how can I get the (last) inserted row id using SQLite3 with Racket and the db module/package (whatever it is called)? In SQLite3 there's the sqlite3\_last\_insert\_rowid function. Is there any equivalent i…

---

## [Surprising identifier binding ambiguity error with nested splicing-local (possible bug)](https://racket.discourse.group/t/surprising-identifier-binding-ambiguity-error-with-nested-splicing-local-possible-bug/2912)

<div class="topic-metadata">

**Author:** [@gregr](https://racket.discourse.group/u/gregr)\
**Replies:** 1\
**Last updated:** [May 14, 2024, 5:53am UTC](https://racket.discourse.group/t/surprising-identifier-binding-ambiguity-error-with-nested-splicing-local-possible-bug/2912 "2024-05-14T05:53:29Z")

</div>

I encountered a surprising identifier binding ambiguity error when using splicing-local within the body of another splicing-local. Am I misusing splicing-local, or is this a bug? Here's a small reproduction of the prob…

---

## [Alarm-evt performance difference between windows 10 and ubuntu 23.04](https://racket.discourse.group/t/alarm-evt-performance-difference-between-windows-10-and-ubuntu-23-04/2901)

<div class="topic-metadata">

**Author:** [@uu27183141](https://racket.discourse.group/u/uu27183141)\
**Replies:** 2\
**Last updated:** [May 11, 2024, 1:17pm UTC](https://racket.discourse.group/t/alarm-evt-performance-difference-between-windows-10-and-ubuntu-23-04/2901 "2024-05-11T13:17:51Z")

</div>

Hi. I have a question about alarm-evt. Below is example code. (module b racket (define (f) (sync/enable-break (handle-evt (alarm-evt (+ (current-inexact-milliseconds) …

---

## [Constructor style pretty printing](https://racket.discourse.group/t/constructor-style-pretty-printing/2904)

<div class="topic-metadata">

**Author:** [@shhyou](https://racket.discourse.group/u/shhyou)\
**Replies:** 4\
**Last updated:** [May 9, 2024, 4:24pm UTC](https://racket.discourse.group/t/constructor-style-pretty-printing/2904 "2024-05-09T16:24:03Z")

</div>

In HtDP, the structs are printed using the (make-XXX ...) constructor style either by default in REPL or via print. How do I get the same behavior for pretty printing? I have been able to print values in constructor sty…

---

## [Using pdf-read package to extract text from pdf file](https://racket.discourse.group/t/using-pdf-read-package-to-extract-text-from-pdf-file/2685)

<div class="topic-metadata">

**Author:** [@encomer](https://racket.discourse.group/u/encomer)\
**Replies:** 25\
**Last updated:** [May 8, 2024, 8:13pm UTC](https://racket.discourse.group/t/using-pdf-read-package-to-extract-text-from-pdf-file/2685 "2024-05-08T20:13:28Z")

</div>

Using the following code en DrRacket, in a PC with Windows 10: #lang racket (require pdf-read) When running, generates the following message: ..\\..\\..\\Program Files\\Racket\\collects\\ffi\\unsafe.rkt:131:0: ffi-lib: coul…

[Previous page](https://racket.discourse.group/c/questions/6.md?page=11)

[Next page](https://racket.discourse.group/c/questions/6.md?page=13)
