HNHacker News
TopNewBestAskShowJobs

Neywiny

2,081 karma · joined May 20, 2024

submissionscomments
Neywiny··on Show HN: NFC Energy-Harvesting PCB Business Card with an MCU
What do you mean? What's in your wallet that's an NFC transmitter?
Neywiny··on Show HN: I read 648 banks' exchange boards daily to show what they charge
Country listing isn't alphabetical and doesn't cover all countries?

Also so funny to see the pushing of the app despite having a well functioning mobile site

Neywiny··on The teenage girls behind a $25 minimum wage fight in rural Alaska
Needs to be dynamic. Maybe it's too hard for politicians to understand, but it needs to be tied to something. We can't keep raising it every few years to an absolute amount. This is a good start and I wish them the best but it's short term thinking like every other one of these bills. I also think it's weird to use the living wage as a basis since they'll only make it up to that number in 6 years?
Neywiny··on “It works better in the app”
I'm still off and on trying to do this. Would be so helpful for IoT things. Can't figure out with all the PAN stuff what technology to use in what way
Neywiny··on I gave Qwen 3.8 27B a reverse-engineering job and it finished in 30 minutes
Pro tip: usually you can download your emails to an offline collection. That way there's no risk. Hooking it up to your email sounds very very risky.
Neywiny··on RISC-V: They Should Have Known Better
It depends. On cortex-m, it is the CPU. On RV, it's the code. However, if your IRQs are within the ABI, you are forced to save some registers. I believe Xilinx is overly aggressive with their saving but you still need to save at least some without hardware assistance.
Neywiny··on RISC-V: They Should Have Known Better
The delta is that no, not all registers are caller saved. However, that's how it does interrupts. So they're different. In cortex-m, they're not The hardware/ISA matches the ABI. I'm struggling to find the RV doc that describes it on mobile, but I am confident about it. So in RV, there's no pushing required at all which can save time. Interestingly, it looks like GCC (didn't check others) can compile compilation units with only using some registers. So presumably you could implement some compiler-driven banking of registers... Which I'd never thought about and actually is interesting. RV gives you that flexibility. But you really have to work for it. Which goes back to my other comment. NVIC just handles it pretty well. Especially with ARM recommending 64 bit memory alignment for the stack, it allows devices like the STM32H7 to have 64 bit buses on 32-bit CPUs to halve the transfer time. RV can't do that. No hardware memory ops, no multiple load/store. Trade offs, certainly
Neywiny··on Firefox for iOS now has a native adblocker
I wish that were true
Neywiny··on RISC-V: They Should Have Known Better
No. That's also partially in the article. But even in ones that do, usually it's a subset. In arm-m, some registers get stacked on interrupt (basically the caller saved ones in the ABI so any regular functio is automatically IRQ compatible). In this implementation, 64 registers do. Very different from I think it's r0-r3, lr, and pc. Some architectures bank them, so as long as you don't nest or call functions you can just use the interrupt bank.

RV actually allows for that. But not dictating that registers get pushed to the stack, flexibility in how you manage them opens up. So for RV, and some other architectures, you have to mark the function an IRQ and the compiler will know how to figure that out.

Another gotcha is that for AXI and other burst interfaces, the hardware being able to say "I'm going to send you X words" is dramatically better for latency than each one being a single transaction. So if your stack is in a location that requires multi-cycle memory access times, this balloons in timing cost.

Sadly this is a very hard topic to condense into a few sentences. Maybe if I wrote an article on it with graphics it would help. Unsure

Neywiny··on RISC-V: They Should Have Known Better
You know what, you're right. I was thinking of the timer option. I don't think you can turn off the csr functions on that core. But I've gotten into trouble turning off the timer
Neywiny··on RISC-V: They Should Have Known Better
Is that what you think that is here?
Neywiny··on RISC-V: They Should Have Known Better
Not a bug, just not optimized. Because I think there's a csr to read it the fpu is dirty but... That requires csr extension. It would also increase jitter, which in some cases is more important. At best it should be still there as an option, but also optionally improved
Neywiny··on RISC-V: They Should Have Known Better
I think I get it. I've tried microblaze-v for a while now. And just look at their interrupt handler. https://github.com/Xilinx/embeddedsw/blob/master/lib/bsp/sta... . With the FPU enabled at compile time, that's > 128 memory ops per interrupt. That's insane, especially without an NVIC and chaining and all that. My latency was astronomical, and my maximum interrupt frequency was pitiful. Ended up doing the work (sw and hardware options) to get it to operate more like arm-m, but arm-m doesn't need that work to be done. NVIC is always NVIC, and NVIC is good
Neywiny··on RISC-V: They Should Have Known Better
He actually explains this too. You only know at compile time what you're building for. For example with microblaze-V, I often tweak what ISA I'm generating. If I ran the same elf without thinking about it, who knows what could happen given the instruction collision problem
Neywiny··on an ambiguity in C89 which will never be fixed
No, I'm not actually suggesting you're lying. Claim meaning a thing you have. Not "you claim to be." Like staking your claim. Or a bank's claim on a house. Important for me to make sure I'm using the right word, not one definition on Merriam Webster contains doubt or accusation. In fact it's quite the opposite. In case you need to brush up on it https://www.merriam-webster.com/dictionary/claim . If it helps you, I meant it in the noun way not the verb way. Not "are you claiming to be...". I do see that some definitions of other dictionaries when used as a verb are not my intent, so that's why I put the "not to judge". It was there to guide the reader in benefit of the doubt
Neywiny··on an ambiguity in C89 which will never be fixed
Those 2 paragraphs seem counter to eachother. Not to judge, but was the claim of being the first to vote yes impactful in your decision?
Neywiny··on Build a Stratum 1 PTP Grandmaster on a Budget
I saw guides for how to do it with the pi5, but I couldn't get it to lock to the pps reliably and chrony said I had way more jitter on pps and nmea than there should've been. Might try following this one minus the difference in pps
Neywiny··on Grok Bot
Makes sense
Neywiny··on Tracking down the 16-year-old WAL-reset SQLite bug
The sqlite dev team did. It's in the article.

> It could exist that long because it was rare—so rare, the SQLite developers had to add code to deliberately trigger it in their testing environments.

Neywiny··on Grok Bot
At some places I've worked, we still get a quote anyway. This may come as a shock to the purchasing team, maybe not, but it's always come back with the price on the website. Just the SOP for us I guess
Neywiny··on DARPA heavy lift challenge ends with winner at a 3.84:1 payload to weight ratio
I saw a lot of novel designs for this but what was interesting to me was Hoarder Sam's design which I followed for a bit. He started without a tail rotor but did have one large main rotor. Then his design kinda evolved to use a tail rotor. Didn't use a swash plate, but by the end of it he was a short hop away from basically just an efficiently designed conventional helicopter. Like carcinisation.
Neywiny··on Meta glasses banned from courts in England and Wales
> Exclusive: Court service says anyone trying to enter buildings with glasses will have them confiscated and returned when they leave

Hopefully not... Maybe qualify glasses with recording or transmitting capability

Neywiny··on US hires over 2k video gamers as air traffic controllers
No mention of what games they're playing?

Also no mention of when the NYC ones were told to move to Pennsylvania or be fired? Interestingly also cbs's article https://www.cbsnews.com/newyork/news/new-york-philadelphia-a...

Neywiny··on Extreme 220GHz+Broadband Silicon Capacitor X2SC 0201M 22nF BV11
I think you're thinking of the other figure. Figure 1 has no connections at all
Neywiny··on Launch HN: ProvenMetal (YC S26) delivers circuit boards in days instead of weeks
I just had a board come in (domestic) after I think a few months. We're repeatedly running into issues with quoting and manufacturing taking ages. Especially quoting. We do our assembly in house though so I'm not concerned about that, but also we're usually (though not always) incredibly low volume so board houses don't like us.
Neywiny··on Official: Ford's $29,945 Small EV Truck Is Called Fathom
So they made the battery, arguably the most concerning thing to replace as the vehicle ages, ridiculous to replace?

At least they're not reusing names for entirely new things. Mustang Mach-e is so weird. New vehicle, new name. Good

Neywiny··on Not hiring junior engineers won't solve the problem you think you have
Depends on the field I guess. Some smaller companies I've seen have dramatically lower leadership costs, so ICs get more of the share of the gross revenue. Even with perhaps a discount to clients for choosing a small business, they can still come out on top
Neywiny··on Celebrating 45 Years of Kermit with the First New C-Kermit Release in 15 Years
Which is interesting because most autoconf programs I've seen do the opposite. They have all these defines and then don't use them. Just seems like a waste of time. Cmake has been better but still sometimes cmake will pass and the code still doesn't build
Neywiny··on Elevators
I mean this in the nicest way possible. Do you see all these cloud photo/video leaks like from robot vacuums or whatever and think they don't know it can be done locally?
Neywiny··on Show HN: Elevators
Because there would need to be some automated service and you best believe it'll be flock 2.0
← PreviousPage 7 of 34Next →