profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/bitjammer/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

bitjammer/SnippetTest 1

An example Swift package to show how to use the initial version of Swift Snippets

bitjammer/dither 0

A small program written in C showing implementations of common image dithering algorithms.

bitjammer/GamingMonstersGameBoySampleCode 0

Sample code to accompany our GameBoy development C GBDK youtube series https://www.youtube.com/playlist?list=PLeEj4c2zF7PaFv5MPYhNAkBGrkx4iPGJo

bitjammer/llvm-project 0

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Apple’s stable releases of Clang as well as support the Swift project.

bitjammer/swift 0

The Swift Programming Language

bitjammer/swift-cmark 0

CommonMark parsing and rendering library and program in C

bitjammer/swift-driver 0

Swift compiler driver reimplementation in Swift

bitjammer/swift-package-manager 0

The Package Manager for the Swift Programming Language

delete branch bitjammer/swift-driver

delete branch : acgarland/help-intro

delete time in 4 days

push eventapple/swift-driver

Ashley Garland

commit sha 2fab30d8bcc7c7d2234d77ca7e73f948a594d313

Add help intro Add an "intro" topic to swift-help, printing the version, welcome message, and available subcommands. When running `swift` by itself, show the intro before entering the REPL. When running `swift-help` directly or via `swift --help`, show all of the available flags as previously. rdar://78280423

view details

AG

commit sha c5f11e5778579d12ab6dc0dcf11fec4ea525ef17

Merge pull request #772 from bitjammer/acgarland/help-intro Add help intro

view details

push time in 4 days

PR merged apple/swift-driver

Add help intro

Note: This PR is for a pitch discussion and building a test toolchain. Please don't merge this – thanks!

Add an "intro" topic to swift-help, printing the version, welcome message, and available subcommands.

When running swift by itself, show the intro before entering the REPL.

When running swift-help directly or via swift --help, show all of the available flags as previously.

rdar://78280423

More context: https://forums.swift.org/t/command-line-ux-enhancements-for-swift/50670

+169 -35

15 comments

9 changed files

bitjammer

pr closed time in 4 days

pull request commentapple/swift-driver

Add help intro

@swift-ci Please test

bitjammer

comment created time in 8 days

pull request commentapple/swift-driver

Add help intro

Looks like an unrelated assertion failure, will try again in a little while.

bitjammer

comment created time in 9 days

push eventbitjammer/swift-driver

Alexis Laferrière

commit sha 74aee03d4f8c2276ef32c2feb05dc1abbca547d6

Make emit-module-separately the default incremental build mode Making emit-module-separately the default build mode will make incremental build more reliable. This mode build the module files in a distinct job that only parses the module API and doesn't use the merge-module phase. rdar://77225764

view details

Alexis Laferrière

commit sha 21bd47dd3f87f1583d638d288a9d14cfd914e168

[Tests] Update tests for emit-module-separately by default

view details

Alexis Laferrière

commit sha bcea5d44ad12da56969a36b1d50c46476ae7b8f7

Remove prints from SwiftDriverTests that were appearing at the end of the logs

view details

Artem Chikin

commit sha 173b1bba70ec2fddecfc71d24d68bcc8cd12c0f2

[Explicit Module Builds] Use Clang dependencys' `contextHash` as part of its filename-encoded hash

view details

Alexis Laferrière

commit sha b18f7c01f5b63f0a3ca89c1a6c3395a4777ab10e

Don't emit-module for calls with non-swift source files as inputs

view details

Alexis Laferrière

commit sha b12b94ebeade6aa2920668b8896cc49cc999d7a3

Accept SIL files as inputs for emit-module-separately

view details

Keith Smiley

commit sha 5f70c175067c34574c638d1dcc3641215990708e

Improve testFileMapMissingMainEntryWMO I realized this test would pass even if the WMO arg was removed, which would negate the positive case. Now if that happens we fall back to -incremental and get the expected warning.

view details

Alexis Laferrière

commit sha 582e81a2bf40796024ac0f63dbe8ac328e6b8400

Pass along the symbol-graph flags with emit-module

view details

Artem Chikin

commit sha 1365c86e6d40152cc3a4bf86089f204bad85eb6d

Merge pull request #825 from artemcm/SoundExplicitDependencyPCMHash [Explicit Module Builds] Use Clang dependencies' `contextHash` as partof its filename-encoded hash

view details

Alexis Laferrière

commit sha af42b87d382874626f35463a41db1225ac70dda0

Merge pull request #730 from xymus/emit-module-default Make emit-module-separately the default incremental build mode

view details

Robert Widmann

commit sha 757daa52e053dbbe0dded124b78198aa926f370e

[Gardening] Remove and Reformat Foundation Imports Foundation is imported by default in the template Swift files Xcode generates, but it's strictly not necessary in most cases.

view details

Xi Ge

commit sha 687e70b64b27859483cd0901bffc3b0d7e01dea3

Teach driver to locate the scanner library when the compiler is invoked from the build dir

view details

Xi Ge

commit sha 74125707967367d2b8591ad3add436234c7c5bcb

Merge pull request #831 from nkcsgexi/find-scanner-lib Teach driver to locate the scanner library when the compiler is invoked from the build dir

view details

Doug Gregor

commit sha c7b4a999692731f305c3c54bdb81db357db8ee04

Pass through new argument -disable-autolinking-runtime-compatibility-concurrency

view details

Robert Widmann

commit sha 2a62a7550268b7f0fdb7483112f68f5ef7b0c0c5

Merge pull request #830 from CodaFi/import-what-you-use [Gardening] Remove and Reformat Foundation Imports

view details

Robert Widmann

commit sha 9ca3734f969d69e8e3b841047bbb188be5f58eb0

Merge pull request #829 from keith/ks/improve-testfilemapmissingmainentrywmo Improve testFileMapMissingMainEntryWMO

view details

Doug Gregor

commit sha 39f483f633e63a546c1fca049c2d32f795e0b44b

Merge pull request #834 from DougGregor/disable-autolink-concurrency Pass through new argument -disable-autolinking-runtime-compatibility-concurrency

view details

Xi Ge

commit sha 6224f1b11ba5477070ad8cb2c0835fcb6805f5fd

Pass-down -prebuilt-module-cache-dir when targetting at macCatalyst All prebuilt modules are emitted into SDK-versioned subdirs. When targetting at macCatalyst, the value from -target-sdk-version doesn't match the actual SDK version because the SDK under used is a macosx SDK. This patch computes the prebuilt module cache path and passes it down directly to the compiler invocation. rdar://82464316

view details

Artem Chikin

commit sha a00191f8806ffef1b83f4d4076825e894fed67b3

[Gardening] Remove some extraneous warnings during build

view details

Xi Ge

commit sha 4f5f75d8357fd31b4fd647ed920180dff8045b70

Merge pull request #835 from nkcsgexi/82464316

view details

push time in 9 days

pull request commentapple/swift-driver

Add help intro

@swift-ci Please test

bitjammer

comment created time in 9 days

push eventbitjammer/swift-driver

Ashley Garland

commit sha b7e719ec411aea7f56d1683b5c2a9273e048df26

Add help intro Add an "intro" topic to swift-help, printing the version, welcome message, and available subcommands. When running `swift` by itself, show the intro before entering the REPL. When running `swift-help` directly or via `swift --help`, show all of the available flags as previously. rdar://78280423

view details

push time in 9 days

Pull request review commentapple/swift-driver

Add help intro

 def handle_invocation(args):     print('Cleaning ' + args.build_path)     shutil.rmtree(args.build_path, ignore_errors=True)   elif args.action == 'test':+    print("Files in toolchain bin dir '{}'".format(toolchain_bin))

Ah, nope; removed, thanks!

bitjammer

comment created time in 9 days

PullRequestReviewEvent

pull request commentapple/swift-driver

Add help intro

@swift-ci Please test

bitjammer

comment created time in 15 days

push eventbitjammer/swift-driver

Keith Smiley

commit sha a75096bab34a30f4896a002797b74e23421274e8

Disable output file map diagnostic for non-incremental mode This re-implements this logic https://github.com/apple/swift/blob/3116eed2e465a2688f070b3b87adc106cbbaf09f/lib/Driver/Driver.cpp#L414-L417 to not warn when output file maps don't have a main entry when using WMO

view details

Alexis Laferrière

commit sha 222685514295475b0e1b7638b89879d67f5a3d8b

[Tests] Make tests more resilient to a change in the jobs order

view details

Alexis Laferrière

commit sha 6a966484e280de6a85c1c5352886d1b76df0e2a5

[Tests] Force the use of merge-module in merge-module tests

view details

Alexis Laferrière

commit sha 538edad84b8b82ce08a7f65320583ed079b7921a

[Tests] Tests expecting compile jobs shouldn't use -emit-module With emit-module-separately by default the compiler no longer use compile jobs for -emit-module.

view details

Alexis Laferrière

commit sha f6d723d46dce61326f14cbbd051d78f857105a45

Feed the emit-module swiftmodule output to the linker The linker uses the swiftmodule file generated by the emit-module job.

view details

Alexis Laferrière

commit sha 4cc0b079eaa77698f0cb2c3e602d48f2b87cd096

Skip dep and dia files with emit module when there's a full build scheduled This prevents generating duplicate files and feeding duplicated diagnostics to Xcode.

view details

Alexis Laferrière

commit sha cc8954ee30367a6053ab2f296b9929bd02cd55d2

[Tests] Update testDOTFileEmission for emit-module-separately

view details

Alexis Laferrière

commit sha 17a1f92a3ffe95a48bef20f35998fda373536041

Merge pull request #790 from xymus/cleanup-emit-module Cleanup to prepare for emit-module-separately by default

view details

Xi Ge

commit sha 33177f7ce84e8e4163d99a45a1df1959b8ea857c

Put default interface verifier behind an env var Without setting this variable, we won't enable module interface verifier unless explicitly asked to.

view details

Xi Ge

commit sha 4662a4a06a179969310c92efc4a183ba5c08464b

Merge pull request #791 from nkcsgexi/default-interface-verifier-env Put default interface verifier behind an env var

view details

Xi Ge

commit sha 402cb6145cb7c420e6768bd60d3152ed41a3faf3

PrebuiltModuleGen: generate per-interface log files This is the behavior of swift_build_sdk_interfaces.py and we should do the same in the new implementation.

view details

Xi Ge

commit sha 2c6ef7fade2d1fd60a7303dcdb9b66dc4c409e0d

Merge pull request #792 from nkcsgexi/log-per-interface PrebuiltModuleGen: generate per-interface log files

view details

Owen Voorhees

commit sha f7c7ed71a450ef92d9f455918bfc6d2524e79de3

Replace lenient version parsing implementation with the one in TSC

view details

Xi Ge

commit sha 16ac1b7ebd89128f20dc97355148061061d79835

PrebuiltModuleGen: allow passing down SDK path via -sdk

view details

Xi Ge

commit sha c3cc6de8fc2cd6679138ac2aaab90e8de3570742

Merge pull request #796 from nkcsgexi/prebuilt-sdk PrebuiltModuleGen: allow passing down SDK path via -sdk

view details

Artem Chikin

commit sha 5bb3c8af23f5767bce1b8bb0aaef31655308e520

Fix `guard let sdkPath = sdkPath` pattern for compatiblity with older compilers Introduced in https://github.com/apple/swift-driver/pull/796, this passed CI because swift-driver CI uses a recent compiler. This broke SwiftPM CI because it uses a 5.3 compiler which contains a bug which makes such patterns fail to build.

view details

Artem Chikin

commit sha 71b1a5399f5a0402c8174fda6faabe4721945c21

Merge pull request #797 from artemcm/FixPatternOldCompilerCompat Fix `guard let sdkPath = sdkPath` pattern for compatiblity with older compilers

view details

David Ungar

commit sha ceab9e4d294442bd20f3c1183851dba540db695b

Add SwiftSourceFile type

view details

David Ungar

commit sha c8c72b9409a79258f6688ce32df410922cb44a45

Merge pull request #799 from davidungar/add-source-file-type [Incremental] Add SwiftSourceFile type

view details

Owen Voorhees

commit sha 2954fad44a4b884138efbb1da1822551bf690b24

Merge pull request #794 from apple/version-cleanup-2 Replace lenient version parsing implementation with the one in TSC

view details

push time in 15 days

pull request commentapple/llvm-project

[lldb] Change some Swift REPL intro text

@swift-ci Please test

bitjammer

comment created time in 15 days

push eventbitjammer/llvm-project

Ashley Garland

commit sha fdc6cc4f4368cc7e069e2f6e0b8a8dca05d4acbc

Change some Swift REPL intro text Print a "starting up" message as it might take a long time for everything to load, especially with cold module caches. Clarify that :help is for help with debugger commands, not the Swift language. Tell people how to exit in case they don't know the EOF escape. Remove the version print as that will be now be handled with the `swift` command.

view details

push time in 15 days

pull request commentapple/swift-driver

Add help intro

@artemcm Aside from the conflict, does this look okay to you?

bitjammer

comment created time in 15 days

delete branch bitjammer/swift-package-manager

delete branch : acgarland/snippets-rename-main

delete time in 15 days

push eventapple/swift-package-manager

AG

commit sha ae2b052392a7fa6ccc01d0daec2e6fde1c61923c

Rename _main symbol when linking snippets (#3732) Snippets are also a kind of executable, so need the same _main aliasing logic that executables have.

view details

push time in 15 days

PR merged apple/swift-package-manager

Reviewers
Rename _main symbol when linking snippets

Snippets are also a kind of executable, so need the same _main aliasing logic that executables have.

+2 -1

1 comment

1 changed file

bitjammer

pr closed time in 15 days

pull request commentapple/swift-package-manager

Rename _main symbol when linking snippets

@swift-ci Please smoke test

bitjammer

comment created time in 15 days

PR opened apple/swift-package-manager

Reviewers
Rename _main symbol when linking snippets

Snippets are also a kind of executable, so need the same _main aliasing logic that executables have.

+2 -1

0 comment

1 changed file

pr created time in 15 days

create barnchbitjammer/swift-package-manager

branch : acgarland/snippets-rename-main

created branch time in 15 days

push eventbitjammer/TestKit

Ashley Garland

commit sha aea6e9e3536558235847e90e955edbb1cb93868c

Initial commit

view details

push time in 15 days

create barnchbitjammer/TestKit

branch : main

created branch time in 16 days

created repositorybitjammer/TestKit

An example Swift package to show how to use the initial version of Swift Snippets

created time in 16 days

delete branch bitjammer/swift-package-manager

delete branch : acgarland/snippets

delete time in 22 days

push eventapple/swift-package-manager

AG

commit sha a0ffd92a2c80f2c4677d696e248f4cfbec9d6540

Introduce the `snippet` target type (#3694) Snippets are small, focused pieces of example code for packages. They are meant for current and potential package clients to read and try when exploring a package. Snippets build with the rest of a package so they don't get stale and can run as an executable target with hidden "demo code" to illustrate and prove that the snippets work (this does not mean that snippets are tests!). Summary of changes: - Add a `.snippet` product and target type - Add the `Snippet` and `SnippetGroup` model to PackageModel - When building a package in `PackageBuilder`, look for snippets in the `Snippets` subdirectory. - Add the "card stack" terminal UIs for browsing a package's snippets - "Top" card: The top level menu that displays products and snippet groups - "Snippet Group" card: The menu that shows the snippets in a group - "Snippet" card: Displays a snippet's presentation code and offers to build and run the snippet.

view details

push time in 22 days

PR merged apple/swift-package-manager

Reviewers
Introduce the `snippet` target type

Snippets are small, focused pieces of example code for packages. They are meant for current and potential package clients to read and try when exploring a package.

Snippets build with the rest of a package so they don't get stale and can run as an executable target with hidden "demo code" to illustrate and prove that the snippets work (this does not mean that snippets are tests!).

Summary of changes:

  • Add a .snippet product and target type
  • Add the Snippet and SnippetGroup model to PackageModel
  • When building a package in PackageBuilder, look for snippets in the Snippets subdirectory.
  • Add the "card stack" terminal UIs for browsing a package's snippets
    • "Top" card: The top level menu that displays products and snippet groups
    • "Snippet Group" card: The menu that shows the snippets in a group
    • "Snippet" card: Displays a snippet's presentation code and offers to build and run the snippet.

[One line description of your change]

Motivation:

[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]

Modifications:

[Describe the modifications you've done.]

Result:

[After your change, what will change.]

+1289 -28

6 comments

28 changed files

bitjammer

pr closed time in 22 days

Pull request review commentapple/swift-package-manager

Introduce the `snippet` target type

+/*

I was thinking the same thing actually. Before committing to that, what do you say we keep it here for now while we refine it some more? I think it will probably change a bit in the coming months.

bitjammer

comment created time in 22 days

PullRequestReviewEvent

pull request commentapple/swift-package-manager

Introduce the `snippet` target type

@swift-ci please smoke test

bitjammer

comment created time in 23 days