#DrRacket

Stephen De Gabriellespdegabrielle@functional.cafe
2025-06-11

@racketlang
I love these Easter eggs in #DrRacket

DrRacket splash screen Easter egg (Hawaiian turtle)

Happy King Kamehameha I Day!
#DrRacket #easteregg

Did you know Racket runs on the Raspberry Pi?
IDE, compiler, libraries and documentation included for stand alone use.
32-bit ARMv6 VFP (built on Raspbian) at users.cs.utah.edu/plt/snapshot via snapshot.racket-lang.org
@raspberrypi.com @Raspberry_Pi #raspberrypi #racketlisp #lisp #drracket

Raspberry Pi logo overlayed over the Racket Logo
GNU/Trinukso ۞trinux@masto.ai
2025-01-24

Hubo un tiempo lejano donde me sentí tentado de aprender algo de programación con el IDE #DrRacket. El lenguaje @racketlang. ¿Qué os parece la idea?

2024-12-14

Finally I'm starting to get a bit more comfortable with all those parentheses and I'm starting to make my own changes in the code without #DrRacket complaining at every single step 💪

Racket - the Language-Oriented Programming Language - version 8.15 is now available from download.racket-lang.org

See blog.racket-lang.org/2024/11/r for the release announcement and highlights. #DrRacket #Racket #RacketLanguage

DrRacket restore files from previous session dialogDrRacket save image dialog
2024-10-30

I've been making progress with learning #Racket and #Scheme. I did add the csv-reader package to #DrRacket to help me along.

One of the report files has well over 100 rows. So it takes 1024MB of memory just to read it in. I haven't really begun to use #lambda on these lists yet. I'm interested to see how the performance compares to my #python scripts.

2024-10-19

I got inspired to study #Scheme and I installed #drracket. Over 20 years ago I worked with #DSSSL, a subset of Scheme.

My goal is to write some scripts to parse large CSV files. I've used #Python for similar tasks.

2024-09-02
I was talking with the teacher of the statistics class today and trying to convince him (along with myself, so: convince us) that we could teach everything with one language: Racket. So I got distracted trying to learn enough statistics to tranlsate R-code into Racket Code.



#lang racket
(require plot)
(require math/distributions)
;; R to Racket
;; ; Ztable, ZScore ??
;; ; (curve(dnorm(x, mean=0, sd=1), from=-4 to=4)
;; ; abline(v=qnorm(p=0.025, mean=0, sd=1)) ;; a=0.05(5%)とした場合
;; ; abline(v=qnorm(p=0.975, mean=0, sd=1))

(define n-d-0-1 (normal-dist 0 1))
(cdf n-d-0-1 0.025) ;; https://docs.racket-lang.org/math/dist_dist-objects.html
;; ; 0.509972518195238
(inv-cdf n-d-0-1 0.025) ;; https://docs.racket-lang.org/math/dist_dist-objects.html
;; ; -1.9599639845400538
(inv-cdf n-d-0-1 0.975) ;; 1.9599639845400536
#;(define (n-d-0-1-pdf x)
  ((distribution-pdf n-d-0-1) x))
;; (n-d-0-1-pdf -4) ;; 0.00013383022576488534
;; (n-d-0-1-pdf 4)  ;; 0.00013383022576488534
#;(plot (function n-d-0-1-pdf)
      #:x-min -4
      #:x-max 4)
(define cdf-inv-0025 (inv-cdf (normal-dist 0 1) 0.025))
(define cdf-inv-00975 (inv-cdf (normal-dist 0 1) 0.975))

(plot (list
      (function (distribution-pdf (normal-dist 0 1)))
      (lines (list (vector cdf-inv-0025 0) (vector cdf-inv-0025 .4)))
      (lines (list (vector cdf-inv-00975 0) (vector cdf-inv-00975 .4)))
      ); end list of plot functions
      #:x-min -4 #:x-max 4
      #:out-file "norm-dist-inv-cdf-1.png")

;; ; https://www.medi-08-data-06.work/entry/2018/12/18/232204
;; ; https://r-coder.com/normal-distribution-r/
;; ; https://www.statology.org/dnorm-pnorm-rnorm-qnorm-in-r/
;; ; cdf, inverse-cdf https://docs.racket-lang.org/math/dist_dist-objects.html

;; (require math/statistics) ;; quantile
;;(quantile 0.025 < n-d-0-1) ;; no good, how to get xs from normal-dist??





#racket-lang #DrRacket #StatisticsRacket
norm-dist-inv-cdf-1.pngstatistics-normal-dist-etc-DrR-srnsht.jpg
शून्यताwigalois@dresden.network
2024-07-27

Was soll das für function composition sein, wenn nicht mal

| (compose flip flip) == identity

stimmt und mir dafür Arity-Error entgegen wirft.

Kurz in #ghci geprüft, und glücklich geworden.

#Racket #DrRacket #Scheme #Haskell

2023-06-19

I had been thinking it would be great to see two different views of the unit circle while floundering around making circular meme-like images. So it is great to find this while searching for general Racket Plot pages:
alex-hhh.github.io/2021/01/plo
#AlexHarsányi #AlexHarsanyi #RacketPlot #SineFunction #PlotAnimation #RacketPlotAnimation #DrRacket

The ol' tealeg 🐡tealeg@mastodon.online
2023-04-11

@fiskfan1999 Although I don't enjoy using #DrRacket , there are actually good reasons why you might want to use it when learning Racket, or indeed when developing languages in #Racket - it does things "out of the box" that are difficult or complex to achieve without it.

Learning Vim or Emacs might seem valuable, but might detract from what you're supposed to be focussing on. The goal of CompSci is not to teach you to edit text efficiently, after all.

2023-04-11
our compsci department seems to have a bad track record of what IDE to recomment. I did have one class where the instructor told us to use #vim or #emacs, but other than that, one time we were told to use #eclipse for java, and now I'm writing #racket in #drracket.

This class made me insterested in using #scheme as a general programming language, but for now I am planning to use #chez scheme #chezscheme instead, and will figure out how to use vim and #cli commands.
2023-03-24

高橋メソッド と もんたメソッド ^1 は #DrRacket#Racket, #RacketSlideshow でするのが楽しいそうです。 友達が中学校を卒業した人達に挨拶するとき、 素朴なメッソッドでスライドを見せたいらしい。#Slideshow ^2 ですぐ#高橋メソッド できた、 簡単な #もんたメソッド もDRY理念を虫したら簡単にできそうけどplay-n ^3使った関数を作ったら繰り返しのない、ちょっと派手なスライドできそう。時間を作って、集中力の訓練としてやってみようかな。
ところで、#みのもんた は10何年前テレビで見たときに本能的にきらいだった。 最近「#ウンコな議論」を読みだしたら、その気持を説明できるようになりつつある。 ビジネスCMの影響が強すぎる社会になると、 ありそうな顔だけで、 見せかけのことで通せる感じ。 似ったような居眠り権力者、化石頭、があちこち決定権を握てしまっているじゃないかな?
^1 note.com/yumi_nomo/n/ndde9a3ee
^2 docs.racket-lang.org/slideshow
^3 docs.racket-lang.org/slideshow

2022-07-03

> #ShriramKrishnamurthi some years ago, in talking up the intro Scheme class they'd put together at Rice.. said they had other departments wanting to send their students over for the Scheme intro, to learn how to think. Which had me.. trying to remember where that quote came from about 'computer science isn't a science and its significance has little to do with computers'.
#HTDP #RacketLang #DrRacket

2022-06-14

Evenutally I'll find the data and gnuplot code used to generate this visualization. Once I find the directory I'll have to re-do it with Racket's plot so people can adjust the view in #DrRacket. #DataVisualization with #concrete or #cement figures for #Japan from #DavidKerr's #DogsAndDemons.

2022-06-06

> .. everyone can experience the satisfaction that comes with creative design.. program design—but not #programming—deserves the same role in a #LiberalArts education as mathematics and language skills.
> A student of design who never touches a program again will still pick up universally useful problem-solving skills, experience a deeply creative activity, and learn to appreciate a new form of aesthetic.
htdp.org/2022-2-9/Book/part_pr
#DrRacket #Racket #GeneralEducation

2022-06-06

> This book is the first book on #programming as the core subject of a #LiberalArts #education. Its main focus is the design process that leads from problem statements to well-organized solutions.. Our desire to focus on the design process requires two radical innovations for introductory courses. The first innovation is a set of explicit design guidelines.. The second innovation is a radically new #programmingEnvironment..
htdp.org/2003-09-26/Book/curri
#DrRacket #Racket #GeneralEducation #HTDP

Maciej Barćxgqt@fosstodon.org
2022-02-14

launch #drracket today if you have #racket installed :D

Frost [moved]IceWolf@meow.social
2020-04-16

Hey, does anyone know how to customize indent in #DrRacket?

I'm doing my code like so:

(define (foo)
(stuff)
(more stuff)
)

With actual tabs, the /proper/ way. But DrRacket seems to have /zero/ settings for this. And I'm worried it'd try to force hanging indent on me as well.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst