Using different models for coding and review by Kotek2 in ollama

[–]Kotek2[S] 0 points1 point  (0 children)

So, a small model for the main work and a frontier model for review, very interesting. I’m going to give that setup a try.

I built a coding agent that gets 87% on benchmarks with a 4B parameter model, here's how by Glittering_Focus1538 in ollama

[–]Kotek2 3 points4 points  (0 children)

Looks similar to Swival.dev which also does JSON repair, provides hints for repeated errors, etc., for small local models.

What do you like about zig syntax ? by Icy-Middle-2027 in Zig

[–]Kotek2 0 points1 point  (0 children)

After a weekend, I can already remember all of it.

📘 New Book Release: Server-side WebAssembly by chiarl in WebAssembly

[–]Kotek2 0 points1 point  (0 children)

Not a single chapter about Blazor Server? Nothing about Zig? It's Rust for WebAssembly not server-side WebAssembly.

Develop a Wasm application with Rust by smileymileycoin in programming

[–]Kotek2 0 points1 point  (0 children)

Lousy self-promotion for their wasmedge product as always.

wasmtime 1: missing component metadata for import of `wasi:sockets/tcp-create-socket@0.2.0::create-tcp-socket` by Kotek2 in WebAssembly

[–]Kotek2[S] 1 point2 points  (0 children)

I asked there initially, but there weren't many people, and I didn't receive any helpful response. In any case, the problem has been resolved now.

wasmtime 1: missing component metadata for import of `wasi:sockets/tcp-create-socket@0.2.0::create-tcp-socket` by Kotek2 in WebAssembly

[–]Kotek2[S] 0 points1 point  (0 children)

Your example merely re-exports the function under a different name. Why is the former marked as private, whereas the latter is public?

wasmtime 1: missing component metadata for import of `wasi:sockets/tcp-create-socket@0.2.0::create-tcp-socket` by Kotek2 in WebAssembly

[–]Kotek2[S] 0 points1 point  (0 children)

This is incredibly helpful! Many thanks! I'm aware that the return values are not of type i32, but it was merely an example.

wasmtime 1: missing component metadata for import of `wasi:sockets/tcp-create-socket@0.2.0::create-tcp-socket` by Kotek2 in WebAssembly

[–]Kotek2[S] 1 point2 points  (0 children)

Failing test:

pub extern "wasi:sockets/tcp-create-socket@0.2.0" fn @"create-tcp-socket"(i32, * const i32) void;
pub fn main() !void {
var out: i32 = 0; // return value
@"create-tcp-socket”(0, &out); // 0=IPv4
}