├── .gitignore ├── LICENSE ├── README.md ├── ht.c ├── nob.c ├── nob.h ├── shakespear-smol-double.txt ├── shakespear-smol.txt └── t8.shakespeare.txt /.gitignore: -------------------------------------------------------------------------------- 1 | ht 2 | nob 3 | nob.old 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2023 Alexey Kutepov 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hash Table in C 2 | 3 | This is the notes from a Hash Table in C stream. 4 | 5 | ## Quick Start 6 | 7 | ```console 8 | $ cc -o nob nob.c 9 | $ ./nob run ./shakespear-smol.txt 10 | ``` 11 | 12 | The Shakespeare data is taken from https://ocw.mit.edu/ans7870/6/6.006/s08/lecturenotes/files/t8.shakespeare.txt 13 | -------------------------------------------------------------------------------- /ht.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | 6 | #define NOB_IMPLEMENTATION 7 | #include "nob.h" 8 | 9 | typedef struct { 10 | Nob_String_View key; 11 | size_t value; 12 | bool occupied; 13 | } FreqKV; 14 | 15 | typedef struct { 16 | FreqKV *items; 17 | size_t count; 18 | size_t capacity; 19 | } FreqKVs; 20 | 21 | FreqKV *find_key(FreqKVs haystack, Nob_String_View needle) 22 | { 23 | for (size_t i = 0; i < haystack.count; ++i) { 24 | if (nob_sv_eq(haystack.items[i].key, needle)) { 25 | return &haystack.items[i]; 26 | } 27 | } 28 | return NULL; 29 | } 30 | 31 | int compare_freqkv_count_reversed(const void *a, const void *b) 32 | { 33 | const FreqKV *akv = a; 34 | const FreqKV *bkv = b; 35 | return (int)bkv->value - (int)akv->value; 36 | } 37 | 38 | double clock_get_secs(void) 39 | { 40 | struct timespec ts = {0}; 41 | int ret = clock_gettime(CLOCK_MONOTONIC, &ts); 42 | assert(ret == 0); 43 | return (double)ts.tv_sec + ts.tv_nsec*1e-9; 44 | } 45 | 46 | void naive_analysis(Nob_String_View content, const char *file_path) 47 | { 48 | nob_log(NOB_INFO, "Analyzing %s linearly", file_path); 49 | nob_log(NOB_INFO, " Size: %zu bytes", content.count); 50 | 51 | double begin = clock_get_secs(); 52 | 53 | FreqKVs freq = {0}; // TODO: a bit of memory leak 54 | size_t count = 0; 55 | for (; content.count > 0; ++count) { 56 | content = nob_sv_trim_left(content); 57 | Nob_String_View token = nob_sv_chop_by_space(&content); 58 | 59 | FreqKV *kv = find_key(freq, token); 60 | if (kv) { 61 | kv->value += 1; 62 | } else { 63 | nob_da_append(&freq, ((FreqKV) { 64 | .key = token, 65 | .value = 1 66 | })); 67 | } 68 | } 69 | 70 | double end = clock_get_secs(); 71 | 72 | nob_log(NOB_INFO, " Tokens: %zu tokens", freq.count); 73 | qsort(freq.items, freq.count, sizeof(freq.items[0]), compare_freqkv_count_reversed); 74 | 75 | nob_log(NOB_INFO, " Top 10 tokens"); 76 | for (size_t i = 0; i < 10 && i < freq.count; ++i) { 77 | nob_log(NOB_INFO, " %zu: "SV_Fmt" => %zu", i, SV_Arg(freq.items[i].key), freq.items[i].value); 78 | } 79 | nob_log(NOB_INFO, " Elapsed time %.03lfs", end - begin); 80 | } 81 | 82 | uint32_t djb2(uint8_t *buf, size_t buf_size) 83 | { 84 | uint32_t hash = 5381; 85 | 86 | for (size_t i = 0; i < buf_size; ++i) { 87 | hash = ((hash << 5) + hash) + (uint32_t)buf[i]; /* hash * 33 + c */ 88 | } 89 | 90 | return hash; 91 | } 92 | 93 | #define hash_init(ht, cap) \ 94 | do { \ 95 | (ht)->items = malloc(sizeof(*(ht)->items)*cap); \ 96 | memset((ht)->items, 0, sizeof(*(ht)->items)*cap); \ 97 | (ht)->count = 0; \ 98 | (ht)->capacity = (cap); \ 99 | } while(0) 100 | 101 | #define hash_find(ht, key, hash, eq) 102 | 103 | bool hash_analysis(Nob_String_View content, const char *file_path) 104 | { 105 | nob_log(NOB_INFO, "Analyzing %s with Hash Table", file_path); 106 | nob_log(NOB_INFO, " Size: %zu bytes", content.count); 107 | 108 | double begin = clock_get_secs(); 109 | 110 | FreqKVs ht = {0}; 111 | hash_init(&ht, 1000*1000); 112 | 113 | size_t count = 0; 114 | for (; content.count > 0; ++count) { 115 | content = nob_sv_trim_left(content); 116 | Nob_String_View token = nob_sv_chop_by_space(&content); 117 | 118 | uint32_t h = djb2((uint8_t*)token.data, token.count)%ht.capacity; 119 | 120 | for (size_t i = 0; i < ht.capacity && ht.items[h].occupied && !nob_sv_eq(ht.items[h].key, token); ++i) { 121 | h = (h + 1)%ht.capacity; 122 | } 123 | 124 | if (ht.items[h].occupied) { 125 | if (!nob_sv_eq(ht.items[h].key, token)) { 126 | nob_log(NOB_ERROR, "Table overflow"); 127 | return false; 128 | } 129 | ht.items[h].value += 1; 130 | } else { 131 | ht.items[h].occupied = true; 132 | ht.items[h].key = token; 133 | ht.items[h].value = 1; 134 | } 135 | } 136 | double end = clock_get_secs(); 137 | 138 | FreqKVs freq = {0}; 139 | for (size_t i = 0; i < ht.capacity; ++i) { 140 | if (ht.items[i].occupied) { 141 | nob_da_append(&freq, ht.items[i]); 142 | } 143 | } 144 | qsort(freq.items, freq.count, sizeof(freq.items[0]), compare_freqkv_count_reversed); 145 | 146 | nob_log(NOB_INFO, " Tokens: %zu tokens", freq.count); 147 | nob_log(NOB_INFO, " Top 10 tokens"); 148 | for (size_t i = 0; i < 10 && i < freq.count; ++i) { 149 | nob_log(NOB_INFO, " %zu: "SV_Fmt" => %zu", i, SV_Arg(freq.items[i].key), freq.items[i].value); 150 | } 151 | nob_log(NOB_INFO, " Elapsed time %.03lfs", end - begin); 152 | 153 | return true; 154 | } 155 | 156 | int main(int argc, char **argv) 157 | { 158 | const char *program = nob_shift_args(&argc, &argv); 159 | 160 | if (argc <= 0) { 161 | nob_log(NOB_ERROR, "No input is provided"); 162 | nob_log(NOB_INFO, "Usage: %s ", program); 163 | return 1; 164 | } 165 | 166 | const char *file_path = nob_shift_args(&argc, &argv); 167 | Nob_String_Builder buf = {0}; 168 | if (!nob_read_entire_file(file_path, &buf)) return 1; 169 | 170 | Nob_String_View content = { 171 | .data = buf.items, 172 | .count = buf.count, 173 | }; 174 | 175 | naive_analysis(content, file_path); 176 | if (!hash_analysis(content, file_path)) return 1; 177 | 178 | return 0; 179 | } 180 | -------------------------------------------------------------------------------- /nob.c: -------------------------------------------------------------------------------- 1 | #define NOB_IMPLEMENTATION 2 | #include "nob.h" 3 | 4 | int main(int argc, char **argv) 5 | { 6 | NOB_GO_REBUILD_URSELF(argc, argv); 7 | 8 | const char *program = nob_shift_args(&argc, &argv); 9 | 10 | Nob_Cmd cmd = {0}; 11 | nob_cmd_append(&cmd, "cc"); 12 | nob_cmd_append(&cmd, "-Wall", "-Wextra", "-ggdb", "-pedantic"); 13 | nob_cmd_append(&cmd, "-o", "ht"); 14 | nob_cmd_append(&cmd, "ht.c"); 15 | if (!nob_cmd_run_sync(cmd)) return 1; 16 | 17 | if (argc > 0) { 18 | const char *subcmd = nob_shift_args(&argc, &argv); 19 | 20 | if (strcmp(subcmd, "run") == 0) { 21 | cmd.count = 0; 22 | nob_cmd_append(&cmd, "./ht"); 23 | nob_da_append_many(&cmd, argv, argc); 24 | if (!nob_cmd_run_sync(cmd)) return 1; 25 | } else { 26 | nob_log(NOB_ERROR, "Unknown subcommand %s", subcmd); 27 | return 1; 28 | } 29 | } 30 | 31 | return 0; 32 | } 33 | -------------------------------------------------------------------------------- /nob.h: -------------------------------------------------------------------------------- 1 | // This is a complete backward incompatible rewrite of https://github.com/tsoding/nobuild 2 | // because I'm really unhappy with the direction it is going. It's gonna sit in this repo 3 | // until it's matured enough and then I'll probably extract it to its own repo. 4 | 5 | // Copyright 2023 Alexey Kutepov 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining 8 | // a copy of this software and associated documentation files (the 9 | // "Software"), to deal in the Software without restriction, including 10 | // without limitation the rights to use, copy, modify, merge, publish, 11 | // distribute, sublicense, and/or sell copies of the Software, and to 12 | // permit persons to whom the Software is furnished to do so, subject to 13 | // the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be 16 | // included in all copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | 26 | #ifndef NOB_H_ 27 | #define NOB_H_ 28 | 29 | #define NOB_ASSERT assert 30 | #define NOB_REALLOC realloc 31 | #define NOB_FREE free 32 | 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | 42 | #ifdef _WIN32 43 | # define WIN32_LEAN_AND_MEAN 44 | # include 45 | # include 46 | # include 47 | #else 48 | # include 49 | # include 50 | # include 51 | # include 52 | # include 53 | #endif 54 | 55 | #ifdef _WIN32 56 | # define NOB_LINE_END "\r\n" 57 | #else 58 | # define NOB_LINE_END "\n" 59 | #endif 60 | 61 | #define NOB_ARRAY_LEN(array) (sizeof(array)/sizeof(array[0])) 62 | #define NOB_ARRAY_GET(array, index) \ 63 | (NOB_ASSERT(index >= 0), NOB_ASSERT(index < NOB_ARRAY_LEN(array)), array[index]) 64 | 65 | typedef enum { 66 | NOB_INFO, 67 | NOB_WARNING, 68 | NOB_ERROR, 69 | } Nob_Log_Level; 70 | 71 | void nob_log(Nob_Log_Level level, const char *fmt, ...); 72 | 73 | // It is an equivalent of shift command from bash. It basically pops a command line 74 | // argument from the beginning. 75 | char *nob_shift_args(int *argc, char ***argv); 76 | 77 | typedef struct { 78 | const char **items; 79 | size_t count; 80 | size_t capacity; 81 | } Nob_File_Paths; 82 | 83 | typedef enum { 84 | NOB_FILE_REGULAR = 0, 85 | NOB_FILE_DIRECTORY, 86 | NOB_FILE_SYMLINK, 87 | NOB_FILE_OTHER, 88 | } Nob_File_Type; 89 | 90 | bool nob_mkdir_if_not_exists(const char *path); 91 | bool nob_copy_file(const char *src_path, const char *dst_path); 92 | bool nob_copy_directory_recursively(const char *src_path, const char *dst_path); 93 | bool nob_read_entire_dir(const char *parent, Nob_File_Paths *children); 94 | bool nob_write_entire_file(const char *path, void *data, size_t size); 95 | Nob_File_Type nob_get_file_type(const char *path); 96 | 97 | #define nob_return_defer(value) do { result = (value); goto defer; } while(0) 98 | 99 | // Initial capacity of a dynamic array 100 | #define NOB_DA_INIT_CAP 256 101 | 102 | // Append an item to a dynamic array 103 | #define nob_da_append(da, item) \ 104 | do { \ 105 | if ((da)->count >= (da)->capacity) { \ 106 | (da)->capacity = (da)->capacity == 0 ? NOB_DA_INIT_CAP : (da)->capacity*2; \ 107 | (da)->items = NOB_REALLOC((da)->items, (da)->capacity*sizeof(*(da)->items)); \ 108 | NOB_ASSERT((da)->items != NULL && "Buy more RAM lol"); \ 109 | } \ 110 | \ 111 | (da)->items[(da)->count++] = (item); \ 112 | } while (0) 113 | 114 | #define nob_da_free(da) NOB_FREE((da).items) 115 | 116 | // Append several items to a dynamic array 117 | #define nob_da_append_many(da, new_items, new_items_count) \ 118 | do { \ 119 | if ((da)->count + new_items_count > (da)->capacity) { \ 120 | if ((da)->capacity == 0) { \ 121 | (da)->capacity = NOB_DA_INIT_CAP; \ 122 | } \ 123 | while ((da)->count + new_items_count > (da)->capacity) { \ 124 | (da)->capacity *= 2; \ 125 | } \ 126 | (da)->items = NOB_REALLOC((da)->items, (da)->capacity*sizeof(*(da)->items)); \ 127 | NOB_ASSERT((da)->items != NULL && "Buy more RAM lol"); \ 128 | } \ 129 | memcpy((da)->items + (da)->count, new_items, new_items_count*sizeof(*(da)->items)); \ 130 | (da)->count += new_items_count; \ 131 | } while (0) 132 | 133 | typedef struct { 134 | char *items; 135 | size_t count; 136 | size_t capacity; 137 | } Nob_String_Builder; 138 | 139 | bool nob_read_entire_file(const char *path, Nob_String_Builder *sb); 140 | 141 | // Append a sized buffer to a string builder 142 | #define nob_sb_append_buf(sb, buf, size) nob_da_append_many(sb, buf, size) 143 | 144 | // Append a NULL-terminated string to a string builder 145 | #define nob_sb_append_cstr(sb, cstr) \ 146 | do { \ 147 | const char *s = (cstr); \ 148 | size_t n = strlen(s); \ 149 | nob_da_append_many(sb, s, n); \ 150 | } while (0) 151 | 152 | // Append a single NULL character at the end of a string builder. So then you can 153 | // use it a NULL-terminated C string 154 | #define nob_sb_append_null(sb) nob_da_append_many(sb, "", 1) 155 | 156 | // Free the memory allocated by a string builder 157 | #define nob_sb_free(sb) NOB_FREE((sb).items) 158 | 159 | // Process handle 160 | #ifdef _WIN32 161 | typedef HANDLE Nob_Proc; 162 | #define NOB_INVALID_PROC INVALID_HANDLE_VALUE 163 | #else 164 | typedef int Nob_Proc; 165 | #define NOB_INVALID_PROC (-1) 166 | #endif // _WIN32 167 | 168 | typedef struct { 169 | Nob_Proc *items; 170 | size_t count; 171 | size_t capacity; 172 | } Nob_Procs; 173 | 174 | bool nob_procs_wait(Nob_Procs procs); 175 | 176 | // Wait until the process has finished 177 | bool nob_proc_wait(Nob_Proc proc); 178 | 179 | // A command - the main workhorse of Nob. Nob is all about building commands an running them 180 | typedef struct { 181 | const char **items; 182 | size_t count; 183 | size_t capacity; 184 | } Nob_Cmd; 185 | 186 | // Render a string representation of a command into a string builder. Keep in mind the the 187 | // string builder is not NULL-terminated by default. Use nob_sb_append_null if you plan to 188 | // use it as a C string. 189 | void nob_cmd_render(Nob_Cmd cmd, Nob_String_Builder *render); 190 | 191 | #define nob_cmd_append(cmd, ...) \ 192 | nob_da_append_many(cmd, ((const char*[]){__VA_ARGS__}), (sizeof((const char*[]){__VA_ARGS__})/sizeof(const char*))) 193 | 194 | // Free all the memory allocated by command arguments 195 | #define nob_cmd_free(cmd) NOB_FREE(cmd.items) 196 | 197 | // Run command asynchronously 198 | Nob_Proc nob_cmd_run_async(Nob_Cmd cmd); 199 | 200 | // Run command synchronously 201 | bool nob_cmd_run_sync(Nob_Cmd cmd); 202 | 203 | #ifndef NOB_TEMP_CAPACITY 204 | #define NOB_TEMP_CAPACITY (8*1024*1024) 205 | #endif // NOB_TEMP_CAPACITY 206 | char *nob_temp_strdup(const char *cstr); 207 | void *nob_temp_alloc(size_t size); 208 | char *nob_temp_sprintf(const char *format, ...); 209 | void nob_temp_reset(void); 210 | size_t nob_temp_save(void); 211 | void nob_temp_rewind(size_t checkpoint); 212 | 213 | int is_path1_modified_after_path2(const char *path1, const char *path2); 214 | bool nob_rename(const char *old_path, const char *new_path); 215 | int nob_needs_rebuild(const char *output_path, const char **input_paths, size_t input_paths_count); 216 | int nob_needs_rebuild1(const char *output_path, const char *input_path); 217 | int nob_file_exists(const char *file_path); 218 | 219 | // TODO: add MinGW support for Go Rebuild Urself™ Technology 220 | #ifndef NOB_REBUILD_URSELF 221 | # if _WIN32 222 | # if defined(__GNUC__) 223 | # define NOB_REBUILD_URSELF(binary_path, source_path) "gcc", "-o", binary_path, source_path 224 | # elif defined(__clang__) 225 | # define NOB_REBUILD_URSELF(binary_path, source_path) "clang", "-o", binary_path, source_path 226 | # elif defined(_MSC_VER) 227 | # define NOB_REBUILD_URSELF(binary_path, source_path) "cl.exe", source_path 228 | # endif 229 | # else 230 | # define NOB_REBUILD_URSELF(binary_path, source_path) "cc", "-o", binary_path, source_path 231 | # endif 232 | #endif 233 | 234 | // Go Rebuild Urself™ Technology 235 | // 236 | // How to use it: 237 | // int main(int argc, char** argv) { 238 | // GO_REBUILD_URSELF(argc, argv); 239 | // // actual work 240 | // return 0; 241 | // } 242 | // 243 | // After your added this macro every time you run ./nobuild it will detect 244 | // that you modified its original source code and will try to rebuild itself 245 | // before doing any actual work. So you only need to bootstrap your build system 246 | // once. 247 | // 248 | // The modification is detected by comparing the last modified times of the executable 249 | // and its source code. The same way the make utility usually does it. 250 | // 251 | // The rebuilding is done by using the REBUILD_URSELF macro which you can redefine 252 | // if you need a special way of bootstraping your build system. (which I personally 253 | // do not recommend since the whole idea of nobuild is to keep the process of bootstrapping 254 | // as simple as possible and doing all of the actual work inside of the nobuild) 255 | // 256 | #define NOB_GO_REBUILD_URSELF(argc, argv) \ 257 | do { \ 258 | const char *source_path = __FILE__; \ 259 | assert(argc >= 1); \ 260 | const char *binary_path = argv[0]; \ 261 | \ 262 | int rebuild_is_needed = nob_needs_rebuild(binary_path, &source_path, 1); \ 263 | if (rebuild_is_needed < 0) exit(1); \ 264 | if (rebuild_is_needed) { \ 265 | Nob_String_Builder sb = {0}; \ 266 | nob_sb_append_cstr(&sb, binary_path); \ 267 | nob_sb_append_cstr(&sb, ".old"); \ 268 | nob_sb_append_null(&sb); \ 269 | \ 270 | if (!nob_rename(binary_path, sb.items)) exit(1); \ 271 | Nob_Cmd rebuild = {0}; \ 272 | nob_cmd_append(&rebuild, NOB_REBUILD_URSELF(binary_path, source_path)); \ 273 | bool rebuild_succeeded = nob_cmd_run_sync(rebuild); \ 274 | nob_cmd_free(rebuild); \ 275 | if (!rebuild_succeeded) { \ 276 | nob_rename(sb.items, binary_path); \ 277 | exit(1); \ 278 | } \ 279 | \ 280 | Nob_Cmd cmd = {0}; \ 281 | nob_da_append_many(&cmd, argv, argc); \ 282 | if (!nob_cmd_run_sync(cmd)) exit(1); \ 283 | exit(0); \ 284 | } \ 285 | } while(0) 286 | // The implementation idea is stolen from https://github.com/zhiayang/nabs 287 | 288 | typedef struct { 289 | size_t count; 290 | const char *data; 291 | } Nob_String_View; 292 | 293 | const char *nob_temp_sv_to_cstr(Nob_String_View sv); 294 | 295 | Nob_String_View nob_sv_chop_by_delim(Nob_String_View *sv, char delim); 296 | Nob_String_View nob_sv_chop_by_space(Nob_String_View *sv); 297 | Nob_String_View nob_sv_trim(Nob_String_View sv); 298 | bool nob_sv_eq(Nob_String_View a, Nob_String_View b); 299 | Nob_String_View nob_sv_from_cstr(const char *cstr); 300 | Nob_String_View nob_sv_from_parts(const char *data, size_t count); 301 | 302 | // printf macros for String_View 303 | #ifndef SV_Fmt 304 | #define SV_Fmt "%.*s" 305 | #endif // SV_Fmt 306 | #ifndef SV_Arg 307 | #define SV_Arg(sv) (int) (sv).count, (sv).data 308 | #endif // SV_Arg 309 | // USAGE: 310 | // String_View name = ...; 311 | // printf("Name: "SV_Fmt"\n", SV_Arg(name)); 312 | 313 | 314 | // minirent.h HEADER BEGIN //////////////////////////////////////// 315 | // Copyright 2021 Alexey Kutepov 316 | // 317 | // Permission is hereby granted, free of charge, to any person obtaining 318 | // a copy of this software and associated documentation files (the 319 | // "Software"), to deal in the Software without restriction, including 320 | // without limitation the rights to use, copy, modify, merge, publish, 321 | // distribute, sublicense, and/or sell copies of the Software, and to 322 | // permit persons to whom the Software is furnished to do so, subject to 323 | // the following conditions: 324 | // 325 | // The above copyright notice and this permission notice shall be 326 | // included in all copies or substantial portions of the Software. 327 | // 328 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 329 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 330 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 331 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 332 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 333 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 334 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 335 | // 336 | // ============================================================ 337 | // 338 | // minirent — 0.0.1 — A subset of dirent interface for Windows. 339 | // 340 | // https://github.com/tsoding/minirent 341 | // 342 | // ============================================================ 343 | // 344 | // ChangeLog (https://semver.org/ is implied) 345 | // 346 | // 0.0.2 Automatically include dirent.h on non-Windows 347 | // platforms 348 | // 0.0.1 First Official Release 349 | 350 | #ifndef _WIN32 351 | #include 352 | #else // _WIN32 353 | 354 | #define WIN32_LEAN_AND_MEAN 355 | #include "windows.h" 356 | 357 | struct dirent 358 | { 359 | char d_name[MAX_PATH+1]; 360 | }; 361 | 362 | typedef struct DIR DIR; 363 | 364 | DIR *opendir(const char *dirpath); 365 | struct dirent *readdir(DIR *dirp); 366 | int closedir(DIR *dirp); 367 | #endif // _WIN32 368 | // minirent.h HEADER END //////////////////////////////////////// 369 | 370 | #endif // NOB_H_ 371 | 372 | #ifdef NOB_IMPLEMENTATION 373 | 374 | static size_t nob_temp_size = 0; 375 | static char nob_temp[NOB_TEMP_CAPACITY] = {0}; 376 | 377 | bool nob_mkdir_if_not_exists(const char *path) 378 | { 379 | #ifdef _WIN32 380 | int result = mkdir(path); 381 | #else 382 | int result = mkdir(path, 0755); 383 | #endif 384 | if (result < 0) { 385 | if (errno == EEXIST) { 386 | nob_log(NOB_INFO, "directory `%s` already exists", path); 387 | return true; 388 | } 389 | nob_log(NOB_ERROR, "could not create directory `%s`: %s", path, strerror(errno)); 390 | return false; 391 | } 392 | 393 | nob_log(NOB_INFO, "created directory `%s`", path); 394 | return true; 395 | } 396 | 397 | bool nob_copy_file(const char *src_path, const char *dst_path) 398 | { 399 | nob_log(NOB_INFO, "copying %s -> %s", src_path, dst_path); 400 | #ifdef _WIN32 401 | if (!CopyFile(src_path, dst_path, FALSE)) { 402 | nob_log(NOB_ERROR, "Could not copy file: %lu", GetLastError()); 403 | return false; 404 | } 405 | return true; 406 | #else 407 | int src_fd = -1; 408 | int dst_fd = -1; 409 | size_t buf_size = 32*1024; 410 | char *buf = NOB_REALLOC(NULL, buf_size); 411 | NOB_ASSERT(buf != NULL && "Buy more RAM lol!!"); 412 | bool result = true; 413 | 414 | src_fd = open(src_path, O_RDONLY); 415 | if (src_fd < 0) { 416 | nob_log(NOB_ERROR, "Could not open file %s: %s", src_path, strerror(errno)); 417 | nob_return_defer(false); 418 | } 419 | 420 | struct stat src_stat; 421 | if (fstat(src_fd, &src_stat) < 0) { 422 | nob_log(NOB_ERROR, "Could not get mode of file %s: %s", src_path, strerror(errno)); 423 | nob_return_defer(false); 424 | } 425 | 426 | dst_fd = open(dst_path, O_CREAT | O_TRUNC | O_WRONLY, src_stat.st_mode); 427 | if (dst_fd < 0) { 428 | nob_log(NOB_ERROR, "Could not create file %s: %s", dst_path, strerror(errno)); 429 | nob_return_defer(false); 430 | } 431 | 432 | for (;;) { 433 | ssize_t n = read(src_fd, buf, buf_size); 434 | if (n == 0) break; 435 | if (n < 0) { 436 | nob_log(NOB_ERROR, "Could not read from file %s: %s", src_path, strerror(errno)); 437 | nob_return_defer(false); 438 | } 439 | char *buf2 = buf; 440 | while (n > 0) { 441 | ssize_t m = write(dst_fd, buf2, n); 442 | if (m < 0) { 443 | nob_log(NOB_ERROR, "Could not write to file %s: %s", dst_path, strerror(errno)); 444 | nob_return_defer(false); 445 | } 446 | n -= m; 447 | buf2 += m; 448 | } 449 | } 450 | 451 | defer: 452 | free(buf); 453 | close(src_fd); 454 | close(dst_fd); 455 | return result; 456 | #endif 457 | } 458 | 459 | void nob_cmd_render(Nob_Cmd cmd, Nob_String_Builder *render) 460 | { 461 | for (size_t i = 0; i < cmd.count; ++i) { 462 | const char *arg = cmd.items[i]; 463 | if (arg == NULL) break; 464 | if (i > 0) nob_sb_append_cstr(render, " "); 465 | if (!strchr(arg, ' ')) { 466 | nob_sb_append_cstr(render, arg); 467 | } else { 468 | nob_da_append(render, '\''); 469 | nob_sb_append_cstr(render, arg); 470 | nob_da_append(render, '\''); 471 | } 472 | } 473 | } 474 | 475 | Nob_Proc nob_cmd_run_async(Nob_Cmd cmd) 476 | { 477 | if (cmd.count < 1) { 478 | nob_log(NOB_ERROR, "Could not run empty command"); 479 | return NOB_INVALID_PROC; 480 | } 481 | 482 | Nob_String_Builder sb = {0}; 483 | nob_cmd_render(cmd, &sb); 484 | nob_sb_append_null(&sb); 485 | nob_log(NOB_INFO, "CMD: %s", sb.items); 486 | nob_sb_free(sb); 487 | memset(&sb, 0, sizeof(sb)); 488 | 489 | #ifdef _WIN32 490 | // https://docs.microsoft.com/en-us/windows/win32/procthread/creating-a-child-process-with-redirected-input-and-output 491 | 492 | STARTUPINFO siStartInfo; 493 | ZeroMemory(&siStartInfo, sizeof(siStartInfo)); 494 | siStartInfo.cb = sizeof(STARTUPINFO); 495 | // NOTE: theoretically setting NULL to std handles should not be a problem 496 | // https://docs.microsoft.com/en-us/windows/console/getstdhandle?redirectedfrom=MSDN#attachdetach-behavior 497 | // TODO: check for errors in GetStdHandle 498 | siStartInfo.hStdError = GetStdHandle(STD_ERROR_HANDLE); 499 | siStartInfo.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE); 500 | siStartInfo.hStdInput = GetStdHandle(STD_INPUT_HANDLE); 501 | siStartInfo.dwFlags |= STARTF_USESTDHANDLES; 502 | 503 | PROCESS_INFORMATION piProcInfo; 504 | ZeroMemory(&piProcInfo, sizeof(PROCESS_INFORMATION)); 505 | 506 | // TODO: use a more reliable rendering of the command instead of cmd_render 507 | // cmd_render is for logging primarily 508 | nob_cmd_render(cmd, &sb); 509 | nob_sb_append_null(&sb); 510 | BOOL bSuccess = CreateProcessA(NULL, sb.items, NULL, NULL, TRUE, 0, NULL, NULL, &siStartInfo, &piProcInfo); 511 | nob_sb_free(sb); 512 | 513 | if (!bSuccess) { 514 | nob_log(NOB_ERROR, "Could not create child process: %lu", GetLastError()); 515 | return NOB_INVALID_PROC; 516 | } 517 | 518 | CloseHandle(piProcInfo.hThread); 519 | 520 | return piProcInfo.hProcess; 521 | #else 522 | pid_t cpid = fork(); 523 | if (cpid < 0) { 524 | nob_log(NOB_ERROR, "Could not fork child process: %s", strerror(errno)); 525 | return NOB_INVALID_PROC; 526 | } 527 | 528 | if (cpid == 0) { 529 | // NOTE: This leaks a bit of memory in the child process. 530 | // But do we actually care? It's a one off leak anyway... 531 | Nob_Cmd cmd_null = {0}; 532 | nob_da_append_many(&cmd_null, cmd.items, cmd.count); 533 | nob_cmd_append(&cmd_null, NULL); 534 | 535 | if (execvp(cmd.items[0], (char * const*) cmd_null.items) < 0) { 536 | nob_log(NOB_ERROR, "Could not exec child process: %s", strerror(errno)); 537 | exit(1); 538 | } 539 | NOB_ASSERT(0 && "unreachable"); 540 | } 541 | 542 | return cpid; 543 | #endif 544 | } 545 | 546 | bool nob_procs_wait(Nob_Procs procs) 547 | { 548 | bool success = true; 549 | for (size_t i = 0; i < procs.count; ++i) { 550 | success = nob_proc_wait(procs.items[i]) && success; 551 | } 552 | return success; 553 | } 554 | 555 | bool nob_proc_wait(Nob_Proc proc) 556 | { 557 | if (proc == NOB_INVALID_PROC) return false; 558 | 559 | #ifdef _WIN32 560 | DWORD result = WaitForSingleObject( 561 | proc, // HANDLE hHandle, 562 | INFINITE // DWORD dwMilliseconds 563 | ); 564 | 565 | if (result == WAIT_FAILED) { 566 | nob_log(NOB_ERROR, "could not wait on child process: %lu", GetLastError()); 567 | return false; 568 | } 569 | 570 | DWORD exit_status; 571 | if (!GetExitCodeProcess(proc, &exit_status)) { 572 | nob_log(NOB_ERROR, "could not get process exit code: %lu", GetLastError()); 573 | return false; 574 | } 575 | 576 | if (exit_status != 0) { 577 | nob_log(NOB_ERROR, "command exited with exit code %lu", exit_status); 578 | return false; 579 | } 580 | 581 | CloseHandle(proc); 582 | 583 | return true; 584 | #else 585 | for (;;) { 586 | int wstatus = 0; 587 | if (waitpid(proc, &wstatus, 0) < 0) { 588 | nob_log(NOB_ERROR, "could not wait on command (pid %d): %s", proc, strerror(errno)); 589 | return false; 590 | } 591 | 592 | if (WIFEXITED(wstatus)) { 593 | int exit_status = WEXITSTATUS(wstatus); 594 | if (exit_status != 0) { 595 | nob_log(NOB_ERROR, "command exited with exit code %d", exit_status); 596 | return false; 597 | } 598 | 599 | break; 600 | } 601 | 602 | if (WIFSIGNALED(wstatus)) { 603 | nob_log(NOB_ERROR, "command process was terminated by %s", strsignal(WTERMSIG(wstatus))); 604 | return false; 605 | } 606 | } 607 | 608 | return true; 609 | #endif 610 | } 611 | 612 | bool nob_cmd_run_sync(Nob_Cmd cmd) 613 | { 614 | Nob_Proc p = nob_cmd_run_async(cmd); 615 | if (p == NOB_INVALID_PROC) return false; 616 | return nob_proc_wait(p); 617 | } 618 | 619 | char *nob_shift_args(int *argc, char ***argv) 620 | { 621 | NOB_ASSERT(*argc > 0); 622 | char *result = **argv; 623 | (*argv) += 1; 624 | (*argc) -= 1; 625 | return result; 626 | } 627 | 628 | void nob_log(Nob_Log_Level level, const char *fmt, ...) 629 | { 630 | switch (level) { 631 | case NOB_INFO: 632 | fprintf(stderr, "[INFO] "); 633 | break; 634 | case NOB_WARNING: 635 | fprintf(stderr, "[WARNING] "); 636 | break; 637 | case NOB_ERROR: 638 | fprintf(stderr, "[ERROR] "); 639 | break; 640 | default: 641 | NOB_ASSERT(0 && "unreachable"); 642 | } 643 | 644 | va_list args; 645 | va_start(args, fmt); 646 | vfprintf(stderr, fmt, args); 647 | va_end(args); 648 | fprintf(stderr, "\n"); 649 | } 650 | 651 | bool nob_read_entire_dir(const char *parent, Nob_File_Paths *children) 652 | { 653 | bool result = true; 654 | DIR *dir = NULL; 655 | 656 | dir = opendir(parent); 657 | if (dir == NULL) { 658 | nob_log(NOB_ERROR, "Could not open directory %s: %s", parent, strerror(errno)); 659 | nob_return_defer(false); 660 | } 661 | 662 | errno = 0; 663 | struct dirent *ent = readdir(dir); 664 | while (ent != NULL) { 665 | nob_da_append(children, nob_temp_strdup(ent->d_name)); 666 | ent = readdir(dir); 667 | } 668 | 669 | if (errno != 0) { 670 | nob_log(NOB_ERROR, "Could not read directory %s: %s", parent, strerror(errno)); 671 | nob_return_defer(false); 672 | } 673 | 674 | defer: 675 | if (dir) closedir(dir); 676 | return result; 677 | } 678 | 679 | bool nob_write_entire_file(const char *path, void *data, size_t size) 680 | { 681 | bool result = true; 682 | 683 | FILE *f = fopen(path, "wb"); 684 | if (f == NULL) { 685 | nob_log(NOB_ERROR, "Could not open file %s for writing: %s\n", path, strerror(errno)); 686 | nob_return_defer(false); 687 | } 688 | 689 | // len 690 | // v 691 | // aaaaaaaaaa 692 | // ^ 693 | // data 694 | 695 | char *buf = data; 696 | while (size > 0) { 697 | size_t n = fwrite(buf, 1, size, f); 698 | if (ferror(f)) { 699 | nob_log(NOB_ERROR, "Could not write into file %s: %s\n", path, strerror(errno)); 700 | nob_return_defer(false); 701 | } 702 | size -= n; 703 | buf += n; 704 | } 705 | 706 | defer: 707 | if (f) fclose(f); 708 | return result; 709 | } 710 | 711 | Nob_File_Type nob_get_file_type(const char *path) 712 | { 713 | #ifdef _WIN32 714 | DWORD attr = GetFileAttributesA(path); 715 | if (attr == INVALID_FILE_ATTRIBUTES) { 716 | nob_log(NOB_ERROR, "Could not get file attributes of %s: %lu", path, GetLastError()); 717 | return -1; 718 | } 719 | 720 | if (attr & FILE_ATTRIBUTE_DIRECTORY) return NOB_FILE_DIRECTORY; 721 | // TODO: detect symlinks on Windows (whatever that means on Windows anyway) 722 | return NOB_FILE_REGULAR; 723 | #else // _WIN32 724 | struct stat statbuf; 725 | if (stat(path, &statbuf) < 0) { 726 | nob_log(NOB_ERROR, "Could not get stat of %s: %s", path, strerror(errno)); 727 | return -1; 728 | } 729 | 730 | switch (statbuf.st_mode & S_IFMT) { 731 | case S_IFDIR: return NOB_FILE_DIRECTORY; 732 | case S_IFREG: return NOB_FILE_REGULAR; 733 | case S_IFLNK: return NOB_FILE_SYMLINK; 734 | default: return NOB_FILE_OTHER; 735 | } 736 | #endif // _WIN32 737 | } 738 | 739 | bool nob_copy_directory_recursively(const char *src_path, const char *dst_path) 740 | { 741 | bool result = true; 742 | Nob_File_Paths children = {0}; 743 | Nob_String_Builder src_sb = {0}; 744 | Nob_String_Builder dst_sb = {0}; 745 | size_t temp_checkpoint = nob_temp_save(); 746 | 747 | Nob_File_Type type = nob_get_file_type(src_path); 748 | if (type < 0) return false; 749 | 750 | switch (type) { 751 | case NOB_FILE_DIRECTORY: { 752 | if (!nob_mkdir_if_not_exists(dst_path)) nob_return_defer(false); 753 | if (!nob_read_entire_dir(src_path, &children)) nob_return_defer(false); 754 | 755 | for (size_t i = 0; i < children.count; ++i) { 756 | if (strcmp(children.items[i], ".") == 0) continue; 757 | if (strcmp(children.items[i], "..") == 0) continue; 758 | 759 | src_sb.count = 0; 760 | nob_sb_append_cstr(&src_sb, src_path); 761 | nob_sb_append_cstr(&src_sb, "/"); 762 | nob_sb_append_cstr(&src_sb, children.items[i]); 763 | nob_sb_append_null(&src_sb); 764 | 765 | dst_sb.count = 0; 766 | nob_sb_append_cstr(&dst_sb, dst_path); 767 | nob_sb_append_cstr(&dst_sb, "/"); 768 | nob_sb_append_cstr(&dst_sb, children.items[i]); 769 | nob_sb_append_null(&dst_sb); 770 | 771 | if (!nob_copy_directory_recursively(src_sb.items, dst_sb.items)) { 772 | nob_return_defer(false); 773 | } 774 | } 775 | } break; 776 | 777 | case NOB_FILE_REGULAR: { 778 | if (!nob_copy_file(src_path, dst_path)) { 779 | nob_return_defer(false); 780 | } 781 | } break; 782 | 783 | case NOB_FILE_SYMLINK: { 784 | nob_log(NOB_WARNING, "TODO: Copying symlinks is not supported yet"); 785 | } break; 786 | 787 | case NOB_FILE_OTHER: { 788 | nob_log(NOB_ERROR, "Unsupported type of file %s", src_path); 789 | nob_return_defer(false); 790 | } break; 791 | 792 | default: NOB_ASSERT(0 && "unreachable"); 793 | } 794 | 795 | defer: 796 | nob_temp_rewind(temp_checkpoint); 797 | nob_da_free(src_sb); 798 | nob_da_free(dst_sb); 799 | nob_da_free(children); 800 | return result; 801 | } 802 | 803 | char *nob_temp_strdup(const char *cstr) 804 | { 805 | size_t n = strlen(cstr); 806 | char *result = nob_temp_alloc(n + 1); 807 | NOB_ASSERT(result != NULL && "Increase NOB_TEMP_CAPACITY"); 808 | memcpy(result, cstr, n); 809 | result[n] = '\0'; 810 | return result; 811 | } 812 | 813 | void *nob_temp_alloc(size_t size) 814 | { 815 | if (nob_temp_size + size > NOB_TEMP_CAPACITY) return NULL; 816 | void *result = &nob_temp[nob_temp_size]; 817 | nob_temp_size += size; 818 | return result; 819 | } 820 | 821 | char *nob_temp_sprintf(const char *format, ...) 822 | { 823 | va_list args; 824 | va_start(args, format); 825 | int n = vsnprintf(NULL, 0, format, args); 826 | va_end(args); 827 | 828 | NOB_ASSERT(n >= 0); 829 | char *result = nob_temp_alloc(n + 1); 830 | NOB_ASSERT(result != NULL && "Extend the size of the temporary allocator"); 831 | // TODO: use proper arenas for the temporary allocator; 832 | va_start(args, format); 833 | vsnprintf(result, n + 1, format, args); 834 | va_end(args); 835 | 836 | return result; 837 | } 838 | 839 | void nob_temp_reset(void) 840 | { 841 | nob_temp_size = 0; 842 | } 843 | 844 | size_t nob_temp_save(void) 845 | { 846 | return nob_temp_size; 847 | } 848 | 849 | void nob_temp_rewind(size_t checkpoint) 850 | { 851 | nob_temp_size = checkpoint; 852 | } 853 | 854 | const char *nob_temp_sv_to_cstr(Nob_String_View sv) 855 | { 856 | char *result = nob_temp_alloc(sv.count + 1); 857 | NOB_ASSERT(result != NULL && "Extend the size of the temporary allocator"); 858 | memcpy(result, sv.data, sv.count); 859 | result[sv.count] = '\0'; 860 | return result; 861 | } 862 | 863 | int nob_needs_rebuild(const char *output_path, const char **input_paths, size_t input_paths_count) 864 | { 865 | #ifdef _WIN32 866 | BOOL bSuccess; 867 | 868 | HANDLE output_path_fd = CreateFile(output_path, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_READONLY, NULL); 869 | if (output_path_fd == INVALID_HANDLE_VALUE) { 870 | // NOTE: if output does not exist it 100% must be rebuilt 871 | if (GetLastError() == ERROR_FILE_NOT_FOUND) return 1; 872 | nob_log(NOB_ERROR, "Could not open file %s: %lu", output_path, GetLastError()); 873 | return -1; 874 | } 875 | FILETIME output_path_time; 876 | bSuccess = GetFileTime(output_path_fd, NULL, NULL, &output_path_time); 877 | CloseHandle(output_path_fd); 878 | if (!bSuccess) { 879 | nob_log(NOB_ERROR, "Could not get time of %s: %lu", output_path, GetLastError()); 880 | return -1; 881 | } 882 | 883 | for (size_t i = 0; i < input_paths_count; ++i) { 884 | const char *input_path = input_paths[i]; 885 | HANDLE input_path_fd = CreateFile(input_path, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_READONLY, NULL); 886 | if (input_path_fd == INVALID_HANDLE_VALUE) { 887 | // NOTE: non-existing input is an error cause it is needed for building in the first place 888 | nob_log(NOB_ERROR, "Could not open file %s: %lu", input_path, GetLastError()); 889 | return -1; 890 | } 891 | FILETIME input_path_time; 892 | bSuccess = GetFileTime(input_path_fd, NULL, NULL, &input_path_time); 893 | CloseHandle(input_path_fd); 894 | if (!bSuccess) { 895 | nob_log(NOB_ERROR, "Could not get time of %s: %lu", input_path, GetLastError()); 896 | return -1; 897 | } 898 | 899 | // NOTE: if even a single input_path is fresher than output_path that's 100% rebuild 900 | if (CompareFileTime(&input_path_time, &output_path_time) == 1) return 1; 901 | } 902 | 903 | return 0; 904 | #else 905 | struct stat statbuf = {0}; 906 | 907 | if (stat(output_path, &statbuf) < 0) { 908 | // NOTE: if output does not exist it 100% must be rebuilt 909 | if (errno == ENOENT) return 1; 910 | nob_log(NOB_ERROR, "could not stat %s: %s", output_path, strerror(errno)); 911 | return -1; 912 | } 913 | int output_path_time = statbuf.st_mtime; 914 | 915 | for (size_t i = 0; i < input_paths_count; ++i) { 916 | const char *input_path = input_paths[i]; 917 | if (stat(input_path, &statbuf) < 0) { 918 | // NOTE: non-existing input is an error cause it is needed for building in the first place 919 | nob_log(NOB_ERROR, "could not stat %s: %s", input_path, strerror(errno)); 920 | return -1; 921 | } 922 | int input_path_time = statbuf.st_mtime; 923 | // NOTE: if even a single input_path is fresher than output_path that's 100% rebuild 924 | if (input_path_time > output_path_time) return 1; 925 | } 926 | 927 | return 0; 928 | #endif 929 | } 930 | 931 | int nob_needs_rebuild1(const char *output_path, const char *input_path) 932 | { 933 | return nob_needs_rebuild(output_path, &input_path, 1); 934 | } 935 | 936 | bool nob_rename(const char *old_path, const char *new_path) 937 | { 938 | nob_log(NOB_INFO, "renaming %s -> %s", old_path, new_path); 939 | #ifdef _WIN32 940 | if (!MoveFileEx(old_path, new_path, MOVEFILE_REPLACE_EXISTING)) { 941 | nob_log(NOB_ERROR, "could not rename %s to %s: %lu", old_path, new_path, GetLastError()); 942 | return false; 943 | } 944 | #else 945 | if (rename(old_path, new_path) < 0) { 946 | nob_log(NOB_ERROR, "could not rename %s to %s: %s", old_path, new_path, strerror(errno)); 947 | return false; 948 | } 949 | #endif // _WIN32 950 | return true; 951 | } 952 | 953 | bool nob_read_entire_file(const char *path, Nob_String_Builder *sb) 954 | { 955 | bool result = true; 956 | size_t buf_size = 32*1024; 957 | char *buf = NOB_REALLOC(NULL, buf_size); 958 | NOB_ASSERT(buf != NULL && "Buy more RAM lool!!"); 959 | FILE *f = fopen(path, "rb"); 960 | if (f == NULL) { 961 | nob_log(NOB_ERROR, "Could not open %s for reading: %s", path, strerror(errno)); 962 | nob_return_defer(false); 963 | } 964 | 965 | size_t n = fread(buf, 1, buf_size, f); 966 | while (n > 0) { 967 | nob_sb_append_buf(sb, buf, n); 968 | n = fread(buf, 1, buf_size, f); 969 | } 970 | if (ferror(f)) { 971 | nob_log(NOB_ERROR, "Could not read %s: %s\n", path, strerror(errno)); 972 | nob_return_defer(false); 973 | } 974 | 975 | defer: 976 | NOB_FREE(buf); 977 | if (f) fclose(f); 978 | return result; 979 | } 980 | 981 | Nob_String_View nob_sv_chop_by_space(Nob_String_View *sv) 982 | { 983 | size_t i = 0; 984 | while (i < sv->count && !isspace(sv->data[i])) { 985 | i += 1; 986 | } 987 | 988 | Nob_String_View result = nob_sv_from_parts(sv->data, i); 989 | 990 | if (i < sv->count) { 991 | sv->count -= i + 1; 992 | sv->data += i + 1; 993 | } else { 994 | sv->count -= i; 995 | sv->data += i; 996 | } 997 | 998 | return result; 999 | } 1000 | 1001 | Nob_String_View nob_sv_chop_by_delim(Nob_String_View *sv, char delim) 1002 | { 1003 | size_t i = 0; 1004 | while (i < sv->count && sv->data[i] != delim) { 1005 | i += 1; 1006 | } 1007 | 1008 | Nob_String_View result = nob_sv_from_parts(sv->data, i); 1009 | 1010 | if (i < sv->count) { 1011 | sv->count -= i + 1; 1012 | sv->data += i + 1; 1013 | } else { 1014 | sv->count -= i; 1015 | sv->data += i; 1016 | } 1017 | 1018 | return result; 1019 | } 1020 | 1021 | Nob_String_View nob_sv_from_parts(const char *data, size_t count) 1022 | { 1023 | Nob_String_View sv; 1024 | sv.count = count; 1025 | sv.data = data; 1026 | return sv; 1027 | } 1028 | 1029 | Nob_String_View nob_sv_trim_left(Nob_String_View sv) 1030 | { 1031 | size_t i = 0; 1032 | while (i < sv.count && isspace(sv.data[i])) { 1033 | i += 1; 1034 | } 1035 | 1036 | return nob_sv_from_parts(sv.data + i, sv.count - i); 1037 | } 1038 | 1039 | Nob_String_View nob_sv_trim_right(Nob_String_View sv) 1040 | { 1041 | size_t i = 0; 1042 | while (i < sv.count && isspace(sv.data[sv.count - 1 - i])) { 1043 | i += 1; 1044 | } 1045 | 1046 | return nob_sv_from_parts(sv.data, sv.count - i); 1047 | } 1048 | 1049 | Nob_String_View nob_sv_trim(Nob_String_View sv) 1050 | { 1051 | return nob_sv_trim_right(nob_sv_trim_left(sv)); 1052 | } 1053 | 1054 | Nob_String_View nob_sv_from_cstr(const char *cstr) 1055 | { 1056 | return nob_sv_from_parts(cstr, strlen(cstr)); 1057 | } 1058 | 1059 | bool nob_sv_eq(Nob_String_View a, Nob_String_View b) 1060 | { 1061 | if (a.count != b.count) { 1062 | return false; 1063 | } else { 1064 | return memcmp(a.data, b.data, a.count) == 0; 1065 | } 1066 | } 1067 | 1068 | // RETURNS: 1069 | // 0 - file does not exists 1070 | // 1 - file exists 1071 | // -1 - error while checking if file exists. The error is logged 1072 | int nob_file_exists(const char *file_path) 1073 | { 1074 | #if _WIN32 1075 | // TODO: distinguish between "does not exists" and other errors 1076 | DWORD dwAttrib = GetFileAttributesA(file_path); 1077 | return dwAttrib != INVALID_FILE_ATTRIBUTES; 1078 | #else 1079 | struct stat statbuf; 1080 | if (stat(file_path, &statbuf) < 0) { 1081 | if (errno == ENOENT) return 0; 1082 | nob_log(NOB_ERROR, "Could not check if file %s exists: %s", file_path, strerror(errno)); 1083 | return -1; 1084 | } 1085 | return 1; 1086 | #endif 1087 | } 1088 | 1089 | // minirent.h SOURCE BEGIN //////////////////////////////////////// 1090 | #ifdef _WIN32 1091 | struct DIR 1092 | { 1093 | HANDLE hFind; 1094 | WIN32_FIND_DATA data; 1095 | struct dirent *dirent; 1096 | }; 1097 | 1098 | DIR *opendir(const char *dirpath) 1099 | { 1100 | assert(dirpath); 1101 | 1102 | char buffer[MAX_PATH]; 1103 | snprintf(buffer, MAX_PATH, "%s\\*", dirpath); 1104 | 1105 | DIR *dir = (DIR*)calloc(1, sizeof(DIR)); 1106 | 1107 | dir->hFind = FindFirstFile(buffer, &dir->data); 1108 | if (dir->hFind == INVALID_HANDLE_VALUE) { 1109 | // TODO: opendir should set errno accordingly on FindFirstFile fail 1110 | // https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror 1111 | errno = ENOSYS; 1112 | goto fail; 1113 | } 1114 | 1115 | return dir; 1116 | 1117 | fail: 1118 | if (dir) { 1119 | free(dir); 1120 | } 1121 | 1122 | return NULL; 1123 | } 1124 | 1125 | struct dirent *readdir(DIR *dirp) 1126 | { 1127 | assert(dirp); 1128 | 1129 | if (dirp->dirent == NULL) { 1130 | dirp->dirent = (struct dirent*)calloc(1, sizeof(struct dirent)); 1131 | } else { 1132 | if(!FindNextFile(dirp->hFind, &dirp->data)) { 1133 | if (GetLastError() != ERROR_NO_MORE_FILES) { 1134 | // TODO: readdir should set errno accordingly on FindNextFile fail 1135 | // https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror 1136 | errno = ENOSYS; 1137 | } 1138 | 1139 | return NULL; 1140 | } 1141 | } 1142 | 1143 | memset(dirp->dirent->d_name, 0, sizeof(dirp->dirent->d_name)); 1144 | 1145 | strncpy( 1146 | dirp->dirent->d_name, 1147 | dirp->data.cFileName, 1148 | sizeof(dirp->dirent->d_name) - 1); 1149 | 1150 | return dirp->dirent; 1151 | } 1152 | 1153 | int closedir(DIR *dirp) 1154 | { 1155 | assert(dirp); 1156 | 1157 | if(!FindClose(dirp->hFind)) { 1158 | // TODO: closedir should set errno accordingly on FindClose fail 1159 | // https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror 1160 | errno = ENOSYS; 1161 | return -1; 1162 | } 1163 | 1164 | if (dirp->dirent) { 1165 | free(dirp->dirent); 1166 | } 1167 | free(dirp); 1168 | 1169 | return 0; 1170 | } 1171 | #endif // _WIN32 1172 | // minirent.h SOURCE END //////////////////////////////////////// 1173 | 1174 | #endif 1175 | -------------------------------------------------------------------------------- /shakespear-smol.txt: -------------------------------------------------------------------------------- 1 | This is the 100th Etext file presented by Project Gutenberg, and 2 | is presented in cooperation with World Library, Inc., from their 3 | Library of the Future and Shakespeare CDROMS. Project Gutenberg 4 | often releases Etexts that are NOT placed in the Public Domain!! 5 | 6 | Shakespeare 7 | 8 | *This Etext has certain copyright implications you should read!* 9 | 10 | <> 18 | 19 | *Project Gutenberg is proud to cooperate with The World Library* 20 | in the presentation of The Complete Works of William Shakespeare 21 | for your reading for education and entertainment. HOWEVER, THIS 22 | IS NEITHER SHAREWARE NOR PUBLIC DOMAIN. . .AND UNDER THE LIBRARY 23 | OF THE FUTURE CONDITIONS OF THIS PRESENTATION. . .NO CHARGES MAY 24 | BE MADE FOR *ANY* ACCESS TO THIS MATERIAL. YOU ARE ENCOURAGED!! 25 | TO GIVE IT AWAY TO ANYONE YOU LIKE, BUT NO CHARGES ARE ALLOWED!! 26 | 27 | 28 | **Welcome To The World of Free Plain Vanilla Electronic Texts** 29 | 30 | **Etexts Readable By Both Humans and By Computers, Since 1971** 31 | 32 | *These Etexts Prepared By Hundreds of Volunteers and Donations* 33 | 34 | Information on contacting Project Gutenberg to get Etexts, and 35 | further information is included below. We need your donations. 36 | 37 | 38 | The Complete Works of William Shakespeare 39 | 40 | January, 1994 [Etext #100] 41 | 42 | 43 | The Library of the Future Complete Works of William Shakespeare 44 | Library of the Future is a TradeMark (TM) of World Library Inc. 45 | ******This file should be named shaks12.txt or shaks12.zip***** 46 | 47 | Corrected EDITIONS of our etexts get a new NUMBER, shaks13.txt 48 | VERSIONS based on separate sources get new LETTER, shaks10a.txt 49 | 50 | If you would like further information about World Library, Inc. 51 | Please call them at 1-800-443-0238 or email julianc@netcom.com 52 | Please give them our thanks for their Shakespeare cooperation! 53 | 54 | 55 | The official release date of all Project Gutenberg Etexts is at 56 | Midnight, Central Time, of the last day of the stated month. A 57 | preliminary version may often be posted for suggestion, comment 58 | and editing by those who wish to do so. To be sure you have an 59 | up to date first edition [xxxxx10x.xxx] please check file sizes 60 | in the first week of the next month. Since our ftp program has 61 | a bug in it that scrambles the date [tried to fix and failed] a 62 | look at the file size will have to do, but we will try to see a 63 | new copy has at least one byte more or less. 64 | 65 | 66 | Information about Project Gutenberg (one page) 67 | 68 | We produce about two million dollars for each hour we work. The 69 | fifty hours is one conservative estimate for how long it we take 70 | to get any etext selected, entered, proofread, edited, copyright 71 | searched and analyzed, the copyright letters written, etc. This 72 | projected audience is one hundred million readers. If our value 73 | per text is nominally estimated at one dollar, then we produce 2 74 | million dollars per hour this year we, will have to do four text 75 | files per month: thus upping our productivity from one million. 76 | The Goal of Project Gutenberg is to Give Away One Trillion Etext 77 | Files by the December 31, 2001. [10,000 x 100,000,000=Trillion] 78 | This is ten thousand titles each to one hundred million readers, 79 | which is 10% of the expected number of computer users by the end 80 | of the year 2001. 81 | 82 | We need your donations more than ever! 83 | 84 | All donations should be made to "Project Gutenberg/IBC", and are 85 | tax deductible to the extent allowable by law ("IBC" is Illinois 86 | Benedictine College). (Subscriptions to our paper newsletter go 87 | to IBC, too) 88 | 89 | For these and other matters, please mail to: 90 | 91 | Project Gutenberg 92 | P. O. Box 2782 93 | Champaign, IL 61825 94 | 95 | When all other email fails try our Michael S. Hart, Executive Director: 96 | hart@vmd.cso.uiuc.edu (internet) hart@uiucvmd (bitnet) 97 | 98 | We would prefer to send you this information by email 99 | (Internet, Bitnet, Compuserve, ATTMAIL or MCImail). 100 | 101 | ****** 102 | If you have an FTP program (or emulator), please 103 | FTP directly to the Project Gutenberg archives: 104 | [Mac users, do NOT point and click. . .type] 105 | 106 | ftp mrcnext.cso.uiuc.edu 107 | login: anonymous 108 | password: your@login 109 | cd etext/etext91 110 | or cd etext92 111 | or cd etext93 [for new books] [now also in cd etext/etext93] 112 | or cd etext/articles [get suggest gut for more information] 113 | dir [to see files] 114 | get or mget [to get files. . .set bin for zip files] 115 | GET 0INDEX.GUT 116 | for a list of books 117 | and 118 | GET NEW GUT for general information 119 | and 120 | MGET GUT* for newsletters. 121 | 122 | **Information prepared by the Project Gutenberg legal advisor** 123 | 124 | 125 | ***** SMALL PRINT! for COMPLETE SHAKESPEARE ***** 126 | 127 | THIS ELECTRONIC VERSION OF THE COMPLETE WORKS OF WILLIAM 128 | SHAKESPEARE IS COPYRIGHT 1990-1993 BY WORLD LIBRARY, INC., 129 | AND IS PROVIDED BY PROJECT GUTENBERG ETEXT OF 130 | ILLINOIS BENEDICTINE COLLEGE WITH PERMISSION. 131 | 132 | Since unlike many other Project Gutenberg-tm etexts, this etext 133 | is copyright protected, and since the materials and methods you 134 | use will effect the Project's reputation, your right to copy and 135 | distribute it is limited by the copyright and other laws, and by 136 | the conditions of this "Small Print!" statement. 137 | 138 | 1. LICENSE 139 | 140 | A) YOU MAY (AND ARE ENCOURAGED) TO DISTRIBUTE ELECTRONIC AND 141 | MACHINE READABLE COPIES OF THIS ETEXT, SO LONG AS SUCH COPIES 142 | (1) ARE FOR YOUR OR OTHERS PERSONAL USE ONLY, AND (2) ARE NOT 143 | DISTRIBUTED OR USED COMMERCIALLY. PROHIBITED COMMERCIAL 144 | DISTRIBUTION INCLUDES BY ANY SERVICE THAT CHARGES FOR DOWNLOAD 145 | TIME OR FOR MEMBERSHIP. 146 | 147 | B) This license is subject to the conditions that you honor 148 | the refund and replacement provisions of this "small print!" 149 | statement; and that you distribute exact copies of this etext, 150 | including this Small Print statement. Such copies can be 151 | compressed or any proprietary form (including any form resulting 152 | from word processing or hypertext software), so long as 153 | *EITHER*: 154 | 155 | (1) The etext, when displayed, is clearly readable, and does 156 | *not* contain characters other than those intended by the 157 | author of the work, although tilde (~), asterisk (*) and 158 | underline (_) characters may be used to convey punctuation 159 | intended by the author, and additional characters may be used 160 | to indicate hypertext links; OR 161 | 162 | (2) The etext is readily convertible by the reader at no 163 | expense into plain ASCII, EBCDIC or equivalent form by the 164 | program that displays the etext (as is the case, for instance, 165 | with most word processors); OR 166 | 167 | (3) You provide or agree to provide on request at no 168 | additional cost, fee or expense, a copy of the etext in plain 169 | ASCII. 170 | 171 | 2. LIMITED WARRANTY; DISCLAIMER OF DAMAGES 172 | 173 | This etext may contain a "Defect" in the form of incomplete, 174 | inaccurate or corrupt data, transcription errors, a copyright or 175 | other infringement, a defective or damaged disk, computer virus, 176 | or codes that damage or cannot be read by your equipment. But 177 | for the "Right of Replacement or Refund" described below, the 178 | Project (and any other party you may receive this etext from as 179 | a PROJECT GUTENBERG-tm etext) disclaims all liability to you for 180 | damages, costs and expenses, including legal fees, and YOU HAVE 181 | NO REMEDIES FOR NEGLIGENCE OR UNDER STRICT LIABILITY, OR FOR 182 | BREACH OF WARRANTY OR CONTRACT, INCLUDING BUT NOT LIMITED TO 183 | INDIRECT, CONSEQUENTIAL, PUNITIVE OR INCIDENTAL DAMAGES, EVEN IF 184 | YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. 185 | 186 | If you discover a Defect in this etext within 90 days of receiv- 187 | ing it, you can receive a refund of the money (if any) you paid 188 | for it by sending an explanatory note within that time to the 189 | person you received it from. If you received it on a physical 190 | medium, you must return it with your note, and such person may 191 | choose to alternatively give you a replacement copy. If you 192 | received it electronically, such person may choose to 193 | alternatively give you a second opportunity to receive it 194 | electronically. 195 | 196 | THIS ETEXT IS OTHERWISE PROVIDED TO YOU "AS-IS". NO OTHER 197 | WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, ARE MADE TO YOU AS 198 | TO THE ETEXT OR ANY MEDIUM IT MAY BE ON, INCLUDING BUT NOT 199 | LIMITED TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A 200 | PARTICULAR PURPOSE. Some states do not allow disclaimers of 201 | implied warranties or the exclusion or limitation of consequen- 202 | tial damages, so the above disclaimers and exclusions may not 203 | apply to you, and you may have other legal rights. 204 | 205 | 3. INDEMNITY: You will indemnify and hold the Project, its 206 | directors, officers, members and agents harmless from all lia- 207 | bility, cost and expense, including legal fees, that arise 208 | directly or indirectly from any of the following that you do or 209 | cause: [A] distribution of this etext, [B] alteration, 210 | modification, or addition to the etext, or [C] any Defect. 211 | 212 | 4. WHAT IF YOU *WANT* TO SEND MONEY EVEN IF YOU DON'T HAVE TO? 213 | Project Gutenberg is dedicated to increasing the number of 214 | public domain and licensed works that can be freely distributed 215 | in machine readable form. The Project gratefully accepts 216 | contributions in money, time, scanning machines, OCR software, 217 | public domain etexts, royalty free copyright licenses, and 218 | whatever else you can think of. Money should be paid to "Pro- 219 | ject Gutenberg Association / Illinois Benedictine College". 220 | 221 | WRITE TO US! We can be reached at: 222 | Internet: hart@vmd.cso.uiuc.edu 223 | Bitnet: hart@uiucvmd 224 | CompuServe: >internet:hart@.vmd.cso.uiuc.edu 225 | Attmail: internet!vmd.cso.uiuc.edu!Hart 226 | Mail: Prof. Michael Hart 227 | P.O. Box 2782 228 | Champaign, IL 61825 229 | 230 | This "Small Print!" by Charles B. Kramer, Attorney 231 | Internet (72600.2026@compuserve.com); TEL: (212-254-5093) 232 | **** SMALL PRINT! FOR __ COMPLETE SHAKESPEARE **** 233 | ["Small Print" V.12.08.93] 234 | 235 | <> 243 | 244 | 245 | 1609 246 | 247 | THE SONNETS 248 | 249 | by William Shakespeare 250 | 251 | 252 | 253 | 1 254 | From fairest creatures we desire increase, 255 | That thereby beauty's rose might never die, 256 | But as the riper should by time decease, 257 | His tender heir might bear his memory: 258 | But thou contracted to thine own bright eyes, 259 | Feed'st thy light's flame with self-substantial fuel, 260 | Making a famine where abundance lies, 261 | Thy self thy foe, to thy sweet self too cruel: 262 | Thou that art now the world's fresh ornament, 263 | And only herald to the gaudy spring, 264 | Within thine own bud buriest thy content, 265 | And tender churl mak'st waste in niggarding: 266 | Pity the world, or else this glutton be, 267 | To eat the world's due, by the grave and thee. 268 | 269 | 270 | 2 271 | When forty winters shall besiege thy brow, 272 | And dig deep trenches in thy beauty's field, 273 | Thy youth's proud livery so gazed on now, 274 | Will be a tattered weed of small worth held: 275 | Then being asked, where all thy beauty lies, 276 | Where all the treasure of thy lusty days; 277 | To say within thine own deep sunken eyes, 278 | Were an all-eating shame, and thriftless praise. 279 | How much more praise deserved thy beauty's use, 280 | If thou couldst answer 'This fair child of mine 281 | Shall sum my count, and make my old excuse' 282 | Proving his beauty by succession thine. 283 | This were to be new made when thou art old, 284 | And see thy blood warm when thou feel'st it cold. 285 | 286 | 287 | 3 288 | Look in thy glass and tell the face thou viewest, 289 | Now is the time that face should form another, 290 | Whose fresh repair if now thou not renewest, 291 | Thou dost beguile the world, unbless some mother. 292 | For where is she so fair whose uneared womb 293 | Disdains the tillage of thy husbandry? 294 | Or who is he so fond will be the tomb, 295 | Of his self-love to stop posterity? 296 | Thou art thy mother's glass and she in thee 297 | Calls back the lovely April of her prime, 298 | So thou through windows of thine age shalt see, 299 | Despite of wrinkles this thy golden time. 300 | But if thou live remembered not to be, 301 | Die single and thine image dies with thee. 302 | 303 | 304 | 4 305 | Unthrifty loveliness why dost thou spend, 306 | Upon thy self thy beauty's legacy? 307 | Nature's bequest gives nothing but doth lend, 308 | And being frank she lends to those are free: 309 | Then beauteous niggard why dost thou abuse, 310 | The bounteous largess given thee to give? 311 | Profitless usurer why dost thou use 312 | So great a sum of sums yet canst not live? 313 | For having traffic with thy self alone, 314 | Thou of thy self thy sweet self dost deceive, 315 | Then how when nature calls thee to be gone, 316 | What acceptable audit canst thou leave? 317 | Thy unused beauty must be tombed with thee, 318 | Which used lives th' executor to be. 319 | 320 | 321 | 5 322 | Those hours that with gentle work did frame 323 | The lovely gaze where every eye doth dwell 324 | Will play the tyrants to the very same, 325 | And that unfair which fairly doth excel: 326 | For never-resting time leads summer on 327 | To hideous winter and confounds him there, 328 | Sap checked with frost and lusty leaves quite gone, 329 | Beauty o'er-snowed and bareness every where: 330 | Then were not summer's distillation left 331 | A liquid prisoner pent in walls of glass, 332 | Beauty's effect with beauty were bereft, 333 | Nor it nor no remembrance what it was. 334 | But flowers distilled though they with winter meet, 335 | Leese but their show, their substance still lives sweet. 336 | 337 | 338 | 6 339 | Then let not winter's ragged hand deface, 340 | In thee thy summer ere thou be distilled: 341 | Make sweet some vial; treasure thou some place, 342 | With beauty's treasure ere it be self-killed: 343 | That use is not forbidden usury, 344 | Which happies those that pay the willing loan; 345 | That's for thy self to breed another thee, 346 | Or ten times happier be it ten for one, 347 | Ten times thy self were happier than thou art, 348 | If ten of thine ten times refigured thee: 349 | Then what could death do if thou shouldst depart, 350 | Leaving thee living in posterity? 351 | Be not self-willed for thou art much too fair, 352 | To be death's conquest and make worms thine heir. 353 | 354 | 355 | 7 356 | Lo in the orient when the gracious light 357 | Lifts up his burning head, each under eye 358 | Doth homage to his new-appearing sight, 359 | Serving with looks his sacred majesty, 360 | And having climbed the steep-up heavenly hill, 361 | Resembling strong youth in his middle age, 362 | Yet mortal looks adore his beauty still, 363 | Attending on his golden pilgrimage: 364 | But when from highmost pitch with weary car, 365 | Like feeble age he reeleth from the day, 366 | The eyes (fore duteous) now converted are 367 | From his low tract and look another way: 368 | So thou, thy self out-going in thy noon: 369 | Unlooked on diest unless thou get a son. 370 | 371 | 372 | 8 373 | Music to hear, why hear'st thou music sadly? 374 | Sweets with sweets war not, joy delights in joy: 375 | Why lov'st thou that which thou receiv'st not gladly, 376 | Or else receiv'st with pleasure thine annoy? 377 | If the true concord of well-tuned sounds, 378 | By unions married do offend thine ear, 379 | They do but sweetly chide thee, who confounds 380 | In singleness the parts that thou shouldst bear: 381 | Mark how one string sweet husband to another, 382 | Strikes each in each by mutual ordering; 383 | Resembling sire, and child, and happy mother, 384 | Who all in one, one pleasing note do sing: 385 | Whose speechless song being many, seeming one, 386 | Sings this to thee, 'Thou single wilt prove none'. 387 | 388 | 389 | 9 390 | Is it for fear to wet a widow's eye, 391 | That thou consum'st thy self in single life? 392 | Ah, if thou issueless shalt hap to die, 393 | The world will wail thee like a makeless wife, 394 | The world will be thy widow and still weep, 395 | That thou no form of thee hast left behind, 396 | When every private widow well may keep, 397 | By children's eyes, her husband's shape in mind: 398 | Look what an unthrift in the world doth spend 399 | Shifts but his place, for still the world enjoys it; 400 | But beauty's waste hath in the world an end, 401 | And kept unused the user so destroys it: 402 | No love toward others in that bosom sits 403 | That on himself such murd'rous shame commits. 404 | 405 | 406 | 10 407 | For shame deny that thou bear'st love to any 408 | Who for thy self art so unprovident. 409 | Grant if thou wilt, thou art beloved of many, 410 | But that thou none lov'st is most evident: 411 | For thou art so possessed with murd'rous hate, 412 | That 'gainst thy self thou stick'st not to conspire, 413 | Seeking that beauteous roof to ruinate 414 | Which to repair should be thy chief desire: 415 | O change thy thought, that I may change my mind, 416 | Shall hate be fairer lodged than gentle love? 417 | Be as thy presence is gracious and kind, 418 | Or to thy self at least kind-hearted prove, 419 | Make thee another self for love of me, 420 | That beauty still may live in thine or thee. 421 | 422 | 423 | 11 424 | As fast as thou shalt wane so fast thou grow'st, 425 | In one of thine, from that which thou departest, 426 | And that fresh blood which youngly thou bestow'st, 427 | Thou mayst call thine, when thou from youth convertest, 428 | Herein lives wisdom, beauty, and increase, 429 | Without this folly, age, and cold decay, 430 | If all were minded so, the times should cease, 431 | And threescore year would make the world away: 432 | Let those whom nature hath not made for store, 433 | Harsh, featureless, and rude, barrenly perish: 434 | Look whom she best endowed, she gave thee more; 435 | Which bounteous gift thou shouldst in bounty cherish: 436 | She carved thee for her seal, and meant thereby, 437 | Thou shouldst print more, not let that copy die. 438 | 439 | 440 | 12 441 | When I do count the clock that tells the time, 442 | And see the brave day sunk in hideous night, 443 | When I behold the violet past prime, 444 | And sable curls all silvered o'er with white: 445 | When lofty trees I see barren of leaves, 446 | Which erst from heat did canopy the herd 447 | And summer's green all girded up in sheaves 448 | Borne on the bier with white and bristly beard: 449 | Then of thy beauty do I question make 450 | That thou among the wastes of time must go, 451 | Since sweets and beauties do themselves forsake, 452 | And die as fast as they see others grow, 453 | And nothing 'gainst Time's scythe can make defence 454 | Save breed to brave him, when he takes thee hence. 455 | 456 | 457 | 13 458 | O that you were your self, but love you are 459 | No longer yours, than you your self here live, 460 | Against this coming end you should prepare, 461 | And your sweet semblance to some other give. 462 | So should that beauty which you hold in lease 463 | Find no determination, then you were 464 | Your self again after your self's decease, 465 | When your sweet issue your sweet form should bear. 466 | Who lets so fair a house fall to decay, 467 | Which husbandry in honour might uphold, 468 | Against the stormy gusts of winter's day 469 | And barren rage of death's eternal cold? 470 | O none but unthrifts, dear my love you know, 471 | You had a father, let your son say so. 472 | 473 | 474 | 14 475 | Not from the stars do I my judgement pluck, 476 | And yet methinks I have astronomy, 477 | But not to tell of good, or evil luck, 478 | Of plagues, of dearths, or seasons' quality, 479 | Nor can I fortune to brief minutes tell; 480 | Pointing to each his thunder, rain and wind, 481 | Or say with princes if it shall go well 482 | By oft predict that I in heaven find. 483 | But from thine eyes my knowledge I derive, 484 | And constant stars in them I read such art 485 | As truth and beauty shall together thrive 486 | If from thy self, to store thou wouldst convert: 487 | Or else of thee this I prognosticate, 488 | Thy end is truth's and beauty's doom and date. 489 | 490 | 491 | 15 492 | When I consider every thing that grows 493 | Holds in perfection but a little moment. 494 | That this huge stage presenteth nought but shows 495 | Whereon the stars in secret influence comment. 496 | When I perceive that men as plants increase, 497 | Cheered and checked even by the self-same sky: 498 | Vaunt in their youthful sap, at height decrease, 499 | And wear their brave state out of memory. 500 | Then the conceit of this inconstant stay, 501 | Sets you most rich in youth before my sight, 502 | Where wasteful time debateth with decay 503 | To change your day of youth to sullied night, 504 | And all in war with Time for love of you, 505 | As he takes from you, I engraft you new. 506 | 507 | 508 | 16 509 | But wherefore do not you a mightier way 510 | Make war upon this bloody tyrant Time? 511 | And fortify your self in your decay 512 | With means more blessed than my barren rhyme? 513 | Now stand you on the top of happy hours, 514 | And many maiden gardens yet unset, 515 | With virtuous wish would bear you living flowers, 516 | Much liker than your painted counterfeit: 517 | So should the lines of life that life repair 518 | Which this (Time's pencil) or my pupil pen 519 | Neither in inward worth nor outward fair 520 | Can make you live your self in eyes of men. 521 | To give away your self, keeps your self still, 522 | And you must live drawn by your own sweet skill. 523 | 524 | 525 | 17 526 | Who will believe my verse in time to come 527 | If it were filled with your most high deserts? 528 | Though yet heaven knows it is but as a tomb 529 | Which hides your life, and shows not half your parts: 530 | If I could write the beauty of your eyes, 531 | And in fresh numbers number all your graces, 532 | The age to come would say this poet lies, 533 | Such heavenly touches ne'er touched earthly faces. 534 | So should my papers (yellowed with their age) 535 | Be scorned, like old men of less truth than tongue, 536 | And your true rights be termed a poet's rage, 537 | And stretched metre of an antique song. 538 | But were some child of yours alive that time, 539 | You should live twice in it, and in my rhyme. 540 | 541 | 542 | 18 543 | Shall I compare thee to a summer's day? 544 | Thou art more lovely and more temperate: 545 | Rough winds do shake the darling buds of May, 546 | And summer's lease hath all too short a date: 547 | Sometime too hot the eye of heaven shines, 548 | And often is his gold complexion dimmed, 549 | And every fair from fair sometime declines, 550 | By chance, or nature's changing course untrimmed: 551 | But thy eternal summer shall not fade, 552 | Nor lose possession of that fair thou ow'st, 553 | Nor shall death brag thou wand'rest in his shade, 554 | When in eternal lines to time thou grow'st, 555 | So long as men can breathe or eyes can see, 556 | So long lives this, and this gives life to thee. 557 | 558 | 559 | 19 560 | Devouring Time blunt thou the lion's paws, 561 | And make the earth devour her own sweet brood, 562 | Pluck the keen teeth from the fierce tiger's jaws, 563 | And burn the long-lived phoenix, in her blood, 564 | Make glad and sorry seasons as thou fleet'st, 565 | And do whate'er thou wilt swift-footed Time 566 | To the wide world and all her fading sweets: 567 | But I forbid thee one most heinous crime, 568 | O carve not with thy hours my love's fair brow, 569 | Nor draw no lines there with thine antique pen, 570 | Him in thy course untainted do allow, 571 | For beauty's pattern to succeeding men. 572 | Yet do thy worst old Time: despite thy wrong, 573 | My love shall in my verse ever live young. 574 | 575 | 576 | 20 577 | A woman's face with nature's own hand painted, 578 | Hast thou the master mistress of my passion, 579 | A woman's gentle heart but not acquainted 580 | With shifting change as is false women's fashion, 581 | An eye more bright than theirs, less false in rolling: 582 | Gilding the object whereupon it gazeth, 583 | A man in hue all hues in his controlling, 584 | Which steals men's eyes and women's souls amazeth. 585 | And for a woman wert thou first created, 586 | Till nature as she wrought thee fell a-doting, 587 | And by addition me of thee defeated, 588 | By adding one thing to my purpose nothing. 589 | But since she pricked thee out for women's pleasure, 590 | Mine be thy love and thy love's use their treasure. 591 | 592 | 593 | 21 594 | So is it not with me as with that muse, 595 | Stirred by a painted beauty to his verse, 596 | Who heaven it self for ornament doth use, 597 | And every fair with his fair doth rehearse, 598 | Making a couplement of proud compare 599 | With sun and moon, with earth and sea's rich gems: 600 | With April's first-born flowers and all things rare, 601 | That heaven's air in this huge rondure hems. 602 | O let me true in love but truly write, 603 | And then believe me, my love is as fair, 604 | As any mother's child, though not so bright 605 | As those gold candles fixed in heaven's air: 606 | Let them say more that like of hearsay well, 607 | I will not praise that purpose not to sell. 608 | 609 | 610 | 22 611 | My glass shall not persuade me I am old, 612 | So long as youth and thou are of one date, 613 | But when in thee time's furrows I behold, 614 | Then look I death my days should expiate. 615 | For all that beauty that doth cover thee, 616 | Is but the seemly raiment of my heart, 617 | Which in thy breast doth live, as thine in me, 618 | How can I then be elder than thou art? 619 | O therefore love be of thyself so wary, 620 | As I not for my self, but for thee will, 621 | Bearing thy heart which I will keep so chary 622 | As tender nurse her babe from faring ill. 623 | Presume not on thy heart when mine is slain, 624 | Thou gav'st me thine not to give back again. 625 | 626 | 627 | 23 628 | As an unperfect actor on the stage, 629 | Who with his fear is put beside his part, 630 | Or some fierce thing replete with too much rage, 631 | Whose strength's abundance weakens his own heart; 632 | So I for fear of trust, forget to say, 633 | The perfect ceremony of love's rite, 634 | And in mine own love's strength seem to decay, 635 | O'ercharged with burthen of mine own love's might: 636 | O let my looks be then the eloquence, 637 | And dumb presagers of my speaking breast, 638 | Who plead for love, and look for recompense, 639 | More than that tongue that more hath more expressed. 640 | O learn to read what silent love hath writ, 641 | To hear with eyes belongs to love's fine wit. 642 | 643 | 644 | 24 645 | Mine eye hath played the painter and hath stelled, 646 | Thy beauty's form in table of my heart, 647 | My body is the frame wherein 'tis held, 648 | And perspective it is best painter's art. 649 | For through the painter must you see his skill, 650 | To find where your true image pictured lies, 651 | Which in my bosom's shop is hanging still, 652 | That hath his windows glazed with thine eyes: 653 | Now see what good turns eyes for eyes have done, 654 | Mine eyes have drawn thy shape, and thine for me 655 | Are windows to my breast, where-through the sun 656 | Delights to peep, to gaze therein on thee; 657 | Yet eyes this cunning want to grace their art, 658 | They draw but what they see, know not the heart. 659 | 660 | 661 | 25 662 | Let those who are in favour with their stars, 663 | Of public honour and proud titles boast, 664 | Whilst I whom fortune of such triumph bars 665 | Unlooked for joy in that I honour most; 666 | Great princes' favourites their fair leaves spread, 667 | But as the marigold at the sun's eye, 668 | And in themselves their pride lies buried, 669 | For at a frown they in their glory die. 670 | The painful warrior famoused for fight, 671 | After a thousand victories once foiled, 672 | Is from the book of honour razed quite, 673 | And all the rest forgot for which he toiled: 674 | Then happy I that love and am beloved 675 | Where I may not remove nor be removed. 676 | 677 | 678 | 26 679 | Lord of my love, to whom in vassalage 680 | Thy merit hath my duty strongly knit; 681 | To thee I send this written embassage 682 | To witness duty, not to show my wit. 683 | Duty so great, which wit so poor as mine 684 | May make seem bare, in wanting words to show it; 685 | But that I hope some good conceit of thine 686 | In thy soul's thought (all naked) will bestow it: 687 | Till whatsoever star that guides my moving, 688 | Points on me graciously with fair aspect, 689 | And puts apparel on my tattered loving, 690 | To show me worthy of thy sweet respect, 691 | Then may I dare to boast how I do love thee, 692 | Till then, not show my head where thou mayst prove me. 693 | 694 | 695 | 27 696 | Weary with toil, I haste me to my bed, 697 | The dear respose for limbs with travel tired, 698 | But then begins a journey in my head 699 | To work my mind, when body's work's expired. 700 | For then my thoughts (from far where I abide) 701 | Intend a zealous pilgrimage to thee, 702 | And keep my drooping eyelids open wide, 703 | Looking on darkness which the blind do see. 704 | Save that my soul's imaginary sight 705 | Presents thy shadow to my sightless view, 706 | Which like a jewel (hung in ghastly night) 707 | Makes black night beauteous, and her old face new. 708 | Lo thus by day my limbs, by night my mind, 709 | For thee, and for my self, no quiet find. 710 | 711 | 712 | 28 713 | How can I then return in happy plight 714 | That am debarred the benefit of rest? 715 | When day's oppression is not eased by night, 716 | But day by night and night by day oppressed. 717 | And each (though enemies to either's reign) 718 | Do in consent shake hands to torture me, 719 | The one by toil, the other to complain 720 | How far I toil, still farther off from thee. 721 | I tell the day to please him thou art bright, 722 | And dost him grace when clouds do blot the heaven: 723 | So flatter I the swart-complexioned night, 724 | When sparkling stars twire not thou gild'st the even. 725 | But day doth daily draw my sorrows longer, 726 | And night doth nightly make grief's length seem stronger 727 | 728 | 729 | 29 730 | When in disgrace with Fortune and men's eyes, 731 | I all alone beweep my outcast state, 732 | And trouble deaf heaven with my bootless cries, 733 | And look upon my self and curse my fate, 734 | Wishing me like to one more rich in hope, 735 | Featured like him, like him with friends possessed, 736 | Desiring this man's art, and that man's scope, 737 | With what I most enjoy contented least, 738 | Yet in these thoughts my self almost despising, 739 | Haply I think on thee, and then my state, 740 | (Like to the lark at break of day arising 741 | From sullen earth) sings hymns at heaven's gate, 742 | For thy sweet love remembered such wealth brings, 743 | That then I scorn to change my state with kings. 744 | 745 | 746 | 30 747 | When to the sessions of sweet silent thought, 748 | I summon up remembrance of things past, 749 | I sigh the lack of many a thing I sought, 750 | And with old woes new wail my dear time's waste: 751 | Then can I drown an eye (unused to flow) 752 | For precious friends hid in death's dateless night, 753 | And weep afresh love's long since cancelled woe, 754 | And moan th' expense of many a vanished sight. 755 | Then can I grieve at grievances foregone, 756 | And heavily from woe to woe tell o'er 757 | The sad account of fore-bemoaned moan, 758 | Which I new pay as if not paid before. 759 | But if the while I think on thee (dear friend) 760 | All losses are restored, and sorrows end. 761 | 762 | 763 | 31 764 | Thy bosom is endeared with all hearts, 765 | Which I by lacking have supposed dead, 766 | And there reigns love and all love's loving parts, 767 | And all those friends which I thought buried. 768 | How many a holy and obsequious tear 769 | Hath dear religious love stol'n from mine eye, 770 | As interest of the dead, which now appear, 771 | But things removed that hidden in thee lie. 772 | Thou art the grave where buried love doth live, 773 | Hung with the trophies of my lovers gone, 774 | Who all their parts of me to thee did give, 775 | That due of many, now is thine alone. 776 | Their images I loved, I view in thee, 777 | And thou (all they) hast all the all of me. 778 | 779 | 780 | 32 781 | If thou survive my well-contented day, 782 | When that churl death my bones with dust shall cover 783 | And shalt by fortune once more re-survey 784 | These poor rude lines of thy deceased lover: 785 | Compare them with the bett'ring of the time, 786 | And though they be outstripped by every pen, 787 | Reserve them for my love, not for their rhyme, 788 | Exceeded by the height of happier men. 789 | O then vouchsafe me but this loving thought, 790 | 'Had my friend's Muse grown with this growing age, 791 | A dearer birth than this his love had brought 792 | To march in ranks of better equipage: 793 | But since he died and poets better prove, 794 | Theirs for their style I'll read, his for his love'. 795 | 796 | 797 | 33 798 | Full many a glorious morning have I seen, 799 | Flatter the mountain tops with sovereign eye, 800 | Kissing with golden face the meadows green; 801 | Gilding pale streams with heavenly alchemy: 802 | Anon permit the basest clouds to ride, 803 | With ugly rack on his celestial face, 804 | And from the forlorn world his visage hide 805 | Stealing unseen to west with this disgrace: 806 | Even so my sun one early morn did shine, 807 | With all triumphant splendour on my brow, 808 | But out alack, he was but one hour mine, 809 | The region cloud hath masked him from me now. 810 | Yet him for this, my love no whit disdaineth, 811 | Suns of the world may stain, when heaven's sun staineth. 812 | 813 | 814 | 34 815 | Why didst thou promise such a beauteous day, 816 | And make me travel forth without my cloak, 817 | To let base clouds o'ertake me in my way, 818 | Hiding thy brav'ry in their rotten smoke? 819 | 'Tis not enough that through the cloud thou break, 820 | To dry the rain on my storm-beaten face, 821 | For no man well of such a salve can speak, 822 | That heals the wound, and cures not the disgrace: 823 | Nor can thy shame give physic to my grief, 824 | Though thou repent, yet I have still the loss, 825 | Th' offender's sorrow lends but weak relief 826 | To him that bears the strong offence's cross. 827 | Ah but those tears are pearl which thy love sheds, 828 | And they are rich, and ransom all ill deeds. 829 | 830 | 831 | 35 832 | No more be grieved at that which thou hast done, 833 | Roses have thorns, and silver fountains mud, 834 | Clouds and eclipses stain both moon and sun, 835 | And loathsome canker lives in sweetest bud. 836 | All men make faults, and even I in this, 837 | Authorizing thy trespass with compare, 838 | My self corrupting salving thy amiss, 839 | Excusing thy sins more than thy sins are: 840 | For to thy sensual fault I bring in sense, 841 | Thy adverse party is thy advocate, 842 | And 'gainst my self a lawful plea commence: 843 | Such civil war is in my love and hate, 844 | That I an accessary needs must be, 845 | To that sweet thief which sourly robs from me. 846 | 847 | 848 | 36 849 | Let me confess that we two must be twain, 850 | Although our undivided loves are one: 851 | So shall those blots that do with me remain, 852 | Without thy help, by me be borne alone. 853 | In our two loves there is but one respect, 854 | Though in our lives a separable spite, 855 | Which though it alter not love's sole effect, 856 | Yet doth it steal sweet hours from love's delight. 857 | I may not evermore acknowledge thee, 858 | Lest my bewailed guilt should do thee shame, 859 | Nor thou with public kindness honour me, 860 | Unless thou take that honour from thy name: 861 | But do not so, I love thee in such sort, 862 | As thou being mine, mine is thy good report. 863 | 864 | 865 | 37 866 | As a decrepit father takes delight, 867 | To see his active child do deeds of youth, 868 | So I, made lame by Fortune's dearest spite 869 | Take all my comfort of thy worth and truth. 870 | For whether beauty, birth, or wealth, or wit, 871 | Or any of these all, or all, or more 872 | Entitled in thy parts, do crowned sit, 873 | I make my love engrafted to this store: 874 | So then I am not lame, poor, nor despised, 875 | Whilst that this shadow doth such substance give, 876 | That I in thy abundance am sufficed, 877 | And by a part of all thy glory live: 878 | Look what is best, that best I wish in thee, 879 | This wish I have, then ten times happy me. 880 | 881 | 882 | 38 883 | How can my muse want subject to invent 884 | While thou dost breathe that pour'st into my verse, 885 | Thine own sweet argument, too excellent, 886 | For every vulgar paper to rehearse? 887 | O give thy self the thanks if aught in me, 888 | Worthy perusal stand against thy sight, 889 | For who's so dumb that cannot write to thee, 890 | When thou thy self dost give invention light? 891 | Be thou the tenth Muse, ten times more in worth 892 | Than those old nine which rhymers invocate, 893 | And he that calls on thee, let him bring forth 894 | Eternal numbers to outlive long date. 895 | If my slight muse do please these curious days, 896 | The pain be mine, but thine shall be the praise. 897 | 898 | 899 | 39 900 | O how thy worth with manners may I sing, 901 | When thou art all the better part of me? 902 | What can mine own praise to mine own self bring: 903 | And what is't but mine own when I praise thee? 904 | Even for this, let us divided live, 905 | And our dear love lose name of single one, 906 | That by this separation I may give: 907 | That due to thee which thou deserv'st alone: 908 | O absence what a torment wouldst thou prove, 909 | Were it not thy sour leisure gave sweet leave, 910 | To entertain the time with thoughts of love, 911 | Which time and thoughts so sweetly doth deceive. 912 | And that thou teachest how to make one twain, 913 | By praising him here who doth hence remain. 914 | 915 | 916 | 40 917 | Take all my loves, my love, yea take them all, 918 | What hast thou then more than thou hadst before? 919 | No love, my love, that thou mayst true love call, 920 | All mine was thine, before thou hadst this more: 921 | Then if for my love, thou my love receivest, 922 | I cannot blame thee, for my love thou usest, 923 | But yet be blamed, if thou thy self deceivest 924 | By wilful taste of what thy self refusest. 925 | I do forgive thy robbery gentle thief 926 | Although thou steal thee all my poverty: 927 | And yet love knows it is a greater grief 928 | To bear greater wrong, than hate's known injury. 929 | Lascivious grace, in whom all ill well shows, 930 | Kill me with spites yet we must not be foes. 931 | 932 | 933 | 41 934 | Those pretty wrongs that liberty commits, 935 | When I am sometime absent from thy heart, 936 | Thy beauty, and thy years full well befits, 937 | For still temptation follows where thou art. 938 | Gentle thou art, and therefore to be won, 939 | Beauteous thou art, therefore to be assailed. 940 | And when a woman woos, what woman's son, 941 | Will sourly leave her till he have prevailed? 942 | Ay me, but yet thou mightst my seat forbear, 943 | And chide thy beauty, and thy straying youth, 944 | Who lead thee in their riot even there 945 | Where thou art forced to break a twofold truth: 946 | Hers by thy beauty tempting her to thee, 947 | Thine by thy beauty being false to me. 948 | 949 | 950 | 42 951 | That thou hast her it is not all my grief, 952 | And yet it may be said I loved her dearly, 953 | That she hath thee is of my wailing chief, 954 | A loss in love that touches me more nearly. 955 | Loving offenders thus I will excuse ye, 956 | Thou dost love her, because thou know'st I love her, 957 | And for my sake even so doth she abuse me, 958 | Suff'ring my friend for my sake to approve her. 959 | If I lose thee, my loss is my love's gain, 960 | And losing her, my friend hath found that loss, 961 | Both find each other, and I lose both twain, 962 | And both for my sake lay on me this cross, 963 | But here's the joy, my friend and I are one, 964 | Sweet flattery, then she loves but me alone. 965 | 966 | 967 | 43 968 | When most I wink then do mine eyes best see, 969 | For all the day they view things unrespected, 970 | But when I sleep, in dreams they look on thee, 971 | And darkly bright, are bright in dark directed. 972 | Then thou whose shadow shadows doth make bright 973 | How would thy shadow's form, form happy show, 974 | To the clear day with thy much clearer light, 975 | When to unseeing eyes thy shade shines so! 976 | How would (I say) mine eyes be blessed made, 977 | By looking on thee in the living day, 978 | When in dead night thy fair imperfect shade, 979 | Through heavy sleep on sightless eyes doth stay! 980 | All days are nights to see till I see thee, 981 | And nights bright days when dreams do show thee me. 982 | 983 | 984 | 44 985 | If the dull substance of my flesh were thought, 986 | Injurious distance should not stop my way, 987 | For then despite of space I would be brought, 988 | From limits far remote, where thou dost stay, 989 | No matter then although my foot did stand 990 | Upon the farthest earth removed from thee, 991 | For nimble thought can jump both sea and land, 992 | As soon as think the place where he would be. 993 | But ah, thought kills me that I am not thought 994 | To leap large lengths of miles when thou art gone, 995 | But that so much of earth and water wrought, 996 | I must attend, time's leisure with my moan. 997 | Receiving nought by elements so slow, 998 | But heavy tears, badges of either's woe. 999 | 1000 | 1001 | 45 1002 | The other two, slight air, and purging fire, 1003 | Are both with thee, wherever I abide, 1004 | The first my thought, the other my desire, 1005 | These present-absent with swift motion slide. 1006 | For when these quicker elements are gone 1007 | In tender embassy of love to thee, 1008 | My life being made of four, with two alone, 1009 | Sinks down to death, oppressed with melancholy. 1010 | Until life's composition be recured, 1011 | By those swift messengers returned from thee, 1012 | Who even but now come back again assured, 1013 | Of thy fair health, recounting it to me. 1014 | This told, I joy, but then no longer glad, 1015 | I send them back again and straight grow sad. 1016 | 1017 | 1018 | 46 1019 | Mine eye and heart are at a mortal war, 1020 | How to divide the conquest of thy sight, 1021 | Mine eye, my heart thy picture's sight would bar, 1022 | My heart, mine eye the freedom of that right, 1023 | My heart doth plead that thou in him dost lie, 1024 | (A closet never pierced with crystal eyes) 1025 | But the defendant doth that plea deny, 1026 | And says in him thy fair appearance lies. 1027 | To side this title is impanelled 1028 | A quest of thoughts, all tenants to the heart, 1029 | And by their verdict is determined 1030 | The clear eye's moiety, and the dear heart's part. 1031 | As thus, mine eye's due is thy outward part, 1032 | And my heart's right, thy inward love of heart. 1033 | 1034 | 1035 | 47 1036 | Betwixt mine eye and heart a league is took, 1037 | And each doth good turns now unto the other, 1038 | When that mine eye is famished for a look, 1039 | Or heart in love with sighs himself doth smother; 1040 | With my love's picture then my eye doth feast, 1041 | And to the painted banquet bids my heart: 1042 | Another time mine eye is my heart's guest, 1043 | And in his thoughts of love doth share a part. 1044 | So either by thy picture or my love, 1045 | Thy self away, art present still with me, 1046 | For thou not farther than my thoughts canst move, 1047 | And I am still with them, and they with thee. 1048 | Or if they sleep, thy picture in my sight 1049 | Awakes my heart, to heart's and eye's delight. 1050 | 1051 | 1052 | 48 1053 | How careful was I when I took my way, 1054 | Each trifle under truest bars to thrust, 1055 | That to my use it might unused stay 1056 | From hands of falsehood, in sure wards of trust! 1057 | But thou, to whom my jewels trifles are, 1058 | Most worthy comfort, now my greatest grief, 1059 | Thou best of dearest, and mine only care, 1060 | Art left the prey of every vulgar thief. 1061 | Thee have I not locked up in any chest, 1062 | Save where thou art not, though I feel thou art, 1063 | Within the gentle closure of my breast, 1064 | From whence at pleasure thou mayst come and part, 1065 | And even thence thou wilt be stol'n I fear, 1066 | For truth proves thievish for a prize so dear. 1067 | 1068 | 1069 | 49 1070 | Against that time (if ever that time come) 1071 | When I shall see thee frown on my defects, 1072 | When as thy love hath cast his utmost sum, 1073 | Called to that audit by advised respects, 1074 | Against that time when thou shalt strangely pass, 1075 | And scarcely greet me with that sun thine eye, 1076 | When love converted from the thing it was 1077 | Shall reasons find of settled gravity; 1078 | Against that time do I ensconce me here 1079 | Within the knowledge of mine own desert, 1080 | And this my hand, against my self uprear, 1081 | To guard the lawful reasons on thy part, 1082 | To leave poor me, thou hast the strength of laws, 1083 | Since why to love, I can allege no cause. 1084 | 1085 | 1086 | 50 1087 | How heavy do I journey on the way, 1088 | When what I seek (my weary travel's end) 1089 | Doth teach that case and that repose to say 1090 | 'Thus far the miles are measured from thy friend.' 1091 | The beast that bears me, tired with my woe, 1092 | Plods dully on, to bear that weight in me, 1093 | As if by some instinct the wretch did know 1094 | His rider loved not speed being made from thee: 1095 | The bloody spur cannot provoke him on, 1096 | That sometimes anger thrusts into his hide, 1097 | Which heavily he answers with a groan, 1098 | More sharp to me than spurring to his side, 1099 | For that same groan doth put this in my mind, 1100 | My grief lies onward and my joy behind. 1101 | 1102 | 1103 | 51 1104 | Thus can my love excuse the slow offence, 1105 | Of my dull bearer, when from thee I speed, 1106 | From where thou art, why should I haste me thence? 1107 | Till I return of posting is no need. 1108 | O what excuse will my poor beast then find, 1109 | When swift extremity can seem but slow? 1110 | Then should I spur though mounted on the wind, 1111 | In winged speed no motion shall I know, 1112 | Then can no horse with my desire keep pace, 1113 | Therefore desire (of perfect'st love being made) 1114 | Shall neigh (no dull flesh) in his fiery race, 1115 | But love, for love, thus shall excuse my jade, 1116 | Since from thee going, he went wilful-slow, 1117 | Towards thee I'll run, and give him leave to go. 1118 | 1119 | 1120 | 52 1121 | So am I as the rich whose blessed key, 1122 | Can bring him to his sweet up-locked treasure, 1123 | The which he will not every hour survey, 1124 | For blunting the fine point of seldom pleasure. 1125 | Therefore are feasts so solemn and so rare, 1126 | Since seldom coming in that long year set, 1127 | Like stones of worth they thinly placed are, 1128 | Or captain jewels in the carcanet. 1129 | So is the time that keeps you as my chest 1130 | Or as the wardrobe which the robe doth hide, 1131 | To make some special instant special-blest, 1132 | By new unfolding his imprisoned pride. 1133 | Blessed are you whose worthiness gives scope, 1134 | Being had to triumph, being lacked to hope. 1135 | 1136 | 1137 | 53 1138 | What is your substance, whereof are you made, 1139 | That millions of strange shadows on you tend? 1140 | Since every one, hath every one, one shade, 1141 | And you but one, can every shadow lend: 1142 | Describe Adonis and the counterfeit, 1143 | Is poorly imitated after you, 1144 | On Helen's cheek all art of beauty set, 1145 | And you in Grecian tires are painted new: 1146 | Speak of the spring, and foison of the year, 1147 | The one doth shadow of your beauty show, 1148 | The other as your bounty doth appear, 1149 | And you in every blessed shape we know. 1150 | In all external grace you have some part, 1151 | But you like none, none you for constant heart. 1152 | 1153 | 1154 | 54 1155 | O how much more doth beauty beauteous seem, 1156 | By that sweet ornament which truth doth give! 1157 | The rose looks fair, but fairer we it deem 1158 | For that sweet odour, which doth in it live: 1159 | The canker blooms have full as deep a dye, 1160 | As the perfumed tincture of the roses, 1161 | Hang on such thorns, and play as wantonly, 1162 | When summer's breath their masked buds discloses: 1163 | But for their virtue only is their show, 1164 | They live unwooed, and unrespected fade, 1165 | Die to themselves. Sweet roses do not so, 1166 | Of their sweet deaths, are sweetest odours made: 1167 | And so of you, beauteous and lovely youth, 1168 | When that shall vade, by verse distills your truth. 1169 | 1170 | 1171 | 55 1172 | Not marble, nor the gilded monuments 1173 | Of princes shall outlive this powerful rhyme, 1174 | But you shall shine more bright in these contents 1175 | Than unswept stone, besmeared with sluttish time. 1176 | When wasteful war shall statues overturn, 1177 | And broils root out the work of masonry, 1178 | Nor Mars his sword, nor war's quick fire shall burn: 1179 | The living record of your memory. 1180 | 'Gainst death, and all-oblivious enmity 1181 | Shall you pace forth, your praise shall still find room, 1182 | Even in the eyes of all posterity 1183 | That wear this world out to the ending doom. 1184 | So till the judgment that your self arise, 1185 | You live in this, and dwell in lovers' eyes. 1186 | 1187 | 1188 | 56 1189 | Sweet love renew thy force, be it not said 1190 | Thy edge should blunter be than appetite, 1191 | Which but to-day by feeding is allayed, 1192 | To-morrow sharpened in his former might. 1193 | So love be thou, although to-day thou fill 1194 | Thy hungry eyes, even till they wink with fulness, 1195 | To-morrow see again, and do not kill 1196 | The spirit of love, with a perpetual dulness: 1197 | Let this sad interim like the ocean be 1198 | Which parts the shore, where two contracted new, 1199 | Come daily to the banks, that when they see: 1200 | Return of love, more blest may be the view. 1201 | Or call it winter, which being full of care, 1202 | Makes summer's welcome, thrice more wished, more rare. 1203 | 1204 | 1205 | 57 1206 | Being your slave what should I do but tend, 1207 | Upon the hours, and times of your desire? 1208 | I have no precious time at all to spend; 1209 | Nor services to do till you require. 1210 | Nor dare I chide the world-without-end hour, 1211 | Whilst I (my sovereign) watch the clock for you, 1212 | Nor think the bitterness of absence sour, 1213 | When you have bid your servant once adieu. 1214 | Nor dare I question with my jealous thought, 1215 | Where you may be, or your affairs suppose, 1216 | But like a sad slave stay and think of nought 1217 | Save where you are, how happy you make those. 1218 | So true a fool is love, that in your will, 1219 | (Though you do any thing) he thinks no ill. 1220 | 1221 | 1222 | 58 1223 | That god forbid, that made me first your slave, 1224 | I should in thought control your times of pleasure, 1225 | Or at your hand th' account of hours to crave, 1226 | Being your vassal bound to stay your leisure. 1227 | O let me suffer (being at your beck) 1228 | Th' imprisoned absence of your liberty, 1229 | And patience tame to sufferance bide each check, 1230 | Without accusing you of injury. 1231 | Be where you list, your charter is so strong, 1232 | That you your self may privilage your time 1233 | To what you will, to you it doth belong, 1234 | Your self to pardon of self-doing crime. 1235 | I am to wait, though waiting so be hell, 1236 | Not blame your pleasure be it ill or well. 1237 | 1238 | 1239 | 59 1240 | If there be nothing new, but that which is, 1241 | Hath been before, how are our brains beguiled, 1242 | Which labouring for invention bear amis 1243 | The second burthen of a former child! 1244 | O that record could with a backward look, 1245 | Even of five hundred courses of the sun, 1246 | Show me your image in some antique book, 1247 | Since mind at first in character was done. 1248 | That I might see what the old world could say, 1249 | To this composed wonder of your frame, 1250 | Whether we are mended, or whether better they, 1251 | Or whether revolution be the same. 1252 | O sure I am the wits of former days, 1253 | To subjects worse have given admiring praise. 1254 | 1255 | 1256 | 60 1257 | Like as the waves make towards the pebbled shore, 1258 | So do our minutes hasten to their end, 1259 | Each changing place with that which goes before, 1260 | In sequent toil all forwards do contend. 1261 | Nativity once in the main of light, 1262 | Crawls to maturity, wherewith being crowned, 1263 | Crooked eclipses 'gainst his glory fight, 1264 | And Time that gave, doth now his gift confound. 1265 | Time doth transfix the flourish set on youth, 1266 | And delves the parallels in beauty's brow, 1267 | Feeds on the rarities of nature's truth, 1268 | And nothing stands but for his scythe to mow. 1269 | And yet to times in hope, my verse shall stand 1270 | Praising thy worth, despite his cruel hand. 1271 | 1272 | 1273 | 61 1274 | Is it thy will, thy image should keep open 1275 | My heavy eyelids to the weary night? 1276 | Dost thou desire my slumbers should be broken, 1277 | While shadows like to thee do mock my sight? 1278 | Is it thy spirit that thou send'st from thee 1279 | So far from home into my deeds to pry, 1280 | To find out shames and idle hours in me, 1281 | The scope and tenure of thy jealousy? 1282 | O no, thy love though much, is not so great, 1283 | It is my love that keeps mine eye awake, 1284 | Mine own true love that doth my rest defeat, 1285 | To play the watchman ever for thy sake. 1286 | For thee watch I, whilst thou dost wake elsewhere, 1287 | From me far off, with others all too near. 1288 | 1289 | 1290 | 62 1291 | Sin of self-love possesseth all mine eye, 1292 | And all my soul, and all my every part; 1293 | And for this sin there is no remedy, 1294 | It is so grounded inward in my heart. 1295 | Methinks no face so gracious is as mine, 1296 | No shape so true, no truth of such account, 1297 | And for my self mine own worth do define, 1298 | As I all other in all worths surmount. 1299 | But when my glass shows me my self indeed 1300 | beated and chopt with tanned antiquity, 1301 | Mine own self-love quite contrary I read: 1302 | Self, so self-loving were iniquity. 1303 | 'Tis thee (my self) that for my self I praise, 1304 | Painting my age with beauty of thy days. 1305 | 1306 | 1307 | 63 1308 | Against my love shall be as I am now 1309 | With Time's injurious hand crushed and o'erworn, 1310 | When hours have drained his blood and filled his brow 1311 | With lines and wrinkles, when his youthful morn 1312 | Hath travelled on to age's steepy night, 1313 | And all those beauties whereof now he's king 1314 | Are vanishing, or vanished out of sight, 1315 | Stealing away the treasure of his spring: 1316 | For such a time do I now fortify 1317 | Against confounding age's cruel knife, 1318 | That he shall never cut from memory 1319 | My sweet love's beauty, though my lover's life. 1320 | His beauty shall in these black lines be seen, 1321 | And they shall live, and he in them still green. 1322 | 1323 | 1324 | 64 1325 | When I have seen by Time's fell hand defaced 1326 | The rich-proud cost of outworn buried age, 1327 | When sometime lofty towers I see down-rased, 1328 | And brass eternal slave to mortal rage. 1329 | When I have seen the hungry ocean gain 1330 | Advantage on the kingdom of the shore, 1331 | And the firm soil win of the watery main, 1332 | Increasing store with loss, and loss with store. 1333 | When I have seen such interchange of State, 1334 | Or state it self confounded, to decay, 1335 | Ruin hath taught me thus to ruminate 1336 | That Time will come and take my love away. 1337 | This thought is as a death which cannot choose 1338 | But weep to have, that which it fears to lose. 1339 | 1340 | 1341 | 65 1342 | Since brass, nor stone, nor earth, nor boundless sea, 1343 | But sad mortality o'ersways their power, 1344 | How with this rage shall beauty hold a plea, 1345 | Whose action is no stronger than a flower? 1346 | O how shall summer's honey breath hold out, 1347 | Against the wrackful siege of batt'ring days, 1348 | When rocks impregnable are not so stout, 1349 | Nor gates of steel so strong but time decays? 1350 | O fearful meditation, where alack, 1351 | Shall Time's best jewel from Time's chest lie hid? 1352 | Or what strong hand can hold his swift foot back, 1353 | Or who his spoil of beauty can forbid? 1354 | O none, unless this miracle have might, 1355 | That in black ink my love may still shine bright. 1356 | 1357 | 1358 | 66 1359 | Tired with all these for restful death I cry, 1360 | As to behold desert a beggar born, 1361 | And needy nothing trimmed in jollity, 1362 | And purest faith unhappily forsworn, 1363 | And gilded honour shamefully misplaced, 1364 | And maiden virtue rudely strumpeted, 1365 | And right perfection wrongfully disgraced, 1366 | And strength by limping sway disabled 1367 | And art made tongue-tied by authority, 1368 | And folly (doctor-like) controlling skill, 1369 | And simple truth miscalled simplicity, 1370 | And captive good attending captain ill. 1371 | Tired with all these, from these would I be gone, 1372 | Save that to die, I leave my love alone. 1373 | 1374 | 1375 | 67 1376 | Ah wherefore with infection should he live, 1377 | And with his presence grace impiety, 1378 | That sin by him advantage should achieve, 1379 | And lace it self with his society? 1380 | Why should false painting imitate his cheek, 1381 | And steal dead seeming of his living hue? 1382 | Why should poor beauty indirectly seek, 1383 | Roses of shadow, since his rose is true? 1384 | Why should he live, now nature bankrupt is, 1385 | Beggared of blood to blush through lively veins, 1386 | For she hath no exchequer now but his, 1387 | And proud of many, lives upon his gains? 1388 | O him she stores, to show what wealth she had, 1389 | In days long since, before these last so bad. 1390 | 1391 | 1392 | 68 1393 | Thus is his cheek the map of days outworn, 1394 | When beauty lived and died as flowers do now, 1395 | Before these bastard signs of fair were born, 1396 | Or durst inhabit on a living brow: 1397 | Before the golden tresses of the dead, 1398 | The right of sepulchres, were shorn away, 1399 | To live a second life on second head, 1400 | Ere beauty's dead fleece made another gay: 1401 | In him those holy antique hours are seen, 1402 | Without all ornament, it self and true, 1403 | Making no summer of another's green, 1404 | Robbing no old to dress his beauty new, 1405 | And him as for a map doth Nature store, 1406 | To show false Art what beauty was of yore. 1407 | 1408 | 1409 | 69 1410 | Those parts of thee that the world's eye doth view, 1411 | Want nothing that the thought of hearts can mend: 1412 | All tongues (the voice of souls) give thee that due, 1413 | Uttering bare truth, even so as foes commend. 1414 | Thy outward thus with outward praise is crowned, 1415 | But those same tongues that give thee so thine own, 1416 | In other accents do this praise confound 1417 | By seeing farther than the eye hath shown. 1418 | They look into the beauty of thy mind, 1419 | And that in guess they measure by thy deeds, 1420 | Then churls their thoughts (although their eyes were kind) 1421 | To thy fair flower add the rank smell of weeds: 1422 | But why thy odour matcheth not thy show, 1423 | The soil is this, that thou dost common grow. 1424 | 1425 | 1426 | 70 1427 | That thou art blamed shall not be thy defect, 1428 | For slander's mark was ever yet the fair, 1429 | The ornament of beauty is suspect, 1430 | A crow that flies in heaven's sweetest air. 1431 | So thou be good, slander doth but approve, 1432 | Thy worth the greater being wooed of time, 1433 | For canker vice the sweetest buds doth love, 1434 | And thou present'st a pure unstained prime. 1435 | Thou hast passed by the ambush of young days, 1436 | Either not assailed, or victor being charged, 1437 | Yet this thy praise cannot be so thy praise, 1438 | To tie up envy, evermore enlarged, 1439 | If some suspect of ill masked not thy show, 1440 | Then thou alone kingdoms of hearts shouldst owe. 1441 | 1442 | 1443 | 71 1444 | No longer mourn for me when I am dead, 1445 | Than you shall hear the surly sullen bell 1446 | Give warning to the world that I am fled 1447 | From this vile world with vilest worms to dwell: 1448 | Nay if you read this line, remember not, 1449 | The hand that writ it, for I love you so, 1450 | That I in your sweet thoughts would be forgot, 1451 | If thinking on me then should make you woe. 1452 | O if (I say) you look upon this verse, 1453 | When I (perhaps) compounded am with clay, 1454 | Do not so much as my poor name rehearse; 1455 | But let your love even with my life decay. 1456 | Lest the wise world should look into your moan, 1457 | And mock you with me after I am gone. 1458 | 1459 | 1460 | 72 1461 | O lest the world should task you to recite, 1462 | What merit lived in me that you should love 1463 | After my death (dear love) forget me quite, 1464 | For you in me can nothing worthy prove. 1465 | Unless you would devise some virtuous lie, 1466 | To do more for me than mine own desert, 1467 | And hang more praise upon deceased I, 1468 | Than niggard truth would willingly impart: 1469 | O lest your true love may seem false in this, 1470 | That you for love speak well of me untrue, 1471 | My name be buried where my body is, 1472 | And live no more to shame nor me, nor you. 1473 | For I am shamed by that which I bring forth, 1474 | And so should you, to love things nothing worth. 1475 | 1476 | 1477 | 73 1478 | That time of year thou mayst in me behold, 1479 | When yellow leaves, or none, or few do hang 1480 | Upon those boughs which shake against the cold, 1481 | Bare ruined choirs, where late the sweet birds sang. 1482 | In me thou seest the twilight of such day, 1483 | As after sunset fadeth in the west, 1484 | Which by and by black night doth take away, 1485 | Death's second self that seals up all in rest. 1486 | In me thou seest the glowing of such fire, 1487 | That on the ashes of his youth doth lie, 1488 | As the death-bed, whereon it must expire, 1489 | Consumed with that which it was nourished by. 1490 | This thou perceiv'st, which makes thy love more strong, 1491 | To love that well, which thou must leave ere long. 1492 | 1493 | 1494 | 74 1495 | But be contented when that fell arrest, 1496 | Without all bail shall carry me away, 1497 | My life hath in this line some interest, 1498 | Which for memorial still with thee shall stay. 1499 | When thou reviewest this, thou dost review, 1500 | The very part was consecrate to thee, 1501 | The earth can have but earth, which is his due, 1502 | My spirit is thine the better part of me, 1503 | So then thou hast but lost the dregs of life, 1504 | The prey of worms, my body being dead, 1505 | The coward conquest of a wretch's knife, 1506 | Too base of thee to be remembered, 1507 | The worth of that, is that which it contains, 1508 | And that is this, and this with thee remains. 1509 | 1510 | 1511 | 75 1512 | So are you to my thoughts as food to life, 1513 | Or as sweet-seasoned showers are to the ground; 1514 | And for the peace of you I hold such strife 1515 | As 'twixt a miser and his wealth is found. 1516 | Now proud as an enjoyer, and anon 1517 | Doubting the filching age will steal his treasure, 1518 | Now counting best to be with you alone, 1519 | Then bettered that the world may see my pleasure, 1520 | Sometime all full with feasting on your sight, 1521 | And by and by clean starved for a look, 1522 | Possessing or pursuing no delight 1523 | Save what is had, or must from you be took. 1524 | Thus do I pine and surfeit day by day, 1525 | Or gluttoning on all, or all away. 1526 | 1527 | 1528 | 76 1529 | Why is my verse so barren of new pride? 1530 | So far from variation or quick change? 1531 | Why with the time do I not glance aside 1532 | To new-found methods, and to compounds strange? 1533 | Why write I still all one, ever the same, 1534 | And keep invention in a noted weed, 1535 | That every word doth almost tell my name, 1536 | Showing their birth, and where they did proceed? 1537 | O know sweet love I always write of you, 1538 | And you and love are still my argument: 1539 | So all my best is dressing old words new, 1540 | Spending again what is already spent: 1541 | For as the sun is daily new and old, 1542 | So is my love still telling what is told. 1543 | 1544 | 1545 | 77 1546 | Thy glass will show thee how thy beauties wear, 1547 | Thy dial how thy precious minutes waste, 1548 | These vacant leaves thy mind's imprint will bear, 1549 | And of this book, this learning mayst thou taste. 1550 | The wrinkles which thy glass will truly show, 1551 | Of mouthed graves will give thee memory, 1552 | Thou by thy dial's shady stealth mayst know, 1553 | Time's thievish progress to eternity. 1554 | Look what thy memory cannot contain, 1555 | Commit to these waste blanks, and thou shalt find 1556 | Those children nursed, delivered from thy brain, 1557 | To take a new acquaintance of thy mind. 1558 | These offices, so oft as thou wilt look, 1559 | Shall profit thee, and much enrich thy book. 1560 | 1561 | 1562 | 78 1563 | So oft have I invoked thee for my muse, 1564 | And found such fair assistance in my verse, 1565 | As every alien pen hath got my use, 1566 | And under thee their poesy disperse. 1567 | Thine eyes, that taught the dumb on high to sing, 1568 | And heavy ignorance aloft to fly, 1569 | Have added feathers to the learned's wing, 1570 | And given grace a double majesty. 1571 | Yet be most proud of that which I compile, 1572 | Whose influence is thine, and born of thee, 1573 | In others' works thou dost but mend the style, 1574 | And arts with thy sweet graces graced be. 1575 | But thou art all my art, and dost advance 1576 | As high as learning, my rude ignorance. 1577 | 1578 | 1579 | 79 1580 | Whilst I alone did call upon thy aid, 1581 | My verse alone had all thy gentle grace, 1582 | But now my gracious numbers are decayed, 1583 | And my sick muse doth give an other place. 1584 | I grant (sweet love) thy lovely argument 1585 | Deserves the travail of a worthier pen, 1586 | Yet what of thee thy poet doth invent, 1587 | He robs thee of, and pays it thee again, 1588 | He lends thee virtue, and he stole that word, 1589 | From thy behaviour, beauty doth he give 1590 | And found it in thy cheek: he can afford 1591 | No praise to thee, but what in thee doth live. 1592 | Then thank him not for that which he doth say, 1593 | Since what he owes thee, thou thy self dost pay. 1594 | 1595 | 1596 | 80 1597 | O how I faint when I of you do write, 1598 | Knowing a better spirit doth use your name, 1599 | And in the praise thereof spends all his might, 1600 | To make me tongue-tied speaking of your fame. 1601 | But since your worth (wide as the ocean is) 1602 | The humble as the proudest sail doth bear, 1603 | My saucy bark (inferior far to his) 1604 | On your broad main doth wilfully appear. 1605 | Your shallowest help will hold me up afloat, 1606 | Whilst he upon your soundless deep doth ride, 1607 | Or (being wrecked) I am a worthless boat, 1608 | He of tall building, and of goodly pride. 1609 | Then if he thrive and I be cast away, 1610 | The worst was this, my love was my decay. 1611 | 1612 | 1613 | 81 1614 | Or I shall live your epitaph to make, 1615 | Or you survive when I in earth am rotten, 1616 | From hence your memory death cannot take, 1617 | Although in me each part will be forgotten. 1618 | Your name from hence immortal life shall have, 1619 | Though I (once gone) to all the world must die, 1620 | The earth can yield me but a common grave, 1621 | When you entombed in men's eyes shall lie, 1622 | Your monument shall be my gentle verse, 1623 | Which eyes not yet created shall o'er-read, 1624 | And tongues to be, your being shall rehearse, 1625 | When all the breathers of this world are dead, 1626 | You still shall live (such virtue hath my pen) 1627 | Where breath most breathes, even in the mouths of men. 1628 | 1629 | 1630 | 82 1631 | I grant thou wert not married to my muse, 1632 | And therefore mayst without attaint o'erlook 1633 | The dedicated words which writers use 1634 | Of their fair subject, blessing every book. 1635 | Thou art as fair in knowledge as in hue, 1636 | Finding thy worth a limit past my praise, 1637 | And therefore art enforced to seek anew, 1638 | Some fresher stamp of the time-bettering days. 1639 | And do so love, yet when they have devised, 1640 | What strained touches rhetoric can lend, 1641 | Thou truly fair, wert truly sympathized, 1642 | In true plain words, by thy true-telling friend. 1643 | And their gross painting might be better used, 1644 | Where cheeks need blood, in thee it is abused. 1645 | 1646 | 1647 | 83 1648 | I never saw that you did painting need, 1649 | And therefore to your fair no painting set, 1650 | I found (or thought I found) you did exceed, 1651 | That barren tender of a poet's debt: 1652 | And therefore have I slept in your report, 1653 | That you your self being extant well might show, 1654 | How far a modern quill doth come too short, 1655 | Speaking of worth, what worth in you doth grow. 1656 | This silence for my sin you did impute, 1657 | Which shall be most my glory being dumb, 1658 | For I impair not beauty being mute, 1659 | When others would give life, and bring a tomb. 1660 | There lives more life in one of your fair eyes, 1661 | Than both your poets can in praise devise. 1662 | 1663 | 1664 | 84 1665 | Who is it that says most, which can say more, 1666 | Than this rich praise, that you alone, are you? 1667 | In whose confine immured is the store, 1668 | Which should example where your equal grew. 1669 | Lean penury within that pen doth dwell, 1670 | That to his subject lends not some small glory, 1671 | But he that writes of you, if he can tell, 1672 | That you are you, so dignifies his story. 1673 | Let him but copy what in you is writ, 1674 | Not making worse what nature made so clear, 1675 | And such a counterpart shall fame his wit, 1676 | Making his style admired every where. 1677 | You to your beauteous blessings add a curse, 1678 | Being fond on praise, which makes your praises worse. 1679 | 1680 | 1681 | 85 1682 | My tongue-tied muse in manners holds her still, 1683 | While comments of your praise richly compiled, 1684 | Reserve their character with golden quill, 1685 | And precious phrase by all the Muses filed. 1686 | I think good thoughts, whilst other write good words, 1687 | And like unlettered clerk still cry Amen, 1688 | To every hymn that able spirit affords, 1689 | In polished form of well refined pen. 1690 | Hearing you praised, I say 'tis so, 'tis true, 1691 | And to the most of praise add something more, 1692 | But that is in my thought, whose love to you 1693 | (Though words come hindmost) holds his rank before, 1694 | Then others, for the breath of words respect, 1695 | Me for my dumb thoughts, speaking in effect. 1696 | 1697 | 1698 | 86 1699 | Was it the proud full sail of his great verse, 1700 | Bound for the prize of (all too precious) you, 1701 | That did my ripe thoughts in my brain inhearse, 1702 | Making their tomb the womb wherein they grew? 1703 | Was it his spirit, by spirits taught to write, 1704 | Above a mortal pitch, that struck me dead? 1705 | No, neither he, nor his compeers by night 1706 | Giving him aid, my verse astonished. 1707 | He nor that affable familiar ghost 1708 | Which nightly gulls him with intelligence, 1709 | As victors of my silence cannot boast, 1710 | I was not sick of any fear from thence. 1711 | But when your countenance filled up his line, 1712 | Then lacked I matter, that enfeebled mine. 1713 | 1714 | 1715 | 87 1716 | Farewell! thou art too dear for my possessing, 1717 | And like enough thou know'st thy estimate, 1718 | The charter of thy worth gives thee releasing: 1719 | My bonds in thee are all determinate. 1720 | For how do I hold thee but by thy granting, 1721 | And for that riches where is my deserving? 1722 | The cause of this fair gift in me is wanting, 1723 | And so my patent back again is swerving. 1724 | Thy self thou gav'st, thy own worth then not knowing, 1725 | Or me to whom thou gav'st it, else mistaking, 1726 | So thy great gift upon misprision growing, 1727 | Comes home again, on better judgement making. 1728 | Thus have I had thee as a dream doth flatter, 1729 | In sleep a king, but waking no such matter. 1730 | 1731 | 1732 | 88 1733 | When thou shalt be disposed to set me light, 1734 | And place my merit in the eye of scorn, 1735 | Upon thy side, against my self I'll fight, 1736 | And prove thee virtuous, though thou art forsworn: 1737 | With mine own weakness being best acquainted, 1738 | Upon thy part I can set down a story 1739 | Of faults concealed, wherein I am attainted: 1740 | That thou in losing me, shalt win much glory: 1741 | And I by this will be a gainer too, 1742 | For bending all my loving thoughts on thee, 1743 | The injuries that to my self I do, 1744 | Doing thee vantage, double-vantage me. 1745 | Such is my love, to thee I so belong, 1746 | That for thy right, my self will bear all wrong. 1747 | 1748 | 1749 | 89 1750 | Say that thou didst forsake me for some fault, 1751 | And I will comment upon that offence, 1752 | Speak of my lameness, and I straight will halt: 1753 | Against thy reasons making no defence. 1754 | Thou canst not (love) disgrace me half so ill, 1755 | To set a form upon desired change, 1756 | As I'll my self disgrace, knowing thy will, 1757 | I will acquaintance strangle and look strange: 1758 | Be absent from thy walks and in my tongue, 1759 | Thy sweet beloved name no more shall dwell, 1760 | Lest I (too much profane) should do it wronk: 1761 | And haply of our old acquaintance tell. 1762 | For thee, against my self I'll vow debate, 1763 | For I must ne'er love him whom thou dost hate. 1764 | 1765 | 1766 | 90 1767 | Then hate me when thou wilt, if ever, now, 1768 | Now while the world is bent my deeds to cross, 1769 | join with the spite of fortune, make me bow, 1770 | And do not drop in for an after-loss: 1771 | Ah do not, when my heart hath 'scaped this sorrow, 1772 | Come in the rearward of a conquered woe, 1773 | Give not a windy night a rainy morrow, 1774 | To linger out a purposed overthrow. 1775 | If thou wilt leave me, do not leave me last, 1776 | When other petty griefs have done their spite, 1777 | But in the onset come, so shall I taste 1778 | At first the very worst of fortune's might. 1779 | And other strains of woe, which now seem woe, 1780 | Compared with loss of thee, will not seem so. 1781 | 1782 | 1783 | 91 1784 | Some glory in their birth, some in their skill, 1785 | Some in their wealth, some in their body's force, 1786 | Some in their garments though new-fangled ill: 1787 | Some in their hawks and hounds, some in their horse. 1788 | And every humour hath his adjunct pleasure, 1789 | Wherein it finds a joy above the rest, 1790 | But these particulars are not my measure, 1791 | All these I better in one general best. 1792 | Thy love is better than high birth to me, 1793 | Richer than wealth, prouder than garments' costs, 1794 | Of more delight than hawks and horses be: 1795 | And having thee, of all men's pride I boast. 1796 | Wretched in this alone, that thou mayst take, 1797 | All this away, and me most wretchcd make. 1798 | 1799 | 1800 | 92 1801 | But do thy worst to steal thy self away, 1802 | For term of life thou art assured mine, 1803 | And life no longer than thy love will stay, 1804 | For it depends upon that love of thine. 1805 | Then need I not to fear the worst of wrongs, 1806 | When in the least of them my life hath end, 1807 | I see, a better state to me belongs 1808 | Than that, which on thy humour doth depend. 1809 | Thou canst not vex me with inconstant mind, 1810 | Since that my life on thy revolt doth lie, 1811 | O what a happy title do I find, 1812 | Happy to have thy love, happy to die! 1813 | But what's so blessed-fair that fears no blot? 1814 | Thou mayst be false, and yet I know it not. 1815 | 1816 | 1817 | 93 1818 | So shall I live, supposing thou art true, 1819 | Like a deceived husband, so love's face, 1820 | May still seem love to me, though altered new: 1821 | Thy looks with me, thy heart in other place. 1822 | For there can live no hatred in thine eye, 1823 | Therefore in that I cannot know thy change, 1824 | In many's looks, the false heart's history 1825 | Is writ in moods and frowns and wrinkles strange. 1826 | But heaven in thy creation did decree, 1827 | That in thy face sweet love should ever dwell, 1828 | Whate'er thy thoughts, or thy heart's workings be, 1829 | Thy looks should nothing thence, but sweetness tell. 1830 | How like Eve's apple doth thy beauty grow, 1831 | If thy sweet virtue answer not thy show. 1832 | 1833 | 1834 | 94 1835 | They that have power to hurt, and will do none, 1836 | That do not do the thing, they most do show, 1837 | Who moving others, are themselves as stone, 1838 | Unmoved, cold, and to temptation slow: 1839 | They rightly do inherit heaven's graces, 1840 | And husband nature's riches from expense, 1841 | Tibey are the lords and owners of their faces, 1842 | Others, but stewards of their excellence: 1843 | The summer's flower is to the summer sweet, 1844 | Though to it self, it only live and die, 1845 | But if that flower with base infection meet, 1846 | The basest weed outbraves his dignity: 1847 | For sweetest things turn sourest by their deeds, 1848 | Lilies that fester, smell far worse than weeds. 1849 | 1850 | 1851 | 95 1852 | How sweet and lovely dost thou make the shame, 1853 | Which like a canker in the fragrant rose, 1854 | Doth spot the beauty of thy budding name! 1855 | O in what sweets dost thou thy sins enclose! 1856 | That tongue that tells the story of thy days, 1857 | (Making lascivious comments on thy sport) 1858 | Cannot dispraise, but in a kind of praise, 1859 | Naming thy name, blesses an ill report. 1860 | O what a mansion have those vices got, 1861 | Which for their habitation chose out thee, 1862 | Where beauty's veil doth cover every blot, 1863 | And all things turns to fair, that eyes can see! 1864 | Take heed (dear heart) of this large privilege, 1865 | The hardest knife ill-used doth lose his edge. 1866 | 1867 | 1868 | 96 1869 | Some say thy fault is youth, some wantonness, 1870 | Some say thy grace is youth and gentle sport, 1871 | Both grace and faults are loved of more and less: 1872 | Thou mak'st faults graces, that to thee resort: 1873 | As on the finger of a throned queen, 1874 | The basest jewel will be well esteemed: 1875 | So are those errors that in thee are seen, 1876 | To truths translated, and for true things deemed. 1877 | How many lambs might the stern wolf betray, 1878 | If like a lamb he could his looks translate! 1879 | How many gazers mightst thou lead away, 1880 | if thou wouldst use the strength of all thy state! 1881 | But do not so, I love thee in such sort, 1882 | As thou being mine, mine is thy good report. 1883 | 1884 | 1885 | 97 1886 | How like a winter hath my absence been 1887 | From thee, the pleasure of the fleeting year! 1888 | What freezings have I felt, what dark days seen! 1889 | What old December's bareness everywhere! 1890 | And yet this time removed was summer's time, 1891 | The teeming autumn big with rich increase, 1892 | Bearing the wanton burden of the prime, 1893 | Like widowed wombs after their lords' decease: 1894 | Yet this abundant issue seemed to me 1895 | But hope of orphans, and unfathered fruit, 1896 | For summer and his pleasures wait on thee, 1897 | And thou away, the very birds are mute. 1898 | Or if they sing, 'tis with so dull a cheer, 1899 | That leaves look pale, dreading the winter's near. 1900 | 1901 | 1902 | 98 1903 | From you have I been absent in the spring, 1904 | When proud-pied April (dressed in all his trim) 1905 | Hath put a spirit of youth in every thing: 1906 | That heavy Saturn laughed and leaped with him. 1907 | Yet nor the lays of birds, nor the sweet smell 1908 | Of different flowers in odour and in hue, 1909 | Could make me any summer's story tell: 1910 | Or from their proud lap pluck them where they grew: 1911 | Nor did I wonder at the lily's white, 1912 | Nor praise the deep vermilion in the rose, 1913 | They were but sweet, but figures of delight: 1914 | Drawn after you, you pattern of all those. 1915 | Yet seemed it winter still, and you away, 1916 | As with your shadow I with these did play. 1917 | 1918 | 1919 | 99 1920 | The forward violet thus did I chide, 1921 | Sweet thief, whence didst thou steal thy sweet that smells, 1922 | If not from my love's breath? The purple pride 1923 | Which on thy soft check for complexion dwells, 1924 | In my love's veins thou hast too grossly dyed. 1925 | The lily I condemned for thy hand, 1926 | And buds of marjoram had stol'n thy hair, 1927 | The roses fearfully on thorns did stand, 1928 | One blushing shame, another white despair: 1929 | A third nor red, nor white, had stol'n of both, 1930 | And to his robbery had annexed thy breath, 1931 | But for his theft in pride of all his growth 1932 | A vengeful canker eat him up to death. 1933 | More flowers I noted, yet I none could see, 1934 | But sweet, or colour it had stol'n from thee. 1935 | 1936 | 1937 | 100 1938 | Where art thou Muse that thou forget'st so long, 1939 | To speak of that which gives thee all thy might? 1940 | Spend'st thou thy fury on some worthless song, 1941 | Darkening thy power to lend base subjects light? 1942 | Return forgetful Muse, and straight redeem, 1943 | In gentle numbers time so idly spent, 1944 | Sing to the ear that doth thy lays esteem, 1945 | And gives thy pen both skill and argument. 1946 | Rise resty Muse, my love's sweet face survey, 1947 | If time have any wrinkle graven there, 1948 | If any, be a satire to decay, 1949 | And make time's spoils despised everywhere. 1950 | Give my love fame faster than Time wastes life, 1951 | So thou prevent'st his scythe, and crooked knife. 1952 | 1953 | 1954 | 101 1955 | O truant Muse what shall be thy amends, 1956 | For thy neglect of truth in beauty dyed? 1957 | Both truth and beauty on my love depends: 1958 | So dost thou too, and therein dignified: 1959 | Make answer Muse, wilt thou not haply say, 1960 | 'Truth needs no colour with his colour fixed, 1961 | Beauty no pencil, beauty's truth to lay: 1962 | But best is best, if never intermixed'? 1963 | Because he needs no praise, wilt thou be dumb? 1964 | Excuse not silence so, for't lies in thee, 1965 | To make him much outlive a gilded tomb: 1966 | And to be praised of ages yet to be. 1967 | Then do thy office Muse, I teach thee how, 1968 | To make him seem long hence, as he shows now. 1969 | 1970 | 1971 | 102 1972 | My love is strengthened though more weak in seeming, 1973 | I love not less, though less the show appear, 1974 | That love is merchandized, whose rich esteeming, 1975 | The owner's tongue doth publish every where. 1976 | Our love was new, and then but in the spring, 1977 | When I was wont to greet it with my lays, 1978 | As Philomel in summer's front doth sing, 1979 | And stops her pipe in growth of riper days: 1980 | Not that the summer is less pleasant now 1981 | Than when her mournful hymns did hush the night, 1982 | But that wild music burthens every bough, 1983 | And sweets grown common lose their dear delight. 1984 | Therefore like her, I sometime hold my tongue: 1985 | Because I would not dull you with my song. 1986 | 1987 | 1988 | 103 1989 | Alack what poverty my muse brings forth, 1990 | That having such a scope to show her pride, 1991 | The argument all bare is of more worth 1992 | Than when it hath my added praise beside. 1993 | O blame me not if I no more can write! 1994 | Look in your glass and there appears a face, 1995 | That over-goes my blunt invention quite, 1996 | Dulling my lines, and doing me disgrace. 1997 | Were it not sinful then striving to mend, 1998 | To mar the subject that before was well? 1999 | For to no other pass my verses tend, 2000 | Than of your graces and your gifts to tell. 2001 | And more, much more than in my verse can sit, 2002 | Your own glass shows you, when you look in it. 2003 | 2004 | 2005 | 104 2006 | To me fair friend you never can be old, 2007 | For as you were when first your eye I eyed, 2008 | Such seems your beauty still: three winters cold, 2009 | Have from the forests shook three summers' pride, 2010 | Three beauteous springs to yellow autumn turned, 2011 | In process of the seasons have I seen, 2012 | Three April perfumes in three hot Junes burned, 2013 | Since first I saw you fresh which yet are green. 2014 | Ah yet doth beauty like a dial hand, 2015 | Steal from his figure, and no pace perceived, 2016 | So your sweet hue, which methinks still doth stand 2017 | Hath motion, and mine eye may be deceived. 2018 | For fear of which, hear this thou age unbred, 2019 | Ere you were born was beauty's summer dead. 2020 | 2021 | 2022 | 105 2023 | Let not my love be called idolatry, 2024 | Nor my beloved as an idol show, 2025 | Since all alike my songs and praises be 2026 | To one, of one, still such, and ever so. 2027 | Kind is my love to-day, to-morrow kind, 2028 | Still constant in a wondrous excellence, 2029 | Therefore my verse to constancy confined, 2030 | One thing expressing, leaves out difference. 2031 | Fair, kind, and true, is all my argument, 2032 | Fair, kind, and true, varying to other words, 2033 | And in this change is my invention spent, 2034 | Three themes in one, which wondrous scope affords. 2035 | Fair, kind, and true, have often lived alone. 2036 | Which three till now, never kept seat in one. 2037 | 2038 | 2039 | 106 2040 | When in the chronicle of wasted time, 2041 | I see descriptions of the fairest wights, 2042 | And beauty making beautiful old rhyme, 2043 | In praise of ladies dead, and lovely knights, 2044 | Then in the blazon of sweet beauty's best, 2045 | Of hand, of foot, of lip, of eye, of brow, 2046 | I see their antique pen would have expressed, 2047 | Even such a beauty as you master now. 2048 | So all their praises are but prophecies 2049 | Of this our time, all you prefiguring, 2050 | And for they looked but with divining eyes, 2051 | They had not skill enough your worth to sing: 2052 | For we which now behold these present days, 2053 | Have eyes to wonder, but lack tongues to praise. 2054 | 2055 | 2056 | 107 2057 | Not mine own fears, nor the prophetic soul, 2058 | Of the wide world, dreaming on things to come, 2059 | Can yet the lease of my true love control, 2060 | Supposed as forfeit to a confined doom. 2061 | The mortal moon hath her eclipse endured, 2062 | And the sad augurs mock their own presage, 2063 | Incertainties now crown themselves assured, 2064 | And peace proclaims olives of endless age. 2065 | Now with the drops of this most balmy time, 2066 | My love looks fresh, and death to me subscribes, 2067 | Since spite of him I'll live in this poor rhyme, 2068 | While he insults o'er dull and speechless tribes. 2069 | And thou in this shalt find thy monument, 2070 | When tyrants' crests and tombs of brass are spent. 2071 | 2072 | 2073 | 108 2074 | What's in the brain that ink may character, 2075 | Which hath not figured to thee my true spirit, 2076 | What's new to speak, what now to register, 2077 | That may express my love, or thy dear merit? 2078 | Nothing sweet boy, but yet like prayers divine, 2079 | I must each day say o'er the very same, 2080 | Counting no old thing old, thou mine, I thine, 2081 | Even as when first I hallowed thy fair name. 2082 | So that eternal love in love's fresh case, 2083 | Weighs not the dust and injury of age, 2084 | Nor gives to necessary wrinkles place, 2085 | But makes antiquity for aye his page, 2086 | Finding the first conceit of love there bred, 2087 | Where time and outward form would show it dead. 2088 | 2089 | 2090 | 109 2091 | O never say that I was false of heart, 2092 | Though absence seemed my flame to qualify, 2093 | As easy might I from my self depart, 2094 | As from my soul which in thy breast doth lie: 2095 | That is my home of love, if I have ranged, 2096 | Like him that travels I return again, 2097 | Just to the time, not with the time exchanged, 2098 | So that my self bring water for my stain, 2099 | Never believe though in my nature reigned, 2100 | All frailties that besiege all kinds of blood, 2101 | That it could so preposterously be stained, 2102 | To leave for nothing all thy sum of good: 2103 | For nothing this wide universe I call, 2104 | Save thou my rose, in it thou art my all. 2105 | 2106 | 2107 | 110 2108 | Alas 'tis true, I have gone here and there, 2109 | And made my self a motley to the view, 2110 | Gored mine own thoughts, sold cheap what is most dear, 2111 | Made old offences of affections new. 2112 | Most true it is, that I have looked on truth 2113 | Askance and strangely: but by all above, 2114 | These blenches gave my heart another youth, 2115 | And worse essays proved thee my best of love. 2116 | Now all is done, have what shall have no end, 2117 | Mine appetite I never more will grind 2118 | On newer proof, to try an older friend, 2119 | A god in love, to whom I am confined. 2120 | Then give me welcome, next my heaven the best, 2121 | Even to thy pure and most most loving breast. 2122 | 2123 | 2124 | 111 2125 | O for my sake do you with Fortune chide, 2126 | The guilty goddess of my harmful deeds, 2127 | That did not better for my life provide, 2128 | Than public means which public manners breeds. 2129 | Thence comes it that my name receives a brand, 2130 | And almost thence my nature is subdued 2131 | To what it works in, like the dyer's hand: 2132 | Pity me then, and wish I were renewed, 2133 | Whilst like a willing patient I will drink, 2134 | Potions of eisel 'gainst my strong infection, 2135 | No bitterness that I will bitter think, 2136 | Nor double penance to correct correction. 2137 | Pity me then dear friend, and I assure ye, 2138 | Even that your pity is enough to cure me. 2139 | 2140 | 2141 | 112 2142 | Your love and pity doth th' impression fill, 2143 | Which vulgar scandal stamped upon my brow, 2144 | For what care I who calls me well or ill, 2145 | So you o'er-green my bad, my good allow? 2146 | You are my all the world, and I must strive, 2147 | To know my shames and praises from your tongue, 2148 | None else to me, nor I to none alive, 2149 | That my steeled sense or changes right or wrong. 2150 | In so profound abysm I throw all care 2151 | Of others' voices, that my adder's sense, 2152 | To critic and to flatterer stopped are: 2153 | Mark how with my neglect I do dispense. 2154 | You are so strongly in my purpose bred, 2155 | That all the world besides methinks are dead. 2156 | 2157 | 2158 | 113 2159 | Since I left you, mine eye is in my mind, 2160 | And that which governs me to go about, 2161 | Doth part his function, and is partly blind, 2162 | Seems seeing, but effectually is out: 2163 | For it no form delivers to the heart 2164 | Of bird, of flower, or shape which it doth latch, 2165 | Of his quick objects hath the mind no part, 2166 | Nor his own vision holds what it doth catch: 2167 | For if it see the rud'st or gentlest sight, 2168 | The most sweet favour or deformed'st creature, 2169 | The mountain, or the sea, the day, or night: 2170 | The crow, or dove, it shapes them to your feature. 2171 | Incapable of more, replete with you, 2172 | My most true mind thus maketh mine untrue. 2173 | 2174 | 2175 | 114 2176 | Or whether doth my mind being crowned with you 2177 | Drink up the monarch's plague this flattery? 2178 | Or whether shall I say mine eye saith true, 2179 | And that your love taught it this alchemy? 2180 | To make of monsters, and things indigest, 2181 | Such cherubins as your sweet self resemble, 2182 | Creating every bad a perfect best 2183 | As fast as objects to his beams assemble: 2184 | O 'tis the first, 'tis flattery in my seeing, 2185 | And my great mind most kingly drinks it up, 2186 | Mine eye well knows what with his gust is 'greeing, 2187 | And to his palate doth prepare the cup. 2188 | If it be poisoned, 'tis the lesser sin, 2189 | That mine eye loves it and doth first begin. 2190 | 2191 | 2192 | 115 2193 | Those lines that I before have writ do lie, 2194 | Even those that said I could not love you dearer, 2195 | Yet then my judgment knew no reason why, 2196 | My most full flame should afterwards burn clearer, 2197 | But reckoning time, whose millioned accidents 2198 | Creep in 'twixt vows, and change decrees of kings, 2199 | Tan sacred beauty, blunt the sharp'st intents, 2200 | Divert strong minds to the course of alt'ring things: 2201 | Alas why fearing of time's tyranny, 2202 | Might I not then say 'Now I love you best,' 2203 | When I was certain o'er incertainty, 2204 | Crowning the present, doubting of the rest? 2205 | Love is a babe, then might I not say so 2206 | To give full growth to that which still doth grow. 2207 | 2208 | 2209 | 116 2210 | Let me not to the marriage of true minds 2211 | Admit impediments, love is not love 2212 | Which alters when it alteration finds, 2213 | Or bends with the remover to remove. 2214 | O no, it is an ever-fixed mark 2215 | That looks on tempests and is never shaken; 2216 | It is the star to every wand'ring bark, 2217 | Whose worth's unknown, although his height be taken. 2218 | Love's not Time's fool, though rosy lips and cheeks 2219 | Within his bending sickle's compass come, 2220 | Love alters not with his brief hours and weeks, 2221 | But bears it out even to the edge of doom: 2222 | If this be error and upon me proved, 2223 | I never writ, nor no man ever loved. 2224 | 2225 | 2226 | 117 2227 | Accuse me thus, that I have scanted all, 2228 | Wherein I should your great deserts repay, 2229 | Forgot upon your dearest love to call, 2230 | Whereto all bonds do tie me day by day, 2231 | That I have frequent been with unknown minds, 2232 | And given to time your own dear-purchased right, 2233 | That I have hoisted sail to all the winds 2234 | Which should transport me farthest from your sight. 2235 | Book both my wilfulness and errors down, 2236 | And on just proof surmise, accumulate, 2237 | Bring me within the level of your frown, 2238 | But shoot not at me in your wakened hate: 2239 | Since my appeal says I did strive to prove 2240 | The constancy and virtue of your love. 2241 | 2242 | 2243 | 118 2244 | Like as to make our appetite more keen 2245 | With eager compounds we our palate urge, 2246 | As to prevent our maladies unseen, 2247 | We sicken to shun sickness when we purge. 2248 | Even so being full of your ne'er-cloying sweetness, 2249 | To bitter sauces did I frame my feeding; 2250 | And sick of welfare found a kind of meetness, 2251 | To be diseased ere that there was true needing. 2252 | Thus policy in love t' anticipate 2253 | The ills that were not, grew to faults assured, 2254 | And brought to medicine a healthful state 2255 | Which rank of goodness would by ill be cured. 2256 | But thence I learn and find the lesson true, 2257 | Drugs poison him that so feil sick of you. 2258 | 2259 | 2260 | 119 2261 | What potions have I drunk of Siren tears 2262 | Distilled from limbecks foul as hell within, 2263 | Applying fears to hopes, and hopes to fears, 2264 | Still losing when I saw my self to win! 2265 | What wretched errors hath my heart committed, 2266 | Whilst it hath thought it self so blessed never! 2267 | How have mine eyes out of their spheres been fitted 2268 | In the distraction of this madding fever! 2269 | O benefit of ill, now I find true 2270 | That better is, by evil still made better. 2271 | And ruined love when it is built anew 2272 | Grows fairer than at first, more strong, far greater. 2273 | So I return rebuked to my content, 2274 | And gain by ills thrice more than I have spent. 2275 | 2276 | 2277 | 120 2278 | That you were once unkind befriends me now, 2279 | And for that sorrow, which I then did feel, 2280 | Needs must I under my transgression bow, 2281 | Unless my nerves were brass or hammered steel. 2282 | For if you were by my unkindness shaken 2283 | As I by yours, y'have passed a hell of time, 2284 | And I a tyrant have no leisure taken 2285 | To weigh how once I suffered in your crime. 2286 | O that our night of woe might have remembered 2287 | My deepest sense, how hard true sorrow hits, 2288 | And soon to you, as you to me then tendered 2289 | The humble salve, which wounded bosoms fits! 2290 | But that your trespass now becomes a fee, 2291 | Mine ransoms yours, and yours must ransom me. 2292 | 2293 | 2294 | 121 2295 | 'Tis better to be vile than vile esteemed, 2296 | When not to be, receives reproach of being, 2297 | And the just pleasure lost, which is so deemed, 2298 | Not by our feeling, but by others' seeing. 2299 | For why should others' false adulterate eyes 2300 | Give salutation to my sportive blood? 2301 | Or on my frailties why are frailer spies, 2302 | Which in their wills count bad what I think good? 2303 | No, I am that I am, and they that level 2304 | At my abuses, reckon up their own, 2305 | I may be straight though they themselves be bevel; 2306 | By their rank thoughts, my deeds must not be shown 2307 | Unless this general evil they maintain, 2308 | All men are bad and in their badness reign. 2309 | 2310 | 2311 | 122 2312 | Thy gift, thy tables, are within my brain 2313 | Full charactered with lasting memory, 2314 | Which shall above that idle rank remain 2315 | Beyond all date even to eternity. 2316 | Or at the least, so long as brain and heart 2317 | Have faculty by nature to subsist, 2318 | Till each to razed oblivion yield his part 2319 | Of thee, thy record never can be missed: 2320 | That poor retention could not so much hold, 2321 | Nor need I tallies thy dear love to score, 2322 | Therefore to give them from me was I bold, 2323 | To trust those tables that receive thee more: 2324 | To keep an adjunct to remember thee 2325 | Were to import forgetfulness in me. 2326 | 2327 | 2328 | 123 2329 | No! Time, thou shalt not boast that I do change, 2330 | Thy pyramids built up with newer might 2331 | To me are nothing novel, nothing strange, 2332 | They are but dressings Of a former sight: 2333 | Our dates are brief, and therefore we admire, 2334 | What thou dost foist upon us that is old, 2335 | And rather make them born to our desire, 2336 | Than think that we before have heard them told: 2337 | Thy registers and thee I both defy, 2338 | Not wond'ring at the present, nor the past, 2339 | For thy records, and what we see doth lie, 2340 | Made more or less by thy continual haste: 2341 | This I do vow and this shall ever be, 2342 | I will be true despite thy scythe and thee. 2343 | 2344 | 2345 | 124 2346 | If my dear love were but the child of state, 2347 | It might for Fortune's bastard be unfathered, 2348 | As subject to time's love or to time's hate, 2349 | Weeds among weeds, or flowers with flowers gathered. 2350 | No it was builded far from accident, 2351 | It suffers not in smiling pomp, nor falls 2352 | Under the blow of thralled discontent, 2353 | Whereto th' inviting time our fashion calls: 2354 | It fears not policy that heretic, 2355 | Which works on leases of short-numbered hours, 2356 | But all alone stands hugely politic, 2357 | That it nor grows with heat, nor drowns with showers. 2358 | To this I witness call the fools of time, 2359 | Which die for goodness, who have lived for crime. 2360 | 2361 | 2362 | 125 2363 | Were't aught to me I bore the canopy, 2364 | With my extern the outward honouring, 2365 | Or laid great bases for eternity, 2366 | Which proves more short than waste or ruining? 2367 | Have I not seen dwellers on form and favour 2368 | Lose all, and more by paying too much rent 2369 | For compound sweet; forgoing simple savour, 2370 | Pitiful thrivers in their gazing spent? 2371 | No, let me be obsequious in thy heart, 2372 | And take thou my oblation, poor but free, 2373 | Which is not mixed with seconds, knows no art, 2374 | But mutual render, only me for thee. 2375 | Hence, thou suborned informer, a true soul 2376 | When most impeached, stands least in thy control. 2377 | 2378 | 2379 | 126 2380 | O thou my lovely boy who in thy power, 2381 | Dost hold Time's fickle glass his fickle hour: 2382 | Who hast by waning grown, and therein show'st, 2383 | Thy lovers withering, as thy sweet self grow'st. 2384 | If Nature (sovereign mistress over wrack) 2385 | As thou goest onwards still will pluck thee back, 2386 | She keeps thee to this purpose, that her skill 2387 | May time disgrace, and wretched minutes kill. 2388 | Yet fear her O thou minion of her pleasure, 2389 | She may detain, but not still keep her treasure! 2390 | Her audit (though delayed) answered must be, 2391 | And her quietus is to render thee. 2392 | 2393 | 2394 | 127 2395 | In the old age black was not counted fair, 2396 | Or if it were it bore not beauty's name: 2397 | But now is black beauty's successive heir, 2398 | And beauty slandered with a bastard shame, 2399 | For since each hand hath put on nature's power, 2400 | Fairing the foul with art's false borrowed face, 2401 | Sweet beauty hath no name no holy bower, 2402 | But is profaned, if not lives in disgrace. 2403 | Therefore my mistress' eyes are raven black, 2404 | Her eyes so suited, and they mourners seem, 2405 | At such who not born fair no beauty lack, 2406 | Slandering creation with a false esteem, 2407 | Yet so they mourn becoming of their woe, 2408 | That every tongue says beauty should look so. 2409 | 2410 | 2411 | 128 2412 | How oft when thou, my music, music play'st, 2413 | Upon that blessed wood whose motion sounds 2414 | With thy sweet fingers when thou gently sway'st 2415 | The wiry concord that mine ear confounds, 2416 | Do I envy those jacks that nimble leap, 2417 | To kiss the tender inward of thy hand, 2418 | Whilst my poor lips which should that harvest reap, 2419 | At the wood's boldness by thee blushing stand. 2420 | To be so tickled they would change their state 2421 | And situation with those dancing chips, 2422 | O'er whom thy fingers walk with gentle gait, 2423 | Making dead wood more blest than living lips, 2424 | Since saucy jacks so happy are in this, 2425 | Give them thy fingers, me thy lips to kiss. 2426 | 2427 | 2428 | 129 2429 | Th' expense of spirit in a waste of shame 2430 | Is lust in action, and till action, lust 2431 | Is perjured, murd'rous, bloody full of blame, 2432 | Savage, extreme, rude, cruel, not to trust, 2433 | Enjoyed no sooner but despised straight, 2434 | Past reason hunted, and no sooner had 2435 | Past reason hated as a swallowed bait, 2436 | On purpose laid to make the taker mad. 2437 | Mad in pursuit and in possession so, 2438 | Had, having, and in quest, to have extreme, 2439 | A bliss in proof and proved, a very woe, 2440 | Before a joy proposed behind a dream. 2441 | All this the world well knows yet none knows well, 2442 | To shun the heaven that leads men to this hell. 2443 | 2444 | 2445 | 130 2446 | My mistress' eyes are nothing like the sun, 2447 | Coral is far more red, than her lips red, 2448 | If snow be white, why then her breasts are dun: 2449 | If hairs be wires, black wires grow on her head: 2450 | I have seen roses damasked, red and white, 2451 | But no such roses see I in her cheeks, 2452 | And in some perfumes is there more delight, 2453 | Than in the breath that from my mistress reeks. 2454 | I love to hear her speak, yet well I know, 2455 | That music hath a far more pleasing sound: 2456 | I grant I never saw a goddess go, 2457 | My mistress when she walks treads on the ground. 2458 | And yet by heaven I think my love as rare, 2459 | As any she belied with false compare. 2460 | 2461 | 2462 | 131 2463 | Thou art as tyrannous, so as thou art, 2464 | As those whose beauties proudly make them cruel; 2465 | For well thou know'st to my dear doting heart 2466 | Thou art the fairest and most precious jewel. 2467 | Yet in good faith some say that thee behold, 2468 | Thy face hath not the power to make love groan; 2469 | To say they err, I dare not be so bold, 2470 | Although I swear it to my self alone. 2471 | And to be sure that is not false I swear, 2472 | A thousand groans but thinking on thy face, 2473 | One on another's neck do witness bear 2474 | Thy black is fairest in my judgment's place. 2475 | In nothing art thou black save in thy deeds, 2476 | And thence this slander as I think proceeds. 2477 | 2478 | 2479 | 132 2480 | Thine eyes I love, and they as pitying me, 2481 | Knowing thy heart torment me with disdain, 2482 | Have put on black, and loving mourners be, 2483 | Looking with pretty ruth upon my pain. 2484 | And truly not the morning sun of heaven 2485 | Better becomes the grey cheeks of the east, 2486 | Nor that full star that ushers in the even 2487 | Doth half that glory to the sober west 2488 | As those two mourning eyes become thy face: 2489 | O let it then as well beseem thy heart 2490 | To mourn for me since mourning doth thee grace, 2491 | And suit thy pity like in every part. 2492 | Then will I swear beauty herself is black, 2493 | And all they foul that thy complexion lack. 2494 | 2495 | 2496 | 133 2497 | Beshrew that heart that makes my heart to groan 2498 | For that deep wound it gives my friend and me; 2499 | Is't not enough to torture me alone, 2500 | But slave to slavery my sweet'st friend must be? 2501 | Me from my self thy cruel eye hath taken, 2502 | And my next self thou harder hast engrossed, 2503 | Of him, my self, and thee I am forsaken, 2504 | A torment thrice three-fold thus to be crossed: 2505 | Prison my heart in thy steel bosom's ward, 2506 | But then my friend's heart let my poor heart bail, 2507 | Whoe'er keeps me, let my heart be his guard, 2508 | Thou canst not then use rigour in my gaol. 2509 | And yet thou wilt, for I being pent in thee, 2510 | Perforce am thine and all that is in me. 2511 | 2512 | 2513 | 134 2514 | So now I have confessed that he is thine, 2515 | And I my self am mortgaged to thy will, 2516 | My self I'll forfeit, so that other mine, 2517 | Thou wilt restore to be my comfort still: 2518 | But thou wilt not, nor he will not be free, 2519 | For thou art covetous, and he is kind, 2520 | He learned but surety-like to write for me, 2521 | Under that bond that him as fist doth bind. 2522 | The statute of thy beauty thou wilt take, 2523 | Thou usurer that put'st forth all to use, 2524 | And sue a friend, came debtor for my sake, 2525 | So him I lose through my unkind abuse. 2526 | Him have I lost, thou hast both him and me, 2527 | He pays the whole, and yet am I not free. 2528 | 2529 | 2530 | 135 2531 | Whoever hath her wish, thou hast thy will, 2532 | And 'Will' to boot, and 'Will' in over-plus, 2533 | More than enough am I that vex thee still, 2534 | To thy sweet will making addition thus. 2535 | Wilt thou whose will is large and spacious, 2536 | Not once vouchsafe to hide my will in thine? 2537 | Shall will in others seem right gracious, 2538 | And in my will no fair acceptance shine? 2539 | The sea all water, yet receives rain still, 2540 | And in abundance addeth to his store, 2541 | So thou being rich in will add to thy will 2542 | One will of mine to make thy large will more. 2543 | Let no unkind, no fair beseechers kill, 2544 | Think all but one, and me in that one 'Will.' 2545 | 2546 | 2547 | 136 2548 | If thy soul check thee that I come so near, 2549 | Swear to thy blind soul that I was thy 'Will', 2550 | And will thy soul knows is admitted there, 2551 | Thus far for love, my love-suit sweet fulfil. 2552 | 'Will', will fulfil the treasure of thy love, 2553 | Ay, fill it full with wills, and my will one, 2554 | In things of great receipt with case we prove, 2555 | Among a number one is reckoned none. 2556 | Then in the number let me pass untold, 2557 | Though in thy store's account I one must be, 2558 | For nothing hold me, so it please thee hold, 2559 | That nothing me, a something sweet to thee. 2560 | Make but my name thy love, and love that still, 2561 | And then thou lov'st me for my name is Will. 2562 | 2563 | 2564 | 137 2565 | Thou blind fool Love, what dost thou to mine eyes, 2566 | That they behold and see not what they see? 2567 | They know what beauty is, see where it lies, 2568 | Yet what the best is, take the worst to be. 2569 | If eyes corrupt by over-partial looks, 2570 | Be anchored in the bay where all men ride, 2571 | Why of eyes' falsehood hast thou forged hooks, 2572 | Whereto the judgment of my heart is tied? 2573 | Why should my heart think that a several plot, 2574 | Which my heart knows the wide world's common place? 2575 | Or mine eyes seeing this, say this is not 2576 | To put fair truth upon so foul a face? 2577 | In things right true my heart and eyes have erred, 2578 | And to this false plague are they now transferred. 2579 | 2580 | 2581 | 138 2582 | When my love swears that she is made of truth, 2583 | I do believe her though I know she lies, 2584 | That she might think me some untutored youth, 2585 | Unlearned in the world's false subtleties. 2586 | Thus vainly thinking that she thinks me young, 2587 | Although she knows my days are past the best, 2588 | Simply I credit her false-speaking tongue, 2589 | On both sides thus is simple truth suppressed: 2590 | But wherefore says she not she is unjust? 2591 | And wherefore say not I that I am old? 2592 | O love's best habit is in seeming trust, 2593 | And age in love, loves not to have years told. 2594 | Therefore I lie with her, and she with me, 2595 | And in our faults by lies we flattered be. 2596 | 2597 | 2598 | 139 2599 | O call not me to justify the wrong, 2600 | That thy unkindness lays upon my heart, 2601 | Wound me not with thine eye but with thy tongue, 2602 | Use power with power, and slay me not by art, 2603 | Tell me thou lov'st elsewhere; but in my sight, 2604 | Dear heart forbear to glance thine eye aside, 2605 | What need'st thou wound with cunning when thy might 2606 | Is more than my o'erpressed defence can bide? 2607 | Let me excuse thee, ah my love well knows, 2608 | Her pretty looks have been mine enemies, 2609 | And therefore from my face she turns my foes, 2610 | That they elsewhere might dart their injuries: 2611 | Yet do not so, but since I am near slain, 2612 | Kill me outright with looks, and rid my pain. 2613 | 2614 | 2615 | 140 2616 | Be wise as thou art cruel, do not press 2617 | My tongue-tied patience with too much disdain: 2618 | Lest sorrow lend me words and words express, 2619 | The manner of my pity-wanting pain. 2620 | If I might teach thee wit better it were, 2621 | Though not to love, yet love to tell me so, 2622 | As testy sick men when their deaths be near, 2623 | No news but health from their physicians know. 2624 | For if I should despair I should grow mad, 2625 | And in my madness might speak ill of thee, 2626 | Now this ill-wresting world is grown so bad, 2627 | Mad slanderers by mad ears believed be. 2628 | That I may not be so, nor thou belied, 2629 | Bear thine eyes straight, though thy proud heart go wide. 2630 | 2631 | 2632 | 141 2633 | In faith I do not love thee with mine eyes, 2634 | For they in thee a thousand errors note, 2635 | But 'tis my heart that loves what they despise, 2636 | Who in despite of view is pleased to dote. 2637 | Nor are mine cars with thy tongue's tune delighted, 2638 | Nor tender feeling to base touches prone, 2639 | Nor taste, nor smell, desire to be invited 2640 | To any sensual feast with thee alone: 2641 | But my five wits, nor my five senses can 2642 | Dissuade one foolish heart from serving thee, 2643 | Who leaves unswayed the likeness of a man, 2644 | Thy proud heart's slave and vassal wretch to be: 2645 | Only my plague thus far I count my gain, 2646 | That she that makes me sin, awards me pain. 2647 | 2648 | 2649 | 142 2650 | Love is my sin, and thy dear virtue hate, 2651 | Hate of my sin, grounded on sinful loving, 2652 | O but with mine, compare thou thine own state, 2653 | And thou shalt find it merits not reproving, 2654 | Or if it do, not from those lips of thine, 2655 | That have profaned their scarlet ornaments, 2656 | And sealed false bonds of love as oft as mine, 2657 | Robbed others' beds' revenues of their rents. 2658 | Be it lawful I love thee as thou lov'st those, 2659 | Whom thine eyes woo as mine importune thee, 2660 | Root pity in thy heart that when it grows, 2661 | Thy pity may deserve to pitied be. 2662 | If thou dost seek to have what thou dost hide, 2663 | By self-example mayst thou be denied. 2664 | 2665 | 2666 | 143 2667 | Lo as a careful huswife runs to catch, 2668 | One of her feathered creatures broke away, 2669 | Sets down her babe and makes all swift dispatch 2670 | In pursuit of the thing she would have stay: 2671 | Whilst her neglected child holds her in chase, 2672 | Cries to catch her whose busy care is bent, 2673 | To follow that which flies before her face: 2674 | Not prizing her poor infant's discontent; 2675 | So run'st thou after that which flies from thee, 2676 | Whilst I thy babe chase thee afar behind, 2677 | But if thou catch thy hope turn back to me: 2678 | And play the mother's part, kiss me, be kind. 2679 | So will I pray that thou mayst have thy Will, 2680 | If thou turn back and my loud crying still. 2681 | 2682 | 2683 | 144 2684 | Two loves I have of comfort and despair, 2685 | Which like two spirits do suggest me still, 2686 | The better angel is a man right fair: 2687 | The worser spirit a woman coloured ill. 2688 | To win me soon to hell my female evil, 2689 | Tempteth my better angel from my side, 2690 | And would corrupt my saint to be a devil: 2691 | Wooing his purity with her foul pride. 2692 | And whether that my angel be turned fiend, 2693 | Suspect I may, yet not directly tell, 2694 | But being both from me both to each friend, 2695 | I guess one angel in another's hell. 2696 | Yet this shall I ne'er know but live in doubt, 2697 | Till my bad angel fire my good one out. 2698 | 2699 | 2700 | 145 2701 | Those lips that Love's own hand did make, 2702 | Breathed forth the sound that said 'I hate', 2703 | To me that languished for her sake: 2704 | But when she saw my woeful state, 2705 | Straight in her heart did mercy come, 2706 | Chiding that tongue that ever sweet, 2707 | Was used in giving gentle doom: 2708 | And taught it thus anew to greet: 2709 | 'I hate' she altered with an end, 2710 | That followed it as gentle day, 2711 | Doth follow night who like a fiend 2712 | From heaven to hell is flown away. 2713 | 'I hate', from hate away she threw, 2714 | And saved my life saying 'not you'. 2715 | 2716 | 2717 | 146 2718 | Poor soul the centre of my sinful earth, 2719 | My sinful earth these rebel powers array, 2720 | Why dost thou pine within and suffer dearth 2721 | Painting thy outward walls so costly gay? 2722 | Why so large cost having so short a lease, 2723 | Dost thou upon thy fading mansion spend? 2724 | Shall worms inheritors of this excess 2725 | Eat up thy charge? is this thy body's end? 2726 | Then soul live thou upon thy servant's loss, 2727 | And let that pine to aggravate thy store; 2728 | Buy terms divine in selling hours of dross; 2729 | Within be fed, without be rich no more, 2730 | So shall thou feed on death, that feeds on men, 2731 | And death once dead, there's no more dying then. 2732 | 2733 | 2734 | 147 2735 | My love is as a fever longing still, 2736 | For that which longer nurseth the disease, 2737 | Feeding on that which doth preserve the ill, 2738 | Th' uncertain sickly appetite to please: 2739 | My reason the physician to my love, 2740 | Angry that his prescriptions are not kept 2741 | Hath left me, and I desperate now approve, 2742 | Desire is death, which physic did except. 2743 | Past cure I am, now reason is past care, 2744 | And frantic-mad with evermore unrest, 2745 | My thoughts and my discourse as mad men's are, 2746 | At random from the truth vainly expressed. 2747 | For I have sworn thee fair, and thought thee bright, 2748 | Who art as black as hell, as dark as night. 2749 | 2750 | 2751 | 148 2752 | O me! what eyes hath love put in my head, 2753 | Which have no correspondence with true sight, 2754 | Or if they have, where is my judgment fled, 2755 | That censures falsely what they see aright? 2756 | If that be fair whereon my false eyes dote, 2757 | What means the world to say it is not so? 2758 | If it be not, then love doth well denote, 2759 | Love's eye is not so true as all men's: no, 2760 | How can it? O how can love's eye be true, 2761 | That is so vexed with watching and with tears? 2762 | No marvel then though I mistake my view, 2763 | The sun it self sees not, till heaven clears. 2764 | O cunning love, with tears thou keep'st me blind, 2765 | Lest eyes well-seeing thy foul faults should find. 2766 | 2767 | 2768 | 149 2769 | Canst thou O cruel, say I love thee not, 2770 | When I against my self with thee partake? 2771 | Do I not think on thee when I forgot 2772 | Am of my self, all-tyrant, for thy sake? 2773 | Who hateth thee that I do call my friend, 2774 | On whom frown'st thou that I do fawn upon, 2775 | Nay if thou lour'st on me do I not spend 2776 | Revenge upon my self with present moan? 2777 | What merit do I in my self respect, 2778 | That is so proud thy service to despise, 2779 | When all my best doth worship thy defect, 2780 | Commanded by the motion of thine eyes? 2781 | But love hate on for now I know thy mind, 2782 | Those that can see thou lov'st, and I am blind. 2783 | 2784 | 2785 | 150 2786 | O from what power hast thou this powerful might, 2787 | With insufficiency my heart to sway, 2788 | To make me give the lie to my true sight, 2789 | And swear that brightness doth not grace the day? 2790 | Whence hast thou this becoming of things ill, 2791 | That in the very refuse of thy deeds, 2792 | There is such strength and warrantise of skill, 2793 | That in my mind thy worst all best exceeds? 2794 | Who taught thee how to make me love thee more, 2795 | The more I hear and see just cause of hate? 2796 | O though I love what others do abhor, 2797 | With others thou shouldst not abhor my state. 2798 | If thy unworthiness raised love in me, 2799 | More worthy I to be beloved of thee. 2800 | 2801 | 2802 | 151 2803 | Love is too young to know what conscience is, 2804 | Yet who knows not conscience is born of love? 2805 | Then gentle cheater urge not my amiss, 2806 | Lest guilty of my faults thy sweet self prove. 2807 | For thou betraying me, I do betray 2808 | My nobler part to my gross body's treason, 2809 | My soul doth tell my body that he may, 2810 | Triumph in love, flesh stays no farther reason, 2811 | But rising at thy name doth point out thee, 2812 | As his triumphant prize, proud of this pride, 2813 | He is contented thy poor drudge to be, 2814 | To stand in thy affairs, fall by thy side. 2815 | No want of conscience hold it that I call, 2816 | Her love, for whose dear love I rise and fall. 2817 | 2818 | 2819 | 152 2820 | In loving thee thou know'st I am forsworn, 2821 | But thou art twice forsworn to me love swearing, 2822 | In act thy bed-vow broke and new faith torn, 2823 | In vowing new hate after new love bearing: 2824 | But why of two oaths' breach do I accuse thee, 2825 | When I break twenty? I am perjured most, 2826 | For all my vows are oaths but to misuse thee: 2827 | And all my honest faith in thee is lost. 2828 | For I have sworn deep oaths of thy deep kindness: 2829 | Oaths of thy love, thy truth, thy constancy, 2830 | And to enlighten thee gave eyes to blindness, 2831 | Or made them swear against the thing they see. 2832 | For I have sworn thee fair: more perjured I, 2833 | To swear against the truth so foul a be. 2834 | 2835 | 2836 | 153 2837 | Cupid laid by his brand and fell asleep, 2838 | A maid of Dian's this advantage found, 2839 | And his love-kindling fire did quickly steep 2840 | In a cold valley-fountain of that ground: 2841 | Which borrowed from this holy fire of Love, 2842 | A dateless lively heat still to endure, 2843 | And grew a seeting bath which yet men prove, 2844 | Against strange maladies a sovereign cure: 2845 | But at my mistress' eye Love's brand new-fired, 2846 | The boy for trial needs would touch my breast, 2847 | I sick withal the help of bath desired, 2848 | And thither hied a sad distempered guest. 2849 | But found no cure, the bath for my help lies, 2850 | Where Cupid got new fire; my mistress' eyes. 2851 | 2852 | 2853 | 154 2854 | The little Love-god lying once asleep, 2855 | Laid by his side his heart-inflaming brand, 2856 | Whilst many nymphs that vowed chaste life to keep, 2857 | Came tripping by, but in her maiden hand, 2858 | The fairest votary took up that fire, 2859 | Which many legions of true hearts had warmed, 2860 | And so the general of hot desire, 2861 | Was sleeping by a virgin hand disarmed. 2862 | This brand she quenched in a cool well by, 2863 | Which from Love's fire took heat perpetual, 2864 | Growing a bath and healthful remedy, 2865 | For men discased, but I my mistress' thrall, 2866 | Came there for cure and this by that I prove, 2867 | Love's fire heats water, water cools not love. 2868 | 2869 | 2870 | THE END 2871 | 2872 | 2873 | 2874 | <> 2882 | 2883 | 2884 | 2885 | 2886 | 2887 | 1603 2888 | 2889 | ALLS WELL THAT ENDS WELL 2890 | 2891 | by William Shakespeare 2892 | 2893 | 2894 | Dramatis Personae 2895 | 2896 | KING OF FRANCE 2897 | THE DUKE OF FLORENCE 2898 | BERTRAM, Count of Rousillon 2899 | LAFEU, an old lord 2900 | PAROLLES, a follower of Bertram 2901 | TWO FRENCH LORDS, serving with Bertram 2902 | 2903 | STEWARD, Servant to the Countess of Rousillon 2904 | LAVACHE, a clown and Servant to the Countess of Rousillon 2905 | A PAGE, Servant to the Countess of Rousillon 2906 | 2907 | COUNTESS OF ROUSILLON, mother to Bertram 2908 | HELENA, a gentlewoman protected by the Countess 2909 | A WIDOW OF FLORENCE. 2910 | DIANA, daughter to the Widow 2911 | 2912 | 2913 | VIOLENTA, neighbour and friend to the Widow 2914 | MARIANA, neighbour and friend to the Widow 2915 | 2916 | Lords, Officers, Soldiers, etc., French and Florentine 2917 | --------------------------------------------------------------------------------