Live data from Hacker News

Interview with Mitchell Hashimoto about Ghostty and Zig

alexalejandre.com

271–280 of 281 posts

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#271
post #262
post #201

Earlier quoted context omitted.

I've been using Rust in anger since ~2018 and I guess I've had completely different experience, especially compared to what I was mostly doing before, which was Scala. Scala (the v2 series, I haven't used v3 at all) was, to a first approximation, a language of, by, and for graduate students in language research that accidentally escaped the lab and briefly took over the data engineering space. Multiple competing cate…

Rust is becoming the chosen language for those that would have previously used Haskell, OCaml, Scala, but now get to use something with more mainstream mindshare. It isn't very hard to find folks misusing unsafe to mean something else other than memory safety, or their own ZIO like frameworks.

Not sure I understand the point you're trying to make. Can you rephrase?

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#272
post #271
post #262

Earlier quoted context omitted.

Rust is becoming the chosen language for those that would have previously used Haskell, OCaml, Scala, but now get to use something with more mainstream mindshare. It isn't very hard to find folks misusing unsafe to mean something else other than memory safety, or their own ZIO like frameworks.

Not sure I understand the point you're trying to make. Can you rephrase?

Easy, some folks write Haskell or Scala in Rust, because it allows them to reach a wider mindshare.

So they write their monadic and effects frameworks in Rust instead, and use unsafe to mark methods that might be dangerous, regardless of related to possible memory corruption or not.

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#273

Earlier quoted context omitted.

I’m curious: how did you get that link to the Rust reference? It’s to a five and a half year old version.

Oops, I found it here: https://doc.rust-lang.org/stable/reference/#rust-releases I just assumed it was a stable link to the version being read (in this case, the latest stable version).

Ahh, interesting! Thanks.

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#274

Earlier quoted context omitted.

“A complete derail” is doing some heavy lifting there. This is a wide ranging discussion board, not the OpenBSD forums. That shit is fair game even if you don’t like it. (It’s annoying, sure - because dev tribalism is the most played out thing in this industry - but overall the topic can be an interesting discussion point)

there's plenty of Rust posts to talk about Rust. I come to an OpenBSD post to talk about OpenBSD. Rust isn't even really tangentially related.

Then do it in the litany of comment sub-threads and stop complaining about one that's a Rust tangent.

Welcome to forums, we've been using them for a few decades now.

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#275
post #155

This is the only statement I disagree with: > PowerShell gets a lot right with structured data. CLI programs should operate on text. If you want to parse and format it, do so, but the default output mode should be plain text, so that I can pipe it into grep or awk without a second thought. I am continuously irritated that the AWS CLI defaults to outputting in JSON. No one (I hope…) is using that tool in programs; tha…

I think you're mistaking text-with-structured data for structured data itself. Because unix shell is irrevocably text-oriented, kludging in something like JSON is basically the best that can be done when you start to want to do structured operations on structured data. (I'm sympathetic to your point about the AWS CLI tools doing JSON by default though--that just sounds like bad design.) Being text-oriented imposes dr…

It seems the sticking point is the column headers but if you as a human take them off programmatically and put them back on mentally, it's a much easier problem.

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#276
post #155

Earlier quoted context omitted.

I think you're mistaking text-with-structured data for structured data itself. Because unix shell is irrevocably text-oriented, kludging in something like JSON is basically the best that can be done when you start to want to do structured operations on structured data. (I'm sympathetic to your point about the AWS CLI tools doing JSON by default though--that just sounds like bad design.) Being text-oriented imposes dr…

It seems the sticking point is the column headers but if you as a human take them off programmatically and put them back on mentally, it's a much easier problem.

That's definitely the pragmatic choice when working with shell and what roughly everyone does. But it's is also a UX compromise that, if needed anywhere other than the Stockholm Syndrome-ridden world of unix, would be routinely derided.

Shell and plain text are too embedded in the unix-descendant world to get rid of, and I'm not advocating for anything like that. Just trying to push back against oft-repeated maxims about the power of plain text. Structured data has lots to offer for composability, power, and UX.

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#277

Earlier quoted context omitted.

there's plenty of Rust posts to talk about Rust. I come to an OpenBSD post to talk about OpenBSD. Rust isn't even really tangentially related.

Then do it in the litany of comment sub-threads and stop complaining about one that's a Rust tangent. Welcome to forums, we've been using them for a few decades now.

Seek help.

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#279
post #272
post #271

Earlier quoted context omitted.

Not sure I understand the point you're trying to make. Can you rephrase?

Easy, some folks write Haskell or Scala in Rust, because it allows them to reach a wider mindshare. So they write their monadic and effects frameworks in Rust instead, and use unsafe to mark methods that might be dangerous, regardless of related to possible memory corruption or not.

Any examples? I haven't seen this personally.

Re: Interview with Mitchell Hashimoto about Ghostty and Zig

#280

Man, these are the kinds of things that I am so happy to read. People who think and care deeply about what they do, take pragmatic decisions that appears right to them and explain why they do things the way they do. Very motivating. Literally moved me from the couch to the work desk .

There are many more! https://alexalejandre.com/interviews/
Post reply on HN