Better HN
topnewbestaskshowjobs
Log inSign up

90s_dev

1,788 karma · joined Mar 13, 2025 (1y ago) · 921 submissions

Submissions

comment 1y ago · link · parent

When typescript-go was announced, I almost wanted to give it a serious try. But that article I referred to convinced me that it still has serious QOL issues.

comment 1y ago · link · parent

> (I have to do more work to test my code)

I feel like that's already the cultural precedence in Zig. I mean, isn't their primary way of making sure your code fully and oncely frees all memory, just writing tons of tests that thoroughly exercise your function(s)?

comment 1y ago · link · parent

> which is especially useful when writing strongly-typed code to support variable payload structures in API calls.

I shouldn't be surprised, that's like the ideal scenario for PHP. So of course they added strong typing to it.

comment 1y ago · link · parent

It also protects innocent bystanders from being forced to see your horrifyingly mangled body tossed on the ground in front of them in what could otherwise have either been a crash with no injuries, minimized injuries, or at least contained injuries. Do you still think that law is overstep, if so why? Genuine question, I have no horse in this race and am on the fence myself.

comment 1y ago · link · parent

> Even when compiling in Debug mode! closer to a friend asking you to role play being a customer so they could practice, and then spitting in your face saying "No customer would do that! Start over."

Thanks for the hearty laugh :D

comment 1y ago · link · parent

> The whole "critic" towards `build.zig` also seems like it's done with without good faith. Yes it's daunting at first. Yes it requires to learn about the build system in the beginning. Sure those are all very real Arguments, author just doesn't want to mention the benefits of it.

He just pointed out to us language skimmers that it's a potential chicken egg problem, which we may not have considered. Perfect for this kind of article. Whereas pointing out its merits would just be recreating part of ziglang.org

comment 1y ago · link · parent

Interesting site, I bet it won't last more than 20 more years.

I've been both right and wrong about long term predictions often enough that I've learned to just stop caring about it. (But I am right in this case.)

comment 1y ago · link · parent

> My current take on this is to view Jai/Zig/Odin/etc. as attempted C forks, quite often motivated by hubris and coming with the usual inconvenience of forks, a lot of wasteful/redundant efforts put into small islands, each ruled by their own "benevolent" kings.

Didn't Rust do the same thing? We only call efforts wasteful until they become mainstream, then in retrospect we call it excitement driven prudence.

Anyway, is there an "Odin for C programmers" short guide, so I can learn it more quickly?

comment 1y ago · link · parent

Not using a variable is the same as flying out your car window?

It's more like the cashier smacks a peanut out of your hand saying you'll get fat.

comment 1y ago · link · parent

> Of course, if you don’t use pos, the compiler will say that this is an error and refuse to compile as well. And if you discard that error (typically using _ = pos;), the compiler will complain that it should be a const.

This was one of the main things that bothered me about Zig when I last tried it. This actively works against me when writing prototypes, exploratory code, and especially when writing code to learn the language. I get the rationale, that it's trying to protect me from shipping poorly designed code. But helicopter mom features do not belong in a programming language. They are just as hindering to progress as a literal one would be to a grown man, and for the exact same reasons. I know Andrew has made up his mind, but minds can be changed. So please, Andrew, please take away this helicopter mom feature.

comment 1y ago · link · parent

I tried Scala a long time ago, and although I don't remember much about it, I do remember that it felt like Perl for Java. If that's accurate, then it may not have syntactical complexity, but only because it moves that complexity into semantics.

comment 1y ago · link · parent

> the notion of reasoning one’s way to God without faith or the Church was itself heretical

It still is, according to Catholicism, which says you must have reason and faith in the divine revelation it claims to preserve, which reveals some aspects of God and reality that we cannot reach or conclude with pure reason alone, such as the Blessed Virgin Mary's Immaculate Conception (BVMIC for short) or the Trinity (T for short).

comment 1y ago · link · parent

> But let’s not debate it, learn go for yourself and try it on a small little project

I wrote a lot of Go from like 2010 to 2013 or so.

A few days ago I read an article from someone clearly experienced in general software good practices, who masterfully laid out every complaint I had when I left Go.

I wish I could find it, but I think it was from this year or last year. The only example I can remember is repetitive explicit error handling with a comparison to more modern languages.

comment 1y ago · link · parent

> Go has a standard code style, everyone agrees to use the same format and all our code becomes easier to read and standardized.

I like VS Code's default code style for TypeScript, but partly because it is not too opinionated about whitespace (though it gets close).

But after 10 years, I finally went back to manual CSS formatting. I just can't write CSS without the option of single-line rulesets.

gofmt doesn't (or at least didn't) allow single-line blocks ever. This is just too opinionated, and for that reason it will one day change, even if that day is 20 years from now.

Having a standard is fine. But software is not just technical, it's an art too.

comment 1y ago · link · parent

I am exploring this area in a pet project, because some part of me has always been absolutely confident that we can do better than both vdom and custom compilers. So far, I have made really exciting progress, though it has never been more than 2-3 levels deep, for example a basic todo list, so it's hard to say that it will solve the main difficulty elegantly, but so far it seems to do so in principle, and I hope soon to come up with a use-case that allows me to finally create the deepRef function that I can just tell is the final piece of the puzzle.

comment 1y ago · link · parent

Several times in the past few months, while working on my project, I spent a week writing something exploratory within it, and after all the lessons were fully learned and absorbed, erased that whole part and rewrote it in just a day. I could have kept the week long buggy and badly designed version of it and saved a day of work, but it would have drastically slowed down both development and maintenance of the overall project.

comment 1y ago · link · parent

> Excel, press Alt-F11

:O

comment 1y ago · link · parent

> you have to go through perf calibration and justify your performance

He did sound relatively defeated when he accused himself of not accurately predicting the future needs of Go users, as if it were even possible!

Maybe management has just been unjustly critical of his performance, and he's taking it too much to heart? Hard to tell, but I just get that feeling.

comment 1y ago · link · parent

Are these not also true for Node.js? Add the familiarity of JavaScript, the ecosystem of NPM, and the good-enough speed of V8, and I'm not sure why choose Go.

comment 1y ago · link · parent

Theoretically, it's basically a faster Node.js. Case in point, TypeScript is moving from Node.js to Go for a 10x speed increase.

But in reality, TypeScript is probably its only legitimate use-case, and only because it already had very stringent requirements.

Most projects either stick to Node.js, or if they need more efficiency, they get rewritten in C++ or Rust, instead of ported to Go.

comment 1y ago · link · parent

The downvotes are a sign that I did not notice that my reply to the poster was not composed. I got the memo, and will take note from now on, mark my words!

comment 1y ago · link · parent

Yep, https://news.ycombinator.com/item?id=43949769

comment 1y ago · link · parent

I resent being called a poster! I am not flat, nothing was ever printed on me. I am a human being, you.. you... you piece of sheet!

comment 1y ago · link · parent

> That is far beyond what any of us expected in the early days, when our best hope was that Go might serve as an example for useful ideas that other languages and programming environments could adopt.

Am I understanding you correctly? The Go authors basically expected Go to be just a good starting point or source of ideas for real languages to stand on?

comment 1y ago · link · parent

My project doesn't even support emojis or unicode. In context, it's not an issue.

comment 1y ago · link · parent

In other words, /^.+?@.+$/ is a user-friendly reminder that you forgot the @ sign or something. That's all.

comment 1y ago · link · parent

Ha, then I was right, but with a one-off error!

comment 1y ago · link · parent

I don't do blocking or differentiating. Emails are literal, for better or worse.
1
262728
31