Commit Graph
1052 Commits
Author SHA1 Message Date
Mats Larsen 5d1ef8bb44 move highlightjs code into utils directory (#1472)
Following a short discussion on Discord about where to locate developer tools, I suggest we collect developer utils inside a `/utils` directory at the repository root.

The idea behind this directory is taken from LLVM's utils directories in the various LLVM subprojects which host tooling such as Vim and VSCode extensions, utility scripts, and other useful bits for developers developing or using LLVM.

This patch moves the highlightjs code into said utils directory.

Let me know if there's anything else that's missing 😄

cc @jonmeow
2022-07-20 15:15:23 -04:00
FirstSS 8ed38c42f3 Fixed typo (#1473) 2022-07-20 14:55:54 -04:00
Jon Ross-Perkins 2de9e5a6ef Fix CONTRIBUTING.md minutes links (#1463)
First needs resourcekey, second doesn't, don't know why. But now I've tested both in incognito.
2022-07-20 11:41:03 -04:00
Jon Ross-Perkins 9bbfe83829 Remove dead firebase key reference (#1467) 2022-07-20 08:32:08 -07:00
Ilja van Sprundel e85282567a fix typo in QuickSort code (#1466)
Seems there were 1 too many closing round brackets when calling QuickSort.
2022-07-20 18:25:06 +03:00
Céline Dedaj c20c6cb8bf Replaced "you" by "we" (#1451)
Sounds like accusatory, and more inclusive.
2022-07-20 08:30:49 -04:00
cui fliter e8206bf4bf fix some typos (#1444)
Signed-off-by: cui fliter <imcusg@gmail.com>
2022-07-20 07:01:47 +03:00
Thomas Lively c65284b1a0 Fix memory safety link in faq.md (#1434) 2022-07-19 15:07:18 -07:00
Jon Ross-Perkins 83e4a0f98f Switch links to the correctly ACLed versions (#1432)
Fixes #1422 as noted by @laurentlb
2022-07-19 14:50:58 -07:00
Jon Ross-Perkins 59f91aa0d5 Replace README folders with proper public version (#1430) 2022-07-19 14:50:35 -07:00
Ryan Russell aa4ce80907 docs(design): improve readability (#1431)
Readability improvements focused on `docs/design/.md`

Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-07-19 17:45:45 -04:00
Jon Ross-Perkins 1d3779791d Pass relative link to ln (#1427) 2022-07-19 17:00:30 -04:00
Matt Godbolt eeb91cb044 Update FAQ to point at compiler explorer instance. (#1429) 2022-07-19 16:14:11 -04:00
Dan Sarginson 15845b1d03 Update README.md reference with an existing file (#1421)
README.md references print.carbon, which doesn't seem to exist
in the repo. How about this Hello World file?
2022-07-19 16:13:38 -04:00
Laurent Le Brun d87d58aa52 Spec: Fix link to the Explorer tool (#1420) 2022-07-19 13:50:47 -04:00
Laurent Le Brun 9a370994b5 FAQ: Update link to the Discord server (#1419) 2022-07-19 13:30:01 -04:00
Jon Ross-Perkins 31c3953a5f Orient README around Print (#1409) historical/public-announcement 2022-07-19 06:17:46 -04:00
Chandler CarruthandJon Ross-Perkins 1ece2131aa Add two sections to improve the CoC. (#1410)
One is a really basic version of the weapons policy used by many
conferences and events in the tech space.

The other is trying to expand on a sentence to make the nature of how we
will handle these difficult cases.

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
2022-07-18 20:30:30 -07:00
Richard Smith e9133b7389 Add explicit note about changes to the CoC team (#1412)
If the CoC team changes, new people don't get to see existing complaints / reports.
2022-07-18 16:46:09 -04:00
Jon Ross-PerkinsandGeoff Romer c97b21a371 Improve Print error message to not say intrinsic_print (#1408)
Co-authored-by: Geoff Romer <gromer@google.com>
2022-07-18 16:22:04 -04:00
Jon Ross-Perkins 084bc6ebc1 Restructure __intrinsic_print to be a keyword-like Print (#1407) 2022-07-18 13:58:08 -04:00
4296e1e780 Give explicit ways to report conduct issues. (#1401)
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
2022-07-18 11:10:05 -04:00
c867b38334 Create a FAQ for Carbon (#1385)
Trying to collect together answers for various project questions we've received in previews.

@gribozavr @danakj and @hlopko contributed most of the Rust FAQ entry.

Co-authored-by: Dmitri Gribenko <dmitrig@google.com>
Co-authored-by: Dana Jansens <danakj@google.com>
Co-authored-by: Marcel Hlopko <hlopko@google.com>
Co-authored-by: josh11b <josh11b@users.noreply.github.com>
Co-authored-by: Geoff Romer <gromer@google.com>
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
2022-07-18 11:08:17 -04:00
Jon Ross-Perkins a41915b5af Support basic int printing (#1405)
We don't have overload resolution, so I've simply added PrintInt for now. But it's really tempting to turn __intrinsic_print into a total kludge function.
2022-07-17 23:35:44 -04:00
Jon Ross-Perkins 770376bd6e Print the result to stdout even when trace_file is set. (#1406) 2022-07-17 22:56:56 -04:00
Matt Godbolt dab4f56e4e Use the same shell as invoked with for installation. (#1403)
Fixes #1402
2022-07-17 10:16:47 -07:00
Jon Ross-Perkins 142a48e204 rm CODEOWNERS (#1399)
Versus #1367 which approved this in principle, this is the actual removal (I've updated write permissions in GH now).
2022-07-15 18:40:57 -07:00
Jon Ross-Perkins 7d253dc08d Fix assign action in use (#1400)
I accidentally put in one I'd considered, instead of the one I'd decided was probably the best fit, and the names are so similar I didn't notice.

NOTE: This still isn't totally working, but I think it will when we go public.
2022-07-15 17:20:46 -07:00
8dd878b314 Remove CODEOWNERS (#1367)
Remove CODEOWNERS and rely on repository commit access

Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
Co-authored-by: Geoff Romer <gromer@google.com>
2022-07-15 15:31:56 -07:00
Jon Ross-Perkins 6c291ba00d Update README/CONTRIBUTING for go-public access rules (#1390) 2022-07-15 15:06:06 -07:00
53053e5959 Design overview update part 7: values (#1378)
This follows #1274 , #1325 , #1328 , #1336 , #1347 , and #1368 . This fills in details about how values work, value categories, parameter passing, unformed state, and so on.

Co-authored-by: Geoff Romer <gromer@google.com>
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
2022-07-15 14:42:39 -07:00
josh11b 9863cb98bb Make C++ import syntax match what we've been using in examples (#1397) 2022-07-15 13:47:37 -07:00
pk19604014 9f90fa3633 Added a patch with a fuzzer Bazel BUILD file and updated fuzz_test rule to use the new @llvm-project//compiler-rt:FuzzerMain
Fixes #1208 (_LIBCPP_DEBUG crash)

Fully bazel-ifying compiler-rt is more complex than I originally thought, due to dependencies on other llvm projects like libcxx which currently also don't have bazel build support -- https://github.com/carbon-language/carbon-lang/issues/1208#issuecomment-1171555971
2022-07-15 09:14:30 -04:00
Richard SmithandJon Ross-Perkins 663ed32b1b Initial support for associated constants (#1376)
Basic support for declaring, specifying the values of, and using associated constants.

This is incomplete in various ways. For example, when checking whether a type satisfies a constraint, there is no check that its associated constants match those in the constraint, and name lookup into a value whose type is an associated constant is not supported yet.

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
2022-07-14 18:18:27 -07:00
Geoff Romer 4c90b4928e Update discussion of trace flag in README (#1386) 2022-07-14 16:43:18 -07:00
Céline Dedajandjonmeow 2cdad27d94 Deleted "uncomfortable", left "threatened" (#1389)
Some discomfort is required for us to grow as people as well as a community. Requesting to not make people feel "discomfort" may be weaponized against people seeking help from the CoC team.
So, I deleted "uncomfortable and" from "uncomfortable and threatened". Not making people "threatened" suffices.
Please see this document for more background information: [CLP CoC review July 2022](https://docs.google.com/document/d/1XzHMymzn3hxdlnaI44iukT24fy1MdwTXdebhzT45bCI/edit?usp=sharing)

Co-authored-by: jonmeow <jperkins@google.com>
2022-07-14 14:04:23 -07:00
josh11b eed666f0d4 Fix interface extends syntax (#1383) 2022-07-12 10:14:32 -07:00
josh11b 16f9d82541 Fix binding syntax to be id: Type (#1381) 2022-07-12 10:14:11 -07:00
Hana DusíkováandChandler Carruth e96dbcb7b4 fix: highlight.js didn't properly show comments inside classes (#1380)
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
2022-07-12 01:22:35 -07:00
Chandler Carruth b4d4f5423d [highlightjs] Add virtual method keywords. (#1377)
This also tidies up the keyword detection for classes a bit so we won't
highlight bizarre things like `allyourbase class`, or `base classy` etc.
2022-07-10 00:05:51 -07:00
Chandler Carruth 0ed6600615 [highlightjs] Add struct literal support. (#1370)
This is especially tricky, as there doesn't seem to be support for
indirect recursion, only direct recursion. As a consequence, its
important to have a single recursive pattern that handles all the
balanced delimiters in an expression context.

I've tried to add some comments to help explain this.

I also tried to add something to check that the balanced delimiters
*matched* and re-synchronize if they don't, but that didn't end up
working. I also tried various things to force re-synchronizing more
rapidly in the face of unbalanced delimiters but they all produced
strictly worse highlighting than what I have here. I will try again in
a follow-up commit, but for now this will work well enough for slides.
2022-07-09 20:05:38 -07:00
Chandler Carruthandjosh11b e2c5a7ef68 [highlightjs] Add support for var and let. (#1366)
This required reworking how `=` and `;` were handled as well as more
general surgery on patterns.

This looks for initializers at the top level of parameters and at the
end of `var` or `let` declarations. It supports fancy nested `var`
patterns within `let` declarations, etc.

Co-authored-by: josh11b <josh11b@users.noreply.github.com>
2022-07-09 19:40:09 -07:00
Céline Dedajandjonmeow 22743976a8 Replaced "good intent" with our "learning journey" (#1375)
Asking people to “assume good intent” may be weaponized against people seeking help from the CoC team.
So, I replaced instances in which we mentioned we'd expect "positivity" with the more accurate and less risky "constructivity".
Please see this document for more background information: CLP CoC review July 2022

Co-authored-by: jonmeow <jperkins@google.com>
2022-07-08 15:04:08 -07:00
Céline Dedajandjonmeow c5bca42e73 Replaced "positive" with "constructive" (#1374)
Asking people to be “positive” is preventing us from creating psychological safety in our community. It may be weaponized against people seeking help from the CoC team.
So, I replaced instances in which we mentioned we'd expect "positivity" with the more accurate and less risky "constructivity".
Please see this document for more background information: https://docs.google.com/document/d/1XzHMymzn3hxdlnaI44iukT24fy1MdwTXdebhzT45bCI/edit?usp=sharing

Co-authored-by: jonmeow <jperkins@google.com>
2022-07-08 14:57:01 -07:00
Céline Dedajandjonmeow f0ee96d6f5 Replaced "respectful" with "kind" (#1373)
Asking people to be “respectful” can be considered “tone policing” and may be weaponized against people seeking help from the CoC team.
So, I replaced instances in which we stated that we'd expect "respect" with the more encompassing and less risky "kindness".
Please see this document for more background information: https://docs.google.com/document/d/1XzHMymzn3hxdlnaI44iukT24fy1MdwTXdebhzT45bCI/edit?usp=sharing

Co-authored-by: jonmeow <jperkins@google.com>
2022-07-08 14:56:28 -07:00
Céline Dedaj 5fbbc2ad97 Corrected definition of "doxing" (#1372)
Replaced "Posting, or threatening to post, other people’s personally identifying information ("doxing") without their explicit permission." 
by "Posting, or threatening to post, other people’s personally identifying information without their explicit permission ("doxing")."
2022-07-08 09:20:18 -07:00
Chandler Carruthandjosh11b 1f075a1348 Add a language definition for highlight.js. (#1365)
There are still quite a few parts of the language that need support
here, but I've tried to piece together a decent foundation and address
some of the particular challenges with building a good framework that
handles some of the complex parts of the grammar such as successfully
identifying the declared names in even reasonably complex patterns.

I've included a pretty ad-hoc test file I've been using to make sure it
works. If folks want a particular testing strategy for this, happy to
explore building one although I don't really know what it should look
like.

Also happy to have suggestions about where this should live in the
repository. No strong opinions there. Hoping to eventually add
a `tmLanguage` file and any other syntax highlighting systems that are
useful.

I'll next be finishing off other parts of the language, and then I plan
to use this as a component of our presentation material, which is why
I'm focused on Highlight.js -- that's the system used most widely in
HTML-based presentation infrastructure like Reveal.js.

Co-authored-by: josh11b <josh11b@users.noreply.github.com>
2022-07-07 23:20:29 -07:00
josh11bandJon Ross-Perkins 77df7c56d9 Design overview update part 6 (#1368)
This follows #1274 , #1325 , #1328 , #1336 , and #1347 . This has miscellaneous changes to the design overview without a particular focus.

Also adds some missing keywords to our list of keywords.

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
2022-07-07 22:05:41 -07:00
5535f5ee30 Design overview update part 5: Names (#1347)
This follows #1274 , #1325 , #1328 , and #1336 . It fills in the "Names" section.

Co-authored-by: Richard Smith <richard@metafoo.co.uk>
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
2022-07-06 16:57:25 -07:00
Richard SmithandJon Ross-Perkins 3603db0a08 Give a different diagnostic if a name is used before it's declared. (#1364)
Instead of complaining that the name is not completely declared, say it's not
declared at all yet.

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
2022-07-06 14:54:14 -07:00