Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
apple1417
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
apple1417
13d ago
> If I do address math on the pointer in order to find a payload, then isn’t the payload tied into exactly one next pointer, and thus exactly one list? The container_of macro takes the type and member - so for a different member it can
2.
▲
by
apple1417
16d ago
I have never gotten the speed argument either. Yes it's noticeably faster - but in all my projects it's 1s vs 0.1s, not enough to make a meaningful difference. Even in their benchmarks, the worst number they ever give for pip is 7
3.
▲
by
apple1417
1mo ago
I worked on a project porting from an STM32L073 to a STM32U073, which management were assured was a complete drop in replacement. Well, it was only in the sense that you could drop one onto the old PCB. It became a running joke how many sof
4.
▲
by
apple1417
2mo ago
Last time I looked into self hosting Windows CI, it seemed like everything kind of expected you to install all your tools ahead of time, rather than anything containerised. I assume Nix helps with that? Are there any docs you can point me a
5.
▲
by
apple1417
4mo ago
>> the Tandem tslim X2 requires the user to "prime" the pump tubing with 10 units of insulin every time the pump shuts down or the cartridge is replaced. > This happens with every pump in one way or another to avoid getti
6.
▲
by
apple1417
7mo ago
Yup. It was actually an openjdk crash, which was extra interesting. I figured I probably could remove some passes, but being a lite user I don't really know/didn't want to spend the time learning how important each one is and
7.
▲
by
apple1417
7mo ago
Leading this by saying I've only used Ida free, I can't comment on Ida pro. I'm also a very lite user of both, I give name functions/vars, save bookmarks, and occasionally work out custom types, and that's about it,
8.
▲
by
apple1417
8mo ago
When I used it, the one use case I used it was to automatically launch a Jekyll server - if I'm working on a site I'm almost certainly going to want to look at my changes in the browser. Now that I've switched I just run one
9.
▲
by
apple1417
10mo ago
The MSVC linker has a feature where it will merge byte-for-byte identical functions. It's most noticeable for default constructors, you might get hundreds of functions which all boil down to "zero the first 32 bytes of this type&q
10.
▲
by
apple1417
10mo ago
My most common source of unintentional BOMs is powershell. By default, 'echo 1 > test' writes the raw bytes 'FF FE 31 00 0D 00 0A 00'. Not too likely for that to end up in a shell script though.
11.
▲
by
apple1417
10mo ago
In normal use it's essentially the same yes. The one interesting edge case that might catch some people out is there's actually nothing special about std::exception, you can throw anything, "throw 123;" is valid and woul
12.
▲
by
apple1417
10mo ago
I recently started working on a repo which historically had 100+ parallel branches. I've been jumping between a few tools recently trying to find something which handles browsing these sanely - I always liked browsing graphs, but the s
13.
▲
by
apple1417
11mo ago
An interesting example was Borderlands 2. The game originally had a native port by Aspyr, which worked quite well. 5 years pass and they release a new update and DLC - but they neglected to update the ports. 5 more years pass, then at some
14.
▲
by
apple1417
11mo ago
If you have an older game which still uses dx9, dxvk can give a decent little performance boost - even if you're running on Windows. It's kind of magical that adding a translation layer is able to improve performance. In more
15.
▲
by
apple1417
11mo ago
They exist, but one of the problems is they're not particularly good cubes. While it might help you learn the basics, not being able to handle it like a speedcube means they're probably not going to help you get faster. https:&#x
16.
▲
by
apple1417
11mo ago
I'll preface this by saying my experience is with embedded, not kernel, but I can't imagine MMIO is significantly different. There would still be ways to make it work with a more restricted intrinsic, if you didn't want to op
17.
▲
by
apple1417
11mo ago
On a recent 12h Air New Zealand flight I went on they offered free wifi for everyone. They say you can: - Browse the web. - Send and receive emails and messages. - Check and post to social media In practice I think they just whitelist a few
18.
▲
by
apple1417
1y ago
2800 day streak here, primarily in Finnish. I haven't been a fan of the app for a long time, but the problem I've always had switching is the question: What else? There might be a thousand different Spanish courses, but for less p
19.
▲
by
apple1417
1y ago
I once got a "log into phishing training" email which spoofed the company address. No one even saw the email, it instantly hit the spam filter. Our infra guy then had to argue with them for quite a while to just email from their o
20.
▲
by
apple1417
1y ago
Not OP, outside of games I keep a dual boot pretty much exclusively for Visual Studio - imo it's one of the best debuggers I've ever used. I know gdb is just as powerful if not more, but it is so much less ergonomic, even with the
21.
▲
by
apple1417
1y ago
On one of the projects I worked on, I brought a PIC16 down to ~20nA - where our fancy meter only went down to 10nA precision. It was completely unnecessary, but I'm still quite proud of it. For more standard cases, the 43uA from the ar
22.
▲
by
apple1417
1y ago
I've worked on several low power projects, while yes we needed an interrupt to wake the processor, they all still used polling for all the actual button handling. At worst the interrupt just set a flag. It's actually kind of amazi
23.
▲
by
apple1417
1y ago
Having run into similar problems several times, I've also never really been satisfied with the solutions. You have to have different types to cause compile errors, but then you have throw those types away whenever you perform any actua
24.
▲
by
apple1417
1y ago
I've seen something related, which returned a bool instead of failing compilation, be used to switch between a path the optimiser could inline and some assembly. You could probably use this to make sure it was always inlined.
25.
▲
by
apple1417
1y ago
It depends on what orbit you want. Due to the latitude you'll end up pretty inclined by default - which is bad for equatorial orbits sure, but a good start for polar ones. At a public session I went to several years back they spoke of
26.
▲
by
apple1417
1y ago
That was actually recently added as a built-in feature https://code.visualstudio.com/updates/v1_97#_git-blame-infor... Like the sibling comment, I didn't want to run all of GitLens just for it, but now that it
27.
▲
by
apple1417
2y ago
Reading the PEP for adding it, it seems primarily concerned with mirroring how the C builtins generally don't allow it, for performance. https://peps.python.org/pep-0570/#rationale That being said, you can find qu
28.
▲
by
apple1417
2y ago
> For regular programmers, if your machine won't boot up, you are having a bad day. For embedded developers, that's just a typical Tuesday, and your only debugging option may be staring at the code and thinking hard. Of course
29.
▲
by
apple1417
2y ago
I have worked on a device with this exact same "send a tiny sensor reading every 30 minutes" use case, and this has not been my experience at all. We can run an STM32 and a few sensors at single digit microamps, add an LCD display
30.
▲
by
apple1417
2y ago
You can actually usually get a pretty good starting point from just a single build, and only refine it once you find a build it breaks on. It's essentially just finding a unique substring. In my experience this almost always involves s
More ›