Replies: 5 comments 22 replies
|
Are you talking about language bindings for Rust, or a re-implementation of the language in Rust? If the former; take a look at |
|
@aspizu |
|
I did go looking for a rust implementation, not for any special love for rust, but because what I really want is a wasm implementation I could run in-browser. If the native builds could output a wasm target I'd be over the moon, but it sounds like this could be fiddlier than it sounds? |
|
@holzensp I know it's a large undertaking (but easier today with LLMs), but are there any plans to re-implement pkl in Rust? When it comes to language bindings, most other programming languages usually have good facilities for writing bindings to either C/C++ or Rust code. For example, I looked a bit at bindings for Ruby, and it's probably doable, but would have been easier if pkl was written in C/C++ or Rust. |
|
I have not seen this repository mentioned in the thread, so I wanted to add it here: This appears to be a real independent implementation, rather than Rust bindings around the official evaluator or a wrapper that shells out to the The crate contains its own lexer, parser, evaluator, runtime value representation, import resolution, resource access abstraction, and diagnostics. Its primary API evaluates a What is already implementedBased on the repository, tests, and changelog,
The changelog shows that it is actively being developed and is already used as the default embedded evaluator by Therefore, calling it only a parser, an early experiment, or a thin partial implementation would be unfair. Is it a complete Pkl implementation?My conclusion is:
There are several reasons I would avoid describing it as “complete.” Its own ecosystem documentation says compatibility is incompleteThe |
Uh oh!
There was an error while loading. Please reload this page.
Hey, I want to try writing a rust implementation. Could you explain the parts of the core?
All reactions