Hacker Newsnew | past | comments | ask | show | jobs | submit | bnolsen's commentslogin

Not to be confused with zlib.

Except for all the baggage it carries along with it including hacks to address baggage resulting in a very bloated language.

The goal is C replacement, not some abstract perfection.

Quaternions are left handed spinors. Please use the correct unified math models (clidfford algebra) rather than these 3d only hacks.

Describing those algebras in quaternion terms simplifies understanding most of them. Like biquaternions and dual quaternions.

A 2d quaternion just has no j or k term and works for 2d math.


Having worked with c++ strings and also string views I find zigs simple fat pointer to be fairly direct and straightforward, and a bit refreshing. Ownership is being coupled in with the type..


And then zig shows up...


It's christmas and not april fools!


But this is a treat, not a silly joke!


I remember seeing this a long time ago and liking it, I just didn't have a use for it at the time. How does it stack up against luahit for perf and memory, and threading? It also looks like it could be worth looking at porting the compiler to zig which excels at both compiler writing and cross platform tooling.


LuaJIT is best in class performance for a scripting language -by a huge margin. In very specific problems, it can outperform C. Surely anything else is going to come up lacking if you are only considering raw benchmarks.


Work gave me an m1 pro with 32gb on it. A year ago I put together one of those minisforum board+laptop apu with 64gb ram and 2tb nvme for not much money at the time, likely 500usd. For the performance sensitive software I was working on the 7935hs ran with about 50x more throughout using compilers with llvm backend.


There's active work towards that (which could run as part of CI) and it looks very promising: https://github.com/ityonemo/clr


Zig actually does bring some new and innovative ideas to programming. While Zig itself may not become the next big thing a lot of ideas in it most certainly will find their way into languages moving forward.


What would you say are the innovative ideas that have come out of Zig? I have played around with Zig a decent amount, and to me it seems more like a novel combination of an interesting set of pre-existing ideas.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: