Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
TheNewAndy
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
TheNewAndy
7mo ago
One obvious benefit for a header only library is that it suppresses the warning you get when a static function isn't used.
2.
▲
by
TheNewAndy
9mo ago
I wrote nearly all of https://apps.apple.com/us/app/two-birds-one-stone/id15396463... on a train without internet. It was about a half hour journey, and I found that in such a short amount of time, I would se
3.
▲
by
TheNewAndy
1y ago
Not really a shell one liner, but ctrl+r (a readline command to do an incremental search backwards through history) is something that has been present on every shell I've used for decades without realising it, One day I decided to take
4.
▲
by
TheNewAndy
1y ago
Perhaps I am wrong, but the videos on this channel seem to have scripts that seem like they are very much AI written. I watched this video a week or so ago, and a few more on the channel because they were promising to answer other interesti
5.
▲
by
TheNewAndy
1y ago
The game was 2d, and I just used the stuff in SDL_render.h for doing the graphics. SDL2 has input stuff built in, so that is easy. I didn't need networking for my game, so I didn't have it, but networking is not particularly diffi
6.
▲
by
TheNewAndy
1y ago
If you just want to write C and are ok linking to stuff that is in other languages, then I used SDL2 for my game which I wrote in C and is on the app store. It was a very pleasant experience, and if I were doing an iOS thing again, I would
7.
▲
by
TheNewAndy
2y ago
If you believed the pointers didn't alias and they actually did then you replaced slow incorrect code with fast incorrect code
8.
▲
by
TheNewAndy
2y ago
Thanks for the constructive example of the rust doc. I am not making things up when I say that the very first question I had about how to use this module, either is not answered, or I couldn't find the answer. That question was "w
9.
▲
by
TheNewAndy
2y ago
"Never" is a big call. In this specific case, your tool requires a web browser (though I'm assuming that there is a non-web browser form of what is being sold here). Maybe you are in a situation where you only have terminal a
10.
▲
by
TheNewAndy
2y ago
That's an interesting assertion, but not one that matches the experience I've had. It is one of those things that sounds "obviously true", but in practice I've found that it doesn't really live up to the promis
11.
▲
by
TheNewAndy
2y ago
Personally, I'm happy to just let a Sufficiently Advanced Compiler do link time optimizations to deal with that level of optimization and either take the hit, or make more things public while that compiler doesn't exist. Let the h
12.
▲
by
TheNewAndy
2y ago
This is probably something where it comes down to preference and familiarity. I would much prefer a simple text file for documentation that I can grep, open in my text editor, modify easily without switching context (oh, I should have been
13.
▲
by
TheNewAndy
2y ago
Right, but as soon as you have private stuff in your header file, that is leaking implementation details. Yes it is kind of true that these are compile time checked to make sure that people don't do the wrong thing, but it is still an
14.
▲
by
TheNewAndy
2y ago
You will be pleased to know that you are not the only one who does this. I previously went down the rabbit hole of fancy unit test frameworks, and after a while I realised that they didn't really win much and settled on something almos
15.
▲
by
TheNewAndy
2y ago
That is less about header files, and more about how machine code works. If you want to have some abstract type where you don't let people know anything about the innards, but you do have an explicit interface which enumerates what you
16.
▲
by
TheNewAndy
2y ago
Header files are one of the things I miss the most about languages that aren't C. Having a very clear distinction between public and private, and interface and implementation is one of my favourite things about C code (at least the way
17.
▲
by
TheNewAndy
2y ago
The opal app will do what you want. It isn't exactly what you wanted, but it is certainly possible to do
18.
▲
by
TheNewAndy
2y ago
I used to like having nice strings to go with my asserts and would often do something like: assert(condition && "explanation of assert"). Now I think that the whole point of an assert is that it is for errors that require
19.
▲
by
TheNewAndy
2y ago
Volume controls also shouldn't just be a flat wideband gain - they should respect how we actually perceive sound so the timbre doesn't change as the level changes (when you turn the volume down, you are typically left with just th
20.
▲
by
TheNewAndy
2y ago
I have a pretty simple game on the iOS app store. It is simple enough that I have probably written it about three times. One of the times I tried to do everything the "apple happy path", but the final iteration in the app store co
21.
▲
by
TheNewAndy
2y ago
How do European timezone rules bother you?
22.
▲
by
TheNewAndy
2y ago
How does putting NFC in the tickets prevent this?
23.
▲
by
TheNewAndy
2y ago
I would consider a proof to be a "repeatable argument". One you could show to someone and expect them to be convinced by it. I think it is a defensible viewpoint that a proof in coq is not 100% convincing. If you think otherwise,
24.
▲
by
TheNewAndy
2y ago
How does it solve the Byzantine generals problem?
25.
▲
by
TheNewAndy
2y ago
The user of the build system defines boolean variables for any aspect of the build system that they think might be helpful. There are booleans for types of compiler flags (e.g. should I include debug symbols?) and booleans for specific chun
26.
▲
by
TheNewAndy
2y ago
Actually, Turing completeness would make it worse. This system means that when you pull in things from multiple places and multiple teams, the interactions between the different things would be really trivial to understand. e.g. if you want
27.
▲
by
TheNewAndy
2y ago
No, it is just a finite set of variables. The problem being solved is "given a known set of variables that are true, find the minimal set of other variables that need to be true" and this is basically a flood fill algorithm.
28.
▲
by
TheNewAndy
2y ago
Horn clauses just mean you can have a whole bunch of things saying "if x then y is true" where X is constrained to be a monotonic (i.e. no negation) Boolean function (i.e. OR and AND). Given some starting known true values in the
29.
▲
by
TheNewAndy
2y ago
I have made a (internal only unfortunately) meta build system for my work. Instead of being Turing complete is uses Horn Clauses as the primary mode of logic. This means that the problem of determining "is this compiler flag set"
30.
▲
by
TheNewAndy
3y ago
Linux ships with all the drivers installed (for a fairly high value of "all") (typically)
More ›