Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
AndyKelley
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
AndyKelley
11mo ago
Well I don't think that fits at all. In Zig, an Io instance is an interface, passed as a parameter. You can draw some connections between what Zig is doing and what Haskell is doing but it's not a monad. It's plain old interf
62.
▲
by
AndyKelley
11mo ago
Noted, thank you!
63.
▲
by
AndyKelley
11mo ago
Can you explain for those of us less familiar with Haskell (and monads in general)?
64.
▲
by
AndyKelley
11mo ago
var group: Io.Group = .init; defer group.cancel(io); If you see this pattern, you are doing structured concurrency. Same thing with: var future = io.async(foo, .{}); defer future.cancel(io);
65.
▲
by
AndyKelley
11mo ago
A deadlock. For example, the function is called immediately, rather than being run in a separate thread, causing it to block forever on accept(), because the connect() is after the call to async(). If concurrent() is used instead, the I
66.
▲
by
AndyKelley
11mo ago
It's not a monad because it doesn't return a description of how to carry out I/O that is performed by a separate system; it does the I/O inside the function before returning. That's a regular old interface, not a mo
67.
▲
by
AndyKelley
11mo ago
Overall this article is accurate and well-researched. Thanks to Daroc Alden for due diligence. Here are a couple of minor corrections: > When using an Io.Threaded instance, the async() function doesn't actually do anything asynchron
68.
▲
by
AndyKelley
11mo ago
https://kickstarterunited.org/
69.
▲
by
AndyKelley
11mo ago
You have accused me of "shitting in Rust threads". Do you have any evidence for this libel?
70.
▲
by
AndyKelley
1y ago
In the vast majority of cases, cancellation will be handled transparently by virtue of `try` being commonly used. The thing that takes relatively longer to do is I/O operations, and those will now return error.Canceled when requested.
71.
▲
by
AndyKelley
1y ago
How do you know what you need to hide?
72.
▲
by
AndyKelley
1y ago
Very witty. You're funny!
73.
▲
by
AndyKelley
1y ago
text version: https://andrewkelley.me/post/zig-new-async-io-text-version.h...
74.
▲
by
AndyKelley
1y ago
This post was really good right up until the screenshot of ChatGPT... It would be a big improvement to convert that to HTML, fact check it, and then not cite LLM as a source.
75.
▲
by
AndyKelley
1y ago
Anki is Free and Open Source Software and it's way more effective. Why waste any time on Duolingo when you could be using Anki instead?
76.
▲
by
AndyKelley
1y ago
This is very related to a talk I did last year [1]. "Part 2: youtube-dl" starts at 18:21. It dips toes into an analysis about software that fundamentally depends on ongoing human labor to maintain (as compared to, e.g. zlib, which
77.
▲
by
AndyKelley
1y ago
It's common for both the producer of XML and the consumer of XML for any given application to be using a dramatically smaller subset of the standard. Well-engineered software is intentional about this and documents those limitations. U
78.
▲
by
AndyKelley
1y ago
Right. I mean, ideally, because regulations have sufficient teeth that the company's existence is jeopardized by having shady business practices. When "it's a bug" is no longer an excuse, they could have avoided such a r
79.
▲
by
AndyKelley
1y ago
It can be a mixture of both. It's extremely easy to Cover Your Ass while intentionally dragging your feet when a bug works in your favor. The manager simply has to decide that other tasks are higher priority.
80.
▲
by
AndyKelley
1y ago
If you think you need libxml2, think again. XML is a complex beast. Do you really need all those features? Maybe a much smaller, more easily maintained library would suit your needs while performing better at the same time! For instance, co
81.
▲
by
AndyKelley
1y ago
Since you're already a GDB user, rr will probably feel comfortably familiar. https://rr-project.org/ already has enough example usage to get you going on the home page right there.
82.
▲
by
AndyKelley
1y ago
Combined with time travel it's mind-blowing. Stumble upon some corrupted memory? Just put a watch point on it, and run the program backwards. Two weeks just turned into two minutes.
83.
▲
by
AndyKelley
1y ago
Thanks! > This is because the capability is not stored at any addresses that are accessible to the Fil-C program. How are they stored? Is the GC running in a different process?
84.
▲
by
AndyKelley
1y ago
Hmm, I'm still not understanding the bit of information that I'm trying to ask about. Let's say I malloc(42) then print the address to stdout, and then do not otherwise do anything with the pointer. Ten minutes later I prompt
85.
▲
by
AndyKelley
1y ago
Super cool project. Sorry if you explained this already, I don't know what "Dijkstra accurate" means. How does it know if an object is truly available to be reclaimed, given that pointers can be converted to integers?
86.
▲
by
AndyKelley
1y ago
Rust is not hated. Rust is a widely loved and successful project, growing more popular every year. There's no war here, only facts that help an ignorant person gain perspective about how much things cost.
87.
▲
by
AndyKelley
1y ago
Baseless accusation. Do you by chance have affiliation with a "competing language"? checks profile there it is
88.
▲
by
AndyKelley
1y ago
Made an effort to improve that this morning. How's it looking for you now?
89.
▲
by
AndyKelley
1y ago
For comparison, in the same year Rust Foundation spent $567,000 on this category - more than ZSF's entire expenses for everything. That's 38x more money. Source: https://rustfoundation.org/wp-content/uploads&#
90.
▲
by
AndyKelley
1y ago
Hello, I am the author of the post. The expenses listed here are accounting for 100% of the expenses paid by the organization. If you go fetch the 990 from the IRS and look at the totals, it will match dollar-for-dollar, cent-for-cent. So i
More ›