HackerTrans
TopNewTrendsCommentsPastAskShowJobs

happens

no profile record

Submissions

Asking how to read stderr and stdout at the same time destroys GPT-4o

chatgpt.com
5 points·by happens·tahun lalu·2 comments

comments

happens
·17 hari yang lalu·discuss
The performance difference in that post is due to wasm, not the container runtime, which is also stated at the end of the post.
happens
·5 bulan yang lalu·discuss
The useless people you are talking about _are_ the ownership class. They haven't worked a day in their life like you have, they are getting all the loans they want, and they are paying them off with welfare (tax cuts and loopholes).
happens
·10 bulan yang lalu·discuss
There's no special URL there either, though. The parent specifically mentioned a protocol with semantics for "web links", hence my question.
happens
·10 bulan yang lalu·discuss
Do you know where I can read more about QR code protocols? I was under the impression that a simple URL (with http/s) is common, and I've never had it not on any device.
happens
·11 bulan yang lalu·discuss
That sounds like a good strategy! I've dabbled in writing task runner, and relaying logs with preserved colors and formatting without messing up the terminal and interleaving messages from different tasks is a huge hurdle.

I wish there was a standard for telling processes "keep the colored and formatted output, but assume it will be read line by line"... It's possible to just let processes write into pty's and then parse the output, but then you pretty much have to implement an entire nested terminal emulator :-(
happens
·11 bulan yang lalu·discuss
I daily drive NixOS, and while I initially had the same experience I've settled on some workflows that basically allow me to run anything with minimal maintenance.

I think it's a problem that many tutorials and example configs you find online are very verbose and propose complex patterns, when you don't really need that much for it to be useful. There is still a learning curve, but you don't need to write a modularized configuration framework if you just want some machines with synced config and apps.

I've written about my workflow here [1], but haven't published it anywhere yet. Not sure how useful this is to other people.

[1] https://happens.lol/blog/how-to-nixos-insane/
happens
·12 bulan yang lalu·discuss
How does it deal with escape sequences? Does it just record them verbatim?
happens
·12 bulan yang lalu·discuss
Interesting - I've had the opposite experience. I usually prefer rust for personal projects, but when I recently tried to use SQLx with sqlite, lots of very basic patterns presented problems, and I wished I had sqlc back.
happens
·12 bulan yang lalu·discuss
So, you barely read one sentence, then went to the comments, read an entire thread, and took the time to post about how the author probably thinks they are superior to you?

I strongly recommend rethinking that approach. You ascribed intentions to the author and then spent more time getting upset about them than you did interacting with the content.

There are actually interesting points in that text, yet here we are getting fussy about the author's supposed lack of decorum. That's really disappointing to me.
happens
·tahun lalu·discuss
Nice work! I can also recommend sphaerophoria on YouTube for people who enjoy watching others rawdog things in zig.
happens
·tahun lalu·discuss
The linked study controls for this.

Most of the time, if you read the headline for a study, and instantly have a thought that would make the entire study's results pointless, it's very very probable the study authors had that thought too and mitigated it. It's their job.
happens
·tahun lalu·discuss
Update: https://chatgpt.com/share/684ed2b1-3cf4-8011-a5b6-77c28969ec...

Seems like it's really an infinite loop. It keeps getting more frustrated and snarky.
happens
·tahun lalu·discuss
The solution is arguably not super straightforward, but `2&>1` can be emulated by creating a pipe2 and then passing it to both stderr and stdout for the command.

LLMs are useful to me in a lot of ways, I just found it hilarious that it runs into the same pattern over and over and then just gives up, but _still recognized that it's failing_ - most of the time it just confidently outputs broken rust.
happens
·tahun lalu·discuss
That episode was uniquely creepy to me (together with episode 131 "Schisms") as a kid. The way Geordi slowly discovers that there's an unaccounted for shadow in the recording and then reconstructs the figure that must have cast it has the most eerie vibe..
happens
·tahun lalu·discuss
Awesome! Looks like it accompanied an apple trackpad, super sleek.

I'm also using nice!nanos in my projects, and they're great little devices. At this point I'd love there to be a good alternative using a dongle, though... I have a desktop PC that I want to use them with, and since they can't connect via Bluetooth at boot time, I always have to connect them to select a boot option and unlock my ZFS drive.

Having an affordable or open source controller that can do split as well as nice!nanos, but also switch between Bluetooth and a dongle is like the holy grail to me. I'd instantly buy 10.
happens
·2 tahun yang lalu·discuss
Does "native" exist on Linux, in your opinion? Feels to me like both QT and GTK (and maybe iced if cosmic comes to fruition?) could be considered native (or none of them can, depending on your point of view).
happens
·2 tahun yang lalu·discuss
If the were able to have that kind of discussion with you on the pros and cons of vaccines, would you still perceive them as antivax?
happens
·2 tahun yang lalu·discuss
What's annoying to me is that when we talk about Wayland, the things it's capable of that X11 can't do are always left out. X has no fractional dpi scaling, and no per-monitor scaling, so it's a non-starter for both my desktop and my laptop setup.

X will never have those things, while Wayland is consistently improving. Yes it has rough edges, yes the security model might be over-engineered, but it's perfectly serviceable nowadays from my point of view.