←back to thread

597 points pizlonator | 7 comments | | HN request time: 0.103s | source | bottom
Show context
kragen ◴[] No.45135095[source]
Hmm, Fil-C seems potentially really important; there's a lot of software that only exists in the form of C code which it's important to preserve access to, even if the tradeoffs made by conventional C compilers (accepting large risks of security problems in exchange for a small improvement in single-core performance) have largely become obsolete.

The list of supported software is astounding: CPython, SQLite, OpenSSH, ICU, CMake, Perl5, and Bash, for example. There are a lot of things in that list that nobody is likely to ever rewrite in Rust.

I wonder if it's feasible to use Fil-C to do multitasking between mutually untrusted processes on a computer without an MMU? They're making all the right noises about capability security and nonblocking synchronization and whatnot.

Does anyone have experience using it in practice? I see that https://news.ycombinator.com/item?id=45134852 reports a 4× slowdown or better.

The name is hilarious. Feelthay! Feelthay!

replies(8): >>45135151 #>>45135324 #>>45135967 #>>45137459 #>>45139406 #>>45139586 #>>45139998 #>>45140957 #
odie5533 ◴[] No.45135967[source]
SQLite in Rust https://github.com/tursodatabase/turso

CPython in Rust https://github.com/RustPython/RustPython

Bash in Rust https://github.com/shellgei/rusty_bash

replies(1): >>45136370 #
kragen ◴[] No.45136370[source]
Turso says:

> Warning: This software is ALPHA, only use for development, testing, and experimentation. We are working to make it production ready, but do not use it for critical data right now.

https://rustpython.github.io/pages/whats-left says:

> RustPython currently supports the full Python syntax. This is “what’s left” from the Python Standard Library.

Rusty_bash says:

> Currently, the binary built from alpha repo has passed 24 of 84 test scripts.

The CPython implementation is farther along than I had expected! I hope they make more progress.

replies(1): >>45136689 #
1. Sammi ◴[] No.45136689[source]
You're getting downvoted because nobody likes pedantry.

Especially for the Turso project if you look under "Insights -> Contributors" on their Github page, then it's clear that that project is under heavy active development, and they have an actual funded business startup that want's to sell access to a cloud version of Turso, so they are definitely incentivized to complete it.

Sqlite was built by three people, and has a stable and well defined interface and file format. This seems like an actual tractable project to re-implement if you have enough man years of funding and a talented enough dev team. Turso seems like they could fit the bill.

replies(1): >>45137071 #
2. kragen ◴[] No.45137071[source]
My comment is upvoted to +7 because it's not pedantry; it's just an assessment of the current state of rewriting those projects in Rust, which is that it hasn't happened yet.

In theory it could happen, and the Python project seems to be much closer than I had imagined was possible at this point. But it's not likely to.

replies(3): >>45137457 #>>45139110 #>>45141568 #
3. Sammi ◴[] No.45137457[source]
It was grey when I saw it.
replies(1): >>45148442 #
4. odie5533 ◴[] No.45139110[source]
With the advent of LLMs, I think it's more and more likely we'll see core C projects converted to Rust. People even like converting stuff to Rust for their own amusement.
5. pbronez ◴[] No.45141568[source]
Maybe there's a world where we successfully get CPython re-written in Rust and that RustyPython becomes Python 4.
6. odie5533 ◴[] No.45148442{3}[source]
My original comment is now negative. Oops. I must be more careful to keep my contributions positive in the future
replies(1): >>45150661 #
7. kragen ◴[] No.45150661{4}[source]
I thought your original comment was positive. I really appreciate the good news!