Better HN
topnewbestaskshowjobs
Log inSign up

roetlich

335 karma · joined May 1, 2018 (8y ago) · 136 submissions

Hi, my name is till. Feel free to reach out to me, contact info is on my website. There you'll also find some blog posts about programming languages.

Email: hn at my domain name. Website: https://till.red/ Business email: till @ business domain name. Business website: https://specificadvice.com/ LinkedIn: https://www.linkedin.com/in/till-schroeder/ meet.hn/city/ee-Tallinn

Submissions

comment 4mo ago · link · parent

Love the exclamation marks. So let's just use, for example, this definition: https://www.britannica.com/topic/ad-hominem

Here it's a type of argument, and it's only sometimes a fallacy. Seems like this how it's defined most of the time, unless you explicitly look for "ad hominem fallacy". Ad hominem without any context can be vague, I guess, so I tried to be more explicit.

I don't know, maybe I'm wrong, English isn't my first language, but I think "Obvious Fabrication" (capital letters) is a bit silly.

comment 4mo ago · link · parent

Oh yes, I didn't clarify that I meant an argumentum ad hominem, which isn't the same thing as the informal fallacy of the same name. So yeah, I agree, this isn't directly fallacious.

comment 4mo ago · link · parent

> if Andrew isn't trying to enter the discussion

But he is. Both in the title, and in later half of the blog post, he directly enters that discussion. I'm not saying an ad hominem argument is always bad, but this clearly is one.

comment 4mo ago · link · parent

No, the discussion started with a the article from Bun, stating that rust has some technical advantages for them. The response from the Zig creator is a bunch of personal attacks directed at one guy, like calling him a stinky manager. All of these are fully unrelated to which language is better for Bun.

This is like the textbook definition of an ad hominem.

comment 5mo ago · link · parent

Well, this seems like a very dangerous way of using AI. If you keep pushing until you get back an answer that makes sense to you, you might just get your own believes fed back to you.

comment 5mo ago · link · parent

Who would have thought that git worktree is the technology of the year 2026?

comment 5mo ago · link · parent

Great, now we need this with current data for modern governments

comment 7mo ago · link · parent

Great idea, to include learning into the regular work.

Can you explain how the lessons are generated?

It looks like there are no pre-generated lessons, they are created on the fly by the AI. Wouldn't it be possible to write a skill or similar that does the same with your existing coding agent?

comment 7mo ago · link · parent

My Firefox doesn't accept your https cert. Maybe check that out?

comment 7mo ago · link · parent

What does "done offline" mean? Otherwise you are limited by context window.

comment 8mo ago · link · parent

"Managment" usually are office workers.

comment 8mo ago · link · parent

> Does it continue if you agree to the warning?

No, you can't "agree".

> What if you ask about 9/11?

It answers the question.

comment 10mo ago · link · parent

Well, most interpreters use a compiler internally, for example to compile to byte code. The book explains that as well, so I'd recommend just reading it: https://craftinginterpreters.com/a-map-of-the-territory.html...

comment 10mo ago · link · parent

Thanks, will fix! Haven't maintaineed the website in a bit :)

comment 10mo ago · link · parent

https://till.red/ :)

comment 12mo ago · link · parent

Very cool! Why was and the entire networking stack straight forward, but not HTTP (and TCP)? Could you take inspiration form other projects for things like DNS?

comment 12mo ago · link · parent

Interesting! The article talks mostly about how this all worked, but rarely about what was actually discussed. Which opinions of the party do you like or support?

comment 1y ago · link · parent

> one door per day until it's Christmas eve

That would be 24.

comment 1y ago · link · parent

What?

I think there must be some misunderstanding? I think deathanatos just wants an easy way to send files between computers when the internet is down, which seems decently reasonable.

comment 1y ago · link · parent

Then don't turn it on?

comment 1y ago · link · parent

Any comparison to Typst?

comment 1y ago · link · parent

Unless you modify Redis, what do you want to share? You don't have to share any of your server code or anything. No reason to be so dramatic. :)

comment 1y ago · link · parent

Or you could use C# and get all of those features.

comment 1y ago · link · parent

This looks very cool, maybe I'll try this for risc-v if I have some time. I guess you could also use this to write RAW images, or other binary data.

comment 1y ago · link · parent

Fair, thanks.

comment 1y ago · link · parent

Oh, that makes more sense. Thank you!

Is this linked list type then mostly meant to be used as an internal implementation detail, and not be exposed in a public API? Because if I see a function that takes a non-generic list I won't really know how to call it. :)

comment 1y ago · link · parent

Thank you, that answers all my questions.

comment 1y ago · link · parent

Well I personally almost never use linked lists, don't like them. But Zig seems to think otherwise, they have two implementations in the standard library.

I don't know much Zig, I just wanted to ask how to use the type that the article talks about?

Let's use the very simple example from the article. Let's say I want to extract this code into a function:

    while (node) |n| {
      const user: *User = @fieldParentPtr("node", n);
      std.debug.print("{any}\n", .{user});
      node = n.next;
    }
1. How does that look, what's the type signature of this function? 2. What happens if I put in a list doesn't contain users? Do I get a simple to understand compile time error, or can I segfault because I'm accessing bad memory?

And I don't think that would need any generics, since the list type isn't generic, right?

comment 1y ago · link · parent

Okay, thanks for explaining more.

> And it's typesafe: if you write invalid code the compiler will give you an error.

One more question, if @fieldParentPtr("node", n) is typesafe and can get you a User, the compiler needs to know that the struct has the fields of a User, and that this pointer is indeed pointing at a node field, right? Then why do you need to specify "node" at all?

I think I don't understand Zig at all :)

comment 1y ago · link · parent

This looks somewhat horrifying. How do I safely write a function that takes a linked list as a parameter?
12345