8000 update web shell for spring 2025 · cmu-db/bustub-web-shell@4ba8fb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ba8fb6

Browse files
committed
update web shell for spring 2025
Signed-off-by: Yuchen Liang <yuchenl3@andrew.cmu.edu>
1 parent 6668a19 commit 4ba8fb6

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,4 @@ docs/dev
244244

245245
# Submission zip files
246246
*.zip
247+
.vercel

bpt-printer/bustub-wasm-bpt-printer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-13.8 KB
Binary file not shown.

bpt-printer/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<meta name="twitter:creator" content="@CMUDB">
3333
<meta name="twitter:domain" content=".">
3434
<meta property="twitter:label1" content="Semester?" />
35-
<meta property="twitter:data1" content="Fall 2024" />
35+
<meta property="twitter:data1" content="Spring 2025" />
3636
<meta property="twitter:label1" content="Relational?" />
3737
<meta property="twitter:data1" content="Hell Yes" />
3838

@@ -89,18 +89,18 @@
8989
<script src="bustub-wasm-bpt-printer.js"></script>
9090

9191
<script type="text/javascript">
92-
const BUSTUB_PUBLIC_VERSION_VAR = "3a194af"
93-
const BUSTUB_PRIVATE_VERSION_VAR = "ffe71c7-dirty"
94-
const BUSTUB_BUILD_TIME_VAR = "20240930"
92+
const BUSTUB_PUBLIC_VERSION_VAR = "1583cdf"
93+
const BUSTUB_PRIVATE_VERSION_VAR = "73e9abc"
94+
const BUSTUB_BUILD_TIME_VAR = "20250310"
9595
const viz = new Viz()
9696

9797
Module['onRuntimeInitialized'] = function () {
9898
const initialize = Module.cwrap('BusTubInit', 'number', ['number', 'number'])
9999
const executeQuery = Module.cwrap('BusTubApplyCommand', 'number', ['string', 'number', 'number'])
100100
window.executeQuery = (x) => {
101101
const bufferSize = 64 * 1024
102-
let output = "\0".repeat(bufferSize)
103-
let ptrOutput = Module.allocateUTF8(output)
102+
const ptrOutput = Module._malloc(bufferSize)
103+
Module.stringToUTF8("", ptrOutput, bufferSize)
104104
const retCode = executeQuery(x, ptrOutput, bufferSize)
105105
output = Module.UTF8ToString(ptrOutput)
106106
Module._free(ptrOutput)
@@ -190,4 +190,4 @@
190190
gtag('config', 'UA-52525161-8');
191191
</script>
192192

193-
</html>
193+
</html>

bustub/bustub-wasm-shell.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bustub/bustub-wasm-shell.wasm

-28.1 KB
Binary file not shown.

bustub/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,20 @@
7575
<script src="bustub-wasm-shell.js"></script>
7676

7777
<script type="text/javascript">
78-
const BUSTUB_PUBLIC_VERSION_VAR = "1e8c086"
79-
const BUSTUB_PRIVATE_VERSION_VAR = "66c6935"
80-
const BUSTUB_BUILD_TIME_VAR = "20241117"
78+
const BUSTUB_PUBLIC_VERSION_VAR = "1583cdf"
79+
const BUSTUB_PRIVATE_VERSION_VAR = "73e9abc"
80+
const BUSTUB_BUILD_TIME_VAR = "20250310"
8181
let is_ready = false
8282

8383
Module['onRuntimeInitialized'] = function () {
8484
const executeQuery = Module.cwrap('BusTubExecuteQuery', 'number', ['string', 'number', 'number', 'number'])
8585
const initialize = Module.cwrap('BusTubInit', 'number', [])
8686
window.executeQuery = (x) => {
8787
const bufferSize = 64 * 1024
88-
let output = "\0".repeat(bufferSize)
89-
let ptrOutput = Module.allocateUTF8(output)
90-
let output2 = "\0".repeat(bufferSize)
91-
let ptrOutput2 = Module.allocateUTF8(output2)
88+
const ptrOutput = Module._malloc(bufferSize)
89+
Module.stringToUTF8("", ptrOutput, bufferSize)
90+
const ptrOutput2 = Module._malloc(bufferSize)
91+
Module.stringToUTF8("", ptrOutput2, bufferSize)
9292
const retCode = executeQuery(x, ptrOutput2, ptrOutput, bufferSize)
9393
output = Module.UTF8ToString(ptrOutput)
9494
output2 = Module.UTF8ToString(ptrOutput2)
@@ -159,4 +159,4 @@
159159
gtag('config', 'UA-52525161-8');
160160
</script>
161161

162-
</html>
162+
</html>

0 commit comments

Comments
 (0)
0