News for hackers. Stuff that matters.
Re:Zig now has built-in HTTP server and client in std by themerone on Thursday May 18, 2023 @06:13PM (#35994886)
Python, Java, and all of the .NET language have standardized database APIs.
Re:Zig now has built-in HTTP server and client in std by impulser_ on Thursday May 18, 2023 @06:38PM (#35995198)
Yeah, but Go provides this for almost everything in the STD. io, networking, http, sql, and so on.
Re:Zig now has built-in HTTP server and client in std by slimsag on Thursday May 18, 2023 @06:47PM (#35995297)
If you are familiar with Go, you're gonna be at home with Zig's standard library in general. `std.io.writer`, `std.io.reader`, `std.io.multiWriter`, etc. are all there and pretty similar to Go's interfaces.
Re:Zig now has built-in HTTP server and client in std by pjmlp on Friday May 19, 2023 @02:49AM (#35998593)
It still fails short of GUIs and full blown Web frameworks, messaging, like the above.
Re:Zig now has built-in HTTP server and client in std by themerone on Friday May 19, 2023 @07:06PM (#36007828)
A lot of people in the Go community consider web frameworks to be an anti-pattern.

I haven't done any web stuff in Go, but it definitely looks like the standard library is much better suited than any other language.

Re:Zig now has built-in HTTP server and client in std by xyproto on Thursday May 18, 2023 @06:34PM (#35995156)
Go also have standardized HTTP handlers, and a standardized io.Writer interface for writing to anything, like a file, buffer or a HTTP reply.