[racket-users] Porting Racket to IRIX

2020-01-25 Thread Eric Dodd
I'm working on porting Racket to IRIX. With a few minor patches, it compiles 
cleanly. However, it fails on `make install` with the following error:

racket/racketcgc -L debug -X "/usr/people/edodd/local/share/racket/collects" -G 
"/usr/people/edodd/local/etc/racket"--no-user-path -N "raco" -l- setup 
--no-user
getenv: contract violation
  expected: string-environment-variable-name?
  given: #f
  context...:
   /usr/people/edodd/local/share/racket/collects/racket/private/misc.rkt:202:2: 
getenv
   /usr/people/edodd/local/share/racket/collects/openssl/mzssl.rkt:374:0: 
x509-root-sources

IRIX is missing `setenv` and `unsetenv`. I added those in with a patch as seen 
here: https://gist.github.com/unxmaal/bc996e78e9f422d6e277e0b4a0003cf5


With debug logging on, I see this:

compiler/cm: done: 
/usr/people/edodd/local/share/racket/collects/openssl/libcrypto.rkt
ffi-lib: loaded "libcrypto.so"
compiler/cm: processing: 
/usr/people/edodd/local/share/racket/collects/openssl/libssl.rkt
compiler/cm: done: 
/usr/people/edodd/local/share/racket/collects/openssl/libssl.rkt
ffi-lib: loaded "libssl.so"
getenv: contract violation
  expected: string-environment-variable-name?
  given: #f
  context...:
   /usr/people/edodd/local/share/racket/collects/racket/private/misc.rkt:202:2: 
getenv
   /usr/people/edodd/local/share/racket/collects/openssl/mzssl.rkt:374:0: 
x509-root-sources

In mzssl.rkt, x509-root-sources(), it seems to handle finding openssl. Mine is 
located in a non-standard location. How do I pass this location in properly?

Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/7fff94d1-1fb6-4738-a717-c0f967972bbe%40googlegroups.com.


[racket-users] resources for learning JS / React?

2020-01-25 Thread 'John Clements' via users-redirect
I have a graduate student that wants a self-guided introduction to JS and 
React. The problem here, to some degree, is that there are so *many* 
introductions. Does anyone here have specific references that might be helpful? 
(Say, e.g., if Gregor Kiczales did a JS course on coursera… that would be 
pretty much perfect.)

John

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/4b0bae35-f14d-42b6-a3fb-b6a116da836a%40mtasv.net.


Re: [racket-users] Strange error in racket 7.5

2020-01-25 Thread Gustavo Massaccesi
It is an internal function of the math package
https://github.com/racket/math/blob/cdc64390f1e7b75de9575a91f0ec3a31f7878530/math-lib/math/private/bigfloat/mpfr.rkt#L587that
is used to show bigfloats.

I can't reproduce the error in Windows, but it doesn't look like an error
that is platform dependent. Are you running this in DrRacket or in the
command line? Any unusual configuration?

Is the code available? Can you send a minimized example? Try to remove as
much as you can (including all the secret sauce if it is an internal
project). Any example that shows the error would be very helpful, but if
you can reduce the example to a hundred of lines it would be nice. And
shorter examples are better, even if the code makes no sense.

Gustavo


On Sat, Jan 25, 2020 at 9:34 AM greadey  wrote:

> Hi there,
>
> I am running racket 7.5 on GhostBSD 20.01, I am getting a strange error
> running a file which previously ran OK on FreeBSD 12.
>
> ../../../../local/share/racket/collects/racket/pretty.rkt:478:8:
> bigfloat-custom-write: undefined;
>  cannot reference an identifier before its definition.
>
> What I cannot understand is that big-float-custom-write is not listed in
> the documentation.  Does anyone have any ideas what might be causing this?
>
> Cheers,
>
> greadey
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/37641b85-9d6b-4d29-9f35-bb35e99c5c99%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAPaha9M1qKcFcRh_eegRb4hyikm45Kzsm2MRRMgJCnK5xePbOA%40mail.gmail.com.


[racket-users] Strange error in racket 7.5

2020-01-25 Thread greadey
Hi there,

I am running racket 7.5 on GhostBSD 20.01, I am getting a strange error 
running a file which previously ran OK on FreeBSD 12.

../../../../local/share/racket/collects/racket/pretty.rkt:478:8: 
bigfloat-custom-write: undefined;
 cannot reference an identifier before its definition.

What I cannot understand is that big-float-custom-write is not listed in 
the documentation.  Does anyone have any ideas what might be causing this?

Cheers,

greadey

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/37641b85-9d6b-4d29-9f35-bb35e99c5c99%40googlegroups.com.