aboutsummaryrefslogtreecommitdiff
path: root/src/json_parser.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-13move more thingsGravatar Jarred SUmner 1-3/+3
2023-01-13Split some things into more files and use bun namespace instead of import moreGravatar Jarred SUmner 1-2/+2
2022-12-30More assertionsGravatar Jarred Sumner 1-36/+44
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-15/+15
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-2/+2
2022-09-16Fix crash when parsing empty JSON fileGravatar Jarred Sumner 1-5/+11
2022-06-26wip ReadableStream for HTTP(s) ServerGravatar Jarred Sumner 1-1/+1
2022-05-05E.String gets a RopeGravatar Jarred Sumner 1-14/+11
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-10/+10
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-5/+42
2022-02-27Update json_parser.zigGravatar Jarred Sumner 1-2/+40
2022-02-27mark as comptimeGravatar Jarred Sumner 1-1/+1
2022-02-27Fix https://github.com/Jarred-Sumner/bun/issues/115Gravatar Jarred Sumner 1-11/+17
2022-02-20[JSON] Implement a way to convert any Zig type to a JSON objectGravatar Jarred Sumner 1-0/+153
2022-02-14[bun.js] Handle recursive macros and handle stack overflowGravatar Jarred Sumner 1-2/+41
2022-02-11`std.os.`exit -> `Global.exit` so stderr is always flushedGravatar Jarred Sumner 1-4/+5
2022-01-28Update AST layout to store capacity for itemsGravatar Jarred Sumner 1-3/+3
We want to be able to push to the list
2022-01-03dead codeGravatar Jarred Sumner 1-3/+0
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-28/+39
* 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-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-53/+27
* 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 add` and `bun remove` sorta works now. but not fast enough!Gravatar Jarred Sumner 1-0/+5
2021-12-16[bun install] Deterministic lockfile and simple installsGravatar Jarred Sumner 1-0/+187
2021-12-16[JSON parser] const has better codegen (unlike in JavaScript!)Gravatar Jarred Sumner 1-3/+3
2021-12-16[internal] disable debug workaroundGravatar Jarred Sumner 1-1/+1
2021-11-25Fix occasional segfault when parsing JSON in http serverGravatar Jarred Sumner 1-2/+2
2021-11-11[JSON Parser] Improve perf by 2%-4%Gravatar Jarred Sumner 1-13/+75
We warn when a JSON object has duplicate keys, but detecting duplicate keys has a cost. Now the hash table used for deduping keys is pooled instead of reallocated each time This also removes a call to potentially resize object properties and arrays to their smallest possible size. Resizing an array can be expensive
2021-11-01[internal] Tiny changes that will eventually make it easier to update zigGravatar Jarred Sumner 1-2/+4
2021-10-24^Gravatar Jarred Sumner 1-2/+2
2021-10-24[JSON] Use a special lexer variant only for JSONGravatar Jarred Sumner 1-19/+13
2021-09-23When bundling JSON, only use JSON.parse when the input is ASCII.Gravatar Jarred Sumner 1-0/+38
We don't want to add an extra pass over the input to convert it to UTF16. And JS engines storing strings as UTF-16 is more expensive anyway, so the runtime win here probably isn't as big (though open to evidence to the contrary!)
2021-09-20Slightly improve .env loader string inferenceGravatar Jarred Sumner 1-5/+88
2021-09-15Remove most usages of anytype in js_ast.zigGravatar Jarred Sumner 1-3/+4
2021-09-09currentjarred/fetch-experimentGravatar Jarred Sumner 1-6/+6
2021-09-05more mutexesGravatar Jarred Sumner 1-0/+23
Former-commit-id: 52966012b4b74d24ab28a0c75740aef35fb75327
2021-08-23Use mimalloc for a 10% boostGravatar Jarred Sumner 1-1/+1
Former-commit-id: 044e11d720bc6742dc53b30b4e88e8be7e76c419
2021-06-06hashGravatar Jarred Sumner 1-2/+2
Former-commit-id: b97aca7fa154ce580ce9b66efba4c8ec3cb620ba
2021-05-30Fix printing bugsGravatar Jarred Sumner 1-11/+1
Former-commit-id: 52f37e4fe4c8873617abcbc3b3af61e8f1d79edc
2021-05-26detect JSON errorsGravatar Jarred Sumner 1-1/+2
Former-commit-id: 9b5f317c5beccd71b692ecedacc81893dfdae68d
2021-05-16lotsGravatar Jarred Sumner 1-11/+1
Former-commit-id: 9ccb4dd082afbc4f94982bf092360487232d8b60
2021-05-15lotsGravatar Jarred Sumner 1-15/+16
Former-commit-id: d8b1d296562a01800248bd1148bc4778225b436e
2021-05-13hmGravatar Jarred Sumner 1-13/+34
Former-commit-id: 28fce4aac174c7cf7a492ca4c5442d57a4f395a3
2021-05-12That's all the errors??Gravatar Jarred Sumner 1-5/+5
Former-commit-id: f9a74df73d2831bfdd8e6f1c0e5c999ea300fc0d
2021-05-08Use try for errors during parsing so that backtracking can happenGravatar Jarred Sumner 1-21/+21
Former-commit-id: 7d3b0e7daa374577b59f9b53c7663d767df2077d
2021-05-07coolGravatar Jarred Sumner 1-2/+2
Former-commit-id: 96ff169e46fcb43d5afbc9a6e2fde039e27e9d5f
2021-05-05I think that fixes the scopes bugGravatar Jarred Sumner 1-1/+1
Former-commit-id: 2cbd4c9d809cff90dc4a2305c0acbaf46c3a1578
2021-05-05damn thoGravatar Jarred Sumner 1-4/+0
Former-commit-id: e1df98878d2dea8530d50d49e8e5b9369931eb43
2021-05-04reGravatar Jarred Sumner 1-2/+2
Former-commit-id: 2e8d6d549da0e278ed466358af172154faaecb7f
2021-05-04*Gravatar Jarred Sumner 1-1/+1
Former-commit-id: 4c60accdc11bedacef2cbe8c65e35ab5e965408d
2021-04-28wipGravatar Jarred Sumner 1-8/+19
Former-commit-id: b37acf309c8f42d49dc47eea446f89a3dbe9f6e2
2021-04-27json works in CLI sort ofGravatar Jarred Sumner 1-3/+12