Skip to content

Go codegen #2013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 61 commits into
base: canary
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
4d1a87f
Removing FieldType::Optional and consolidating it into union
hellovai May 18, 2025
47bd205
Merge branch 'canary' into hellovai/no-optionals
hellovai May 24, 2025
a2cf900
union stuff done
hellovai May 27, 2025
24f74e2
Merge branch 'canary' into hellovai/no-optionals
hellovai May 27, 2025
5139751
wip deleting WithMetadata variant of FieldType
imalsogreg May 27, 2025
c20ebd1
wip: removing withMetadata
ba11b0y May 28, 2025
58647f2
add once_cell
imalsogreg May 29, 2025
eb7f741
fix: python codegen
ba11b0y May 29, 2025
cdc77f8
Fix constraints bug in arg corersion
imalsogreg May 29, 2025
16a07a8
fix: ruby codegen and deserializer
ba11b0y May 29, 2025
2282aa7
fix everything except tests
ba11b0y May 29, 2025
39f205d
fix: tests
ba11b0y May 30, 2025
484089f
cleanup
ba11b0y May 30, 2025
9d6556d
Merge branch 'canary' into rahul/no-with-metadata
ba11b0y May 30, 2025
bf5fe63
updated codegen
ba11b0y May 30, 2025
1bcc7d5
Add streaming fieldtype
imalsogreg May 30, 2025
4d65f38
introduce generic FieldType and rename
imalsogreg May 30, 2025
a3574e2
Add dynamic and streaming-mode data to FieldType (#2004)
ba11b0y Jun 2, 2025
cc1ad03
go field type
hellovai Jun 2, 2025
aa3c58e
code gen ready
hellovai Jun 3, 2025
7c428fe
get rid of distribute_metadata
ba11b0y Jun 3, 2025
bad530b
Merge branch 'rahul/no-with-metadata' into hellovai/field-type-go
hellovai Jun 3, 2025
a60bd60
path to code-gen
hellovai Jun 3, 2025
f30c9a2
new updates to code-gen
hellovai Jun 4, 2025
35e7e59
working go code!
hellovai Jun 4, 2025
4231643
fix streaming
ba11b0y Jun 4, 2025
f7bc455
wip: streaming behavior
ba11b0y Jun 5, 2025
3049dbb
fix: test
ba11b0y Jun 5, 2025
8a42891
new sync point
hellovai Jun 5, 2025
aa0e22a
test: add more test cases for simplify
ba11b0y Jun 5, 2025
1d9588e
format test assert string
ba11b0y Jun 5, 2025
f84abfd
test harness!
hellovai Jun 5, 2025
e0d876c
adding test harness
hellovai Jun 5, 2025
219c6c3
easy tests
hellovai Jun 5, 2025
f523b14
union code gen
hellovai Jun 5, 2025
f87689a
fix: union deserialization
ba11b0y Jun 5, 2025
678699b
Get parser tests passing
imalsogreg Jun 5, 2025
b61cd65
fixed generated code
hellovai Jun 6, 2025
653e982
assert tests passing
hellovai Jun 6, 2025
a7c9f35
leavign debug lines
hellovai Jun 6, 2025
afcc655
more debug lines
hellovai Jun 6, 2025
714c099
fix CFFI types
hellovai Jun 6, 2025
df30287
fix union code-gen
hellovai Jun 6, 2025
ed55c73
streaming working!
hellovai Jun 6, 2025
1b57da4
streaming
hellovai Jun 6, 2025
481409b
fix code-gen for unions
hellovai Jun 6, 2025
49ed01e
type aliases code-gen
hellovai Jun 6, 2025
14060a3
[WIP] test: add a test for semantic streaming
ba11b0y Jun 6, 2025
1d0d33d
[WIP]: tests for streaming types(classes)
ba11b0y Jun 9, 2025
be92eb8
[WIP]fix: streaming type gen
ba11b0y Jun 9, 2025
e831568
mostly working
hellovai Jun 10, 2025
1adb150
Add tests and fix wasm build
imalsogreg Jun 10, 2025
170fbb0
add tests for partialize
ba11b0y Jun 10, 2025
44a3717
Add complex union test
imalsogreg Jun 10, 2025
231baf6
pushing coe
hellovai Jun 10, 2025
908b341
add tests for enums
ba11b0y Jun 10, 2025
cdb84d9
Merge branch 'hellovai/fixes-attempt-partial' into rahul/wip-refactor…
ba11b0y Jun 11, 2025
585e9c2
almost all tests pass
hellovai Jun 11, 2025
96d6040
fix code-gen for type-aliases
hellovai Jun 11, 2025
dd801a6
swapping to symlinks
hellovai Jun 11, 2025
4ea3185
Make @not_null a type attribute
imalsogreg Jun 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
219 changes: 184 additions & 35 deletions engine/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ members = [
"language_client_typescript",
"language_server",
"language_client_cffi",
"generators/utils/*",
"generators/languages/*",
"sandbox",
]
default-members = [
Expand All @@ -36,13 +38,15 @@ default-members = [
"language_client_ruby/ext/ruby_ffi",
"language_client_typescript",
"language_server",
"generators/utils/*",
"generators/languages/*",
]

[workspace.dependencies]
lsp-server = { version = "0.7.6" }
lsp-types = { version = "0.95.0" }
anyhow = "1.0"
askama = "0.12.1"
askama = { version = "0.14.0", features = ["code-in-doc"] }
baml-cli = { path = "cli" }
baml-derive = { path = "baml-lib/baml-derive" }
baml-ids = { path = "baml-ids" }
Expand Down
Loading