I’ve had that happen when I had an example that was failing to terminate.
dear god no
Hello amazing web people! I have a question. I’m trying to do something that I think should be manageable, but I also know that it would be very easy to get off on the wrong foot and have to throw everything away. The basic problem is (I claim) equivalent to this: I want to make a web page that allows students to build a binary tree of text fields, starting with an empty tree and clicking buttons to expand the tree at specified locations and then entering text in the various fields. A lot of this would be pretty easy with (say) big-bang, except (I think) for the text fields and for the much larger problem that I want to run it on the web. Is there a reactive framework that makes this easy? (And, to be totally honest, I don’t really care whether it uses Racket. I just trust you folks to know a lot more than me.)
This appears to be more of a “front end” problem, where I’m more of a “back end” server type of guy, but to clarify, do you need any server-side functionality e.g. storing text field data in a database, etc.?
Also, what’s the maximum number of nodes you expect to have to support?
- What do you mean by “web”? Do you want this to be a JavaScript program with no permament state, or a web server, or …?
- Exactly how easy is this big-bang program to write? Tree layout is a non-trivial problem.
- Do you actually care about writing this in a reactive framework? Just writing this with vanilla JS and DOM mutation is probably pretty easy (modulo issue 2).
I wonder if this would be a good test of RacketScript.
https://github.com/mackron/miniaudio I was thinking i’d try writing racket bindings to this neat single file C lib that’s crossplatform. I’m sure its easier to deal with than port audio lol
This is a ScalaJS project but it draws trees out of JSON, maybe this could be adapted into RacketScript. I was thinking at least it takes care of some amount of tree drawing. http://lakhin.com/projects/papa-carlo/demo/
He just sent another one
To Sam’s questions: 1) pure front-end would be ideal, with a “submit” button at the bottom that sends the current state. Easy. 2) I don’t actually care about tree layout; it’s placing boxes in a fixed grid, so the layout is pretty obvious, the tree example just made it easier to explain the problem. 3) Shouldn’t have said reactive. Yes, I think a simple js program with DOM manipulation is probably easiest.
So basically, I think I now know how this should be implemented. Thanks all!
It looks to me like he was banned about 3 hours ago, so maybe someone just beat me to it.
that turned out to be it for me too
Yes, I did that
In Racket 8.2 cs in BSL, “8.2” displays as "#<image>" in the test results dialog. Is this a known bug or did I setup something wrong?
Known and fixed in snapshots
Huh, I thought 8.0 has that problem and 8.1 fixes it. It’s back in 8.2?
8.0 had some different problems
I see, I thought the image was not rendering but it’s the numbers that are having troubles
Okay. I’ll try rebuilding; I also tested on a custom build from git, but it might have been a few weeks since I rebuilt.
Are there known bugs affecting BSL etc in 8.1? We were planning to use 8.2 for the intro course, but with this bug, I’m debating between recommending 8.1 or a snapshot build. Snapshots seem more risky.
and rsound doesn’t work out of the box anymore :s, the issues list are stacked! ../../../usr/share/racket/collects/ffi/unsafe.rkt:131:0: ffi-lib: could not load foreign library
path: /home/a/.racket/8.2/pkgs/rsound/rsound/private/./x86_64-linux/cs/buffer-add.so
system error: /home/a/.racket/8.2/pkgs/rsound/rsound/private/./x86_64-linux/cs/buffer-add.so: cannot open shared object file: No such file or directory
This user encountered general GC issues where DrRacket exhausted the memory of the computer with 8.1 CS on Windows, but BC seemed fine https://www.reddit.com/r/Racket/comments/nbijfh/limiting_drrackets_memory/gy8u7zr/?utm_source=reddit&utm_medium=web2x&context=3\|https://www.reddit.com/r/Racket/comments/nbijfh/limiting_drrackets_memory/gy8u7zr/?utm_source=reddit&utm_medium=web2x&context=3 ( https://github.com/racket/racket/issues/3832\|https://github.com/racket/racket/issues/3832 )
thanks. both of those look pretty minor.
actually the vg file already has a bitdepth of 16bit… so still unsure what you did with audacity to make it work
nonetheless… i need to figure out how to make this work with ogg
Yup. As long as it’s BC things ought to be okay