Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ww520
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
121.
▲
by
ww520
1y ago
I did it this way so that the implementation doesn't need to know about the interface at all. The programmers can string the interface and implementation together with, const intf = interface.implBy(implementation) This makes it
122.
▲
by
ww520
1y ago
Yes. You're right. It's not the typical C++ vtable. I wrote a second blog for the C++ style vtable. https://williamw520.github.io/2025/07/17/memory-efficient-zi... The first version is faster (one
123.
▲
by
ww520
1y ago
Ah. The birth era of creative accounting. I remember companies shipped empty CD and booked it as revenue for the quarter. The actual software when ready was delivered as a “patch”.
124.
▲
Zig Interface Revisited
(williamw520.github.io)
98 points
by
ww520
1y ago
|
40 comments
125.
▲
by
ww520
1y ago
Yes. I’ve loaded game buying whenever Epic has a free promotion.
126.
▲
by
ww520
1y ago
Effect system allows programmers to annotate expressions that can have certain effects, just like the type system annotating type information on them, so compilers can enforce effect rules just like enforcing type rules. For example for a t
127.
▲
by
ww520
1y ago
They're most likely just scapegoats for entities surrounding the area who won't give land for a proper construction.
128.
▲
by
ww520
1y ago
I don't know what's going on in Mozilla. Just today on my security camera NVR, Firefox pops up a dialog in the notification area at the lower right screen of Windows 11, showing an ad for its vertical tab feature, urging me to try
129.
▲
by
ww520
1y ago
This is awesome. It's actually pretty quick. Major kudos.
130.
▲
by
ww520
1y ago
> But that server is faulty!! If it has to handle multiple requests at once, it starts to break down. So, we decide to make our server's life easier by trying to ensure, from the client, that it doesn't ever have to handle more
131.
▲
by
ww520
1y ago
Used to just be a dash, like re-elect. Cooperate was co-operate. People got tired of writing dashes and they got shortened.
132.
▲
by
ww520
1y ago
If I were asked this question, the first thing I said would be this is a poorly designed architecture. Client is the poor place to do throttling by itself. It has no information on the aggregated load of the system. It makes assumption that
133.
▲
by
ww520
1y ago
It's not a functor; "map" is bind. Here's an example in non-Haskell as I was addressing non-Haskell audience. class Maybe { value: int; static wrap(v: int) { return new Maybe { value = v } }
134.
▲
by
ww520
1y ago
Nice video. I especially like the new 'labeled switch' feature providing a freeform control flow, and the watch/incremental compile feature. I used to use Rust's watchexec to do zig build on changes; now the watch featur
135.
▲
by
ww520
1y ago
That's excellent! Thanks for the changes.
136.
▲
by
ww520
1y ago
One issue I have with the old reader/writer pattern is that it is not easy to store them in a struct. Reader and writer are passed into a function as 'anytype' which implements any of the read() or write() functions. Often
137.
▲
by
ww520
1y ago
Here is an analogy. List is a container whose elements can be any type. There are general operations applying to a list, e.g. map, reduce, filter, find, etc. Any data type (int, float, or bool) of list elements can use these same operations
138.
▲
by
ww520
1y ago
Sounds like great timing. See if it can help.
139.
▲
by
ww520
1y ago
Nice. Didn't realize zig build has --watch and -fincremental added. I was mostly using "watchexec -e zig zig build" for recompile on file changes.
140.
▲
Show HN: I built a JSON-RPC library for Zig with compile time reflection
(github.com)
13 points
by
ww520
1y ago
|
2 comments
141.
▲
Show HN: I rawdog a MCP server from scratch in Zig. No SDK
(github.com)
15 points
by
ww520
1y ago
|
3 comments
142.
▲
by
ww520
1y ago
The idea is not completely without merit. In gravity less environment, you can have much bigger and much thinner structure possible than on Earth. Also the radiated heat from the Sun won't have much effect if the heat sink panels are f
143.
▲
by
ww520
1y ago
The Behringer X32 is a rare product that is designed well and built well. The digital aspect, the analog aspect, the user interface (hardware and software), the layout, the speed, the remote control feature, all work very well together. By
144.
▲
by
ww520
1y ago
Not just employment contracts, some companies require NDA just for interviews.
145.
▲
by
ww520
1y ago
Salary history of public employees. https://transparentcalifornia.com/salaries/search/?q=Joseph+...
146.
▲
by
ww520
1y ago
Is comptime slowness really an issue? I'm building a JSON-RPC library and heavily relying on comptime to be able to dispatch a JSON request to arbitrary function. Due to strict static typing, there's no way to dynamically dispatch
147.
▲
by
ww520
1y ago
I use a 10-year old laptop to run a local LLM. The time between prompts are 10-30 seconds. Not for speedy interactive usage.
148.
▲
by
ww520
1y ago
> I kept going because I wanted to understand the BEAM properly. There’s value in following the real logic, not just the surface explanations. Teaching is the best way to learn. I found that out when I started tutoring classmates for mat
149.
▲
by
ww520
1y ago
I use LLM as a super Stackoverflow. So far it has been helpful. For code gen, 8 out of 10 cases, the code won't compile and need fixing. LLM did help a lot in learning new topics. Gemini did help tremendously recently in pointing out a
150.
▲
by
ww520
1y ago
Really don’t need an electrician. Just plug in to an outlet on the wall or an extension power strip. Don’t need a plumber as well. It’s really easy to install.
More ›