mark.warren
2018-5-16 08:13:26

@mark.warren has joined the channel


samth
2018-5-16 11:53:18

@xizhao can you say more about the code? What errors are you getting? What functions changed? Is the code written with modules?


samth
2018-5-16 11:53:33

In general code should still work


pocmatos
2018-5-16 18:17:30

@pocmatos has joined the channel


joslarki
2018-5-16 19:30:52

@joslarki has joined the channel


xizhao
2018-5-16 20:36:23

@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.


zenspider
2018-5-16 20:37:17

@xizhao I think you can download older versions of drracket and then you’ll wind up with local documentation for that version.


samth
2018-5-16 20:42:21

@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


samth
2018-5-16 20:42:43

can you share some of the code that you’re trying to get working, and where you got it from?


zenspider
2018-5-16 20:44:06

That latter part kinda sounds more like load path issues. Also ".ss" files sound suspect


samth
2018-5-16 20:45:36

Well, .ss just indicate pre-Racket renaming


zenspider
2018-5-16 20:46:13

aaah. ok. THAT old. :stuck_out_tongue:


xizhao
2018-5-16 20:49:03

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


samth
2018-5-16 20:55:39

@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


samth
2018-5-16 20:58:01

also, the pad++ source code that I found on the web doesn’t have any scheme code that I can find


xizhao
2018-5-16 20:59:38

Oh I think for pad++ used to use tcl/tk and later on transfer to drscheme


samth
2018-5-16 21:00:00

ok, their website didn’t have that code then


xizhao
2018-5-16 21:02:47

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?


samth
2018-5-16 21:03:34

I don’t see any reason to think those are from DrScheme, rather than part of the code that Pad++ wrote


samth
2018-5-16 21:04:00

it really depends what http://dynaload.ss\|dynaload.ss does, but that also appears to be in the “src/misc” directory there


xizhao
2018-5-16 21:05:24

Oh ok I’ll try to find the missing pieces of code. Thanks for your help.


samth
2018-5-16 21:06:31

things that use lib like the first line there are more likely to be part of the standard library


xizhao
2018-5-16 21:09:44

I see. Thanks Sam.


xizhao
2018-5-17 05:20:13

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.


xizhao
2018-5-17 05:20:41

The code looks like this


xizhao
2018-5-17 05:21:00

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”)


xizhao
2018-5-17 05:21:38

Is there anything I did run? Thanks!