Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smcameron
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
smcameron
10mo ago
For me, the answer is stgit. https://stacked-git.github.io/
32.
▲
by
smcameron
11mo ago
> When you are a single person, the math changes. No, you just have to cook meals that freeze well and learn to use your freezer.
33.
▲
by
smcameron
11mo ago
In the U.S., anything machine generated is uncopyrightable. Why would you put uncopyrightable code into your codebase?
34.
▲
by
smcameron
11mo ago
and sccs
35.
▲
by
smcameron
1y ago
stdlib already means something else. Don't you know when you pick a name, you need to pick something with zero google hits?
36.
▲
by
smcameron
1y ago
> I've got an internal alarm that starts to go off somewhere around 72 hours. Nah, in my experience, if you've got good commit hygiene you can often merge even ancient commits. Here's a pretty hefty commit I merged five y
37.
▲
by
smcameron
1y ago
> - “every commit must compile” - again, unnecessary overzealousness. So you're the one breaking git bisect all the time. Grrrr. Use stgit and make decent commits instead of rolling in the dirt like an animal.
38.
▲
by
smcameron
1y ago
> there is apparently an old expression "the rabbit died" in English This shows up in the Aerosmith song, "Sweet Emotion"
39.
▲
by
smcameron
1y ago
Can't mention a Bob Carver designed amp without also mentioning the amplifier challenge: https://www.stereophile.com/content/carver-challenge-0
40.
▲
by
smcameron
1y ago
> printf debugging isn't without its annoyances, namely removing the print statements once you're done. Use something like stacked git[1], and then it's just one "stg pop" and poof, they're gone. [1] https:
41.
▲
by
smcameron
1y ago
COGS == cost of goods sold?
42.
▲
by
smcameron
1y ago
You sure about that math? If there are 2 linux users and 8 windows users, then that's 20% linux, 80% windows. If one windows user quits using computers, then that's 2 linux users (out of 9 total) and 7 windows users (out of 9 to
43.
▲
by
smcameron
1y ago
Seems overly simplistic and doesn't seem to cover extremely common cases such as a thread allocating some memory then putting it into a queue to be consumed by other threads which then eventually free the memory, or any allocation life
44.
▲
by
smcameron
1y ago
No, every gpu vendor out there would prefer proprietary drivers and with a stable ABI, they could do it, and would do, there is no question about it. I worked for HP on storage drivers for a decade or so, and had their been a stable ABI, HP
45.
▲
by
smcameron
1y ago
Ugh. Are unicode variable names allowed in C now? That's horrific.
46.
▲
by
smcameron
1y ago
There's an upside to C's limitations. Several times I've seen expressed the notion that "every big Lisp project uses its own dialect of Lisp". This is less true in C, I think, because it doesn't have the power
47.
▲
by
smcameron
1y ago
> If this type of pre-aborted mission is included in the total, the success rate drops to between 20 and 30 percent. On the face of it, this success rate is bad ... I disagree with this premise. I suspect that 20 to 30% success rate is n
48.
▲
by
smcameron
1y ago
What if you're writing swear word censoring/detecting software? Or maybe something less draconian, like your space game that has a Zork like parser, and needs to know that if the user says, "set the f'ing warp drive to
49.
▲
by
smcameron
1y ago
And you can 3D print a Cray YMP case for your Raspberry Pi: https://www.thingiverse.com/thing:6947303
50.
▲
by
smcameron
1y ago
Oh, weird, I was just thinking of Memory Shift[1] earlier this morning, hadn't thought of it in probably 30 years, and now that switcher article mentions it. [1] https://www.atarimagazines.com/creative/v9n12/82
51.
▲
by
smcameron
1y ago
So, here is some computer created art ("art"?): https://imgur.com/x4eR2HQ I have many many more like it. https://imgur.com/tCYhZEy I wrote the program that creates that. When I wrote it, my goal
52.
▲
by
smcameron
1y ago
Because the codebase you're working on is on github? And I think you may underestimate the power of stgit. You can manage thousands of patches concurrently, no problem. If you're a maintainer getting patches from loads of peop
53.
▲
by
smcameron
1y ago
One thing I did not see mentioned in the article, or in these comments (according to ctrl-f anyway) is the use of feenableexcept()[1] to track down the source of NaNs in your code. feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLO
54.
▲
by
smcameron
1y ago
It means that if you do "patch -p1 --dry-run < some.patch", and it complains that it doesn't apply, wiggle can sometimes apply it anyway, and also, if you do "patch -p1 < some.patch", and it partially applies
55.
▲
by
smcameron
1y ago
Along similar lines is "Here Dragons Abound", a blog about procedural generation of fantasy maps, though it hasn't been updated in awhile. https://heredragonsabound.blogspot.com/
56.
▲
by
smcameron
1y ago
If you work with git and patches a lot, stgit is worth a look. https://stacked-git.github.io
57.
▲
by
smcameron
1y ago
There's also Neil Brown's "wiggle" program for applying patches that don't apply. https://github.com/neilbrown/wiggle although on debian based systems I think you can just "apt install wig
58.
▲
by
smcameron
1y ago
> The shell, not the Linux kernel, is responsible for searching for executables in PATH! I mean, no shit, Sherlock? the exec family of system calls requires a path to a file, not a filename with an implicit path from the environment, o
59.
▲
by
smcameron
1y ago
Surprised to see the return value of sscanf being ignored, that seems like a pretty rookie mistake, and this bug would never have made it out of the original programmer's system if they had bothered to check it.
60.
▲
by
smcameron
1y ago
Which is weird, because the stated purpose of MinC is: "MinC was written to help children at vocational education learn Linux without the hassle of virtualization." And it does this by running OpenBSD on Windows? That's rea
More ›