Zig: Zig and Full stack web development

Created on 22 Apr 2018  路  5Comments  路  Source: ziglang/zig

As a web developer, I am looking for a fast, memory/cpu efficient and easy to use complied language (Without Stop the World Garbage Collector) for full stack web development like UrWeb http://www.impredicative.com/ur/. Is Zig good for full stack web development? or Is there any plan to do so?

question

Most helpful comment

Zig will be great for full stack web development someday. Here's what the roadmap looks like to get there from here:

  • [x] finish solving concurrency (see #174)
  • [ ] http server in std lib (see #910)
  • [ ] high quality package manager (see #943)
  • [x] llvm's web assembly target needs to graduate from experimental. (see https://reviews.llvm.org/D43211)

This use case is an explicit use case that zig wants to handle, it's just a matter of getting there.

All 5 comments

Zig will be great for full stack web development someday. Here's what the roadmap looks like to get there from here:

  • [x] finish solving concurrency (see #174)
  • [ ] http server in std lib (see #910)
  • [ ] high quality package manager (see #943)
  • [x] llvm's web assembly target needs to graduate from experimental. (see https://reviews.llvm.org/D43211)

This use case is an explicit use case that zig wants to handle, it's just a matter of getting there.

I am really happy to hear that. I have tried everything from Rust to Crystal and scripting languages from Python to NodeJs/Javascript. Every language has its own set of issues. Rust is very powerful but very complicated.

It is a great opportunity for any new language and If Zig can do this then combined with a modern database like https://edgedb.com/ https://edgedb.com/blog/edgedb-a-new-beginning Zig could become an overnight success and rule the web development world in this Progressive Web Apps (PWAs) era.

I would like to add that schema-driven (i.e. statically-typed) binary serialization is important to support. I've recently been thinking about how something like flatbuffers or capnproto could be supported as a feature of a programming language. Implementing flatbuf support in Zig would be a fun project.

Fwiw, getting high-quality HTTP server (and ideally websocket / TCP) support is a lot more important than full-stack (if Go and Python are good examples.)

json ?

@catastrop zig already has a json module in the standard library. See std.json.

@catastrop If you want a feature not described in this issue, please open a separate issue. Please take the time to state your question or suggestion clearly.

I'm not sure how to put this delicately, but take note that you won't get far here if you follow your current style of issues and comments; questions and suggestions are welcome as long as they are specific and not already addressed in a separate issue.

Was this page helpful?
0 / 5 - 0 ratings