110 karma · joined Feb 17, 2015 (11y ago) · 81 submissions
1.
Ask HN: What's your opinion on Win32 API?
1 points · by paulriddle · 6y ago · discuss
comment 6y ago · link · parent
However, for some things like debugging Windows kernel trickery it is impossible to use print statements.
Personally I like debuggers.
comment 6y ago · link · parent
4.
The Joy of Programming in Jai [video](youtube.com ↗)
1 points · by paulriddle · 6y ago · discuss
5.
CNIT 127: Exploit Development(samsclass.info ↗)
1 points · by paulriddle · 6y ago · discuss
comment 6y ago · link · parent
7.
4coder text editor version 4.1 for Windows(4coder.itch.io ↗)
2 points · by paulriddle · 6y ago · discuss
8.
Ask HN: How to Cross-Compile with Clang?
1 points · by paulriddle · 6y ago · discuss
comment 7y ago · link · parent
comment 7y ago · link · parent
11.
Game livecoded in C from scratch and released on Steam(danzaidan.itch.io ↗)
2 points · by paulriddle · 7y ago · discuss
12.
Ask HN: What software your company couldn't use because of the license?
1 points · by paulriddle · 7y ago · discuss
13.
The Wayland Protocol book early draft available(wayland-book.com ↗)
3 points · by paulriddle · 7y ago · discuss
comment 7y ago · link · parent
[0]: https://handmadehero.org/watch [1]: https://youtu.be/GfGNPo9Z6mA [2]: https://youtu.be/vohsUKjg9tU?t=33
It is still early days for the debugger, so it has bugs and might crash. Another downside is that it is closed source which might be difficult to reconcile with today's culture of open source. It is really unfortunate because author said it is developed completely from scratch using very few third party libraries. Because of that it would be interesting to take a look at the source and perhaps hack on it. But people are buying it anyway.
I urge everyone who might be interested to support the development of remedy, because I want the project to succeed.
15.
RemedyBG 0.2.8.3 a lightweight debugger for Windows(remedybg.itch.io ↗)
1 points · by paulriddle · 7y ago · 1 comment
comment 7y ago · link · parent
If you really want to do it, then stop looking for a reason to do it. Because any piece of text containing the answer is probably going to fit in a few HN comments, because that's what you're currently looking at, an HN thread. You are looking for a small piece of text giving you the reason to limit your information intake and providing a technique to do so.
Most likely you won't find what you're looking for. And even if you do find something that appears to be that, it will be inferior to your experience of actually doing that. Imagive a set of all possible HN comments. It contains no element that is better than you simply deciding, without any good reason or a way to do it clearly formulated in your mind, to simply set aside a couple of weeks and read only one book exclusively.
Now you might have two objections.
First, what if the piece of text is large, like a book? To that I'll say that books have to satisfy publishers and earn a profit, which manifests itself in disgusting ways like containing a lot of filler text and flawed case studies that presumably prove the author's point. I couldn't read "Shallows: What the Internet Does to Our Brains" and "Deep Work" because of that. All books about talent or peak performance are pretty much worthless in my eyes. I might be wrong about their value, but one thing is certain - they do not contain a clear answer and come with it's own set of issues.
Second, my claim that taking two weeks and doing one thing is better than any HN comment. I'll say it doesn't even matter. Two weeks are gonig to pass regardless, so you might as well try doing that instead of simply looking for a piece for text saying whatever. You might decide to do two things or three. That's fine, the point is to get meaningful experience doing a few things over a period of time. It could be that it is simply not for you. It also could be that your brain, physically, reached the point where neurons are wired in such a way that you're never be effective. Good luck rewiring this mess with an HN comment.
comment 7y ago · link · parent
Anyways, my apologies. I see I really pinched a nerve here. I will become smarter and understand the basics of big businesses. It's a good thing to do especially if you want to become the monopoly, right?
comment 7y ago · link · parent
So I'm curious what will happen when you can't do almost anything on your computer without it being inside proprietary cloud. When everything I do is recorded, aggregated, and analyzed by mismanaged big data experts. When real life decisions are made that affect me based on this data by some faceless entity without consulting me. Kind of like what China does with their social credit score but much more elaborate. When there are people who are within this system and those who are outside because they are rich and powerful.
It really fascinates me. It can't get so bad as to be intolerable in my lifetime. And what if I become rich and get real power? The ability to make important decisions that change the global landscape. Will I be good or evil? Nowadays rather than complain about the top 0.0001% it's better to put the energy into becoming the top 0.0001%.
And by the way, you never owned Warcraft or Diablo. I suspect that to satisfy you all one needs to do is to realse a few really good and engaging games. You shall have your games and you will play them in the evenings. But during the day you WILL write survelience code for collecting plausable reasons to crush somebody inconvenient to the illuminati.
comment 7y ago · link · parent
You can do training sessions for people you want to advance or hold back. In both cases sessions would be meaningless and void of any real value, except that they assign attribute Foo to the group of people. Then you can say that only people with Foo can do Bar, moving those people forward in their career. Alternatively you can overcome some bureaucratic obstacle by claiming that you do Foo regularly, which is a requirement from some authority for some reason.
I don't really know how this kind of politics works, but this is how I tend to think about it.
comment 7y ago · link · parent
It's the early days for the tool but hopefully it will become available on Linux in the future. Because the world totally needs yet another git wrapper and visualisation tool. I jest of course, but there are already a few tools I wanted to learn but never dedicated the time for. For example hub command line utility for working with github. git-extras for lots of small things like repository statistics. fugitive.vim, a vim plugin that claims to be a git wrapper so awesome it should be illegal.
Recently I had to find out why a section of code was written a certain way and decided to hunt for the commit that introduced it. The only way to do it that I'm currently familiar with is by using github blame interface. The code was moved around so regular blame showed the commit that moved the code instead of introduced it. Github allows you to jump to a commit before the change, so I did that a couple of times while looking at the diff of where the code was removed from, because this was the place I actually needed. Overall I felt rather clumsy doing that and wondered if learning to do it on command line would be easier in the future. How can tog help here? Avoiding learning to use git on command line by itself isn't a good idea in any case, but a proper browser that allows to easily dive through history without shell trickery or a dozen of HTTP requests is a welcome addition.
Also, for tools like this I think video demonstration is best.
21.
Open source advice for new programmers breaking into the industry(writing.kemitchell.com ↗)
4 points · by paulriddle · 7y ago · discuss
comment 7y ago · link · parent
I've been learning CMake recently and it seems that quite literally every part of it is ridden with edge cases and weird bumps. Like:
- Variables can have a type, but it's not really a type, it's for GUI only.
- There are cache variables but regular variables take precedence except if you set a cache variable with FORCE. But if you do so, then it hides the normal variable and you get different behaviour on subsequent runs.
- Variables can be combined in an array, except it is a string separated by ;.
- There is a bunch of deprecated syntax that you shouldn't use but should be aware of. You should start your CMakeList.txt files with a weird conditional that sets the minimum required version using a syntactic hack.
- It ignores $CPPFLAGS in some cases, Arch Wiki said so.
- There are multiple values for true and false. Things like YES, 1, ON, TRUE, NO, 0, OFF, FALSE.
- For older versions of CMake a string literal can evaluate to the value of similarly named variable.
- It is really a programming language. There is seems to be so much to it, it doesn't look limited
I just started to learn. It's not a big deal, but it feels messy.comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
Does anybody have any science fiction recommendations along these lines?
comment 7y ago · link · parent
comment 7y ago · link · parent
I've recently watched a talk by Jonathan Corbet on Linux Kernel Report [0]. At one point he asked the audience "Who's running Linux on their phone?". Lots of people raised their hand. He then said "Well, are you? Because a lot of companies have as much as 2+ millions of lines of custom kernel code on their devices. Huawei in particular has 2.7+ millions. If the kernel currently is at about 24 million lines of code, and you only need a small subset of that for a phone, then what you end up with is something different than Linux." It happens at approximately 30:40 in the video. I have a suspicion that HarmonyOS is just what they have now plus another 200k+ lines of code or so to change the look.
comment 7y ago · link · parent