aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-43/+15
2022-11-11Update main.zigGravatar Jarred Sumner 1-1/+1
2022-11-11Replace `libbacktrace` with `WTFGetBacktrace`Gravatar Jarred Sumner 1-6/+2
2022-07-09fix: update build files to latest Zig versionGravatar sno2 1-1/+1
2022-07-09Migrate to Zig v0.10.0Gravatar Alexander 1-1/+1
2022-07-02Rename `defaultErrorHandler` to `runErrorHandler`Gravatar Jarred Sumner 1-0/+1
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-2/+2
2022-06-12ArrayBufferSink works and it's good.Gravatar Jarred Sumner 1-1/+2
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-11/+10
2022-03-02add is_bindgen stubGravatar Jarred Sumner 1-0/+2
2022-01-23Update main.zigGravatar Jarred Sumner 1-1/+1
2022-01-19`fs.*Sync()`, `bun wiptest`, and More ™ (#106)Gravatar Jarred Sumner 1-3/+3
* very very wip * almost ready to fix the errors * Update identity_context.zig * Update base.zig * [bun test] It runs successfully * Remove unnecessary call * [Bun.js] Improve JS <> Zig unicode string interop This fixes longstanding unicode bugs with `console.log` & `fetch`. I believe @evanwashere reported this first awhile ago * [Bun.js] Implement `Object.is()` binding and a way to set a timeout for script execution * Update PLCrashReport.zig * [Bun.js] Make `console.log` more closely match Node.js and Deno * [Bun.js] Implement formatting specifier for console.* * Implement `console.clear()` * bug fix * Support console.clear() * Buffer stderr * [bun test] Begin implementing Node.js `fs` * Update darwin_c.zig * Implement more of `fs` * `mkdir`, `mkdir` recursive, `mkdtemp` * `open`, `read` (and pread) * Move some things into more files * Implement readdir * `readFile`, `readLink`, and `realpath` * `writeFile`, `symlink`, `chown`, `rename`, `stat`, `unlink`, `truncate` * `lutimes` * Implement `SystemError` and begin wiring up the `fs` module * `"fs"` - Most of the arguments / validation * `fs` - Rest of the arguments / validations * Begin wiring up the `fs` module * Fix all the build errors * support printing typed arrays in console.log * It...works? * Support `require("fs")`, `import fs from 'fs';`, `import * as fs from 'fs'` * Fix a couple bugs * get rid of the crash reporter for now * Update fs.exports.js * [bun.js] slight improvement to startup time * [bun.js] Improve error message printing * [Bun.js] Add `Bun.gc()` to run the garbage collector manually and report heap size * [Bun.js] Add Bun.generateHeapSnapshot to return what JS types are using memory * [Bun.js] Add `Bun.shrink()` to tell JSC to shrink the VM size * Improve encoding reader * [bun.js] Improve callback & microtask performance * Update node_fs.zig * Implement `console.assert` * simple test * [Bun.js] Prepare for multiple globals/realms to support testing * Create callbacks-overhead.mjs * Update http.zig * [Bun.js] Implement `queueMicrotask` * Add test for queueMicrotask * :sleepy: * [Bun.js] Implement `process.versions`, `process.pid`, `process.ppid`, `process.nextTick`, `process.versions`, * Implement `process.env.toJSON()` * [Bun.js] Improve performance of `fs.existsSync` * :nail_care: * [Bun.js] Implement `process.chdir(str)` and `process.cwd()`, support up to 4 args in `process.nextTick` * Make creating Zig::Process lazy * Split processi nto separte file * [Bun.js] Node.js Streams - Part 1/? * [Bun.js] Node.js streams 2/? * WIP streams * fix crash * Reduce allocations in many places * swap * Make `bun` start 2ms faster * Always use an apiLock() * libBacktrace doesn't really work yet * Fix crash in the upgrade checker * Clean up code for importing the runtime when not bundling * :camera: * Update linker.zig * 68! * backtrace * no, really backtrace * Fix * Linux fixes * Fixes on Linux * Update mimalloc * [bun test] Automatically scan for {.test,_test,.spec,_spec}.{jsx,tsx,js,cts,mts,ts,cjs}
2022-01-04Improve error handling when out of file handlesGravatar Jarred Sumner 1-52/+1
2022-01-03dead codeGravatar Jarred Sumner 1-2/+0
2022-01-03Implement a crash reporter and improve some error handling in `bun install`Gravatar Jarred Sumner 1-3/+54
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-3/+12
* Prepare to upgrade zig * zig fmt * AllocGate * Update data_url.zig * wip * few files * just headers now? * I think everything works? * Update mimalloc * Update hash_map.zig * Perf improvements to compensate for Allocgate * Bump * :camera: * Update bun.lockb * Less branching * [js parser] Slightly reduce memory usage * Update js_parser.zig * WIP remove unused * [JS parser] WIP support for `with` keyword * Remove more dead code * Fix all the build errors! * cleanup * Move `network_thread` up * Bump peechy * Update README.md
2021-12-29zig fmtGravatar Jarred Sumner 1-1/+1
2021-12-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-2/+10
* Remove some dead code * :skull: code * Fix the zig tests * [JS Printer] Print integers faster & less scientific notation on decimals * :skull: dead code * skip * Run all the unit tests
2021-12-16[bun install] async http request works I think?Gravatar Jarred Sumner 1-0/+2
2021-10-14:sparkle:Gravatar Jarred Sumner 1-1/+13
2021-10-03Add Three.js benchmarkGravatar Jarred SUmner 1-1/+0
2021-10-02Linux works now.Gravatar Jarred SUmner 1-0/+1
2021-09-12Support bundling dynamically imported modules.Gravatar Jarred Sumner 1-6/+2
2021-08-31Add display name field to frameworks, improve logging, add counters, addGravatar Jarred Sumner 1-1/+3
Former-commit-id: b2cf011b6c6405a786fe22367e1cd4e6c2c4c90f
2021-08-23Use mimalloc for a 10% boostGravatar Jarred Sumner 1-3/+3
Former-commit-id: 044e11d720bc6742dc53b30b4e88e8be7e76c419
2021-08-17alright thats the renameGravatar Jarred Sumner 1-1/+0
Former-commit-id: 0faf61249e76382dfb1aa8721249474eae920753
2021-08-03okGravatar Jarred Sumner 1-0/+8
Former-commit-id: e7d0ff27193defd870ae29bd9b4d4c2044488eac
2021-07-26coolGravatar Jarred Sumner 1-3/+1
Former-commit-id: a7214ab61c42f1454a8e17c633085f12ed6bef5a
2021-06-08Generate summaryGravatar Jarred Sumner 1-1/+2
Former-commit-id: cdb9af36c1b92ee7caaf663afd6b90bcf7043d9c
2021-06-02oklGravatar Jarred Sumner 1-7/+7
Former-commit-id: 0fb2584f15e15a2ba59dea62eeae89eea216a0c7
2021-06-02HTTP fixes + buffer stdout/in + a little HTTP cachingGravatar Jarred Sumner 1-3/+7
Former-commit-id: d49df1df573c40fbfa56c475098cc0da789aeffa
2021-05-11updateGravatar Jarred Sumner 1-77/+3
Former-commit-id: a5f1670e92fbe9080a0c1c7c744483933b117fe1
2021-05-10asdasdasdasdGravatar Jarred Sumner 1-1/+1
Former-commit-id: 2b3c0584c623486d8ab5dc838bb7ba861b4395d7
2021-05-07wipGravatar Jarred Sumner 1-5/+5
Former-commit-id: f4267e2d1fee0d885630dc2a87be0a5699bf526f
2021-05-07coolGravatar Jarred Sumner 1-2/+11
Former-commit-id: 96ff169e46fcb43d5afbc9a6e2fde039e27e9d5f
2021-05-05I think that fixes the scopes bugGravatar Jarred Sumner 1-0/+1
Former-commit-id: 2cbd4c9d809cff90dc4a2305c0acbaf46c3a1578
2021-05-03hmGravatar Jarred Sumner 1-5/+5
Former-commit-id: 1d44b63675a64567d0b74e05d4f5bafaa56976ba
2021-05-02classes work, excluding name and constructor/superGravatar Jarred Sumner 1-1/+0
Former-commit-id: 818d0149312b07191340427e5b2990ae6d0cec94
2021-05-01Assorted bugfixes but the next step really is porting tests and fixingGravatar Jarred Sumner 1-8/+20
Former-commit-id: f59ec8d6c0c95217c1dc24e2ed2dc49aed122a68
2021-04-30inching closureGravatar Jarred Sumner 1-1/+12
Former-commit-id: 107310d785ee9dfbd258a1fc015976a76cdcef82
2021-04-29hmGravatar Jarred Sumner 1-1/+11
Former-commit-id: 2567243c8db7a60a5ba8ca7c662beca080cfa4f4
2021-04-28wipGravatar Jarred Sumner 1-1/+3
Former-commit-id: b37acf309c8f42d49dc47eea446f89a3dbe9f6e2
2021-04-27export default jsonGravatar Jarred Sumner 1-1/+5
2021-04-27json works in CLI sort ofGravatar Jarred Sumner 1-15/+37
2021-04-26lotsGravatar Jarred Sumner 1-2/+10
2021-04-26wapGravatar Jarred Sumner 1-2/+7
2021-04-25it prints true and falseGravatar Jarred Sumner 1-1/+4
2021-04-21hmGravatar Jarred Sumner 1-10/+19
2021-04-19lotsGravatar Jarred Sumner 1-1/+12
2021-04-18wip wipGravatar Jarred Sumner 1-1/+2