inline-python
typeshare
inline-python | typeshare | |
---|---|---|
5 | 10 | |
1,117 | 30 | |
1.7% | - | |
3.9 | 0.0 | |
10 months ago | over 4 years ago | |
Rust | Rust | |
BSD 2-clause "Simplified" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
inline-python
-
What are the scenarios where "Rewrite it in Rust" didn't meet your expectations or couldn't be successfully implemented?
This may be cursed but you could just use https://github.com/fusion-engineering/inline-python to use the Python Levensthein library in Rust directly. Just make sure to invoke the Rust binary under a venv with the library
-
Is rust overkill for most back-end apps that could be done quickly by NodeJS or PHP?
I know the OP asked about Node/PHP but for Python, there is https://github.com/fusion-engineering/inline-python which can give you both Rust and the all-the-libraries experience.
-
Ergonomic inline SQL as a Python library
Inspired by past work: LINQ, inline-python, crepe, DataScript, Riffle.
- Inline Python code directly in your Rust code
-
Guys help, I've been stuck on the borrow checker boss stage for more than 20 hours now
And if that doesn't work, there's always inline-python.
typeshare
-
Using rust to generate typescript client
It doesn’t generate a complete client but 1Password’s Typeshare can generate TypeScript from Rust data structures https://github.com/1password/typeshare
-
Is rust overkill for most back-end apps that could be done quickly by NodeJS or PHP?
Aren't there things like typeshare to aid with that case?
-
Bloom's 2 Sigma Problem
Sure. I would love some help. I am visiting my family all March (I am typing this from the airport), so I don't know how much time I'll have to work on trane for the next month. But maybe that gives you some time to use it, and read the code and docs.
I am not going to put my personal email here, and I don't see an option to send private messages on hn, although it's probably out there somewhere. Probably in the commits, lol. Worst case, feel free to open an issue on the trane repo.
As a first ask, what do you think of this: https://github.com/1Password/typeshare?
I figured writing the UI in rust is probably not a good idea. The ecosystem for UI is very immature and the language itself is probably overkill. But doing it in typescript/html/css requires you to understand the internal data structures (all the JSON files you see in the courses are just serialized rust objects).
I found that repo and it seems like a promising approach to autogenerate the types and make the interaction easier.
-
Generating java code from rust structs
How does this compare to typeshare?
-
Upcoming Q and A re: Typeshare, a tool to help Rust developers generate consistent type schema
Recently, 1Password open-sourced Typeshare, to help Rust developers create FFI (foreign function interfaces). Curious to learn more? Join the team behind the tool this week on Zoom at 11a Eastern to discuss Typeshare and answer any questions.
-
Open Source Project
Newly open-sourced project that might be handy for some of you all https://github.com/1Password/typeshare
- Typeshare: Synchronize type definitions between Rust and other languages
- 1Password releases Typeshare, the "ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI"
-
How to Build a Rust CLI Tool to Generate Typescript Types from Rust
Typeshare by 1Password, the original inspiration for this blog post. It's available on crates.io.
-
Rust in Production: 1Password
For sure! We actually open sourced an early version of it a while back (https://github.com/1Password/typeshare), but it became a slowdown to work on it both for our own internal needs and for the outside world, so that was abandoned and it's since fallen out of sync with the project internally today.
What are some alternatives?
xml-mut - xml mutation language resembling sql
card_game
rust-openssl - OpenSSL bindings for Rust
bitwarden_rs - Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs [Moved to: https://github.com/dani-garcia/vaultwarden]
Relm4 - Build truly native applications with ease!
silver_editor - A small editor for quicksilver and Mergui
diesel-async
trane - An automated practice system for learning complex skills
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
trane-math - Official math courses from the Trane Project
avr-hal - embedded-hal abstractions for AVR microcontrollers