HNHacker News
TopNewBestAskShowJobs

ReactiveJelly

3,665 karma · joined December 28, 2019

Only shows up for threads about gender and Rust.
submissionscomments
ReactiveJelly··on A failed AI girlfriend product, and my lessons
I think he edited that line out when it got big on HN lol. And clarified that she was named for Westworld, not... "She was Dolores on the dotted line"
ReactiveJelly··on The real realtime preemption end game
If it's a journaled record for the business then I think I'd write it to SQLite or something with good transactions and not mix it in the debug logs
ReactiveJelly··on The Small Website Discoverability Crisis (2021)
I had an episode of delusional schizophrenia in my early 20s and luckily haven't relapsed. No hallucinations, just started to think everything was secretly talking about me or to me.

My pet theory is something like, my brain's dials for "avoid risk" and "recognize patterns" are turned up too high. So I breezed through a software engineering degree without ever partying, but I spend a lot of my time sitting in my house unable to motivate myself to go outside, and I'm not very empathetic (other people's words) and not very outgoing.

It's not that schizophrenia makes you smart, but that "smart" and "schizophrenic" are both functions of some high-dimensional space, and the same underlying differences can easily cause both.

On the other side, I have an elder relative who has paranoid schizophrenia and below normal IQ. Us in the tech industry are definitely going to get survivor bias from the "Beautiful Mind" cases around us.

And of course sometimes you meet those people who are smart, beautiful, rich, and friendly, with no downsides, and all you can think is ... "You son of a bitch" :P

ReactiveJelly··on WASM by example
Most of the 3rd-party libraries I use, I use for their side effects.

Qt opens GUI windows and sockets and such. libusb touches USB devices. OpenCV can capture video frames from a camera and sometimes use GPU acceleration. Sqlite manipulates files on disk.

So unfortunately with wasm in a sandbox, the easiest libraries to work with are only pure functions. ffmpeg would work, but HW encoding or decoding would be difficult, and I need to either enable some file system access in the wasm runtime or feed it file chunks on demand.

ReactiveJelly··on Beyond Memorization: Violating privacy via inference with LLMs
Your birthday and zip code is almost enough to identify you. Every bit of entropy counts
ReactiveJelly··on I accidentally a scheme
Here's the reference - https://knowyourmeme.com/memes/i-accidentally
ReactiveJelly··on Reptar
That would be the conservative thing to do. If there's no limit on microcode updates, if I was Intel, I'd consider doing that first and then speeding it up again later. Based on the 5-second guess that people who update everything regularly will care that we did the right thing for security, and people who hate updates won't be happy anyway, so at least the first update will be secure if they never get the next one.

(I think there is a limit on microcode, they seem conservative to release new ones - I don't remember the details)

ReactiveJelly··on My favorite coding question to give candidates
Yep. I estimate if the files are over 10 million lines, I'd rather use SQLite. They'd probably still fit into memory, but that's where I'd put up with the up-front hassle of SQLite so that I don't have to reparse CSV in Python / Lua / whatever I'm writing this script in
ReactiveJelly··on The Best Timed Shot in TV History (Probably)
To be fair, you could practice it as many times as you want ahead of time.

It's probably a common skill in presenting, on radio / DJing they call it "hitting the post" https://en.wikipedia.org/wiki/Glossary_of_broadcasting_terms...

ReactiveJelly··on The Best Timed Shot in TV History (Probably)
I'm guessing they set the camera very far back, which will appear to compress depth. Otherwise, since he must be standing so far from the rocket, the rocket would be too small to see.

(It's not the lens - That's a pet peeve of mine, it's not the lens. The z-divide in any graphics simulation is what appears to compress or expand depth. The lens merely makes a shorter or farther camera distance practical. The lens themselves don't distort anything until you're talking about fisheye effects.)

ReactiveJelly··on We've learned nothing from the SolarWinds hack
It's all the same to the users, and making mistakes impossible is also part of quality. I'd say go for it.
ReactiveJelly··on Your small imprecise ask is a big waste of their time
No it's not. I made it clear to my last team that I'm just super forgetful and if you don't write down your request, I'll have to stop and write it down myself, implicitly making me an over-paid secretary.

There was resentment yes, but I did trust them!

ReactiveJelly··on Munich court tells Netflix to stop using H.265 video coding to stream UHD
So there might need to be time lag where you can refuse a sale by agreeing to pay extra tax?

Then it's vulnerable to malicious buyers putting in fake bids. There is probably a good reason this hasn't been implemented.

ReactiveJelly··on Munich court tells Netflix to stop using H.265 video coding to stream UHD
Isn't that equivalent to setting the tax rate X% lower?

The only problem I see otherwise is that it's not a progressive tax - 5% of a trailer is much more of a poor person's income than 5% of a mansion is of a rich person's. But for that you can use UBI or something to make any flat tax net-progressive.

ReactiveJelly··on Google pulls Fitbit from almost 30 markets
The action makes sense, but the justification just sounds bogus.

Like when a company says they're making some change to "improve service" or whatever but it's actually making service worse for some people

ReactiveJelly··on Terminating an employee with a bus factor of 1
I'm fully aware that they're people. That doesn't mean I'm obligated to stick up for them. If they're good, I would stick up for them even if they were a hyena.
ReactiveJelly··on Peter Thiel is taking a Break from Democracy
We'd be better off with approval voting, and we could get things like that done if every voter agreed with me on every issue, which would free up political willpower.

It's not gonna happen this decade, but it'd be nifty.

ReactiveJelly··on Hoppscotch desktop application
> Hoppscotch is a lightweight, web-based API development suite.
ReactiveJelly··on Evolve Your Hierarchy (2007)
It's about Entity Component Systems in video games
ReactiveJelly··on Shift Left Software Development Process (2022)
I'd thought of this as similar to Kanban or Test-Driven Development.

Before you start designing, look at what you have and ask why it doesn't already work. Those answers become manual test cases. Then get it into a test environment immediately, not after more than a day of coding. Every day make the test environment more like production. Run the whole cycle every time, build, release, test, otherwise one of the phases will go astray when you aren't exercising it.

I know Kanban is something different but these are all "Don't push from the start of the pipe, pull from the end of the pipe" approaches. It also works with media encoding and decoding. If you push, the buffers fill up and you have to figure out where to stuff packets when the codecs tell you they're full. If you pull, you waste 1 cycle figuring out where to start, but then everything is smooth and just-in-time.

It's all the same crap. It's Lean, too. There must be 20 names for this concept.

ReactiveJelly··on Northlight technology in Alan Wake 2
I'm surprised it's still a problem. Years ago a basketball game franchise bragged that the PS3 allowed them to do foot planting with inverse kinematics. Years before that, Shadow of the Colossus shipped on PS2... with IK foot planting.
ReactiveJelly··on MISRA C
Jeez. I proposed to adopt some of the Joint Strike Fighter Air Vehicle rules for C++ [1] at one job, and I went through them marking each as "already in practice", "needs debate" or "I'm vetoing it"

And I vetoed early return with a link to the article on railroad error handling. I don't know how it looks in C, but in C++ and Rust early returns are so much better.

[1] https://www.stroustrup.com/JSF-AV-rules.pdf

ReactiveJelly··on A four year plan for async Rust
Even then I'm pretty sure it's not _a_ dedicated thread, but a thread pool that defaults to a maximum of 512 blocking threads. There's no reason it would bottleneck unrelated writes on unrelated Files through the same thread. I tried to dig into the code here https://news.ycombinator.com/item?id=38180860
ReactiveJelly··on A four year plan for async Rust
> All of my I/O got pushed through one thread (with tokio)

In all my use of Tokio in the last few years, I never heard of such a thing.

In tokio::fs::File [1] it calls spawn_mandatory_blocking to do file writes, I assume this is similar to spawn_blocking [2] which sends a task to Tokio's blocking thread pool. That thread pool is supposed to max out at 512 blocking threads [3], unrelated to CPU core count.

Tokio's TcpStream appears to be built on mio's TcpStream. I didn't dig deep into the code for this, but it doesn't just call spawn_blocking, and I'm assuming on Unix it ultimately registers the socket with epoll or equivalent, so it never blocks a thread to do socket reads or writes.

Could you share more about your application?

[1] https://docs.rs/tokio/latest/src/tokio/fs/file.rs.html#682

[2] https://docs.rs/tokio/latest/tokio/task/fn.spawn_blocking.ht...

[3] https://docs.rs/tokio/latest/tokio/runtime/struct.Builder.ht...

ReactiveJelly··on A four year plan for async Rust
Is that the same as the "Unforgetable types" mentioned in the blog?

I never thought about it but, my only problem with C's manual destructors is that the compiler doesn't check that you remember to call them. If we accept a language like Rust that does sophisticated static analysis, it doesn't need to delete things for you, it only needs to be sure you have a plan to delete everything.

That's interesting.

ReactiveJelly··on IBM Rebus
I'm surprised that running payroll and pensions for the whole country would take more than one roomful of computing power but what do I know
ReactiveJelly··on Why Cities: Skylines 2 performs poorly
Sounds right. I remember seeing "1M Triangles" in the performance HUD and thinking, that's crazy, a million triangles. Probably very few shared vertices once you account for edge splits, billboards, etc.
ReactiveJelly··on Chrome Removing Theora Support
That's so clever that now I have to do it lol
ReactiveJelly··on The negative impact of mobile-first web design on desktop
It makes every window interaction slower when I'm helping them and, I assume, when they're alone. I usually have two panes of code and one or terminals on the side so I don't spend time hunting for windows
ReactiveJelly··on The negative impact of mobile-first web design on desktop
Tmux makes sense. These guys were just having one bash session with like 300 columns
← PreviousPage 5 of 34Next →