by huydotnet on 5/18/23, 5:57 PM with 174 comments
by impulser_ on 5/18/23, 9:51 PM
This is huge for things like database drivers which might become outdated or not support certain features. In Go switching database drivers in as simple as importing the new library. You dont have to change your code.
In rust for example you have to go out and pick a database driver and no two libraries will work the same. If you pick one postgres library and it becomes outdated you have to go rewrite you code to support the next one to move too.
This is why I would never use Rust, or Zig for being things like http servers.
by latch on 5/19/23, 12:36 AM
It's also both cumbersome to setup and use.
Before learning Zig, I used to think Zig needed an http server in the standard library. After using it for a few months, and watching this implementation get added, I think it's a mistake - there just isn't enough bandwidth to support a _quality_ kitchen-sink included stdlib.
by nusaru on 5/18/23, 8:21 PM
Server: https://ziglang.org/documentation/master/std/#A;std:http.Ser...
Client: https://ziglang.org/documentation/master/std/#A;std:http.Cli...
by shirro on 5/19/23, 12:16 AM
by jchw on 5/18/23, 7:55 PM
I couldn't grok from this test suite alone, but I do have questions.
1. Do either the server or client support 'full duplex', i.e. streaming the response body while streaming the request body in parallel?
2. Are there provisions for HTTP/2?
I'll answer my own questions if I find the answers first, but I'm not very good at Zig.
by WhereIsTheTruth on 5/18/23, 10:46 PM
Everyone wants to go after Go, but they fail to understand how important compile speed is
by tills13 on 5/18/23, 8:09 PM
by bricss on 5/18/23, 8:39 PM
by stephc_int13 on 5/19/23, 12:53 AM
I don’t think that can be the case here.
This should be released as reference implementation, an example, provided for convenience and education, probably not production ready…
by VWWHFSfQ on 5/18/23, 9:26 PM
by badrabbit on 5/19/23, 3:41 AM
by naikrovek on 5/18/23, 8:08 PM
it hasn't been that long, I'm just an airhead.