-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a Open addressing (linear probing) hashmap, Implement a Cod…
…egen for the JS driver
- Loading branch information
1 parent
13eb25e
commit c2e7317
Showing
35 changed files
with
838 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"program": "node", | ||
"request": "launch", | ||
"name": "Benchmark debug", | ||
// "program": "/home/raymond/.zvm/bin/zig", | ||
"cwd": "${workspaceFolder}", | ||
"name": "Debug Nodejs driver's tests", | ||
"args": ["src/drivers/js/tests/kivi.js"] | ||
}, | ||
{ | ||
"type": "node", | ||
"program": "node", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"args": ["bench/bench-with-builtin.js"], | ||
// "args": ["src/drivers/js/tests/kivi.js"], | ||
// "args": ["build", "test"], | ||
"cwd": "${workspaceFolder}" | ||
"name": "Debug Nodejs driver's benchmark" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"program": "zig-out/bin/ffi-tests", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"name": "Debug Core's FFI tests" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const std = @import("std"); | ||
const core_mod = @import("core"); | ||
|
||
pub fn main() !void { | ||
const file = try std.fs.cwd().createFile("src/drivers/js/codegen-generated.js", .{}); | ||
var output = std.io.bufferedWriter(file.writer()); | ||
defer output.flush() catch {}; | ||
|
||
try output.writer().print("// This is generated by the codegen. Please don't touch this file.\n" ++ | ||
\\export const kiviInstanceSize = {any}; | ||
, .{@sizeOf(core_mod.Kivi)}); | ||
} |
Oops, something went wrong.