Skip to content

Commit

Permalink
Merge pull request #795 from candy-lang/788-http-basic-server
Browse files Browse the repository at this point in the history
HTTP: Basic Server
  • Loading branch information
jwbot authored Nov 12, 2023
2 parents c1aae47 + d2e3ba6 commit 63caaeb
Show file tree
Hide file tree
Showing 14 changed files with 458 additions and 68 deletions.
2 changes: 2 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
- packages/Core/**/*
'P: Examples':
- packages/Examples/**/*
'P: Http':
- packages/Http/**/*
'P: ProgrammingLanguageBenchmarks':
- packages/ProgrammingLanguageBenchmarks/**/*
'P: Random':
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ local/
*.candy.*
.goldens/

# Valgrind
callgrind.out.*

# ANTLR
.antlr/

Expand Down
31 changes: 31 additions & 0 deletions Cargo.lock

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

7 changes: 1 addition & 6 deletions compiler/frontend/src/module/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,7 @@ impl Module {
}
#[must_use]
pub fn try_to_path(&self, packages_path: &PackagesPath) -> Option<PathBuf> {
let paths = self.to_possible_paths(packages_path).unwrap_or_else(|| {
panic!(
"Tried to get content of anonymous module {self} that is not cached by the language server.",
)
});
for path in paths {
for path in self.to_possible_paths(packages_path)? {
match path.try_exists() {
Ok(true) => return Some(path),
Ok(false) => {}
Expand Down
1 change: 1 addition & 0 deletions compiler/vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ rand = "0.8.5"
rustc-hash = "1.1.0"
salsa = "0.16.1"
strum = { version = "0.25.0", features = ["derive"] }
tiny_http = "0.12.0"
tracing = { version = "0.1", features = ["release_max_level_debug"] }
unicode-segmentation = "1.9.0"
walkdir = "2.3.3"
Expand Down
Loading

1 comment on commit 63caaeb

@jwbot
Copy link
Collaborator Author

@jwbot jwbot commented on 63caaeb Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler

Benchmark suite Current: 63caaeb Previous: c1aae47 Ratio
Time: Compiler/hello_world 18311413 ns/iter (± 581115) 16954960 ns/iter (± 447994) 1.08
Time: Compiler/fibonacci 138007226 ns/iter (± 1010039) 139981770 ns/iter (± 1898406) 0.99
Time: VM Runtime/hello_world 36313 ns/iter (± 3364) 32085 ns/iter (± 2748) 1.13
Time: VM Runtime/fibonacci/15 58395071 ns/iter (± 730216) 56163772 ns/iter (± 560801) 1.04
Time: VM Runtime/PLB/binarytrees/6 891746745 ns/iter (± 10534126) 852098620 ns/iter (± 9577036) 1.05

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.