@mark.warren has joined the channel
@xizhao can you say more about the code? What errors are you getting? What functions changed? Is the code written with modules?
In general code should still work
@pocmatos has joined the channel
@joslarki has joined the channel
@samth hi Sam, thanks for replying. When I run the scheme code, I got different unbound identifier errors. For example, “dynaload” is commonly used in the scheme code, but I search through the Racket documentation and cannot find “dynaload” but found “dynamic-require” which I assume function same as dynaload. And some required module cannot be found like http://lambda.ss\|lambda.ss.
@xizhao I think you can download older versions of drracket and then you’ll wind up with local documentation for that version.
@xizhao while @zenspider is correct about downloading old versions (see http://download.plt-scheme.org/drscheme/) I don’t think there was ever a version with a dynaload
function, for example
can you share some of the code that you’re trying to get working, and where you got it from?
That latter part kinda sounds more like load path issues. Also ".ss" files sound suspect
Well, .ss
just indicate pre-Racket renaming
aaah. ok. THAT old. :stuck_out_tongue:
The code I got is from a research project called Pad++ from late 90s. It use scheme to interact with C++ api. A block of code is like
@xizhao ok, that’s even older than I guessed. However, I don’t think dynaload came with DrScheme even at that time — my guess is that it’s part of the library you have
also, the pad++ source code that I found on the web doesn’t have any scheme code that I can find
Oh I think for pad++ used to use tcl/tk and later on transfer to drscheme
ok, their website didn’t have that code then
Yeah the website hasn’t been updated for a while. I have a question about those modules like ’http://lambdas.ss\|lambdas.ss’. I suppose they are from DrScheme library. Do you know how can I find matching libraries in racket?
I don’t see any reason to think those are from DrScheme, rather than part of the code that Pad++ wrote
it really depends what http://dynaload.ss\|dynaload.ss does, but that also appears to be in the “src/misc” directory there
Oh ok I’ll try to find the missing pieces of code. Thanks for your help.
things that use lib
like the first line there are more likely to be part of the standard library
I see. Thanks Sam.
Hi I have a question about figure out the path to load collection. I added current-directory/collects to the current-library-collection-paths. When I print it out it shows it is added. However when I run the program through GUI, from error message it seems like current-directory/collects is not added inside. The lib is inside current-directory/collects/misc.
The code looks like this
and error message is standard-module-name-resolver: collection not found for module path: (lib “http://pathhack.ss\|pathhack.ss” “misc”) collection: “misc” in collection directories: /Users/Steve/Library/Racket/6.12/collects /Applications/Racket v6.12/collects … [163 additional linked and package directories] in: (lib “http://pathhack.ss\|pathhack.ss” “misc”)
Is there anything I did run? Thanks!