News for hackers. Stuff that matters.

dayvster

Re:Why Zig and Qt Feels Like Doing the Impossible Right on Wednesday October 29, 2025 @03:45PM (#45752062)
Well I discussed this with the Author briefly and that's a huge undertaking and he is working on it but the results especially desired results will take time.
Re:Worse Is Better Start Simple and Iterate on Monday October 27, 2025 @12:59PM (#45723409)
Yea as the author of the article that's what I'm wondering too this is scheduled to be "released" in a couple of days. I basically figured I wouldn't need to do much more than not link it anywhere on my website or sitemap.

haha looks like I might have to straight up make non public posts unavailable for viewing in the future.

Re:Accidentally Made a Zig Dotenv Parser on Thursday October 16, 2025 @12:17PM (#45607295)
Author of the article here again.

Since I've seen multiple people complain about this I've dropped adsense completely as they were pretty invasive with tracking and the amount of ads.

I'm currently testing carbon ads and then I'll do a split test with ethicalads.io

So far both of them only display a singular small banner and it's better targeted towards devs.

Re:I Miss When Software Ended on Thursday October 16, 2025 @12:05PM (#45607112)
Oooh that's a good one, saved for later!
Re:I Miss When Software Ended on Thursday October 16, 2025 @12:05PM (#45607109)
That is precisely what prompted me to write this article, it was an update to a piece of software I require to use for work that suddenly just stopped working properly.

That's actually a point I wish I touched upon more in the article, how SaaS and the ability to patch software issues later down the line made sloppy coding a norm, because you can always just push a patch and expect your users to update to resolve their issues.

Whereas back in the ol' days (promise I'm not that old) a bug in your software would essentially mean severely dissatisfied costumers that may not purchase the next version from you

Re:Accidentally Made a Zig Dotenv Parser on Tuesday October 14, 2025 @03:10PM (#45583616)
You seem to be intent on going into details of something that has very little to do with the article itself.

I'll gladly provide an answer but I don't think it's constructive.

I host the site on vercel with astro, I'm on the pro plan which usually costs me somewhere around 20€ per month +/- 5-10€ depending on my monthly traffic.

add to that the minuscule cost of my domain and other stuff I'm paying about 250-300€ per year

My adsense avg per day is just about 1.20€ roughly.

So at best I break even, at worst I lose a bit of money.

I still maintain my position that everyone is welcome and should use adblock or brave or pi-hole on my site if they so wish I won't mind.

But I do like the fact that I don't have to foot the bill :)

Basically if I had to lose money to write I'd probs stop writing if I'm honest.

Re:Accidentally Made a Zig Dotenv Parser on Tuesday October 14, 2025 @12:13PM (#45581793)
Harsh but fair, I strongly encourage you to keep your shields up and or adblocker turned on.

Sorry you couldn't enjoy the article though.

Re:Accidentally Made a Zig Dotenv Parser on Tuesday October 14, 2025 @12:12PM (#45581789)
Author of the article and owner of the site here.

Google changes the amount and placement of the ads depending what "ad market" you are from so US and other similar countries might experience more ad placements than lower ad market countries.

I tried spinning it down to basically minimal ads in adsense settings and it's still quite a lot.

I strongly encourage the use of adblockers or pi-hole even on my site and see no problem with using them on my site.

The income from adsense just about covers the hosting bills in a year so far, I'm currently exploring alternative methods of monetization that would provide more value to the readers.

Re:Is Odin Just a More Boring C? on Sunday October 12, 2025 @03:17AM (#45556018)
good catch, appreciate it!

it was indeed a mistake on my part, line-height got applied to code blocks as well as the paragraphs

I fixed it now so that codeblocks do not have a very loose line height.

Some of it is the fault of AI and the belief that software is super easy to create now and maintenance won't be an issue in the future, mainly by folks who have very little to no experience with writing software but attempt it via the many ways you can do it with AI these days.

Then there's the shiny object syndrome of humanity in general even if we just look at websites they went through so many different cycles, plain html, flash, everything built with bootstrap.css, then came the frameworks, then back to SSR/SSG, etc... etc..

Both of those are just symptoms of a larger disease , namely lack of enthusiasm in general has fallen, a lot of it has to do with how demanding day to day software jobs have gotten, or how financially unstable the younger generations feel so they rarely set aside any time for creative endeavors and passion projects

Re:Write the Damn Code on Monday September 29, 2025 @03:39PM (#45417854)
Yes! I could not agree more with this sentiment.

We over-analyse, over discuss, over plan and over optimize before we even write the first import or include.

Some of my best ideas came to me as I was busy programming away at my vision. There's almost a zen like state there

Re:The Top Programming Languages 2025 on Wednesday September 24, 2025 @05:55AM (#45358213)
Cool but I don't know how credible this information is. From what I've read on how they got that data and came to these numbers it does not exactly inspire a high degree of confidence
Woah that's wild, so this gives credence to some more spiritual stuff out there.
Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @05:28PM (#45352983)
Making a broad statement like there has never been a memory safe C program is a bit of a dickish thing to say.

especially when you phrase it as

> Can you provide examples for it? Because it honestly doesn't seem like it has ever been done.

it comes off as pedantic and arrogant.

It obviously is possible to write memory safe software in C and obviously it has been done before otherwise we would not be currently communicating over the goddamn internet.

Asking for evidence of something this obvious is akin to asking for a source on if water is in fact wet.

Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @05:24PM (#45352943)
har har... have my upvote!
Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @04:16PM (#45352207)
I could be a dick and do something like

this

```

#include <stdio.h>

int sum(int a, int b) { return a + b; }

int main() { int num1, num2; printf("Enter the first number: "); scanf("%d", &num1);

    printf("Enter the second number: ");
    scanf("%d", &num2);

    int result = sum(num1, num2);

    printf("The sum of %d and %d is %d\n", num1, num2, result);

    return 0;
}

```

See how it feels ? We can all be pedantic dicks to each other and attempt to make these weird arrogant claims.

Now will you attempt to communicate in good faith?

Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @04:11PM (#45352161)
> The Rust community should be upfront about this tradeoff - it's a universal tradeoff, that is: Safety is less ergonomic. It's true when you ride a skateboard with a helmet on, it's true when you program, it's true for sex.

Well put! And this should not be contentious issue, it simply is annoying to deal with Rust's very strict compiler. It's not a matter of opinion it simply is more annoying than if you were to use any other language that does not put that much burden on you the developer.

Not all memory safety bugs are critical issues either. We like to pretend like they are but specifically in `coreutils` there were 2 memory safety bugs found recently.

However is it really a big concern? if someone has gotten access to your system where they can run `coreutil` commands you probably have bigger problems than them running a couple of commands that leak.

Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @03:09PM (#45351407)
this is an excellent example do you mind if I examine it a bit closer and perhaps use it in my article?
Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @10:22AM (#45347457)
Then we're sort of in agreement.

I don't think you need the ritual and complexity that rust brings for small and simple scripts and CLI utilities...

Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @10:06AM (#45347233)
Uh I'm confused, so you think my take is bad because memory safety should not matter ?
Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @09:58AM (#45347146)
I can guarantee you that none of it was written by ChatGPT or any other LLM.

As for the Ads, even though it's my site, I'd urge you to turn on adblocker, pi-hole or anything like that, I won't mind.

I have ads on there yes, but since I primarily write tech articles for a target audience of tech people you can imagine that most readers have some sort of adblocker either browser, network or otherwise.

So my grand total monthly income from ads basically covers hosting costs and so on.

Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @09:54AM (#45347088)
> Seasoned Rust coders don’t spend time fighting the borrow checker

No true scotsman would ever be confused by the borrow checker.

i've seen plenty of rust projects open source and otherwise that utilise Arc heavily or use clone and/or copy all over the place.

Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @09:40AM (#45346900)
yea but, that's extremely edge case, or at least I have not yet encountered a need for that personally.
Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @09:39AM (#45346889)
Segfaults go brrr.

All jokes aside, it doesn’t actually take much discipline to write a small utility that stays memory safe. If you keep allocations simple, check your returns, and clean up properly, you can avoid most pitfalls. The real challenge shows up when the code grows, when inputs are hostile, or when the software has to run for years under every possible edge case. That’s where “just be careful” stops working, and why tools, fuzzing, and safer languages exist.

Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @09:35AM (#45346840)
I have not given any of those 3 a fair enough shot just yet to make a balanced and objective decision.

Out of all of them from what little I know and my very superficial knowledge Odin seems the most appealing to me, it's primary use case from what I know is game development I feel like that could easily pivot into native desktop application development was tempted to make a couple of those in odin in the past but never found the time.

Nim I like the concept and the idea of but the python-like syntax just irks me. haha I can't seem to get into languages where indentation replaces brackets.

But the GC part of it is pretty neat, have you checked Go yet?

Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @09:26AM (#45346707)
Hahahahah have my upvote that was funny! Thank you
Re:Why Zig Feels More Practical Than Rust on Tuesday September 23, 2025 @09:26AM (#45346700)
Not quite, it can translate C into zig using the `translate-c` command that it comes with. But it compiles directly into machine code

Older »