HNHacker News
TopNewBestAskShowJobs

metaltyphoon

865 karma · joined January 6, 2021

submissionscomments
metaltyphoon··on Go away Python
> Python lets library authors write __enter__ and __exit__ dunder methods to ensure that memory deallocation is handled correctly via Python context managers, which is a much more elegant abstraction

Whats stopping you from writing a WrapperPtr and the drop trait for it in Rust? This would achieve the same as the dunder methods in python

metaltyphoon··on How uv got so fast
> nfs mounted fs

Anything doing locks on nfs, including trying to use sqlite, is a mistake. This is not a cargo problem this is a nsf problem.

metaltyphoon··on Python 3.15’s interpreter for Windows x86-64 should hopefully be 15% faster
Is this backed by real evidence?
metaltyphoon··on Rue: Higher level than Rust, lower level than Go
What was the rationale to not use cargo? By the way, I really enjoy when you are a guest on the fallthrough podcast.
metaltyphoon··on Lotusbail npm package found to be harvesting WhatsApp messages and contacts
Unless someone is vetting code, nothing.
metaltyphoon··on Lotusbail npm package found to be harvesting WhatsApp messages and contacts
> and similar package ecosystems altogether

Realistically, this is impossible.

metaltyphoon··on Jonathan Blow has spent the past decade designing 1,400 puzzles
I truly despise the damage those books did to the SWE as a whole.
metaltyphoon··on Golang's big miss on memory arenas
It’s this simple in .NET

   ArrayPool<T>
metaltyphoon··on Rust in the kernel is no longer experimental
> many devs keep ignoring

And thats why Zig don’t offer much. Devs will just ignore it.

metaltyphoon··on Rust in the kernel is no longer experimental
What are you trying to imply?
metaltyphoon··on The C++ standard for the F-35 Fighter Jet [video]
I don't consider C# a very large language. Most of what has been added removed boilerplate code. Swift, a much younger language, is way more complicated IMO
metaltyphoon··on Thoughts on Go vs. Rust vs. Zig
> Those two aren’t natively compiled

Idk how up to date ou are in .NET but so you can have an idea how trivial it is in C#:

   echo ‘Console.WriteLine(“hello world”);’ >> app.cs
   dotnet publish app.cs

That’s it. By default C# is natively compiling.
metaltyphoon··on Why we built Lightpanda in Zig
> Minecraft

Typo?

metaltyphoon··on Thoughts on Go vs. Rust vs. Zig
Out of all those only Java and Kotlin captured significant market like OP mentioned
metaltyphoon··on Thoughts on Go vs. Rust vs. Zig
‘static
metaltyphoon··on Zig quits GitHub, says Microsoft's AI obsession has ruined the service
> I am almost certain that the zig project will somehow manage to survive anyway without you following them.

It took longer than expected for this comment to show up.

metaltyphoon··on Thoughts on Go vs. Rust vs. Zig
C#?
metaltyphoon··on Anthropic acquires Bun
>zero actual dependencies

on Linux only with CGO_ENABLED=0 and good luck using some non web related 3rd party module which can be used with CGO disabled.

metaltyphoon··on Zig's new plan for asynchronous programs
This is exactly the problem, thread safety. The function being supplied with std.Io needs to understand what implementation is being used to take precautions with thread safety, in case a std.Io.Threaded is used. What if this function was designed with synchrony in mind, how do you prevent it taking a penalty guarding against a threaded version of IO?
metaltyphoon··on Zig's new plan for asynchronous programs
Why? Asynchrony has nothing to do with multiple threads. In fact you can have async with only a single thread!
metaltyphoon··on Zig's new plan for asynchronous programs
Except that now your library code lost context on how it runs. If you meant it to be sync and the caller gives you an multi threaded IO your code can fail in unexpected ways.
metaltyphoon··on Zig's new plan for asynchronous programs
In C# that Task is ALWAYS hot, aka scheduled to run.
metaltyphoon··on APT Rust requirement raises questions
Attribute, lambda and turbofish?
metaltyphoon··on APT Rust requirement raises questions
Thats not the point OP was mentioning as in “battle tested” doesn’t mean free of bugs.
metaltyphoon··on Shai-Hulud Returns: Over 300 NPM Packages Infected
This is a reason why so many enterprises use C#. Most of the time you just use Microsoft made libraries and rarely brings in 3rd party.
metaltyphoon··on Cloudflare outage on November 18, 2025 post mortem
Yes it's meant to be used in test code. If you're sure it can't fail do then use .expect() that way it shows you made a choice and it wasn't just a dev oversight.
metaltyphoon··on Cloudflare outage on November 18, 2025 post mortem
> Well Rust won't save you from the usual programming mistake

This is not a Rust problem. Someone consciously chose to NOT handle an error, possibly thinking "this will never happen". Then someone else conconciouly reviewed (I hope so) a PR with an unwrap() and let it slide.

metaltyphoon··on Go's Sweet 16
Rust isn’t that complicated if you have some background in non GC languages.
metaltyphoon··on Zig and the design choices within
> As a small example wrt Rust: resetting an arraylist/vector while reusing its memory is a weirdly complicated trick https://lobste.rs/s/emvkea/why_we_didn_t_rewrite_our_feed_ha...

Nitpicking? Let’s show an example on creating an interface in Zig to see all complicated tricks.

metaltyphoon··on Zig and the design choices within
> It's interesting how much Rust has slowed down

Rust has a SDK from the 3 big cloud providers, Rust IS mainstream.

← PreviousPage 4 of 24Next →