thezipcreator

Joined 2 years ago

Karma
48
Submissions
40
Member since
May 12
https://zipsegv.net
View on Hacker News

Recent submissions

Comment · 6 months ago
Comment · 7 months ago
fair enough, I suppose
Comment · 7 months ago
seems pointless to extract `handle_suspend` here. There are very few reasons to extract code that isn't duplicated in more than one place; it's probably harder to read to extract the handling of the event than to handle it inline.
Comment · 7 months ago
> And I don't know any other languages that don't parse a carriage return.

fair enough.

Comment · 7 months ago
you can just expose javascript functionality as a component, if need be
Comment · 7 months ago
I would think you could treat it as a normal GC reference and then just drop the resource when the GC collects the object.
Comment · 7 months ago
I still don't understand how they managed to make a build system as bad as Gradle. It's like they tried to make it as horrible as possible to use.
Comment · 7 months ago
sure, but when I've written zig this has never been an issue for me. `defer` makes memory management really easy.

If you want to auto-generate destructors, zig has really good comptime features that can let you do that.

Comment · 7 months ago
I'm not sure why you shouldn't make your compiler accept CRs (weird design decision), but fixing it on the user-side isn't exactly hard either. I don't know an editor that doesn't have an option for using LF vs CRLF.

The unused variable warning is legitimately really annoying though and has me inserting `_ = x;` all over the place and then forgetting to delete it, which is imo way worse than just... having it be a warning.

Comment · 7 months ago
We've had machine translation for a while and I don't think anybody particularly thinks of it as a bad thing? Writing something and then having a machine directly translate it (possibly imperfectly) is a lot different than a machine writing the thing.

Personally I would like people to try learning other languages more (it's hard but rewarding) but you can't learn every language ever, and it is really hard to learn a language to fluency.

Comment · 7 months ago
The WASM component model is really cool in that you can export basically anything as a component and use it in basically anything else that can compile to WASM and understand components.

I would love something like this for native applications; I'm so tired having to wear C's skin every time I want to do bind together code written in different languages.

Comment · 7 months ago
I disagree. That's how WASM is now, and I guess that's fine, but that's not all it could be. I really think it would be awesome if you could write code for the web in your preferred programming language.
Comment · 7 months ago
Comment · 7 months ago
iirc webassembly components need to explicitly import anything they use, so it should be transparent which dependencies something has by just grepping its WIT for `import`
Comment · 8 months ago
what's with people inventing new torment nexuses every few weeks? could you people just chill, please?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton