Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
abendstolz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
abendstolz
3mo ago
> I think the notion that you could control something (legitimately) smarter than you is a pretty risky proposition. But then think about the CEOs and their employees again. We just need to invent something like money for an "AI&quo
2.
▲
by
abendstolz
3mo ago
But yours is human IQ, theirs is Artificial IQ. It's like human to dog years ;-)
3.
▲
by
abendstolz
1y ago
Don't rust shared libraries have the problem of no stable rust ABI? So you either use the C ABI or you use some crate to create a stable rust ABI, because otherwise a shared lib compiled with rust compiler 1.x.y on system a isn't
4.
▲
by
abendstolz
1y ago
Sounds interesting but at the same time a bit complex. I assume you wouldn't ship the whole plugin runtime for each plugin that wants to host another plugin?!
5.
▲
by
abendstolz
1y ago
You're right. Hot reloading isn't done by default. I manually compile a plugin and in my system I can "refresh" a plugin and even say "activate version 1.1 of the plugin" or "activate version 1.2" of
6.
▲
by
abendstolz
1y ago
match Plugin::instantiate_async(&mut store, &component, &linker).await { Ok(plugin) => { match plugin .plugin_guest_oncallback()
7.
▲
by
abendstolz
1y ago
Very cool! But I prefer the wasmtime webassembly component model approach these days. Built a plugin system with that, which has one major upside in my book: No stringly function invocation. Instead of run_function("my-function-with-ty
8.
▲
by
abendstolz
5y ago
For binaries, I agree. For libs, I prefer semver
9.
▲
by
abendstolz
5y ago
There is cargo install, yes :) https://doc.rust-lang.org/cargo/commands/cargo-install.html
10.
▲
by
abendstolz
5y ago
Thanks for correcting my error. I've never checked core before, so I did when checking up for this discussion. I somehow missed Result. Silly me didn't search on that page, but ofc I found it on std https://doc.rust-lan
11.
▲
by
abendstolz
5y ago
Thanks for the thorough explanation!
12.
▲
by
abendstolz
5y ago
Mhm, thanks. It never occurred to me (being in non-embedded land) that returning an enum as the error or a &'static str instead of a heap structure like String, could also fail. Seeing that Result isn't part of core, but of st
13.
▲
by
abendstolz
5y ago
Oh, wow, I was under the impression that the error message would be stack only, no heap involved, but as Result is part of the std library and not of core, this totally makes sense. So for `Rust for Linux` they also need to implement a `Res
14.
▲
by
abendstolz
5y ago
Can you elaborate as to why "his isn't how you'd do things in userspace, but, this isn't userspace so fine" holds? Naive me - not a kernel dev at all - would argue that returning Result<Memory, AllocationError>
15.
▲
by
abendstolz
5y ago
Just in case you don't know about it: https://redox-os.org/ could be interesting to you :)
16.
▲
by
abendstolz
5y ago
Yes, it was/is for only the duration of the summer (school) break. Has some very weird constraints regarding borders when combining with the eurorail/interrail though.
17.
▲
by
abendstolz
5y ago
You may be interested in https://github.com/joaoh82/rust_sqlite
18.
▲
by
abendstolz
6y ago
Ah, the good ol' KISS - complexity kills.
19.
▲
by
abendstolz
6y ago
But not Down Under scnr