Commit Graph

40607 Commits

Author SHA1 Message Date
Paulo Matos
da32df2ed0 Add workflow for PR continuous integration (#2917)
Uses GitHub Actions.

Currently skips documentation, runs fewer platforms than commits to master.
2019-11-22 08:57:36 -05:00
Ross Angle
73dd32cd51 doc: show correct signatures for bound-id-set-map and bound-id-set-for-each (#2881) 2019-11-21 18:49:20 -03:00
Paulo Matos
e9670895a8
Use fetch-depth 100 for Racket checkouts (#2920)
This speeds up things considerably. No gain to be had for smaller depths. 

Thanks to @samth for the benchmarks.
2019-11-20 23:19:04 +01:00
Paulo Matos
6e63f6a99f
Initial commit to new CI system based on GitHub Actions (#2916)
Jobs to build CGC, 3m and CS separately on Linux and macOS.
2019-11-20 16:56:52 +01:00
Reuben Thomas
7e3a8c9a3b In-place build: cope with default setting of prefix
configure scripts look for and read a local configuration file given by the
environment variable CONFIG_SITE. This can set variables such as prefix.

Racket’s build system was assuming that prefix would be set to NONE unless a
--prefix command line argument was given. But it could be set by a
CONFIG_SITE configuration file instead.

Hence, for in-place build add an explicit --disable-useprefix option, to
cause any prefix setting to be ignored, and use that in the top-level
Makefile.

Regenerate the configure scripts to get the updated code.
2019-11-18 18:25:37 +01:00
Reuben Thomas
fb9a4a219d Remove erroneously checked-in unused autoconf files 2019-11-18 18:25:37 +01:00
Sam Tobin-Hochstadt
532e649bfd
Clarify embedded executable issues (#2908) 2019-11-15 21:02:20 -05:00
Paulo Matos
0fc4ce418e
Avoid automated semicolon insertion in JavaScript (#2912) 2019-11-15 14:55:12 +01:00
Matthew Flatt
ee4ceb7ae4 expnder: fix problem with nested instantiation
A use of `local-expand` and other things in a module's phase-1
instantiation could trigger a nested attempt to instantiate a module.
2019-11-14 09:18:30 -07:00
Matthew Flatt
0cd7cdaa1f repair bytes-utf-8-ref for #\xFFFF result 2019-11-13 19:33:58 -07:00
Matthew Flatt
ea7452a3ed copy MIT and Apache license files in place on install 2019-11-12 20:15:54 -07:00
Matthew Flatt
52b01ef88b racket/runtime-path: add support for 'share paths
Support include-if-exists for files in the "share" directory analogous
to the include-if-exists support for files in "lib".
2019-11-12 20:10:06 -07:00
Matthew Flatt
3192c02b80 cs: fix struct-type-make-constructor
Support the optional name argument and fix the default name.

Closes #2905
2019-11-12 14:29:06 -07:00
Matthew Flatt
1442c1860a makefile: avoid redundant CPUS parsing for some targets 2019-11-12 14:29:06 -07:00
Matthew Flatt
46a73b3d36 expose custom-{write,print-quotable}-accessor as accessor
Revert the part of 39a96dd699 that hides the provenance of these
accessors. Although exposing the fact that the predicates are for
structure properties constrains some internal representations, that
constraint seems unlikely to matter, and exposing the procedures as
property predicates is more consistent with the documentation and the
implementation (especially for Racket CS).

Closes #2904
2019-11-12 14:29:06 -07:00
Paulo Matos
b6627956b6
Improve gcc detection in configure script (#2897)
Improve gcc detection in configure script

We have been detecting gcc by the CC variable but this fails under
ubuntu for example where you might specify CC='gcc-8' to ./configure. 
Also consider clang impersonator to be gcc.

Related to #2890
2019-11-12 19:26:36 +01:00
Winny
3cb41850fa Separate GCC and GNU Make detection (#2902)
Related to #2890.

This ensures when GNU Make is `make`, the `version.mak` file is used
regardless of `CC`.
2019-11-12 10:19:19 +01:00
Matthew Flatt
19411c0dec configure: fix schver.h parsing
Related to #2890
2019-11-11 07:29:35 -06:00
Matthew Flatt
5eb04dfa9e add continuation-mark-set->iterator
Support continuation-mark inspection proportional to the amount that
needs to be inspected, instead of having to build a list of length
propotional to the size of a continuation.

In Racket CS, use iteration to improve exception-handling chaining.
Traditional Racket already used similar functonality internally.
2019-11-10 19:56:58 -06:00
Zaoqi
8aef27ccf5 reference: (unbox (box-immutable v)) returns v (#2898) 2019-11-09 21:20:54 -05:00
Matthew Flatt
913e8fba5b reference: 'cs is allowed for system-library-subpath 2019-11-08 08:41:28 -07:00
Sam Tobin-Hochstadt
11d8f5c4ce
Mention relicensing in HISTORY.txt. (#2895)
* Mention relicensing in HISTORY.txt.
2019-11-08 10:32:16 -05:00
Paulo Matos
1eb64f3961 Test all XML collection
Related to #2886 and #2887
2019-11-07 18:18:32 +01:00
Matthew Flatt
d14940d22d racket/HISTORY.txt: update for v7.5 2019-11-07 10:14:37 -07:00
Matthew Flatt
470e82a65d adjust / on complex inexact numbers
Add a special case for a real divided by a complex, and remove
(probably) misguided special cases for inexact zero real and imaginary
parts. These changes bring complex `/` further in line for Racket and
Racket CS.

Related to racket/typed-racket#868
2019-11-06 05:33:25 -07:00
Matthew Flatt
d1c65f7067 reference: repair for module->exports et al.
Update documentation for some functions that accept a module path
index in addition to a module path or resolved module path.
2019-11-05 19:49:38 -07:00
Matthew Flatt
ebd7cec834 expander: fix higher-phase variable/syntax provide tracking
The check for whether a provided identifier is syntax or a variable
cuold incorrectly inspect a module that is not yet prepared for the
relevant phase.
2019-11-05 19:36:41 -07:00
Matthew Flatt
b0e5cc8c35 build guide: fix typesetting for some flags 2019-11-05 19:36:41 -07:00
Ben Greenman
0c6f50d57d rebuild 'build.md' 2019-11-03 14:45:20 -05:00
Ben Greenman
6779995485 doc: racket-build-guide, fix small typos 2019-11-03 09:56:18 -05:00
Ben Greenman
5651b36b65 remove root CONTRIBUTING.md
There's already a file `.github/CONTRIBUTING.md`
2019-11-03 09:45:35 -05:00
Ben Greenman
3628df837a doc: partially revert eb20dc44
Bring back the exists gotcha, but not the references to the
`racket/exists' language.
2019-11-03 09:41:35 -05:00
Matthew Flatt
3f94fab01b README tweak 2019-11-03 06:13:16 -07:00
David K. Storrs
68aac8caf0 Added a 'CONTRIBUTING.md' file (#2523)
* Added a 'CONTRIBUTING.md' file

* Update CONTRIBUTING.md

Added link to blog post based on euhmeuh's suggestion

Co-Authored-By: dstorrs <david.storrs@gmail.com>

* propose shorter guide

* add link "About Pull Requests"

Add a link to a GitHub guide on pull requests (thanks to @spdegabrielle)

Remove some text & links to make the un-rendered file easier to read. The missing links are easy to find from the remaining ones.
2019-11-02 23:04:27 -04:00
Ben Greenman
d08e9134ed doc: lambda, move margin-note up, close #2863 2019-11-02 23:14:12 -04:00
Ben Greenman
fd34039c8d doc: replace keyword with argument name 2019-11-02 22:03:34 -04:00
Stephen De Gabrielle
c19e7b65cf changed get-lib-dirs to get-lib-search-dirs (#2625)
* changed get-lib-dirs to get-lib-search-dirs

@racket[get-lib-dirs] does not exist -replaced with get-lib-search-dirs
https://docs.racket-lang.org/search/index.html?q=get-lib-

https://docs.racket-lang.org/raco/dirs.html?q=get-lib-dirs#%28def._%28%28lib._setup%2Fdirs..rkt%29._get-lib-search-dirs%29%29

* Update libs.scrbl

corrected

* Update libs.scrbl

removed misconception
edited for clarity

* typo

* clarity
2019-11-02 21:41:39 -04:00
Sage Gerard
eb20dc4463 Delete racket/exists paragraph (#2873)
* Delete racket/exists paragraph

* Remove @ctc-link for exists-gotcha
2019-11-02 21:36:14 -04:00
Jay McCarthy
2edea7db0d Fix typo 2019-11-02 13:45:16 -04:00
Sorawee Porncharoenwase
73250ae23e only do it for attributes 2019-11-02 10:52:10 -04:00
Sorawee Porncharoenwase
45968e8a3c Fix #2885: convert number entity to character 2019-11-02 10:52:10 -04:00
Matthew Flatt
e8f5501e29 module->exports: add information about defined name
Include the defined name (in addition to the provided name) in the
result of `module->exports` and `module-compiled-exports` --- but for
backward compatibility, only if the new optional `verbosity` argument
is 'defined-names.
2019-10-31 19:35:29 -06:00
Sam Tobin-Hochstadt
e82c60a0e1 Use racketvalfont to avoid LaTeX problem.
Error reported by @rfindler.
2019-10-31 14:06:52 -04:00
Matthew Flatt
6073602c8e udp test: avoid 0 as TTL, because that's not always allowed by the OS 2019-10-30 10:07:24 -06:00
Jay McCarthy
87551667c9 increase timeout 2019-10-30 11:06:48 -04:00
Alex Muscar
966399dec6 Fix gen:dict methods for alists with duplicate keys (#2846)
* Fix gen:dict methods for alists with duplicate keys

This fixes https://github.com/racket/racket/issues/2803.

Note that while this works, the implementation is not particlarly fast.
Especially for iterators.

* Fix tabs

* Make code more efficient

* Fix function definition order

* Import set library

* Preserve order

* Use immutable hash sets

* Remove unused import and remove duplicate checks

* Fix syntax error
2019-10-30 11:04:40 -04:00
Matthew Flatt
5e0be0d672 update "base" version number 2019-10-29 19:23:05 -06:00
Matthew Flatt
c5a7d0e38a finish udp-ttl and udp-set-ttl!
Add tests, documentation, and fixes for rktio and Racket CS.
2019-10-29 18:34:03 -06:00
David K. Storrs
24ec75fd03 added udp-ttl and udp-set-ttl! 2019-10-29 15:35:58 -04:00
Matthew Flatt
c34538c58f cs & thread: fix sync shortcut and handle-evt
A shortcut meant to speed up `sync` on values such as semaphores
caused `handle-evt` handlers to sometimes not run in tail position.
2019-10-28 19:05:31 -06:00