Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
latch
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
latch
3y ago
Another shameless plug. I'm pretty proud of my Learning Zig series (1). It's been translated into Chinese, Russian and Korean. Some may know my other writings (e.g. Little Go/Redis/MongoDB Book). I don't feel like I
62.
▲
Performance of reading a file line by line in Zig
(openmymind.net)
4 points
by
latch
3y ago
|
0 comments
63.
▲
by
latch
3y ago
HN used to show vote count. In the past, you'd see something like your GP having a vote count of 14, and your parent (the correction) having a vote count of 53. It was super useful and helped to combat misinformation.
64.
▲
by
latch
3y ago
If you're using parameterized queries, then you _have_ to use PostgreSQL's "Extended Query" flow, which is what most people would think of as a "prepared statement". This is hardly opinionated. But normally, y
65.
▲
by
latch
3y ago
The loss of forest resources in Europe over the last 10000 years, and in particular the last 5000 years (largely due to human activity) dwarfs any recent gains (1). (1) https://www.nature.com/articles/s41598-017-18646-7
66.
▲
by
latch
3y ago
This sounds like blaming video games for gun violence (especially since, at least in the summary, no such conclusion or link to television are mentioned). "Replacing" one with the other presents a false dichotomy. There's not
67.
▲
by
latch
3y ago
What I was never able to wrap my head around with NIFs was lifecycles and ownership. The entire "resource" thing always confused me a little. Say I wanted to implement my own ETS, maybe to add an atomic rename (which ETS really sh
68.
▲
by
latch
3y ago
I took a year off, and one of the things I did was learn Zig. I've built a number of libraries, including one of the currently more popular HTTP server libraries ( https://github.com/karlseguin/http.zig ). A number
69.
▲
by
latch
3y ago
TL;DR - API developers should make it so consumers have the necessary information and tools to know what's happening. If you're just returning a 404 with no other info, you have a bad API. There's basic error handling/re
70.
▲
by
latch
3y ago
Another good example of this is the [English] bible. In the original Greek translation, "almah" was translated to 'young women' in most places, except two where it's translated to virginity. You also have the Latin
71.
▲
Show HN: Duckdb-proxy an HTTP proxy for DuckDB written in Zig
(pondz.dev)
4 points
by
latch
3y ago
|
0 comments
72.
▲
by
latch
3y ago
I've now written a lot of zig code (http.zig, websocket.zig, log.zig, zuckdb.zig, etc.) I think Zig falls into an "easy to learn, average/hard to master" category. Some insiders underestimate the effort required for newc
73.
▲
by
latch
3y ago
I just tried it out and it's very slow. Using `wrk` to hit a basic endpoint that just prints "hello", I got ~500 req/sec. Using a third party zig implementation, I got ~175000 req/sec. It's also both cumbersome
74.
▲
by
latch
3y ago
Yes, a typo. I fixed the post.
75.
▲
by
latch
3y ago
3TB for the text of 13K user sound crazy, you're right. But for the bill, strictly speaking about bandwidth, a 10mbps unmetered connection gets you roughly that. And 10mbps is pretty uncommon now because it's so low. So I'd e
76.
▲
by
latch
4y ago
Is there an update since this 2 year old thread (1) which leaves the door open to removing tab support in the future? I use relatively large fonts for medical reasons and tabs are much more accessible to me. (1) https://github.co
77.
▲
by
latch
4y ago
Self is used in the standard library for non generic types every now and again. As for public fields, the 0.9 change to allocator comes to mind. This was written off as a minor change, because Zig is pre 1.0. But what I haven't heard
78.
▲
by
latch
4y ago
No, it won't work. It'll say "actual" is undeclared. https://github.com/ziglang/zig/issues/4437 is tracking the issue. I think std.testing is going to see some major changes, so it's
79.
▲
by
latch
4y ago
AWS and GC (and I assume Azure, but I haven't looked) have definitely set the standard with respect to checking off all the boxes when it comes to helping customers with security audits and requirements. This is a place other provides
80.
▲
by
latch
4y ago
Dedicated server provider is responsible for the hardware and the network. In this very important aspect, it's really no different than cloud (so yes, the price "includes" the repair). It depends on the exact provider, but as
81.
▲
by
latch
4y ago
tl;dr Mini rant (pro dedicated, anti-cloud) Amazon has done an amazing job of convincing people that their hosting choice is between cloud (aka, AWS) or the higher-risk, knowledge intensive, self-hosting (aka, colocation). You see this play
82.
▲
by
latch
4y ago
Is "florid dreams" a thing (Google didn't come up with anything meaningful)? Did you mean lucid dreams (though for the life of me, I can't understand why that wouldn't be welcomed).
83.
▲
by
latch
4y ago
This is in the context of a websocket (which is what the original story is about). Presumably, websocket is being used because HTTP isn't enough, namely, you want to receive pushes from the server. This _often_ comes in the form of dat
84.
▲
by
latch
4y ago
Honestly, what matters is (a) what you're going to be doing with those connections and (b) your hardware. As a generalization (again, really depends what you're going to be doing), I'd expect people to get a lot further wit
85.
▲
by
latch
4y ago
Somewhat related is yesterday's post about the Cyber programming language, also built on Zig and also embeddable: https://news.ycombinator.com/item?id=34553236 (Not affiliated with either, just can be easy to miss stor
86.
▲
by
latch
4y ago
I'm not the parent, but I've also read all the original 6 books a great number of times, as well as about 7 or 8 of the B. Herbert/K. Anderson Dune books, and I'd say they aren't worth it. They largely explain thing
87.
▲
by
latch
4y ago
Seems to fit the goroutine model well: initialize the arena at goroutine start, destroy it on goroutine end (I assume this happens automatically when it falls out of scope). Like Erlang's process-specific GC. It would be nice for some
88.
▲
by
latch
4y ago
I don't know the cause of your specific situation. But with respect to 5400 cancelled flights, I'd be surprised to hear that there's a transportation system (public + private combined) that can handle a sudden and unexpected
89.
▲
by
latch
4y ago
I've been doing Elixir professionally for 6 years. There's a whole class of problems that are best solved with concurrent read/write access to data. So the answer to your question is exactly that: when you want N-cores to wor
90.
▲
by
latch
4y ago
There's none that I need, but I think it's worth pointing out to anyone who asks about CRDB. There are many available extensions for PostgreSQL, so if you happen to rely on one of them, you might need to think about how you'
More ›