Readit News logoReadit News
cylon13 commented on Coroutines in C (2000)   chiark.greenend.org.uk/~s... · Posted by u/ColinWright
c-smile · 2 years ago
> please consider using actual threads.

Bad advice in general.

Why would you run separate thread if you only want is to iterate over nodes in a tree (as an example of non flat collection).

cylon13 · 2 years ago
It’s never bad advice to consider something.
cylon13 commented on How to store a chess position in 26 bytes using bit-level magic (2022)   ezzeriesa.com/index/Writi... · Posted by u/kurinikku
solardev · 2 years ago
Well, this is arguably a kind of compression, right? So you'd be trading CPU time for fewer bytes? Is that a desirable tradeoff at chess engine scales?
cylon13 · 2 years ago
Is your assertion that it takes more time for a CPU to read values out of a 30 byte struct and do a couple shifts and branches than to parse a JSON representation?
cylon13 commented on Show HN: Ghidra Plays Mario   github.com/nevesnunes/ghi... · Posted by u/0d0a
mohn · 2 years ago
Cool project! I'm very interested in accurate preservation of the behavior of these old systems (chip decapping and scanning, FPGA reimplementation, accuracy-focused emulators) and using Ghidra to reverse engineer old games, especially on the 6502 and m68k architectures. Just an enthusiastic spectator at this point, but I hope to contribute something to the field eventually.

A sidenote: the action at 0:19 in the 50x-speed demo is intriguing. I've played many hours of Super Mario Brothers and watched various tool-assisted speedruns of it, but I don't recall seeing a Goomba reverse direction like that instead of just plowing into Mario. Is that a game glitch that you intended to show off with your recorded keyboard inputs? I haven't played in a long time, so I also wouldn't be surprised to hear that such behavior is common. I didn't find an obvious reference to it in the TAS info here [0].

Edit: there is precedent for that Goomba behavior [1].

[0] https://tasvideos.org/GameResources/NES/SuperMarioBros

[1] https://www.reddit.com/r/Mario/comments/add1fx/changing_goom...

cylon13 · 2 years ago
I think that goomba bumped into the squished goomba Mario had just squished. Mario was just a bit to the left so the flat goombas hit box stuck out to the right a bit and the other goomba hit it.
cylon13 commented on HCSL: Hand coded stringy lisp   github.com/0x3444ac53/HCS... · Posted by u/0x3444ac53
cylon13 · 2 years ago
Yeah it doesn't really land well as a joke because it's the very first thing. Joking hot takes at least need a bit of warm up so readers know what's going on, whereas this just opens with a no-context dis at women where it's not even clear what the joking read is supposed to be talking about. What hard work? What's happening?
cylon13 commented on How RLHF Works   interconnects.ai/p/how-rl... · Posted by u/natolambert
pestatije · 3 years ago
RLHF - reinforcement learning from human feedback
cylon13 · 3 years ago
A notable improvement over the GLHF strategy for interacting with GPT models.
cylon13 commented on Rust on macOS 9   twitter.com/turbolent/sta... · Posted by u/zdw
userbinator · 3 years ago
by first compiling to WebAssembly and then compiling that WebAssembly to C

That's a really indirect way, and it's not clear how much efficiency is lost in the process. It's not too far from claiming that $language can be used on a microcontroller, because $language exists on Linux, and the latter can run Linux even if via extremely slow emulation: https://news.ycombinator.com/item?id=19762928

Also related: https://news.ycombinator.com/item?id=22010159

cylon13 · 3 years ago
There's not much data in the performance section of the front-page readme of the repo, but the one bullet point there seems promising:

> Coremark 1.0: ~7% slower than native [0]

[0] https://github.com/turbolent/w2c2#performance

cylon13 commented on Mold linker: targeting macOS/iOS now requires a commercial license   github.com/rui314/mold/re... · Posted by u/Kukumber
sacnoradhq · 3 years ago
Why would CI/CD hold up a dev team if it's done asynchronously?

What kind of dev team doesn't multitask?

Apart from edge-cases involving linking large projects synchronously, there's no competitive advantage and the feature set is far less than lld, bfd, or even gold. It's a niche "product" most people don't need.

cylon13 · 3 years ago
Do you never find yourself interested in the results of a code change you have just made?
cylon13 commented on Unredacter: Never use pixelation as a redaction technique   github.com/BishopFox/unre... · Posted by u/linker3000
matsemann · 3 years ago
We have this advent calendar at work where one person on the team posts a pixelated scene from a christmas movie and we guess which one it is. Very hard, but when they later post the non-pixelated version it looks so obvious. Then if I look at the pixelated version again I can now "clearly" see what it is.
cylon13 · 3 years ago
Might be fun to use diffusion to make adversarial/false answers to the pixelated scenes, depending on how pixelated they are. If they're quite pixelated you could probably come up with some crazy alternatives.
cylon13 commented on AVR-GCC Compiler Makes Questionable Code   bigmessowires.com/2022/12... · Posted by u/zdw
Gordonjcp · 3 years ago
Isn't Rust designed around things like immutable variables, where you need to copy and copy and copy the same things over and over, and therefore expect to run it on something with infinite amounts of memory? It might be suitable for modern desktop computers which have hundreds or even thousands of kilobytes of memory available, but not a microcontroller with 2kB of RAM.
cylon13 · 3 years ago
This is incorrect
cylon13 commented on Ask HN: Are there recorded instances of people being framed through hacking?    · Posted by u/desertraven
jliptzin · 3 years ago
Even a law professor couldn't escape being framed, what does that mean for the rest of us?
cylon13 · 3 years ago
Why would you expect a law professor to be an expert in avoiding being framed?

u/cylon13

KarmaCake day679January 8, 2015
About
jaburns.net
View Original